!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=12)}({12:function(e,t,n){n(13).polyfill()},13:function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r at the app root?");var t,n=b?function(e,t){var n=[];if("undefined"==typeof Proxy)return n;var r=new Proxy({theme:1i(t)});return-1!==r?function(e,t,n){return[].concat(J(e.slice(0,n)),[t],J(e.slice(n,e.length)))}(e,n,r):[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);tu){p=d;break}var h,m=Q(r,o);0|&)/;function g(e,t){return 0===e.length?t:e+" and "+t}r=n(6);var v=n.n(r),s=(r=n(1),n.n(r)),l=(r=n(5),n.n(r));function u(e){return l()(e,function(e,t,n){return"".concat(e).concat(n,"{").concat(s()(t),"}")},"")}var c="abcdefghijklmnopqrstuvwxyz",p=c.length;function b(e){return"data:"===e.substr(0,5)}function C(e){return b(e)?e:"'".concat(e,"'")}var _={".woff":"woff",".woff2":"woff2",".eot":"embedded-opentype",".ttf":"truetype",".otf":"opentype",".svg":"svg",".svgz":"svg"},S={"image/svg+xml":"svg","application/x-font-woff":"woff","application/font-woff":"woff","application/x-font-woff2":"woff2","application/font-woff2":"woff2","font/woff2":"woff2","application/octet-stream":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype","application/x-font-opentype":"opentype","application/vnd.ms-fontobject":"embedded-opentype","application/font-sfnt":"sfnt"};function P(e){return-1===e.indexOf("ad")}var I=/^[a-z_][a-z0-9-_]*$/gi;function d(d){void 0===d&&(d={});var f={listeners:[],keyframePrefixes:d.keyframePrefixes||["-webkit-","-moz-"],plugins:d.plugins||[],sortMediaQuery:d.sortMediaQuery||function(n){return void 0===n&&(n=[]),function(e,t){return-1===n.indexOf(t)?-1===n.indexOf(e)?0:-1:-1===n.indexOf(e)?1:n.indexOf(e)-n.indexOf(t)}}(d.mediaQueryOrder),supportQueryOrder:d.supportQueryOrder||[],styleNodeAttributes:d.styleNodeAttributes||{},ruleOrder:[/^:link/,/^:visited/,/^:hover/,/^:focus-within/,/^:focus/,/^:active/],selectorPrefix:function(e){return void 0===e&&(e=""),0i(t)});return-1!==r?function(e,t,n){return[].concat(l(e.slice(0,n)),[t],l(e.slice(n,e.length)))}(e,n,r):[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);tu){p=d;break}var h,m=y(n,r);0").concat(e,"")}function T(r){var o=c(r.cache,r.ruleOrder),i=h(r),e=a()(p,function(e,t,n){return 00&&(!function(e){void 0===e&&(e=3);3!==e&&2!==e||(i(u.registeredStyles),u.registeredStyles=[]);3!==e&&1!==e||(i(u.registeredThemableStyles),u.registeredThemableStyles=[])}(1),o([].concat.apply([],e)))}}()}function i(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function c(e){var o=u.theme,i=!1;return{styleString:(e||[]).map(function(e){var t=e.theme;if(t){i=!0;var n=o?o[t]:void 0,r=e.defaultValue||"inherit";return o&&!n&&console&&!(t in o)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+t+'". Falling back to "'+r+'".'),n||r}return e.rawString}).join(""),themable:i}}}).call(this,s(21))},,,,,function(e,t,n){"use strict";
/** @license React v16.14.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var c=n(5),r="function"==typeof Symbol&&Symbol.for,p=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nD.length&&D.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,o){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var a=!1;if(null===t)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case p:case u:a=!0}}if(a)return r(o,t,""===n?"."+A(t,0):n),1;if(a=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;st}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!W.call(G,e)||!W.call(z,e)&&(j.test(e)?G[e]=!0:(z[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Y.hasOwnProperty("ReactCurrentDispatcher")||(Y.ReactCurrentDispatcher={current:null}),Y.hasOwnProperty("ReactCurrentBatchConfig")||(Y.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\/]/,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,oe=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,se=J?Symbol.for("react.concurrent_mode"):60111,le=J?Symbol.for("react.forward_ref"):60112,ue=J?Symbol.for("react.suspense"):60113,ce=J?Symbol.for("react.suspense_list"):60120,pe=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,fe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ye(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 oe:return"Profiler";case re:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return ye(e.type);case fe:return ye(e.render);case de:if(e=1===e._status?e._result:null)return ye(e)}return null}function ge(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,o=e._debugSource,i=ye(e.type);n=null,r&&(n=ye(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(X,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ve(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 Ce(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)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.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 _e(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 Se(e,t){var n=t.checked;return g({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Pe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ve(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 Ie(e,t){null!=(t=t.checked)&&Z(e,"checked",t,!1)}function we(e,t){Ie(e,t);var n=ve(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")?Ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ee(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xe(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 Ee(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ke(e,t){return e=g({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 Te(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=n.length))throw Error(w(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ve(n)}}function Oe(e,t){var n=ve(t.value),r=ve(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 Me(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ae="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Le(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 Ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Be,Ue=function(o){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return o(e,t)})}:o}(function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((Be=Be||document.createElement("div")).innerHTML="",t=Be.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ve(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 He(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var je={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},We={},ze={};function Ge(e){if(We[e])return We[e];if(!je[e])return e;var t,n=je[e];for(t in n)if(n.hasOwnProperty(t)&&t in ze)return We[e]=n[t];return e}E&&(ze=document.createElement("div").style,"AnimationEvent"in window||(delete je.animationend.animation,delete je.animationiteration.animation,delete je.animationstart.animation),"TransitionEvent"in window||delete je.transitionend.transition);var Ke=Ge("animationend"),qe=Ge("animationiteration"),Qe=Ge("animationstart"),$e=Ge("transitionend"),Ye="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 Xe(e){var t=Ze.get(e);return void 0===t&&(t=new Map,Ze.set(e,t)),t}function Je(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 et(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 tt(e){if(Je(e)!==e)throw Error(w(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(w(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return tt(o),e;if(i===r)return tt(o),t;i=i.sibling}throw Error(w(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(w(189))}}if(n.alternate!==r)throw Error(w(190))}if(3!==n.tag)throw Error(w(188));return n.stateNode.current===n?e:t}(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 rt(e,t){if(null==t)throw Error(w(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 ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rct.length&&ct.push(e)}function dt(e,t,n,r){if(ct.length){var o=ct.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ft(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=En(r)}while(n);for(n=0;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=pn(r)}}function fn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function hn(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 mn=null,yn=null;function gn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vn(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 bn="function"==typeof setTimeout?setTimeout:void 0,Cn="function"==typeof clearTimeout?clearTimeout:void 0;function _n(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Sn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Pn=Math.random().toString(36).slice(2),In="__reactInternalInstance$"+Pn,wn="__reactEventHandlers$"+Pn,xn="__reactContainere$"+Pn;function En(e){var t=e[In];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xn]||n[In]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sn(e);null!==e;){if(n=e[In])return n;e=Sn(e)}return t}n=(e=n).parentNode}return null}function kn(e){return!(e=e[In]||e[xn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Tn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(w(33))}function Dn(e){return e[wn]||null}function Fn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function On(e,t){var n=e.stateNode;if(!n)return null;var r=i(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(w(231,t,typeof n));return n}function Mn(e,t,n){(t=On(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function An(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Fn(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function qn(e){e.eventPool=[],e.getPooled=Gn,e.release=Kn}g(zn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){this.isPersistent=jn},isPersistent:Wn,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=Wn,this._dispatchInstances=this._dispatchListeners=null}}),zn.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},zn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return g(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=g({},r.Interface,e),n.extend=r.extend,qn(n),n},qn(zn);var Qn=zn.extend({data:null}),$n=zn.extend({data:null}),Yn=[9,13,27,32],Zn=E&&"CompositionEvent"in window,Xn=null;E&&"documentMode"in document&&(Xn=document.documentMode);var Jn=E&&"TextEvent"in window&&!Xn,er=E&&(!Zn||Xn&&8=Xn),tr=String.fromCharCode(32),nr={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(" ")}},rr=!1;function or(e,t){switch(e){case"keyup":return-1!==Yn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ir(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var o;if(Zn)e:{switch(e){case"compositionstart":var i=nr.compositionStart;break e;case"compositionend":i=nr.compositionEnd;break e;case"compositionupdate":i=nr.compositionUpdate;break e}i=void 0}else ar?or(e,n)&&(i=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=nr.compositionStart);return i?(er&&"ko"!==n.locale&&(ar||i!==nr.compositionStart?i===nr.compositionEnd&&ar&&(o=Hn()):(Un="value"in(Bn=r)?Bn.value:Bn.textContent,ar=!0)),i=Qn.getPooled(i,t,n,r),o?i.data=o:null!==(o=ir(n))&&(i.data=o),Nn(i),o=i):o=null,(e=Jn?function(e,t){switch(e){case"compositionend":return ir(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Zn&&or(e,t)?(e=Hn(),Vn=Un=Bn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,Hr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},jr=null,Wr=null,zr=null,Gr=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Gr||null==jr||jr!==cn(n)?null:("selectionStart"in(n=jr)&&hn(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},zr&&Ur(zr,n)?null:(zr=n,(e=zn.getPooled(Hr.select,Wr,e,t)).type="select",e.target=jr,Nn(e),e))}var qr={eventTypes:Hr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Xe(o),i=I.onSelect;for(var a=0;aso||(e.current=ao[so],ao[so]=null,so--)}function uo(e,t){so++,ao[so]=e.current,e.current=t}var co={},po={current:co},fo={current:!1},ho=co;function mo(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yo(e){return null!=(e=e.childContextTypes)}function go(){lo(fo),lo(po)}function vo(e,t,n){if(po.current!==co)throw Error(w(168));uo(po,t),uo(fo,n)}function bo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(w(108,ye(t)||"Unknown",o));return g({},n,{},r)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,ho=po.current,uo(po,e),uo(fo,fo.current),!0}function _o(e,t,n){var r=e.stateNode;if(!r)throw Error(w(169));n?(e=bo(e,t,ho),r.__reactInternalMemoizedMergedChildContext=e,lo(fo),lo(po),uo(po,e)):lo(fo),uo(fo,n)}var So=o.unstable_runWithPriority,Po=o.unstable_scheduleCallback,Io=o.unstable_cancelCallback,wo=o.unstable_requestPaint,xo=o.unstable_now,Eo=o.unstable_getCurrentPriorityLevel,ko=o.unstable_ImmediatePriority,To=o.unstable_UserBlockingPriority,Do=o.unstable_NormalPriority,Fo=o.unstable_LowPriority,Oo=o.unstable_IdlePriority,Mo={},Ao=o.unstable_shouldYield,Ro=void 0!==wo?wo:function(){},Lo=null,No=null,Bo=!1,Uo=xo(),Vo=1e4>Uo?xo:function(){return xo()-Uo};function Ho(){switch(Eo()){case ko:return 99;case To:return 98;case Do:return 97;case Fo:return 96;case Oo:return 95;default:throw Error(w(332))}}function jo(e){switch(e){case 99:return ko;case 98:return To;case 97:return Do;case 96:return Fo;case 95:return Oo;default:throw Error(w(332))}}function Wo(e,t){return e=jo(e),So(e,t)}function zo(e,t,n){return e=jo(e),Po(e,t,n)}function Go(e){return null===Lo?(Lo=[e],No=Po(ko,qo)):Lo.push(e),Mo}function Ko(){if(null!==No){var e=No;No=null,Io(e)}qo()}function qo(){if(!Bo&&null!==Lo){Bo=!0;var t=0;try{var n=Lo;Wo(99,function(){for(;t=t&&(Da=!0),e.firstContext=null)}function oi(e,t){if(Jo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Jo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xo){if(null===Zo)throw Error(w(308));Xo=t,Zo.dependencies={expirationTime:0,firstContext:t,responders:null}}else Xo=Xo.next=t;return e._currentValue}var ii=!1;function ai(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 li(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ui(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 ci(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 pi(e,t,n,r){var o=e.updateQueue;ii=!1;var i=o.baseQueue,a=o.shared.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}i=a,o.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=a))}if(null!==i){s=i.next;var l=o.baseState,u=0,c=null,p=null,d=null;if(null!==s)for(var f=s;;){if((a=f.expirationTime)u&&(u=a)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),il(a,f.suspenseConfig);e:{var m=e,y=f;switch(a=t,h=n,y.tag){case 1:if("function"==typeof(m=y.payload)){l=m.call(h,l,a);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(a="function"==typeof(m=y.payload)?m.call(h,l,a):m))break e;l=g({},l,a);break e;case 2:ii=!0}}null!==f.callback&&(e.effectTag|=32,null===(a=o.effects)?o.effects=[f]:a.push(f))}if(null===(f=f.next)||f===s){if(null===(a=o.shared.pending))break;f=i.next=a.next,a.next=s,o.baseQueue=i=a,o.shared.pending=null}}null===d?c=l:d.next=p,o.baseState=c,o.baseQueue=d,al(u),e.expirationTime=u,e.memoizedState=l}}function di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;ts?(l=a,a=null):l=a.sibling;var u=g(t,a,n[s],r);if(null===u){null===a&&(a=l);break}p&&a&&null===u.alternate&&d(t,a),e=m(u,e,s),null===i?o=u:i.sibling=u,i=u,a=l}if(s===n.length)return f(t,a),o;if(null===a){for(;ss?(l=a,a=null):l=a.sibling;var c=g(t,a,u.value,r);if(null===c){null===a&&(a=l);break}p&&a&&null===c.alternate&&d(t,a),e=m(c,e,s),null===i?o=c:i.sibling=c,i=c,a=l}if(u.done)return f(t,a),o;if(null===a){for(;!u.done;s++,u=n.next())null!==(u=y(t,u.value,r))&&(e=m(u,e,s),null===i?o=u:i.sibling=u,i=u);return o}for(a=h(t,a);!u.done;s++,u=n.next())null!==(u=v(a,t,s,u.value,r))&&(p&&null!==u.alternate&&a.delete(null===u.key?s:u.key),e=m(u,e,s),null===i?o=u:i.sibling=u,i=u);return p&&a.forEach(function(e){return d(t,e)}),o}return function(e,t,n,r){var o="object"==typeof n&&null!==n&&n.type===ne&&null===n.key;o&&(n=n.props.children);var i="object"==typeof n&&null!==n;if(i)switch(n.$$typeof){case ee:e:{for(i=n.key,o=t;null!==o;){if(o.key===i){switch(o.tag){case 7:if(n.type===ne){f(e,o.sibling),(t=a(o,n.props.children)).return=e,e=t;break e}break;default:if(o.elementType===n.type){f(e,o.sibling),(t=a(o,n.props)).ref=Si(e,o,n),t.return=e,e=t;break e}}f(e,o);break}d(e,o),o=o.sibling}n.type===ne?((t=kl(n.props.children,e.mode,r,n.key)).return=e,e=t):((r=El(n.type,n.key,n.props,null,e.mode,r)).ref=Si(e,t,n),r.return=e,e=r)}return s(e);case te:e:{for(o=n.key;null!==t;){if(t.key===o){if(4===t.tag&&t.stateNode.containerInfo===n.containerInfo&&t.stateNode.implementation===n.implementation){f(e,t.sibling),(t=a(t,n.children||[])).return=e,e=t;break e}f(e,t);break}d(e,t),t=t.sibling}(t=Dl(n,e.mode,r)).return=e,e=t}return s(e)}if("string"==typeof n||"number"==typeof n)return n=""+n,null!==t&&6===t.tag?(f(e,t.sibling),(t=a(t,n)).return=e,e=t):(f(e,t),(t=Tl(n,e.mode,r)).return=e,e=t),s(e);if(_i(n))return b(e,t,n,r);if(me(n))return C(e,t,n,r);if(i&&Pi(e,n),void 0===n&&!o)switch(e.tag){case 1:case 0:throw e=e.type,Error(w(152,e.displayName||e.name||"Component"))}return f(e,t)}}var wi=Ii(!0),xi=Ii(!1),Ei={},ki={current:Ei},Ti={current:Ei},Di={current:Ei};function Fi(e){if(e===Ei)throw Error(w(174));return e}function Oi(e,t){switch(uo(Di,t),uo(Ti,e),uo(ki,Ei),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,"");break;default:t=Ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(ki),uo(ki,t)}function Mi(){lo(ki),lo(Ti),lo(Di)}function Ai(e){Fi(Di.current);var t=Fi(ki.current),n=Ne(t,e.type);t!==n&&(uo(Ti,e),uo(ki,n))}function Ri(e){Ti.current===e&&(lo(ki),lo(Ti))}var Li={current:0};function Ni(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))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 Bi(e,t){return{responder:e,props:t}}var Ui=Y.ReactCurrentDispatcher,Vi=Y.ReactCurrentBatchConfig,Hi=0,ji=null,Wi=null,zi=null,Gi=!1;function Ki(){throw Error(w(321))}function qi(e,t){if(null===t)return!1;for(var n=0;ni))throw Error(w(301));i+=1,zi=Wi=null,t.updateQueue=null,Ui.current=ba,e=n(r,o)}while(t.expirationTime===Hi)}if(Ui.current=ya,t=null!==Wi&&null!==Wi.next,Hi=0,zi=Wi=ji=null,Gi=!1,t)throw Error(w(300));return e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===zi?ji.memoizedState=zi=e:zi=zi.next=e,zi}function Yi(){if(null===Wi){var e=ji.alternate;e=null!==e?e.memoizedState:null}else e=Wi.next;var t=null===zi?ji.memoizedState:zi.next;if(null!==t)zi=t,Wi=e;else{if(null===e)throw Error(w(310));e={memoizedState:(Wi=e).memoizedState,baseState:Wi.baseState,baseQueue:Wi.baseQueue,queue:Wi.queue,next:null},null===zi?ji.memoizedState=zi=e:zi=zi.next=e}return zi}function Zi(e,t){return"function"==typeof t?t(e):t}function Xi(e){var t=Yi(),n=t.queue;if(null===n)throw Error(w(311));n.lastRenderedReducer=e;var r=Wi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=a=i=null,l=o;do{var u=l.expirationTime;if(uji.expirationTime&&(ji.expirationTime=u,al(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),il(u,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==o);null===s?i=r:s.next=a,Nr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Ji(e){var t=Yi(),n=t.queue;if(null===n)throw Error(w(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Nr(i,t.memoizedState)||(Da=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ea(e){var t=$i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:e}).dispatch=ma.bind(null,ji,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ji.updateQueue)?(t={lastEffect:null},ji.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 na(){return Yi().memoizedState}function ra(e,t,n,r){var o=$i();ji.effectTag|=e,o.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function oa(e,t,n,r){var o=Yi();r=void 0===r?null:r;var i=void 0;if(null!==Wi){var a=Wi.memoizedState;if(i=a.destroy,null!==r&&qi(r,a.deps))return void ta(t,n,i,r)}ji.effectTag|=e,o.memoizedState=ta(1|t,n,i,r)}function ia(e,t){return ra(516,4,e,t)}function aa(e,t){return oa(516,4,e,t)}function sa(e,t){return oa(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ua(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,la.bind(null,t,e),n)}function ca(){}function pa(e,t){return $i().memoizedState=[e,void 0===t?null:t],e}function da(e,t){var n=Yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&qi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fa(e,t){var n=Yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&qi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(t,n,r){var e=Ho();Wo(98>e?98:e,function(){t(!0)}),Wo(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(o,{is:r.is}):(e=a.createElement(o),"select"===o&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,o),e[In]=t,e[wn]=r,Va(e,t),t.stateNode=e,a=an(o,r),o){case"iframe":case"object":case"embed":qt("load",e),s=r;break;case"video":case"audio":for(s=0;sr.tailExpiration&&1t)&&js.set(e,t))}}function $s(e,t){e.expirationTime=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Zs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Go(Js.bind(null,e));else{var t=Ys(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ks();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 o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Mo&&Io(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Go(Js.bind(null,e)):zo(r,Xs.bind(null,e),{timeout:10*(1073741821-t)-Vo()}),e.callbackNode=t}}}function Xs(e,t){if(Gs=0,t)return Rl(e,t=Ks()),Zs(e),null;var n=Ys(e);if(0!==n){if(t=e.callbackNode,0!=(48&Ps))throw Error(w(327));if(ml(),e===Is&&n===xs||nl(e,n),null!==ws){var r=Ps;Ps|=16;for(var o=ol();;)try{ll();break}catch(t){rl(e,t)}if(ei(),Ps=r,vs.current=o,1===Es)throw t=ks,nl(e,n),Ml(e,n),Zs(e),t;if(null===ws)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Es,Is=null,r){case Cs:case 1:throw Error(w(345));case 2:Rl(e,2=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(i=Ys(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(dl.bind(null,e),o);break}dl(e);break;case Ss:if(Ml(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(o)),Ms&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(o=Ys(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ds?r=10*(1073741821-Ds)-Vo():1073741823===Ts?r=0:(r=10*(1073741821-Ts)-5e3,0>(r=(o=Vo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gs(r/1960))-r)&&(r=n)),10=(r=0|a.busyMinDurationMs)?r=0:(o=0|a.busyDelayMs,r=(i=Vo()-(10*(1073741821-i)-(0|a.timeoutMs||5e3)))<=o?0:o+r-i),10 component higher in the tree to provide a loading indicator or placeholder to display."+ge(a))}5!==Es&&(Es=2),s=Xa(s,a),p=i;do{switch(p.tag){case 3:l=s,p.effectTag|=4096,p.expirationTime=t,ci(p,hs(p,l,t));break e;case 1:l=s;var C=p.type,_=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof C.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Bs||!Bs.has(_)))){p.effectTag|=4096,p.expirationTime=t,ci(p,ms(p,l,t));break e}}p=p.return}while(null!==p)}ws=cl(ws)}catch(e){t=e;continue}break}}function ol(){var e=vs.current;return vs.current=ya,null===e?ya:e}function il(e,t){eOs&&(Os=e)}function sl(){for(;null!==ws;)ws=ul(ws)}function ll(){for(;null!==ws&&!Ao();)ws=ul(ws)}function ul(e){var t=ys(e.alternate,e,xs);return e.memoizedProps=e.pendingProps,null===t&&(t=cl(e)),bs.current=null,t}function cl(e){ws=e;do{var t=ws.alternate;if(e=ws.return,0==(2048&ws.effectTag)){if(t=Ya(t,ws,xs),1===xs||1!==ws.childExpirationTime){for(var n=0,r=ws.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}ws.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ws.firstEffect),null!==ws.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ws.firstEffect),e.lastEffect=ws.lastEffect),1(e=e.childExpirationTime)?t:e}function dl(e){var t=Ho();return Wo(99,fl.bind(null,e,t)),null}function fl(e,t){do{ml()}while(null!==Vs);if(0!=(48&Ps))throw Error(w(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(w(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=pl(n);if(e.firstPendingTime=o,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===Is&&(ws=Is=null,xs=0),1s&&(u=s,s=a,a=u),u=dn(b,a),c=dn(b,s),u&&c&&(1!==_.rangeCount||_.anchorNode!==u.node||_.anchorOffset!==u.offset||_.focusNode!==c.node||_.focusOffset!==c.offset)&&((C=C.createRange()).setStart(u.node,u.offset),_.removeAllRanges(),a>s?(_.addRange(C),_.extend(c.node,c.offset)):(C.setEnd(c.node,c.offset),_.addRange(C))))),C=[];for(_=b;_=_.parentNode;)1===_.nodeType&&C.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b=n?za(e,t,n):(uo(Li,1&Li.current),null!==(t=Qa(e,t,n))?t.sibling:null);uo(Li,1&Li.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return qa(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),uo(Li,Li.current),!r)return null}return Qa(e,t,n)}Da=!1}}else Da=!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,o=mo(t,po.current),ri(t,n),o=Qi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;Co(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&mi(t,r,a,e),o.updater=yi,t.stateNode=o,o._reactInternalFiber=t,Ci(t,r,e,n),t=Ba(null,t,r,!0,i,n)}else t.tag=0,Fa(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return wl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===pe)return 14}return 2}(o),e=$o(o,e),i){case 0:t=La(null,t,o,e,n);break e;case 1:t=Na(null,t,o,e,n);break e;case 11:t=Oa(null,t,o,e,n);break e;case 14:t=Ma(null,t,o,$o(o.type,e),r,n);break e}throw Error(w(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 1:return r=t.type,o=t.pendingProps,Na(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(w(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,si(e,t),pi(t,r,null,n),(r=t.memoizedState.element)===o)ka(),t=Qa(e,t,n);else{if((o=t.stateNode.hydrate)&&(_a=_n(t.stateNode.containerInfo.firstChild),Ca=t,o=Sa=!0),o)for(n=xi(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Fa(e,t,r,n),ka();t=t.child}return t;case 5:return Ai(t),null===e&&wa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,vn(r,o)?a=null:null!==i&&vn(r,i)&&(t.effectTag|=16),Ra(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Fa(e,t,a,n),t=t.child),t;case 6:return null===e&&wa(t),null;case 13:return za(e,t,n);case 4:return Oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:$o(r,o),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,o=t.pendingProps,a=t.memoizedProps,i=o.value;var s=t.type._context;if(uo(Yo,s._currentValue),s._currentValue=i,null!==a)if(s=a.value,0===(i=Nr(s,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(a.children===o.children&&!fo.current){t=Qa(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===s.tag&&((u=li(n,null)).tag=2,ui(s,u)),s.expirationTime=t&&e<=t}function Ml(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Al(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 Rl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ll(e,t,n,r){var o=t.current,i=Ks(),a=fi.suspense;i=qs(i,o,a);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(w(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(yo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(w(171))}if(1===n.tag){var l=n.type;if(yo(l)){n=bo(n,l,s);break e}}n=s}else n=co;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ui(o,t),Qs(o,i),i}function Nl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Bl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime=S},n=function(){},s.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],D=[],F=1,O=null,M=3,A=!1,R=!1,L=!1;function N(e){for(var t=x(D);null!==t;){if(null===t.callback)E(D);else{if(!(t.startTime<=e))break;E(D),t.sortIndex=t.expirationTime,w(T,t)}t=x(D)}}function B(e){if(L=!1,N(e),!R)if(null!==x(T))R=!0,i(U);else{var t=x(D);null!==t&&l(B,t.startTime-e)}}function U(e,t){R=!1,L&&(L=!1,u()),A=!0;var n=M;try{for(N(t),O=x(T);null!==O&&(!(O.expirationTime>t)||e&&!c());){var r=O.callback;if(null!==r){O.callback=null,M=O.priorityLevel;var o=r(O.expirationTime<=t);t=s.unstable_now(),"function"==typeof o?O.callback=o:O===x(T)&&E(T),N(t)}else E(T);O=x(T)}if(null!==O)var i=!0;else{var a=x(D);null!==a&&l(B,a.startTime-t),i=!1}return i}finally{O=null,M=n,A=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=n;s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(e){e.callback=null},s.unstable_continueExecution=function(){R||A||(R=!0,i(U))},s.unstable_getCurrentPriorityLevel=function(){return M},s.unstable_getFirstCallbackNode=function(){return x(T)},s.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}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=H,s.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}},s.unstable_scheduleCallback=function(e,t,n){var r=s.unstable_now();if("object"==typeof n&&null!==n){var o=n.delay;o="number"==typeof o&&0r?(e.sortIndex=o,w(D,e),null===x(T)&&e===x(D)&&(L?u():L=!0,l(B,o-r))):(e.sortIndex=n,w(T,e),R||A||(R=!0,i(U))),e},s.unstable_shouldYield=function(){var e=s.unstable_now();N(e);var t=x(T);return t!==O&&null!==O&&null!==t&&null!==t.callback&&t.startTime<=e&&t.expirationTimeD.length&&D.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,o){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var a=!1;if(null===t)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case p:case u:a=!0}}if(a)return r(o,t,""===n?"."+A(t,0):n),1;if(a=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s|&)/;function g(e,t){return 0===e.length?t:e+" and "+t}r=n(6);var v=n.n(r),s=(r=n(1),n.n(r)),l=(r=n(5),n.n(r));function u(e){return l()(e,function(e,t,n){return"".concat(e).concat(n,"{").concat(s()(t),"}")},"")}var c="abcdefghijklmnopqrstuvwxyz",p=c.length;function b(e){return"data:"===e.substr(0,5)}function C(e){return b(e)?e:"'".concat(e,"'")}var _={".woff":"woff",".woff2":"woff2",".eot":"embedded-opentype",".ttf":"truetype",".otf":"opentype",".svg":"svg",".svgz":"svg"},S={"image/svg+xml":"svg","application/x-font-woff":"woff","application/font-woff":"woff","application/x-font-woff2":"woff2","application/font-woff2":"woff2","font/woff2":"woff2","application/octet-stream":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype","application/x-font-opentype":"opentype","application/vnd.ms-fontobject":"embedded-opentype","application/font-sfnt":"sfnt"};function P(e){return-1===e.indexOf("ad")}var I=/^[a-z_][a-z0-9-_]*$/gi;function d(d){void 0===d&&(d={});var f={listeners:[],keyframePrefixes:d.keyframePrefixes||["-webkit-","-moz-"],plugins:d.plugins||[],sortMediaQuery:d.sortMediaQuery||function(n){return void 0===n&&(n=[]),function(e,t){return-1===n.indexOf(t)?-1===n.indexOf(e)?0:-1:-1===n.indexOf(e)?1:n.indexOf(e)-n.indexOf(t)}}(d.mediaQueryOrder),supportQueryOrder:d.supportQueryOrder||[],styleNodeAttributes:d.styleNodeAttributes||{},ruleOrder:[/^:link/,/^:visited/,/^:hover/,/^:focus-within/,/^:focus/,/^:active/],selectorPrefix:function(e){return void 0===e&&(e=""),00)i+=l.value,a+=l.length;else{var u=s.first(function(e){return t.indexOf(e,a)==a});if(u)return{token:u,literal:i,nextBegin:a+u.length};i+=t.charAt(a),a++}}return{token:"",literal:i,nextBegin:a}}function c(e){return[e.DayOfMonthShort,e.DayOfMonthLong,e.DayOfWeekShort,e.DayOfWeekLong,e.DayOfYearShort,e.DayOfYearLong,e.MonthOfYearShort,e.MonthOfYearLong,e.MonthNameShort,e.MonthNameLong,e.YearShort,e.YearLong,e.AmPm,e.Hour24Short,e.Hour24Long,e.Hour12Short,e.Hour12Long,e.MinuteShort,e.MinuteLong,e.SecondShort,e.SecondLong,e.FractionalSecond1,e.FractionalSecond2,e.FractionalSecond3,e.TimeZone,e.UnixTimestamp].map(function(e){return e||""})}function p(e){for(var t={},n=0;n=0}),Array.prototype.first||(Array.prototype.first=function(e){if(!e)return this.length?this[0]:null;for(var t=0;t>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=new Array(a),o=0;o0&&(r+=n.MakeLiteral(s.literal)),s.token.length>0&&(r+=i[a[s.token]]),o=s.nextBegin}return r},e.standard={DayOfMonthShort:"d",DayOfMonthLong:"dd",DayOfWeekShort:"ddd",DayOfWeekLong:"dddd",DayOfYearShort:"D",DayOfYearLong:"DD",MonthOfYearShort:"M",MonthOfYearLong:"MM",MonthNameShort:"MMM",MonthNameLong:"MMMM",YearShort:"yy",YearLong:"yyyy",AmPm:"tt",Hour24Short:"H",Hour24Long:"HH",Hour12Short:"h",Hour12Long:"hh",MinuteShort:"m",MinuteLong:"mm",SecondShort:"s",SecondLong:"ss",FractionalSecond1:"f",FractionalSecond2:"ff",FractionalSecond3:"fff",TimeZone:"Z",UnixTimestamp:"X",MakeLiteral:function(e){if(o(e,"dDMytHhmsfZX")<0)return e;for(var t="",n=0;na"),function(e,t){var n=$(t).attr("title");null==n||n.trim()||$(t).attr("title",$(t).text())})})},function(e,t,n){"use strict";n.r(t),n.d(t,"PcfControlProxy",function(){return sp});var r={};n.r(r);var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function 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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==t[0]&&2!==t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]0&&(e.className=i,e.style={}),e},t.prototype.getElementStyle=function(){return this.props.style},t.prototype.getElementClassName=function(){return(this.props.styles?this.props.styles.rule:"")+(this.props.explicitStyles?" "+this.props.explicitStyles:"")},t.prototype.getFlexClassName=function(e){return""},t.prototype.getElementChildren=function(){var e=this.props.children;if(Array.isArray(e)){if(0===e.length)return null;if(e.length>1&&window.DEBUG){var t=e.filter(function(e){return ie.isValidElement(e)});if(t.length>1)for(var n={},r=0;r-1&&(a.splice(s,1),null===(n=null===(t=this._previousDimensions)||void 0===t?void 0:t[i])||void 0===n||n.delete(e),this._groupIdBySubscriber.delete(e),0===a.length&&delete this._subscribers[i],0===(null===(o=null===(r=this._previousDimensions)||void 0===r?void 0:r[i])||void 0===o?void 0:o.size)&&delete this._previousDimensions[i])}}},e.prototype.scheduleMeasuringUpdate=function(){this._schedule()},e.prototype.flushPendingMeasuringNotifications=function(e){var t,n,r=[R()];e&&r.push(e);for(var o=0,i=0,a=r;i-1&&(this._pendingSubscribers[s].splice(m,1),this._pendingUpdates[s].splice(m,1)),this._previousDimensions[s]||(this._previousDimensions[s]=new Map),this._pendingUpdates[s]||(this._pendingUpdates[s]=[]),this._pendingSubscribers[s]||(this._pendingSubscribers[s]=[]),this._previousDimensions[s].set(u,{Width:f,Height:h}),A(u,"takeMeasurements"),this._pendingUpdates[s].push(u.onMeasure.bind(u,f,h)),this._pendingSubscribers[s].push(u)}}}}},e}();function A(e,t){var n,r;e.onMeasure||(null===(r=null===(n=null==F?void 0:F.Reporting)||void 0===n?void 0:n.reportFailure)||void 0===r||r.call(n,"MeasuringHandler.".concat(t),new Error("onMeasure callback not provided"),"Provide onMeasure callback when isRequestedMeasuring is true"),e.onMeasure=function(){})}function R(e){var t;return null!==(t=null==e?void 0:e.groupId)&&void 0!==t?t:"defaultMeasuringHandlerGroup"}var L=ie.createContext({}),N=function(){return(N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,n=Z({visibility:"visible"},this.props.style?this.props.style:X);this._style||(this._style=t?Z({zIndex:e},n):n),this._initializeRootNode()},e.prototype.UNSAFE_componentWillReceiveProps=function(e){e.style!==this.props.style&&(this._style=null)},e.prototype.componentDidMount=function(){this.props.openPopup&&this.props.openPopup(this._getPopupId())},e.prototype.componentWillUnmount=function(){document.getElementById(this._rootNode.id)&&this._rootBodyElement.removeChild(this._rootNode),this.props.closePopup&&this.props.closePopup(this._getPopupId()),this._rootNode=null},e.prototype.render=function(){if(this._renderToBody(),this.props.children){var e=ie.createElement(se,{style:this._style,tabIndex:this.props.tabIndex},this._getChildrenWithProps(this.props.children));return this.props.wrapElement&&(e=this.props.wrapElement(e)),I.createPortal(e,this._rootNode)}return null},e}(ie.Component);function J(e){return null==e}function ee(e){return J(e)||!e.length}!function(e){e[e.Flyout=1]="Flyout",e[e.Popup=2]="Popup"}(q||(q={}));var te=function(){function s(){this._subscribers=[],this._nextSubscriberId=0,this._addSubscribersQueue=[],this.fireEvent=this.fireEvent.bind(this)}return Object.defineProperty(s,"pointerDownEvent",{get:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream?"touchstart":"pointerdown"},enumerable:!1,configurable:!0}),Object.defineProperty(s,"scrollEvent",{get:function(){return"scroll"},enumerable:!1,configurable:!0}),s.getInstance=function(){return Q||(Q=new s),Q},Object.defineProperty(s.prototype,"subscribers",{get:function(){return this._subscribers},enumerable:!1,configurable:!0}),s.prototype.addSubscribers=function(o){var i=this,a=this._nextSubscriberId++;this._addSubscribersQueue.push({subscriber:o,id:a}),setTimeout(function(){for(var e=!1,t=0,n=i._addSubscribersQueue;t=0;t--){var n=this.subscribers[t];if(n&&n.getComponent()&&(n.onPointerDown||n.onScroll)&&n.getComponent().offsetHeight>0){var r=n.isClickInsideSubscriber&&n.isClickInsideSubscriber(e);if(n.onPointerDown&&e.type===s.pointerDownEvent&&n.onPointerDown.bind(n,e)(),n.onScroll&&e.type===s.scrollEvent&&n.onScroll.bind(n,e)(),r)break}if(n&&n.type===q.Popup)break}},s}();function ne(e,t,n){return e.filter(function(e){return(n?n(e):e)!==t})}var ue,re=function(){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])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2?this._creator(e,n):_e},e.prototype.startLifecycleStopwatch=function(e,t,n,r){return this.createPerformanceEvent(e,void 0,"CustomControls").startStopwatch({controlId:t,manifestControlName:n,controlHostId:r})},e.prototype.addKeyPerformanceIndicator=function(e,t,n){this._addKpi&&this._addKpi(e,t,n)},e.prototype.addKeyPerformanceIndicatorOnIdle=function(e,t){this._addKpiOnIdle&&this._addKpiOnIdle(e,t)},e.prototype.trackWork=function(e){return this._trackWork?this._trackWork(e):function(){}},e.prototype.scheduleControlUpdate=function(e){this._scheduleControlUpdate?this._scheduleControlUpdate(e):e()},e}()),Pe=function(){function e(){}return e.AppliedFilters="AppliedFilters",e.BusinessProcessFlow="BusinessProcessFlow",e.Card="Card",e.Currency="Currency",e.Dashboard="Dashboard",e.DateAndTimeDateAndTime="DateAndTime.DateAndTime",e.DateAndTimeDateOnly="DateAndTime.DateOnly",e.Decimal="Decimal",e.EmailEngagementActions="emailengagementactionscontrol",e.EmailEngagementRecipientActivity="emailrecipientactivitycontrol",e.EntityNameOptionSet="EntityNameOptionSet",e.EnumType="Enum",e.File="File",e.FP="FP",e.GlobalFilter="GlobalFilter",e.Grid="Grid",e.Image="Image",e.KbArticle="KbArticle",e.KbContent="KbContent",e.LookupCustomer="Lookup.Customer",e.LookupMultiEntity="Lookup.MultiEntity",e.LookupOwner="Lookup.Owner",e.LookupPartyList="Lookup.PartyList",e.LookupRegarding="Lookup.Regarding",e.LookupSimple="Lookup.Simple",e.MainForm="Form.Main",e.MicrosoftFlow="MicrosoftFlow",e.Multiple="Multiple",e.MultiSelectPicklist="MultiSelectPicklist",e.Object="Object",e.OptionSet="OptionSet",e.PowerBI="PowerBI",e.QuickForm="Form.QuickForm",e.ReferencePanel="ReferencePanel",e.ReferencePanelSearchWidget="SearchWidget.ReferencePanelSearchWidget",e.Search="Search",e.SearchWidget="SearchWidget.SearchWidget",e.SingleLineAddress="SingleLine.Address",e.SingleLineEmail="SingleLine.Email",e.SingleLinePhone="SingleLine.Phone",e.SingleLineText="SingleLine.Text",e.SingleLineTextArea="SingleLine.TextArea",e.SingleLineTickerSymbol="SingleLine.Ticker",e.SingleLineURL="SingleLine.URL",e.SocialInsightsControl="SocialInsightsControl",e.StatusOptionSet="StatusOptionSet",e.TimelineWall="TimelineWall",e.Timer="Timer",e.TwoOptions="TwoOptions",e.WebResourceHtmlControl="WebResource.HTML",e.WholeDuration="Whole.Duration",e.WholeLanguage="Whole.Language",e.WholeNone="Whole.None",e.WholeTimeZone="Whole.TimeZone",e}(),Ie="CustomControlFramework",we=new(function(){function e(){}return e.prototype.reportUsage=function(e,t){var n={eventName:"uci_controlframework_usage",eventParameters:this.generateEventParams(e,null,t)};F&&F.Reporting&&F.Reporting.reportEvent&&F.Reporting.reportEvent(n)},e.prototype.reportEventFailure=function(e,t,n,r,o,i){var a,s,l=(null===(a=null==e?void 0:e.manifest)||void 0===a?void 0:a.ConstructorName)||(null===(s=null==e?void 0:e.configuration)||void 0===s?void 0:s.CustomControlId)||"Unknown";o&&"ControlFramework"===o&&(l=Ie+"."+l),F&&F.Reporting&&F.Reporting.reportFailure&&F.Reporting.reportFailure(l,t,r,this.generateEventParams(e,n,null,i))},e.prototype.reportEventSuccess=function(e,t){var n=e.manifest?e.manifest.ConstructorName:e.configuration.CustomControlId;n=Ie+"."+n,F&&F.Reporting&&F.Reporting.reportSuccess&&F.Reporting.reportSuccess(n,this.generateEventParams(e,t))},e.prototype.generateEventParams=function(e,t,n,r){var o=[],i={name:"ControlId",value:e&&e.manifest?e.manifest.CustomControlId:""},a={name:"APIName",value:t},s={name:"HostPage",value:e?e.pageType:""},l={name:"ResourceArrayLength",value:e&&e.manifest?e.manifest.Properties.Resources.length:""};if(o.push(i),o.push(s),o.push(l),n){var u={name:"ControlLoadStatus",value:n};o.push(u)}if(t&&o.push(a),e.propBagData){var c={name:"Entity",value:e.propBagData&&e.propBagData.modeData?e.propBagData.modeData.entityTypeName:null};o.push(c)}return r&&o.push.apply(o,r),o},e}()),xe="MscrmControls.Grid.PCFGridControl",Ee="Microsoft.PowerApps.PowerAppsOneGrid";!function(e){e[e.GridContainer=0]="GridContainer",e[e.DashboardContainer=1]="DashboardContainer",e[e.QuickCreateForm=2]="QuickCreateForm",e[e.FieldSectionContainer=3]="FieldSectionContainer",e[e.TimelineContainer=4]="TimelineContainer",e[e.ChartControl=5]="ChartControl",e[e.WebresourceControl=6]="WebresourceControl",e[e.DummyControl=7]="DummyControl",e[e.CalendarControl=8]="CalendarControl",e[e.FormControl=9]="FormControl"}(Ce||(Ce={}));var ke,Te,De,Fe={"MscrmControls.MultiSelectPicklist.UpdMSPicklistControl":"MscrmControls.MultiSelectPicklist.MultiSelectPicklistControl"},Oe=((be={})["MscrmControls.Grid.ReadOnlyGrid"]={newControlName:function(e,t){var n,r,o;return(null===(r=null===(n=F.Utils)||void 0===n?void 0:n.isDisruptiveFeatureEnabled)||void 0===r?void 0:r.call(n,"FCB.PAOneGrid"))||(null===(o=null==t?void 0:t.getIsFluentThemingEnabled)||void 0===o?void 0:o.call(t))?Ee:xe},enabled:function(e,t,n){var r,o,i,a=!!(null===(r=null==n?void 0:n.getIsFluentThemingEnabled)||void 0===r?void 0:r.call(n));return(null===(i=null===(o=F.Utils)||void 0===o?void 0:o.isDisruptiveFeatureEnabled)||void 0===i?void 0:i.call(o,"FCB.PAOneGrid"))||a?Le("grid"===e,a):Re("grid"===e,null==t?void 0:t.pcfDatasetGridEnabled,a)}},be[xe]={newControlName:function(){return Ee},enabled:function(e,t,n){var r;return Le("grid"===e,!!(null===(r=null==n?void 0:n.getIsFluentThemingEnabled)||void 0===r?void 0:r.call(n)))}},be["MscrmControls.FieldControls.CurrencyControl"]={newControlName:function(){return"PowerApps.CoreControls.NumericInput"},enabled:Ne("ModernInputControls")},be["MscrmControls.FieldControls.DecimalNumberControl"]={newControlName:function(){return"PowerApps.CoreControls.NumericInput"},enabled:Ne("ModernInputControls")},be["MscrmControls.FieldControls.FloatingPointNumberInput"]={newControlName:function(){return"PowerApps.CoreControls.NumericInput"},enabled:Ne("ModernInputControls")},be["MscrmControls.FieldControls.WholeNumberControl"]={newControlName:function(){return"PowerApps.CoreControls.NumericInput"},enabled:Ne("ModernInputControls")},be["MscrmControls.FieldControls.TextBoxControl"]={newControlName:function(){return"PowerApps.CoreControls.TextInput"},enabled:Ne("ModernInputControls")},be["MscrmControls.FieldControls.EmailAddressControl"]={newControlName:function(e,t){return Be(e,t)?"PowerApps.DataValidationControls.SmartEmailInputControl":"PowerApps.CoreControls.ActionInput"},enabled:(ke="ModernInputControls",function(e,t,n){return!!Be(t,n)||Ue(ke,n)})},be["MscrmControls.FieldControls.PhoneNumberControl"]={newControlName:function(){return"PowerApps.CoreControls.ActionInput"},enabled:Ne("ModernInputControls")},be["MscrmControls.FieldControls.TickerSymbolControl"]={newControlName:function(){return"PowerApps.CoreControls.ActionInput"},enabled:Ne("ModernInputControls")},be["MscrmControls.FieldControls.UrlControl"]={newControlName:function(){return"PowerApps.CoreControls.ActionInput"},enabled:Ne("ModernInputControls")},be["MscrmControls.FieldControls.OptionSet"]={newControlName:function(){return"PowerApps.CoreControls.OptionSetControl"},enabled:Ne("ModernOptionSetControls")},be["MscrmControls.FieldControls.LanguagePickerControl"]={newControlName:function(){return"ModernOptionSetControls"},enabled:Ne("ModernOptionSetControls")},be["MscrmControls.FieldControls.TimeZonePickListControl"]={newControlName:function(){return"ModernOptionSetControls"},enabled:Ne("ModernOptionSetControls")},be),Me={};function Ae(e,t){Me[e]=t}function Re(e,t,n){var r,o,i,a,s;if((null===(r=F.Utils)||void 0===r?void 0:r.isFeatureEnabled("PcfDatasetGridMainGridOnly"))&&!e)return!1;if(void 0===Te){var l=3===F.Client.getFormFactor()||2===F.Client.getFormFactor(),u=window.navigator.userAgent.includes("Chrome/71")||window.navigator.userAgent.match("MSIE")||window.navigator.userAgent.match("Trident");Te=!(l||u||"off"===t&&!n)&&(!("on"!==t&&!(null===(o=F.Utils)||void 0===o?void 0:o.isFeatureEnabled("April2022Update")))||!(null===(i=F.Utils)||void 0===i?void 0:i.isFeatureEnabled("PcfDatasetGridSlowDeployment"))&&(null===(s=null===(a=F.Utils)||void 0===a?void 0:a.isDisruptiveFeatureEnabled)||void 0===s?void 0:s.call(a,"FCB.PcfDatasetGrid","FCB.October2021Update")))}return Te}function Le(e,t){var n,r,o;return!((null===(n=F.Utils)||void 0===n?void 0:n.isFeatureEnabled("PAOneGridMainGridOnly"))&&!e)&&(void 0===De&&(De=3!==F.Client.getFormFactor()&&2!==F.Client.getFormFactor()&&((null===(o=null===(r=F.Utils)||void 0===r?void 0:r.isDisruptiveFeatureEnabled)||void 0===o?void 0:o.call(r,"FCB.PAOneGrid"))||t)),De)}function Ne(r){return function(e,t,n){return Ue(r,n)}}function Be(e,t){return(null==e?void 0:e.isEmailAddressValidationEnabled)&&(null==t?void 0:t.getAppSetting("IsSmartEmailAddressValidationControlEnabled"))}function Ue(e,t){var n,r,o;return(null===(r=null===(n=F.Utils)||void 0===n?void 0:n.isFeatureEnabled)||void 0===r?void 0:r.call(n,e))&&(null===(o=null==t?void 0:t.getIsFluentThemingEnabled)||void 0===o?void 0:o.call(t))}function Ve(e,t,n){var r,o,i,a,s;if(e===Pe.MultiSelectPicklist)return"MscrmControls.MultiSelectPicklist.UpdMSPicklistControl";if((null===(o=null===(r=null==F?void 0:F.Utils)||void 0===r?void 0:r.isFeatureEnabled)||void 0===o?void 0:o.call(r,"ModernOptionSetControls"))&&(null===(i=null==t?void 0:t.getIsFluentThemingEnabled)||void 0===i?void 0:i.call(t)))return e===Pe.TwoOptions&&"checkbox"===(null==n?void 0:n.Value)&&(null===(s=null===(a=null==F?void 0:F.Utils)||void 0===a?void 0:a.isFeatureEnabled)||void 0===s?void 0:s.call(a,"ModernCheckboxControl"))?"PowerApps.CoreControls.Checkbox":"PowerApps.CoreControls.OptionSetControl";switch(e){case Pe.TwoOptions:return"MscrmControls.FieldControls.CheckboxControl";case Pe.WholeLanguage:return"MscrmControls.FieldControls.LanguagePickerControl";case Pe.OptionSet:return"MscrmControls.FieldControls.OptionSet";case Pe.StatusOptionSet:return"MscrmControls.FieldControls.PicklistStatusControl";case Pe.WholeTimeZone:return"MscrmControls.FieldControls.TimeZonePickListControl"}}function He(e,t,n){return Le(e,n)?Ee:Re(e,t,n)?xe:"MscrmControls.Grid.ReadOnlyGrid"}function je(e,t,n,r,o,i,a,s){var l,u,c;switch(e){case Pe.Currency:case Pe.Decimal:case Pe.FP:case Pe.Multiple:case Pe.SingleLineEmail:case Pe.SingleLinePhone:case Pe.SingleLineText:case Pe.SingleLineTickerSymbol:case Pe.SingleLineURL:case Pe.WholeNone:u=function(e,t,n,r){var o,i,a=Ue("ModernInputControls",r);switch(e){case Pe.Currency:return a?"PowerApps.CoreControls.NumericInput":"MscrmControls.FieldControls.CurrencyControl";case Pe.Decimal:return a?"PowerApps.CoreControls.NumericInput":"MscrmControls.FieldControls.DecimalNumberControl";case Pe.SingleLineEmail:return Be(n,r)?"PowerApps.DataValidationControls.SmartEmailInputControl":a?"PowerApps.CoreControls.ActionInput":"MscrmControls.FieldControls.EmailAddressControl";case Pe.FP:return a?"PowerApps.CoreControls.NumericInput":"MscrmControls.FieldControls.FloatingPointNumberInput";case Pe.SingleLinePhone:return a?"PowerApps.CoreControls.ActionInput":"MscrmControls.FieldControls.PhoneNumberControl";case Pe.SingleLineText:case Pe.Multiple:return"RichText"===(null==t?void 0:t.FormatName)?(null===(o=null==F?void 0:F.Utils)||void 0===o?void 0:o.isFeatureEnabled("ReplaceRTEv1WithRTEv2"))&&(null==r?void 0:r.getAppSetting("msdyn_RTEv2DefaultConfig"))&&(null===(i=null==r?void 0:r.getIsFluentThemingEnabled)||void 0===i?void 0:i.call(r))?"MscrmControls.RichTextEditorV2.RichTextEditorControlV2":"MscrmControls.RichTextEditor.RichTextEditorControl":a?"PowerApps.CoreControls.TextInput":"MscrmControls.FieldControls.TextBoxControl";case Pe.SingleLineTickerSymbol:return a?"PowerApps.CoreControls.ActionInput":"MscrmControls.FieldControls.TickerSymbolControl";case Pe.SingleLineURL:return a?"PowerApps.CoreControls.ActionInput":"MscrmControls.FieldControls.UrlControl";case Pe.WholeNone:return a?"PowerApps.CoreControls.NumericInput":"MscrmControls.FieldControls.WholeNumberControl"}}(e,t,i,a);break;case Pe.TwoOptions:u=Ve(e,a,null==s?void 0:s.twoOptionRenderParam);break;case Pe.WholeLanguage:case Pe.OptionSet:case Pe.StatusOptionSet:case Pe.WholeTimeZone:case Pe.MultiSelectPicklist:u=Ve(e,a);break;case Pe.WholeDuration:u="MscrmControls.FieldControls.DurationControl";break;case Pe.LookupPartyList:case Pe.LookupRegarding:case Pe.LookupSimple:case Pe.LookupOwner:case Pe.LookupCustomer:case Pe.LookupMultiEntity:u=function(e,t){var n,r;return e===Pe.LookupSimple&&t&&t.Targets&&1===t.Targets.length&&"subject"===t.Targets[0]?(null===(r=null===(n=F.Utils)||void 0===n?void 0:n.isDisruptiveFeatureEnabled)||void 0===r?void 0:r.call(n,"FCB.SubjectTreeDefaultOn","FCB.October2023Update"))?"MscrmControls.CustomerService.EnhancedSubjectTreeViewControl":"MscrmControls.FieldControls.SubjectTreeControl":"MscrmControls.FieldControls.SimpleLookupControl"}(e,t);break;case Pe.DateAndTimeDateOnly:case Pe.DateAndTimeDateAndTime:u="MscrmControls.FieldControls.DateTimeControl";break;case Pe.Grid:if(J(n)||J(r))u="MscrmControls.Grid.ReadOnlyGrid";else{var p=!!(null===(l=null==a?void 0:a.getIsFluentThemingEnabled)||void 0===l?void 0:l.call(a));u=n?He(n,r,p):function(e,t,n){return"sharepointdocument"===e?"MscrmControls.SharepointAssociatedGrid.SharepointControl":"connection"===e?"MscrmControls.Grid.GridControl":He(!1,t,n)}(o,r,p)}break;case"SearchWidget":case"SearchWidget.SearchWidget":case"ReferencePanelSearchWidget":u="MscrmControls.KbSearchControl.KbSearchControl";break;case Pe.KbArticle:u="MscrmControls.KbArticleControl.KbArticleControl";break;case Pe.KbContent:u="MscrmControls.KbContentControl.KbContentControl";break;case Pe.Timer:u="MscrmControls.FieldControls.TimerControl";break;case Pe.SingleLineAddress:u="MscrmControls.Map.MapControl";break;case Pe.File:u="MscrmControls.FieldControls.FileControl";break;case Pe.Image:u="MscrmControls.FieldControls.ImageControl";break;case Pe.SingleLineTextArea:default:u="MscrmControls.FieldControls.DummyControl"}return c=u,u=Me.hasOwnProperty(c)?Me[c]:c}var We;function ze(e,t,n){if(n)return n;if(!t)return t;var r=Ge(e);return(r?r+"-":"")+t}function Ge(e){if(e.configuration&&"MscrmControls.Containers.FieldSectionItem"===e.configuration.CustomControlId)return function(e){return e.descriptor.DomId+"-"+e.descriptor.Id}(e);var t="";return e.descriptor&&(t=e.descriptor.DomId?e.descriptor.DomId:""),(t?t+"-":"")+((e.controlId?e.controlId:"")||"")}function Ke(e,t){var n=e&&e.controlId?e.controlId:"";return t?(n?n+"-":"")+t:n||""}function qe(e,t,n){var r=Qe(e,t,n);if(r&&null!==r){var o=document.getElementById(r);o&&null!==o&&o.focus()}}function Qe(e,t,n){if(t)return!0===n?t:ze(e,t)}function $e(e,t){var n=t.organizationUniqueName?t.organizationUniqueName:"";return!!t.usePathBasedUrls&&t.usePathBasedUrls&&n?"/"+n+e:e}function Ye(o,t,e,n,i,r){if(i){var a=i.entityType||i.entityName||i.LogicalName,s=i.id||i.Id&&i.Id.toString(),l=function(e,t){var n=t&&e.dynamicData?e.dynamicData.parameters[t]:null;return e.actions&&e.actions.getRecordSetQueryKey&&null!==n?e.actions.getRecordSetQueryKey(n):null}(o,e),u=function(){var t,e,n;try{var r={entityName:a,entityId:s,recordSetQueryKey:l};if(null===(e=null===(t=null==o?void 0:o.parentDefinedControlProps)||void 0===t?void 0:t.propertyBagOverrides)||void 0===e?void 0:e.openForm)o.parentDefinedControlProps.propertyBagOverrides.openForm(r,null,o.id);else{if(!r.entityName)throw new Error("EntityName was not passed in to method, cannot call openForm");F.openForm(r,null,o.id)}}catch(t){try{(null===(n=o.propBagMethods.navigation)||void 0===n?void 0:n.openEditForm)&&o.propBagMethods.navigation.openEditForm(i,null,null,null,null,o.id)}catch(e){F.Reporting.reportFailure(Ie+".Utilities",t,"propBagMethods.navigation.openEditForm failed",[{name:"APIName",value:Ie+".Utilities.CustomControlHelper.openDatasetItemAction"}])}F.Reporting.reportFailure(Ie+".Utilities",t,"XrmProxyInstance.openForm failed",[{name:"APIName",value:Ie+"Utilities.CustomControlHelper.openFormAction"}])}};a!==t.getTargetEntityType()&&"activitypointer"!==t.getTargetEntityType()||!t.records.hasOwnProperty(s)?u():F.Utils.isFeatureEnabled("GridOverrideOpenRecord")&&n?n(o.id,a,s,o.contextToken).then(function(e){e?F.Reporting.reportSuccess(Ie+".Utilities",[{name:"hasCustomOpenAction",value:e},{name:"entityName",value:a},{name:"APIName",value:Ie+".Utilities.CustomControlHelper.runCustomOpenRecord"}]):c()},function(e){F.Reporting.reportFailure(Ie+".Utilities",e,"runCustomOpenRecord failed",[{name:"APIName",value:Ie+".Utilities.CustomControlHelper.runCustomOpenRecord"},{name:"entityName",value:a}])}):c()}function c(){if(t.retrieveRecordCommand){var e=r&&r.CommandButtonId?r.CommandButtonId:"Mscrm.OpenRecordItem";t.retrieveRecordCommand([s],[e],!1,!1,!1).then(function(e){e&&e.length>0?e[0].execute():u()},function(){u()})}else u()}}function Ze(e){var t,n=Ge(e).split("-");for(t=0;t0){n+='";for(var r=0;r';else if("string"==typeof o.value||"number"==typeof o.value)n+='attribute="'+o.attributeName+'" operator="'+et(o.conditionOperator)+'" value="'+t(o.value)+'" />';else{var i=o.value;n+='attribute="'+o.attributeName+'" operator="'+et(o.conditionOperator)+'">';for(var a=0;a"+t(i[a])+"";n+=""}}n+=""}else{e.filters.length>0&&(n+='');for(r=0;r0&&(n+="")}return n}function Je(e){switch(e){case 0:return"and";case 1:return"or"}}function et(e){switch(e){case 0:return"eq";case 1:return"ne";case 2:return"gt";case 3:return"lt";case 4:return"ge";case 5:return"le";case 6:return"like";case 7:return"not-like";case 8:return"in";case 9:return"not-in";case 10:return"between";case 11:return"not-between";case 12:return"null";case 13:return"not-null";case 14:return"yesterday";case 15:return"today";case 16:return"tomorrow";case 17:return"last-seven-days";case 18:return"next-seven-days";case 19:return"last-week";case 20:return"this-week";case 21:return"next-week";case 22:return"last-month";case 23:return"this-month";case 24:return"next-month";case 25:return"on";case 26:return"on-or-before";case 27:return"on-or-after";case 28:return"last-year";case 29:return"this-year";case 30:return"next-year";case 31:return"last-x-hours";case 32:return"next-x-hours";case 33:return"last-x-days";case 34:return"next-x-days";case 35:return"last-x-weeks";case 36:return"next-x-weeks";case 37:return"last-x-months";case 38:return"next-x-months";case 39:return"last-x-years";case 40:return"next-x-years";case 41:return"eq-userid";case 42:return"ne-userid";case 43:return"eq-businessid";case 44:return"ne-businessid";case 49:return"contain-values";case 51:return"eq-userlanguage";case 53:return"olderthan-x-months";case 54:return"begins-with";case 55:return"not-begin-with";case 56:return"ends-with";case 57:return"not-end-with";case 58:return"this-fiscal-year";case 59:return"this-fiscal-period";case 60:return"next-fiscal-year";case 61:return"next-fiscal-period";case 62:return"last-fiscal-year";case 63:return"last-fiscal-period";case 64:return"last-x-fiscal-years";case 65:return"last-x-fiscal-periods";case 66:return"next-x-fiscal-years";case 67:return"next-x-fiscal-periods";case 68:return"in-fiscal-year";case 69:return"in-fiscal-period";case 70:return"in-fiscal-period-and-year";case 71:return"in-or-before-fiscal-period-and-year";case 72:return"in-or-after-fiscal-period-and-year";case 73:return"eq-userteams";case 74:return"eq-useroruserteams";case 75:return"above";case 76:return"under";case 77:return"not-under";case 78:return"eq-or-above";case 79:return"eq-or-under";case 80:return"eq-useroruserhierarchy";case 81:return"eq-useroruserhierarchyandteams";case 82:return"olderthan-x-years";case 83:return"olderthan-x-weeks";case 84:return"olderthan-x-days";case 85:return"olderthan-x-hours";case 86:return"olderthan-x-minutes";case 87:return"contain-values";case 88:return"not-contain-values"}}function tt(e){var t,n,r=function(e){if(e&&e.Parameters)for(var t in e.Parameters)if(e.Parameters[t]&&(e.Parameters[t].Type===Pe.QuickForm||e.Parameters[t].Type===Pe.MainForm)&&e.Parameters[t].Primary)return t;return"value"}(e.configuration),o=e.dynamicData.parameters[r];if(o&&o.getLatestData){var i=o.getLatestData();t=i?i.entityName:nt(e.configuration,1),n=i?i.recordId:function(e){return nt(e,2)}(e.configuration)}return{recordId:n,entityTypeName:t}}function nt(e,t){var n;if(e&&e.Parameters&&e.Parameters.value){var r=e.Parameters.value,o=r.Value?r.Value.split("|"):null;o&&o.length>t&&(n=o[t])}return n}var rt={},ot=function(){function e(e){this._commandManagerPromises={},this._commandManagerIds=[],this._memoizedProps={},this._datasetWrappers={},this._ownProps=e,this._commandManagerId="".concat(e.id,":").concat(e.controlId),this._externalCommandManagerId=e.externalCommandManagerId,this._externalCommandManagerPromise=e.externalCommandPromise,this._createCommandManagerUXComponent=e.actions.createCommandManagerUXComponent(),rt[this._commandManagerId]=this}return e.prototype.addDataSetWrapper=function(e){var t,n,r=null===(n=(t=e.getLatestData()).getViewId)||void 0===n?void 0:n.call(t);r=r?r.toLowerCase():"";var o="".concat(r,":").concat(e.getEntityTypeName());this._datasetWrappers[o]=e},e.prototype.retrieveRecordCommandForDatasetWrapper=function(e,t,n,r,o,i,a){var s=this,l="".concat(this._commandManagerId,":").concat(t),u=this._ownProps.contextToken,c=this._ownProps&&this._ownProps.manifest&&this._ownProps.manifest.ConstructorName?this._ownProps.manifest.ConstructorName:null,p=this._ownProps.id;if(!t)return F.Diagnostics.traceError(Ie+".Models.CommandingWrapper","Entity Type Name is undefined"),Promise.reject("Entity Type Name is undefined");if(this._externalCommandManagerId)return this._externalCommandInitialized?this._ownProps.actions.retrieveRecordCommand(e,this._externalCommandManagerId,u,n,r,o,i,c,a,p):this._externalCommandManagerPromise.then(function(){return s._externalCommandInitialized=!0,s._ownProps.actions.retrieveRecordCommand(e,s._externalCommandManagerId,u,n,r,o,i,c,a,p)},function(){var e=new Error("Command bar initialization failed");throw F.Reporting.reportFailure(Ie+".Models",e,"Rejected promise",[{name:"etn",value:t},{name:"commandManagerId",value:s._commandManagerId},{name:"APIName",value:Ie+".Models.CommandingWrapper.retrieveRecordCommandForDatasetWrapper"}]),e});if(this._commandManagerPromises[t]&&this._commandManagerPromises[t].promise)return this._commandManagerPromises[t].promise.then(function(){return s._ownProps.actions.retrieveRecordCommand(e,l,u,n,r,o,i,c,a,p)});if(this._commandManagerIds.indexOf(l)>-1)return this._ownProps.actions.retrieveRecordCommand(e,l,u,n,r,o,i,c,a,p);var d=Se.createPerformanceEvent("CommandingWrapper.CreateCommandManager").startStopwatch({controlId:this._ownProps.controlId,commandManagerId:l}),f=this._ownProps.actions.initializeCommandManager(p,this._ownProps.contextToken,this._ownProps.controlId,l);return this._commandManagerPromises[t]=f,f.promise.then(function(){return d(),s._commandManagerPromises[t]=null,s._ownProps.actions.retrieveRecordCommand(e,l,u,n,r,o,i,c,a,p)})},e.prototype.retrieveRecordCommand=function(e,t,n,r,o,i,a){var s=this._datasetWrappers["".concat(e?e.toLowerCase():"",":").concat(t)];if(!s)return F.Diagnostics.traceError(Ie+".retrieveRecordCommand","No associated dataset, promise rejected"),Promise.reject(0);var l=s.getLatestData().records;return this.retrieveRecordCommandForDatasetWrapper(l,t,n,r,o,i,a)},e.prototype.getRibbonId=function(e,t,n){return("form"!==t.toLowerCase()&&"editform"!==t.toLowerCase()?"HomePageGrid:":n?"SubGridAssociated:":"SubGridStandard:")+e},e.prototype.getDefaultConfigParameters=function(e){if(e.configuration&&e.configuration.Parameters){var t=e.configuration.Parameters;for(var n in t){var r=t[n];if(r.Type===Pe.Grid||r.Type===Pe.TimelineWall)return r}}},e.prototype.populateCommandManagerProps=function(e,t,n){var r=this.getDefaultConfigParameters(t),o=n||(r?r.TargetEntityType||r.EntityName:null),i=r?!!r.RelationshipName:null;if(e.id=t.id,void 0===e.ribbonId)if(t.formInfo&&t.formInfo.RibbonId)e.ribbonId=t.formInfo.RibbonId;else{var a=t.pageType.toLowerCase();e.ribbonId=this.getRibbonId(o,a,i)}e.commandManagerId=e.commandManagerId||"".concat(this._commandManagerId,":").concat(o),e.key=e.key||"".concat(this._ownProps.controlId,"-").concat(o,"-commandbar"),e.mainMenuLength=e.mainMenuLength||3,e.contextToken=e.contextToken||t.contextToken,e.customControlType=this._ownProps&&this._ownProps.manifest&&this._ownProps.manifest.ConstructorName?this._ownProps.manifest.ConstructorName:null},e.prototype.createCommandBar=function(e){return this._commandManagerIds.push(e.commandManagerId),this._createCommandManagerUXComponent(e)},e.prototype.createHiddenCommandManager=function(e,t){var n,r=e.split(":")[2];return this._memoizedProps[e]?n=this._memoizedProps[e]:(n={},this._memoizedProps[e]=n,n.isHidden=!0,n.ribbonId=t,n.metaDataLoadedResolve=this._commandManagerPromises[r]&&this._commandManagerPromises[r].resolve,this.populateCommandManagerProps(n,this._ownProps,r)),this.createCommandBar(n)},e.getWrapperByCommandManagerId=function(e){return rt[e]},e.prototype.getCommandManagerId=function(){return this._commandManagerId},e.prototype.linkParameterMethod=function(e){e.retrieveRecordCommand=this.retrieveRecordCommandForDatasetWrapper.bind(this,e.records,e.getTargetEntityType())},e.prototype.unmount=function(){delete rt[this._commandManagerId]},e}(),it=function(){function e(){}return e.registerToLearningPath=function(e,t,n){e&&t&&n&&e.getAttribute(t)!==n&&e.setAttribute(t,n)},e.getLearningPathControlId=function(e){if(!e.configuration)return null;var t=e.configuration.CustomControlId+"|"+e.controlId;switch(e.personalizationConfiguration&&(t+="|"+e.personalizationConfiguration.entityTypeName),function(e){switch(e){case"MscrmControls.Grid.ReadOnlyGrid":case xe:case Ee:case"MscrmControls.Grid.GridControl":return Ce.GridContainer;case"MscrmControls.Containers.DashboardControl":return Ce.DashboardContainer;case"MscrmControls.Containers.QuickForm":return Ce.QuickCreateForm;case"MscrmControls.Containers.FieldSectionItem":return Ce.FieldSectionContainer;case"MscrmControls.TimelineWallControl.TimelineWall":return Ce.TimelineContainer;case"MscrmControls.Chart.ChartControl":return Ce.ChartControl;case"MscrmControls.WebResource.WebResourceHtmlControl":return Ce.WebresourceControl;case"MscrmControls.Calendar.CalendarControl":return Ce.CalendarControl;case"MscrmControls.FieldControls.DummyControl":return Ce.DummyControl}}(e.configuration.CustomControlId)){case Ce.GridContainer:case Ce.ChartControl:case Ce.CalendarControl:t+=function(e){var t="",n=e.configuration.Parameters;for(var r in n){var o=n[r];if(o.Type===Pe.Grid){var i=o;i.ViewId&&(t+="|"+i.ViewId),i.VisualizationId&&(t+="|"+i.VisualizationId),i.EntityName&&(t+="|"+i.EntityName),i.RelationshipName&&(t+="|"+i.RelationshipName)}}return t}(e);break;case Ce.DashboardContainer:case Ce.QuickCreateForm:e.personalizationConfiguration&&e.personalizationConfiguration.formGuid&&(t+="|"+e.personalizationConfiguration.formGuid.guid);break;case Ce.WebresourceControl:t+=function(e){var t="",n=e.configuration.Parameters;for(var r in n){var o=n[r];if(o.Type===Pe.WebResourceHtmlControl)t+="|"+o.ControlId}return t}(e);break;case Ce.FieldSectionContainer:case Ce.TimelineContainer:case Ce.DummyControl:}return t},e.LEARNING_PATH_ATTRIBUTE="data-lp-id",e}();var at,st,lt=function(){function e(e,t){this._externalUtils=t,this._controlId=e.controlId}return e.prototype.addControlId=function(e){null==e&&(e=[]);var t={name:"CustomControlId",value:this._controlId};return e.push(t),e},e.prototype.reportSuccess=function(e,t){return this._externalUtils.xrmProxy.Reporting.reportSuccess(e,this.addControlId(t))},e.prototype.reportFailure=function(e,t,n,r){return this._externalUtils.xrmProxy.Reporting.reportFailure(e,t,n,this.addControlId(r))},e.prototype.reportEvent=function(e){var t=this.addControlId([]);return e.eventParameters.push(t[0]),this._externalUtils.xrmProxy.Reporting.reportEvent(e)},e}(),ut=function(){function e(){}return e.localeFormat=function(e,t,n){return pt(e,t,n)},e}();function ct(e,t){return e[t]}function pt(e,t,n){if(!t||0===t.length||"i"===t)return n&&n.name.length>0?ut.toLocaleString():ut.toString();function m(e,t,n){for(var r=e.length;r1?parseInt(d[1],10):0,d=c.split("."),c=d[0],p=d.length>1?d[1]:"",u>0?(c+=(p=m(p,u,!1)).slice(0,u),p=p.substr(u)):u<0&&(p=(c=m(c,(u=-u)+1,!0)).slice(-u,c.length)+p,c=c.slice(0,-u)),p=t>0?o+(p=p.length>t?p.slice(0,t):m(p,t,!1)):"";for(var f=c.length-1,h="";f>=0;){if(0===i||i>f)return h.length>0?c.slice(0,f+1)+r+h+p:c.slice(0,f+1)+p;h=h.length>0?c.slice(f-i+1,f+1)+r+h:c.slice(f-i+1,f+1),f-=i,a1&&(s=parseInt(t.slice(1),10)),t.charAt(0)){case"d":case"D":a="n",-1!==s&&(i=m("".concat(i),s,!0)),e<0&&(i=(-i).toString());break;case"c":case"C":a=e<0?["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"][ct(o,"CurrencyNegativePattern")]:["$n","n$","$ n","n $"][ct(o,"CurrencyPositivePattern")],-1===s&&(s=ct(o,"CurrencyDecimalDigits")),i=r(Math.abs(e),s,ct(o,"CurrencyGroupSizes"),ct(o,"CurrencyGroupSeparator"),ct(o,"CurrencyDecimalSeparator"));break;case"n":case"N":a=e<0?["(n)","-n","- n","n-","n -"][ct(o,"NumberNegativePattern")]:"n",-1===s&&(s=ct(o,"NumberDecimalDigits")),i=r(Math.abs(e),s,ct(o,"NumberGroupSizes"),ct(o,"NumberGroupSeparator"),ct(o,"NumberDecimalSeparator"));break;case"p":case"P":a=e<0?["-n %","-n%","-%n"][ct(o,"PercentNegativePattern")]:["n %","n%","%n"][ct(o,"PercentPositivePattern")],-1===s&&(s=ct(o,"PercentDecimalDigits")),i=r(100*Math.abs(e),s,ct(o,"PercentGroupSizes"),ct(o,"PercentGroupSeparator"),ct(o,"PercentDecimalSeparator"));break;default:throw Error("Res.formatBadFormatSpecifier")}for(var l=/n|\$|-|%/g,u="";;){var c=l.lastIndex,p=l.exec(a);if(u+=a.slice(c,p?p.index:a.length),!p)break;switch(p[0]){case"n":u+=i;break;case"$":u+=ct(o,"CurrencySymbol");break;case"-":/[1-9]/.test(i)&&(u+=ct(o,"NegativeSign"));break;case"%":u+=ct(o,"PercentSymbol");break;default:throw Error("Invalid number format pattern")}}return u}!function(e){e.date="date",e.dateonly="dateonly",e.datetime="datetime",e.dateandtime="dateandtime"}(at||(at={})),function(e){e.connection="connection",e.date="date",e.dateTime="datetime",e.duration="duration",e.email="email",e.language="language",e.none="none",e.phone="phone",e.regarding="regarding",e.text="text",e.textArea="textarea",e.tickerSymbol="tickersymbol",e.timeZone="timezone",e.url="url"}(st||(st={}));var dt=String.fromCharCode(41);function ft(e,t,n){return ut.localeFormat(e,"N"+(null!=n?n:function(e){return mt(e,"NumberDecimalDigits")}(t)),t)}function ht(e,t,n){var r=Math.abs(e);return function(e){switch(e){case 1:return"-{0}";case 2:return"-"+dt+"{0}";case 3:return"{0}-";case 4:return"{0}"+dt+"-";default:return"({0})"}}(mt(t,"NumberNegativePattern")).replace("{0}",ft(r,t,n))}function mt(e,t){return e.numberFormat[t]}function yt(e,t,n){var r=n;if(null==r){var o=function(e){return mt(e,"CurrencyDecimalDigits")}(t);null==r&&(r=o)}return ut.localeFormat(e,"C"+r,t)}function gt(e){return bt(e,"ShortDatePattern","DateSeparator","/")}function vt(e){return bt(e,"ShortTimePattern","TimeSeparator",":")}function bt(e,t,n,r){return e.dateTimeFormat[t].toString().replace(new RegExp(r,"g"),e.dateTimeFormat[n].toString())}var Ct=function(){function e(e){this._text="",e&&(this._text=e.toString())}return e.prototype.append=function(e){this._text+=e},e.prototype.toString=function(){return this._text},e}(),_t=function(){function e(){}return e.localeFormat=function(e,t,n){return function e(t,n,r){var o=r.dateTimeFormat,i=St(o,"Calendar").convert;if(!n||!n.length||"i"===n){if(r&&r.name.length){if(i)return e(t,St(o,"FullDateTimePattern"),r);var a=new Date(t.getTime()),s=wt(t,St(o,"eras"));return a.setFullYear(xt(t,o,s)),a.toLocaleString()}return t.toString()}var l=St(o,"eras"),u="s"===n;n=It(o,n);var c,p,d,f=new Ct;function h(e){return e<10?"0".concat(e):e.toString()}function m(e){return e<10?"00".concat(e):e<100?"0".concat(e):e.toString()}var y=/([^d]|^)(d|dd)([^d]|$)/g;function g(){return p||d||(p=y.test(n),d=!0),p}var v,b=0,C=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g;!u&&i&&(v=i.fromGregorian(t));function _(e,t){if(v)return v[t];switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate()}}for(;;){var S=C.lastIndex,P=C.exec(n),I=n.slice(S,P?P.index:n.length);if(b+=Pt(I,f),!P)break;if(b%2!=1)switch(P[0]){case"dddd":f.append(St(o,"DayNames")[t.getDay()]);break;case"ddd":f.append(St(o,"AbbreviatedDayNames")[t.getDay()]);break;case"dd":p=!0,f.append(h(_(t,2)));break;case"d":p=!0,f.append(_(t,2).toString());break;case"MMMM":f.append(St(o,"MonthGenitiveNames")&&g()?St(o,"MonthGenitiveNames")[_(t,1)]:St(o,"MonthNames")[_(t,1)]);break;case"MMM":f.append(St(o,"AbbreviatedMonthGenitiveNames")&&g()?St(o,"AbbreviatedMonthGenitiveNames")[_(t,1)]:St(o,"AbbreviatedMonthNames")[_(t,1)]);break;case"MM":f.append(h(_(t,1)+1));break;case"M":f.append((_(t,1)+1).toString());break;case"yyyy":f.append((w=v?v[0]:xt(t,o,wt(t,l),u))<10?"000".concat(w):w<100?"00".concat(w):w<1e3?"0".concat(w):w.toString());break;case"yy":f.append(h((v?v[0]:xt(t,o,wt(t,l),u))%100));break;case"y":f.append(v?v[0].toString():(xt(t,o,wt(t,l),u)%100).toString());break;case"hh":0===(c=t.getHours()%12)&&(c=12),f.append(h(c));break;case"h":0===(c=t.getHours()%12)&&(c=12),f.append(c.toString());break;case"HH":f.append(h(t.getHours()));break;case"H":f.append(t.getHours().toString());break;case"mm":f.append(h(t.getMinutes()));break;case"m":f.append(t.getMinutes().toString());break;case"ss":f.append(h(t.getSeconds()));break;case"s":f.append(t.getSeconds().toString());break;case"tt":f.append(t.getHours()<12?St(o,"AMDesignator"):St(o,"PMDesignator"));break;case"t":f.append((t.getHours()<12?St(o,"AMDesignator"):St(o,"PMDesignator")).charAt(0));break;case"f":f.append(m(t.getMilliseconds()).charAt(0));break;case"ff":f.append(m(t.getMilliseconds()).substr(0,2));break;case"fff":f.append(m(t.getMilliseconds()));break;case"z":c=t.getTimezoneOffset()/60,f.append((c<=0?"+":"-")+Math.floor(Math.abs(c)));break;case"zz":c=t.getTimezoneOffset()/60,f.append((c<=0?"+":"-")+h(Math.floor(Math.abs(c))));break;case"zzz":c=t.getTimezoneOffset()/60,f.append("".concat((c<=0?"+":"-")+h(Math.floor(Math.abs(c))),":").concat(h(Math.abs(t.getTimezoneOffset()%60))));break;case"g":case"gg":St(o,"eras")&&f.append(St(o,"eras")[wt(t,l)+1]);break;case"/":f.append(St(o,"DateSeparator"));break;default:throw Error("Invalid date format pattern")}else f.append(P[0])}var w;return f.toString()}(e,t,n)},e.parse=function(e,t,n){e=e.trim();var r=n.dateTimeFormat,o=function(e,t){var n=It(e,t);n=n.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");var r,o=new Ct("^"),i=[],a=0,s=0,l=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g;for(;null!==(r=l.exec(n));){var u=n.slice(a,r.index);if(a=l.lastIndex,(s+=Pt(u,o))%2!=1){switch(r[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":o.append("(\\D+)");break;case"tt":case"t":o.append("(\\D*)");break;case"yyyy":o.append("(\\d{4})");break;case"fff":o.append("(\\d{3})");break;case"ff":o.append("(\\d{2})");break;case"f":o.append("(\\d)");break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":o.append("(\\d\\d?)");break;case"zzz":o.append("([+-]?\\d\\d?:\\d{2})");break;case"zz":case"z":o.append("([+-]?\\d\\d?)");break;case"/":o.append("(\\".concat(St(e,"DateSeparator"),")"));break;default:throw Error("Invalid date format pattern")}i.push(r[0])}else o.append(r[0])}return Pt(n.slice(a),o),o.append("$"),{regExp:o.toString().replace(/\s+/g,"\\s+"),groups:i}}(r,t),i=new RegExp(o.regExp).exec(e);if(null===i)return null;for(var a,s=o.groups,l=null,u=null,c=null,p=null,d=null,f=0,h=0,m=0,y=0,g=null,v=!1,b=0,C=s.length;b31)return null;break;case"MMMM":if((c=Dt(n,_))<0||c>11)return null;break;case"MMM":if((c=Ft(n,_))<0||c>11)return null;break;case"M":case"MM":if((c=parseInt(_,10)-1)<0||c>11)return null;break;case"y":case"yy":if((u=At(r,parseInt(_,10)))<0||u>9999)return null;break;case"yyyy":if((u=parseInt(_,10))<0||u>9999)return null;break;case"h":case"hh":if(12===(f=parseInt(_,10))&&(f=0),f<0||f>11)return null;break;case"H":case"HH":if((f=parseInt(_,10))<0||f>23)return null;break;case"m":case"mm":if((h=parseInt(_,10))<0||h>59)return null;break;case"s":case"ss":if((m=parseInt(_,10))<0||m>59)return null;break;case"tt":case"t":var S=_.toUpperCase();if(!(v=S===St(r,"PMDesignator").toUpperCase())&&S!==St(r,"AMDesignator").toUpperCase())return null;break;case"f":if((y=100*parseInt(_,10))<0||y>999)return null;break;case"ff":if((y=10*parseInt(_,10))<0||y>999)return null;break;case"fff":if((y=parseInt(_,10))<0||y>999)return null;break;case"dddd":if((d=Ot(n,_))<0||d>6)return null;break;case"ddd":if((d=Mt(n,_))<0||d>6)return null;break;case"zzz":var P=_.split(/:/);if(2!==P.length)return null;if((a=parseInt(P[0],10))<-12||a>13)return null;var I=parseInt(P[1],10);if(I<0||I>59)return null;g=60*a+(_.startsWith("-")?-I:I);break;case"z":case"zz":if((a=parseInt(_,10))<-12||a>13)return null;g=60*a;break;case"g":case"gg":var w=_,x=St(r,"eras");if(!w||!x)return null;w=w.toLowerCase().trim();for(var E=0,k=Object.keys(x).length;E=n)return o;return 0}function xt(e,t,n,r){var o=e.getFullYear();return!r&&St(t,"eras")&&(o-=St(t,"eras")[n+3]),o}function Et(e){return e.split(" ").join(" ").toUpperCase()}function kt(e){for(var t=[],n=0,r=e.length;nSt(St(e,"Calendar"),"TwoDigitYearMax")&&(t-=100)}return t}var Rt=function(e,t,n){this.name=e,this.dateTimeFormat=n,this.numberFormat=t};Rt.CurrentCulture=function(){if("object"==typeof __cultureInfo)return new Rt(__cultureInfo.name,__cultureInfo.numberFormat,__cultureInfo.dateTimeFormat);return new Rt("en-US",{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:".",IsReadOnly:!1,CurrencyGroupSizes:[3],NumberGroupSizes:[3],PercentGroupSizes:[3],CurrencyGroupSeparator:",",CurrencySymbol:"$",NaNSymbol:"NaN",CurrencyNegativePattern:0,NumberNegativePattern:1,PercentPositivePattern:0,PercentNegativePattern:0,NegativeInfinitySymbol:"-Infinity",NegativeSign:"-",NumberDecimalDigits:2,NumberDecimalSeparator:".",NumberGroupSeparator:",",CurrencyPositivePattern:0,PositiveInfinitySymbol:"Infinity",PositiveSign:"+",PercentDecimalDigits:2,PercentDecimalSeparator:".",PercentGroupSeparator:",",PercentSymbol:"%",PerMilleSymbol:"‰",NativeDigits:["0","1","2","3","4","5","6","7","8","9"],DigitSubstitution:1},{AMDesignator:"AM",Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,IsReadOnly:!1},DateSeparator:"/",FirstDayOfWeek:0,CalendarWeekRule:0,FullDateTimePattern:"dddd, MMMM dd, yyyy h:mm:ss tt",LongDatePattern:"dddd, MMMM dd, yyyy",LongTimePattern:"h:mm:ss tt",MonthDayPattern:"MMMM dd",PMDesignator:"PM",RFC1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",ShortDatePattern:"M/d/yyyy",ShortTimePattern:"h:mm tt",SortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",TimeSeparator:":",UniversalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",YearMonthPattern:"MMMM, yyyy",AbbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ShortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],DayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],AbbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],IsReadOnly:!1,NativeCalendarName:"Gregorian Calendar",AbbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""]})}(),Rt.InvariantCulture=new Rt("",{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:".",IsReadOnly:!0,CurrencyGroupSizes:[3],NumberGroupSizes:[3],PercentGroupSizes:[3],CurrencyGroupSeparator:",",CurrencySymbol:"¤",NaNSymbol:"NaN",CurrencyNegativePattern:0,NumberNegativePattern:1,PercentPositivePattern:0,PercentNegativePattern:0,NegativeInfinitySymbol:"-Infinity",NegativeSign:"-",NumberDecimalDigits:2,NumberDecimalSeparator:".",NumberGroupSeparator:",",CurrencyPositivePattern:0,PositiveInfinitySymbol:"Infinity",PositiveSign:"+",PercentDecimalDigits:2,PercentDecimalSeparator:".",PercentGroupSeparator:",",PercentSymbol:"%",PerMilleSymbol:"‰",NativeDigits:["0","1","2","3","4","5","6","7","8","9"],DigitSubstitution:1},{AMDesignator:"AM",Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,IsReadOnly:!0},DateSeparator:"/",FirstDayOfWeek:0,CalendarWeekRule:0,FullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",LongDatePattern:"dddd, dd MMMM yyyy",LongTimePattern:"HH:mm:ss",MonthDayPattern:"MMMM dd",PMDesignator:"PM",RFC1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",ShortDatePattern:"MM/dd/yyyy",ShortTimePattern:"HH:mm",SortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",TimeSeparator:":",UniversalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",YearMonthPattern:"yyyy MMMM",AbbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ShortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],DayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],AbbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],IsReadOnly:!0,NativeCalendarName:"Gregorian Calendar",AbbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""]});var Lt=function(){function n(){}return n.ParseDateFromString=function(e,t,n){var r=t;r&&(r=r.toLowerCase());var o=e.indexOf(" ");switch(t){case at.date:case at.dateonly:o>0&&(r=at.datetime);break;case at.datetime:case at.dateandtime:o<0&&(r=at.date)}var i=function(e,t){switch(t){case at.datetime:case at.dateandtime:return gt(e)+" "+vt(e);case at.date:case at.dateonly:default:return gt(e)}}(n,r);return _t.parse(e,i,n)},n.parseDateFromInput=function(e){var t=Date.parse(e);return isNaN(t)?null:new Date(t)},n.formatIntegerValue=function(e,t){return n.formatDecimalValue(e,t,0)},n.parseFormatted=function(){return null},n.parseFormattedValue=function(){return null},n.formatCurrencyValue=function(e,t,n,r){var o=yt(e,t,r);return null!=n?o.replace(function(e){return mt(e,"CurrencySymbol")}(t),n):o},n.formatShortDateValue=function(e,t){return _t.localeFormat(e,"d",t)},n.formatLongDateValue=function(e,t){return _t.localeFormat(e,"D",t)},n.formatDecimalValue=function(e,t,n){return e<0?ht(e,t,n):ft(e,t,n)},n.formatSortableDateValue=function(e){return n.formatSortableDateTimeValue(e).split("T")[0]},n.formatSortableDateTimeValue=function(e){return _t.localeFormat(e,"s",Rt.CurrentCulture)},n.formatShortDateTimeValue=function(e,t){var n=gt(t),r=vt(t);return _t.localeFormat(e,n+" "+r,t)},n.formatDateLongAbbreviated=function(e,t){var n=function(e){return bt(e,"LongDatePattern","DateSeparator","/")}(t);return n=(n=n.replace("MMMM","MMM")).replace("dddd","ddd"),_t.localeFormat(e,n,t)},n.formatDateYearMonthValue=function(e,t){return _t.localeFormat(e,"Y",t)},n.formatLanguageValue=function(e,t){if(!(isNaN(e)||e<-1))return null===e||t&&t[e]?t[e]:e.toString()},n.formatUserInput=function(e){if(null!=e)return e.toString()},n}();function Nt(e){var t={timeZoneUtcOffsetMinutes:0,dateTimeFormatInfo:Rt.CurrentCulture.dateTimeFormat,numberFormatInfo:Rt.CurrentCulture.numberFormat,timeZoneAdjusters:[],formatInfoCultureName:Rt.CurrentCulture.name,formatter:Lt,languagesByCode:{},workDayStartTime:"08:00"},n=(null==e?void 0:e.formatter)||t.formatter;return Object.assign(t,e,{formatter:n})}var Bt,Ut,Vt=function(){function e(e){this._formattingData=Nt(e.propBagData.formattingData),this._utilsData=e.propBagData.utilsData,this._adjusters=this._formattingData.timeZoneAdjusters,this._dateTimeFormatInfo=this._formattingData.dateTimeFormatInfo,this._currentCultureInfo=new Rt(this._formattingData.formatInfoCultureName,this._formattingData.numberFormatInfo,this._formattingData.dateTimeFormatInfo),this._timeZoneOffsetMinutes=this._formattingData.timeZoneUtcOffsetMinutes}return e.prototype.parseDateFromString=function(e,t){var n={cultureInfo:this._currentCultureInfo};return this._formattingData.formatter.ParseDateFromString(e,t,this._currentCultureInfo,n)},e.prototype.parseDateFromInput=function(e,t){return this._formattingData.formatter.parseDateFromInput(e,t)},e.prototype.formatDateShort=function(e,t){return t?this._formattingData.formatter.formatShortDateTimeValue(e,this._currentCultureInfo,0,this._timeZoneOffsetMinutes,this._adjusters):this._formattingData.formatter.formatShortDateValue(e,this._currentCultureInfo,0,this._timeZoneOffsetMinutes,this._adjusters)},e.prototype.formatDateLongAbbreviated=function(e){return this._formattingData.formatter.formatDateLongAbbreviated(e,this._currentCultureInfo,0,this._timeZoneOffsetMinutes,this._adjusters)},e.prototype.formatDateLong=function(e){return this._formattingData.formatter.formatLongDateValue(e,this._currentCultureInfo,0,this._timeZoneOffsetMinutes,this._adjusters)},e.prototype.formatDateYearMonth=function(e){return this._formattingData.formatter.formatDateYearMonthValue(e,this._currentCultureInfo,0,this._timeZoneOffsetMinutes,this._adjusters)},e.prototype.parseFormatted=function(e,t,n,r){return t&&!t.cultureInfo&&(t.cultureInfo=this._currentCultureInfo),this._formattingData.formatter.parseFormatted(e,t,this._currentCultureInfo,n,r)},e.prototype.parseFormattedValue=function(e,t){return this._formattingData.formatter.parseFormattedValue(e,t)},e.prototype.formatInteger=function(e){return this._formattingData.formatter.formatIntegerValue(e,this._currentCultureInfo)},e.prototype.formatDecimal=function(e,t){return this._formattingData.formatter.formatDecimalValue(e,this._currentCultureInfo,t)},e.prototype.formatCurrency=function(e,t,n){return this._formattingData.formatter.formatCurrencyValue(e,this._currentCultureInfo,n,t)},e.prototype.formatTime=function(e,t){return this._formattingData.formatter.formatShortDateTimeValue(e,this._currentCultureInfo,t,this._timeZoneOffsetMinutes,this._adjusters)},e.prototype.getWeekOfYear=function(e){return this._utilsData.dateTimeUtils.getWeekOfYear(e,this._dateTimeFormatInfo.firstDayOfWeek,this._dateTimeFormatInfo.calendarWeekRule,!J(F)&&!J(F.Utils)&&!J(F.Utils.isFeatureEnabled)&&F.Utils.isFeatureEnabled("UseLegacyFunctionForWeekNumbering"))},e.prototype.getTimeZoneOffsetInMinutes=function(e){var t=this._utilsData.dateTimeUtils.getDSTAdjustmentMinutes(e,this._adjusters);return this._timeZoneOffsetMinutes+t},e.prototype.formatDateAsFilterStringInUTC=function(e,t){return t?this._formattingData.formatter.formatSortableDateTimeValue(e,this._currentCultureInfo,0,this._timeZoneOffsetMinutes,this._adjusters):this._formattingData.formatter.formatSortableDateValue(e,this._currentCultureInfo,0)},e.prototype.formatLanguage=function(e){return this._formattingData.formatter.formatLanguageValue(e,this._formattingData.languagesByCode)},e.prototype.formatUserDateTimeToUTC=function(e,t){return this._formattingData.formatter.formatUserDateTimeToUTC(e,t)},e.prototype.formatUTCDateTimeToUserDate=function(e,t){return this._formattingData.formatter.formatUTCDateTimeToUserDate(e,t)},e.prototype.formatUserInput=function(e,t){return this._formattingData.formatter.formatUserInput(e,t)},e}(),Ht=function(e,t){this.done=e,this.value=t},jt=function(){function e(e,t){this._file=e,this._currentIndex=0,(!t||t<1048576)&&(t=1048576),this._chunkSize=Math.floor(t)}return e.prototype.getCurrentIndex=function(){return this._currentIndex},e.prototype.read=function(){var i=this;return new Promise(function(n){if(!i._file||i._currentIndex>=i._file.size)n(new Ht(!0,null));else{var r=i._currentIndex+i._chunkSize>i._file.size?i._file.size:i._currentIndex+i._chunkSize,e=i._file.slice(i._currentIndex,r),o=new FileReader;o._realReader&&(o=o._realReader),o.addEventListener("loadend",function(){i._currentIndex=r;var e=o.result,t=new Uint8Array(e);n(new Ht(!1,t))}),o.readAsArrayBuffer(e)}})},e}(),Wt=function(){function e(e){this._file=e,this.fileName=encodeURIComponent(e.name),this.fileSize=e.size,this.mimeType=e.type,this.fileUrl=URL.createObjectURL&&URL.createObjectURL(this._file),this.version=Date.now()}return e.prototype.getBinaryReader=function(e){return new jt(this._file,e)},e}(),zt=function(){function e(e,t){this._customControlProperties=e,this._externalUtils=t,this.createElement=this.createElement.bind(this),this.createComponent=this.createComponent.bind(this)}return e.prototype.createElement=function(e,t,n){return new ye(e,t?t.id:"",t,n,this._externalUtils)},e.prototype.createComponent=function(e,t,n){return new ye(e,t,n,null,this._externalUtils)},e.prototype.bindDOMElement=function(e,t){this._externalUtils.bindDOMElement(e,t)},e.prototype.bindDOMComponent=function(e,t){this._externalUtils.bindDOMElement(e,t)},e.prototype.createFileObject=function(e){return new Wt(e)},e.prototype.fireEvent=function(e,t){var n=this._customControlProperties.parentDefinedControlProps;if(!J(n)&&!J(n.eventListeners)){for(var r=-1,o=n.eventListeners,i=0;i0&&this.isVisible&&!this.isControlDisabled&&this._customControlProperties.descriptor.parentFieldSectionItem){var n=this._customControlProperties.descriptor.parentFieldSectionItem;return this._customControlProperties.propBagMethods.mode.setNotification(e,t,this._customControlProperties.id,n,this._customControlProperties.contextToken,this._modeData.entityTypeName,this._modeData.entityId)}return!1},e.prototype.clearNotification=function(e){if(this._customControlProperties.descriptor.parentFieldSectionItem){var t=this._customControlProperties.descriptor.parentFieldSectionItem;return this._customControlProperties.propBagMethods.mode.clearNotification(this._customControlProperties.id,t,this._customControlProperties.contextToken,this._modeData.entityTypeName,this._modeData.entityId,e)}return!1},e.prototype.requestAlwaysRender=function(e){rn.IsAvailable&&rn.requestAlwaysRender(this._customControlProperties.id,e)},e.prototype.setControlState=function(e,t,n){var r=this._customControlProperties.personalizationConfiguration;if(r){if(t)return void(this._customControlProperties.manifest.CustomControlId&&this._customControlProperties.actions.setGlobalControlPersonalization(this._customControlProperties.manifest.CustomControlId,e));"form"===r.areaType?this._customControlProperties.actions.setFieldControlPersonalization(r,e,n?this._customControlProperties.id:null):"grid"===r.areaType?this._customControlProperties.actions.setGridControlPersonalization(r,e,n?this._customControlProperties.id:null):"dashboard"===r.areaType?this._customControlProperties.actions.setDashboardControlPersonalization(r,e,n?this._customControlProperties.id:null):n&&this._customControlProperties.actions.setGenericControlPersonalization(r.controlUniqueId,e,this._customControlProperties.id)}return this._customControlProperties.propBagMethods.utils.setState(e)},e.prototype.blur=function(){},e.prototype.focus=function(){},e}(),an=function(){function e(e){this._bagProps=e.propBagMethods.device}return e.prototype.captureImage=function(e){return F.captureImage(e)},e.prototype.captureAudio=function(e){return F.captureAudio(e)},e.prototype.captureVideo=function(e){return F.captureVideo(e)},e.prototype.pickFile=function(e){return F.pickFile(e)},e.prototype.getBarcodeValue=function(){return F.getBarcodeValue()},e.prototype.getCurrentPosition=function(){return F.getCurrentPosition()},e.prototype.isGetBarcodeValueOperationAvailable=function(){return this._bagProps.isGetBarcodeValueOperationAvailable()},e.prototype.isTakePictureOperationAvailable=function(){return this._bagProps.isTakePictureOperationAvailable()},e.prototype.isCaptureVideoOperationAvailable=function(){return this._bagProps.isCaptureVideoOperationAvailable()},e.prototype.isCaptureAudioOperationAvailable=function(){return this._bagProps.isCaptureAudioOperationAvailable()},e.prototype.isOpenARViewerAvailable=function(){return this._bagProps.isOpenARViewerAvailable()},e.prototype.openARViewer=function(e){return F.openARViewer(e)},e.prototype.isGetMessageReceiverAvailable=function(){return this._bagProps.isGetMessageReceiverAvailable()},e.prototype.getMessageReceiver=function(e,t){return F.getMessageReceiver(e,t)},e.prototype.getDeclaredFeatures=function(){return{unspecifiedFeatureFallback:{supportStatus:"supported"},featureList:{captureImage:{supportStatus:this.isTakePictureOperationAvailable&&this.isTakePictureOperationAvailable()?"supported":"unsupported"},captureAudio:{supportStatus:this.isCaptureAudioOperationAvailable&&this.isCaptureAudioOperationAvailable()?"supported":"unsupported"},captureVideo:{supportStatus:this.isCaptureVideoOperationAvailable&&this.isCaptureVideoOperationAvailable()?"supported":"unsupported"},getBarcodeValue:{supportStatus:this.isGetBarcodeValueOperationAvailable&&this.isGetBarcodeValueOperationAvailable()?"supported":"unsupported"},getCurrentPosition:{supportStatus:"supported"},pickFile:{supportStatus:"supported"},openARViewer:{supportStatus:this.isOpenARViewerAvailable&&this.isOpenARViewerAvailable()?"supported":"unsupported"},getMessageReceiver:{supportStatus:this.isGetMessageReceiverAvailable&&this.isGetMessageReceiverAvailable()?"supported":"unsupported"}}}},e.prototype.getFeatureClassName=function(){return"Device"},e}(),sn=function(){function e(){}return e.prototype.getAvailableExternalContexts=function(){return F.getAvailableExternalContexts()},e.prototype.getExternalContextProperty=function(e,t,n){return F.getExternalContextProperty(e,t,n)},e.prototype.invokeExternalContextAction=function(e,t,n){return F.invokeExternalContextAction(e,t,n)},e.prototype.removeExternalContextPropertyListener=function(e,t,n){return F.removeExternalContextPropertyListener(e,t,n)},e}(),ln=function(){function e(e){this.getPresenceMappedField=e.actions.getPresenceMappedField,this.isPresenceEnabled=e.actions.isPresenceEnabledEntity,this.getPersonaInfo=e.actions.retrievePersonaInfo,this.getPresenceStatus=e.actions.usePresenceStatus,this.getProfilePhoto=e.actions.useProfilePhoto,this.getAadObjectIdInfos=e.actions.retrieveAadObjectIdInfos}return e.prototype.getPresenceMappedField=function(e){return null},e.prototype.isPresenceEnabled=function(e){return null},e.prototype.getPersonaInfo=function(e){return null},e.prototype.getPresenceStatus=function(e,t){return null},e.prototype.getProfilePhoto=function(e,t){return null},e.prototype.getAadObjectIdInfos=function(e){return null},e}(),un=function(){function e(e){this._themingData=e.propBagData.themingData,this.useUpdatedDesignSystem=!!this._themingData.shouldUseDesignSystem,this.normalfontcolor=this._themingData.defaultThemingData.normalfontcolor,this.normalfontfamily=this._themingData.defaultThemingData.normalfontfamily,this.normalfontsize=this._themingData.defaultThemingData.normalfontsize,this.solidborderstyle=this._themingData.defaultThemingData.solidborderstyle,this.noneborderstyle=this._themingData.defaultThemingData.noneborderstyle,this.colors=this._themingData.defaultThemingData.colors,this.textbox=this._themingData.defaultThemingData.textbox,this.spacings=this._themingData.defaultThemingData.spacings,this.fontfamilies=this._themingData.defaultThemingData.fontfamilies,this.fontsizes=this._themingData.defaultThemingData.fontsizes,this.breakpoints=this._themingData.defaultThemingData.breakpoints,this.measures=this._themingData.defaultThemingData.measures,this.lookup=this._themingData.defaultThemingData.lookup,this.borders=this._themingData.defaultThemingData.borders,this.shadows=this._themingData.defaultThemingData.shadows,this.buttons=this._themingData.defaultThemingData.buttons}return e.prototype.getEntityColor=function(e){return this._themingData.getEntityColor?this._themingData.getEntityColor(e):""},e.prototype.disableUiTransitions=function(){},e.prototype.rightAlignEdit=function(){},e.prototype.inlineLayout=function(){},e}(),cn=function(){function e(e){this._manifest=e.manifest,this._getResource=e.actions.getResource,this._bagPropsResource=e.propBagData.resourcesData}return e.prototype.getString=function(e){return e&&this._bagPropsResource&&this._bagPropsResource.strings[e]?this._bagPropsResource.strings[e]:e},e.prototype.getResource=function(t,n,e){var r=this._manifest.Properties.Resources.filter(function(e){if(e)return e.Name.endsWith(t)})[0];r?this._getResource(r).then(function(e){n(e)},function(){e()}):e()},e}(),pn=function(){function e(e){var t,n,r;this._customControlProperties=e,this.assignedTabIndex=(t=this._customControlProperties,J(null===(r=null===(n=null==t?void 0:t.propBagData)||void 0===n?void 0:n.accessibilityData)||void 0===r?void 0:r.assignedTabIndex)?0:t.propBagData.accessibilityData.assignedTabIndex),this.assignedTooltip=function(e){var t,n,r;return null!==(r=null===(n=null===(t=null==e?void 0:e.propBagData)||void 0===t?void 0:t.accessibilityData)||void 0===n?void 0:n.assignedTooltip)&&void 0!==r?r:null}(this._customControlProperties),this.accessibilityInternalData={keyboardShortcuts:[]},this.isHighContrastEnabled=function(){if(void 0===We){var e=window.matchMedia("(-ms-high-contrast: active)"),t=window.matchMedia("(forced-colors: active)"),n=window.matchMedia("(prefers-contrast: more)");if(e.matches||t.matches||n.matches)We=!0;else{var r=document.getElementsByTagName("html");We=null!=r[0].getAttribute("hc")}}return We}()}return e.prototype.registerShortcut=function(e,t,n,r,o,i){var a=this._customControlProperties.actions.createKeyboardShortcut(e,t,n,r,o,i);this.accessibilityInternalData.keyboardShortcuts.push(a)},e.prototype.getUniqueId=function(e){return ze(this._customControlProperties,e)},e.prototype.focusElementById=function(e,t){qe(this._customControlProperties,e,t)},e.prototype.blurElementById=function(e,t){!function(e,t,n){var r=Qe(e,t,n);if(r&&null!==r){var o=document.getElementById(r);o&&null!==o&&o.blur()}}(this._customControlProperties,e,t)},e}(),dn=function(){function e(){}return e.prototype.retrieveRecord=function(e,t,n){return F.retrieveRecord(e,t,n)},e.prototype.createRecord=function(e,t){return F.createRecord(e,t)},e.prototype.updateRecord=function(e,t,n){return F.updateRecord(e,t,n)},e.prototype.deleteRecord=function(e,t){return F.deleteRecord(e,t)},e.prototype.retrieveMultipleRecords=function(e,t,n,r){return F.retrieveMultipleRecords(e,t,n,r)},e.prototype.execute=function(e){return F.execute(e)},e.prototype.executeMultiple=function(e){return F.executeMultiple(e)},e.prototype.getDeclaredFeatures=function(){return{unspecifiedFeatureFallback:{supportStatus:"supported"}}},e.prototype.getFeatureClassName=function(){return"WebAPI"},e}(),fn=function(){function e(){}return e.prototype.sendRequest=function(e,t,n,r,o){var i;return null===(i=F.GraphApi)||void 0===i?void 0:i.sendRequest(e,t,n,r,o)},e.prototype.getDeclaredFeatures=function(){return{unspecifiedFeatureFallback:{supportStatus:"supported"}}},e.prototype.getFeatureClassName=function(){return"GraphApi"},e}(),hn=function(){function e(e,t){this.updateBag(e),this.getClientUrl=function(){return t.xrmProxy.Page.getClientUrl()}}return e.prototype.updateBag=function(e){var t=e.propBagData.pageData,n=e.propBagData.modeData;this.appId=t.appId,this.entityTypeName=n.entityTypeName,this.entityId=n.entityId,this.isPageReadOnly=t.isPageReadOnly},e}();function mn(e,t){if(e&&t&&t.ApiVersion&&!(vn(t.ApiVersion,"1.1")<0)&&e.getDeclaredFeatures&&e.getFeatureClassName){var n=e.getDeclaredFeatures();if(n)for(var r=t.Properties&&t.Properties.FeatureUsage,o=function(t){var e=r&&r.find(function(e){return e.Name.toLowerCase()===t.toLowerCase()});return e?e.IsRequired?"required":"optional":"unspecified"},i=e.getFeatureClassName(),a=o(i),s=0,l=function(e){var t=["constructor","getFeatureClassName","getDeclaredFeatures"];return Reflect.ownKeys(Reflect.getPrototypeOf(e)).filter(function(e){return"string"==typeof e&&!e.startsWith("_")&&-1===t.indexOf(e)}).map(function(e){return e})}(e).filter(function(e){return!n.featureList||n.featureList[e]}).map(function(e){return{name:e,featureState:n.featureList?o("".concat(i,".").concat(e)):a,versionStatus:yn(n,e,t.ApiVersion)}});s0)return"deprecated"}return"implemented"}function gn(e,t,n,r,o){"unknown"===r||("deprecated"===r?e[t]=function(){throw new Error(function(e,t){return"Feature '".concat(e.getFeatureClassName(),".").concat(t,"' has been deprecated.")}(e,t))}:"notimplemented"===r?e[t]=function(){throw new Error(function(e,t){return"Feature '".concat(e.getFeatureClassName(),".").concat(t,"' not implemented in this version.")}(e,t))}:"unspecified"===n?e[t]=function(){throw new Error(function(e,t){return"Feature '".concat(e.getFeatureClassName(),".").concat(t,"' is required to be specified in the section in ControlManifest.xml before use.")}(e,t))}:"required"===n&&"unsupported"===o?e[t]=function(){throw new Error(function(e,t){return"Required method '".concat(e.getFeatureClassName(),".").concat(t,"' not supported on this device. Error code: ").concat("PlatformErrorCodes.OperationIsNotSupportedOnThisDevice")}(e,t))}:"optional"===n&&"unsupported"===o&&(e[t]=null))}function vn(e,t){var n=t.match("^(\\d+)?\\.?(\\d+)?\\.?(\\d+)?$"),r=e.match("^(\\d+)?\\.?(\\d+)?\\.?(\\d+)?$");if(!n||!r)return Number.NaN;for(var o=1;o<4;o++){var i=n.length>o&&parseInt(n[o],10)||0,a=r.length>o&&parseInt(r[o],10)||0;if(a-i!=0)return Math.min(Math.max(a-i,-1),1)}return 0}var bn=function(){function e(e,t,n){this._customControlProperties=e,this._externalUtils=t,this._hostData=n}return e.prototype.getInstance=function(e){var t=new e(this._customControlProperties,this._externalUtils,this._hostData);return t instanceof Object&&void 0!==t.getDeclaredFeatures&&this._modifyDeclaredFunctions(t),t},e.prototype._modifyDeclaredFunctions=function(e){mn(e,this._customControlProperties.manifest)},e}(),Cn=function(){return(Cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=t.attributes.Timestamp)t.raw=i.file;else{var a={entityType:g.propBagData.modeData.entityTypeName,id:g.propBagData.modeData.entityId};t.raw=g.actions.getBoundFileObject(t.attributes.LogicalName,a,g.id,g.contextToken),_._memoizedFileObjects[t.attributes.LogicalName]={file:t.raw,timestamp:t.attributes.Timestamp}}}if(C[e]&&C[e].getLatestData){var s=C[e],l=s.getLatestData(),u=s;if(u.ensureLookupMetaDataInitialization){g.descriptor.Parameters&&g.descriptor.Parameters.delayMetadataInitialization||u.ensureLookupMetaDataInitialization({retrieveLookupMetadataAction:g.actions.retrieveLookupMetadataAction,refreshDataSetParameter:g.actions.refreshDataSetParameter,retrieveViewAction:g.actions.retrieveView})}null===(v=s.linkToParameter)||void 0===v||v.call(s,l,{retrieveAction:g.actions.retrieveLookupData,retrieveViewAction:g.actions.retrieveView,retrieveViewSelectorAction:g.actions.retrieveViewSelector,retrieveLookupMetadataAction:g.actions.retrieveLookupMetadataAction,retrieveRecordDataForForm:g.actions.retrieveRecordDataForForm,updateFieldValue:g.actions.updateFieldValue,saveEmbeddedEntity:g.actions.saveEmbeddedEntity,refreshDataSetParameter:g.actions.refreshDataSetParameter,retrieveDataSetLookupCellParameter:g.actions.retrieveDataSetLookupCellParameter,executeAddOnLoad:g.actions.executeAddOnLoad,setPowerBISignedInState:g.actions.setPowerBISignedInState,beginSecureSessionForResource:g.actions.beginSecureSessionForResource,executeNotifyHandlersThatEventOccurred:g.actions.executeNotifyHandlersThatEventOccurred,addSessionTab:g.actions.addSessionTab,closeSessionTab:g.actions.closeSessionTab,updateSessionTab:g.actions.updateSessionTab,closeAllSessionTabs:g.actions.closeAllSessionTabs,dismissMessage:g.actions.dismissMessage,markActiveTab:g.actions.markActiveTab,initializeReferencePanelControl:g.actions.initializeReferencePanelControl,cleanReferencePanelState:g.actions.cleanReferencePanelState,runCustomOpenRecord:g.actions.runCustomOpenRecord,openDatasetItem:Ye.bind(null,g,l,e,g.actions.runCustomOpenRecord),updateControlMemoizedDataSet:g.actions.updateControlMemoizedDataSet,executeRollupRequest:g.actions.executeRollupRequest,loadWebResource:g.actions.loadWebResource,updateChartFilterExpression:g.actions.updateChartFilterExpression,sendLookupRequest:g.actions.sendLookupRequest,runPreSearch:g.actions.runPreSearch,retrieveLookupRecordsBySearchString:g.actions.retrieveLookupRecordsBySearchString,retrieveLookupRecordsByIds:g.actions.retrieveLookupRecordsByIds,getBoundFileObject:g.actions.getBoundFileObject,updateGridPageNumber:g.actions.updateGridPageNumber,retrievePersonaInfo:g.actions.retrievePersonaInfo,usePresenceStatus:g.actions.usePresenceStatus,useProfilePhoto:g.actions.useProfilePhoto});var c=s;if(c.applyDataSetInputs){var p=l,d=c.applyDataSetInputs(p),f=void 0,h=void 0;if("number"==typeof d?f=d:(f=d.nextAction,h=d.pageNumber),0!==f)switch(f){case 1:p.refresh&&p.refresh();break;case 2:p.paging&&p.paging.hasNextPage&&p.paging.loadNextPage&&p.paging.loadNextPage();break;case 3:p.paging&&p.paging.hasPreviousPage&&p.paging.loadPreviousPage&&p.paging.loadPreviousPage();break;case 6:if(J(h)){var m=C[e]&&C[e]._wrapper&&C[e]._wrapper.previousAppliedSubParametersInput.pagingInput?C[e]._wrapper.previousAppliedSubParametersInput.pagingInput.raw:null;h=m?JSON.parse(m).firstPageNumber:null}p.paging&&p.paging.loadExactPage&&p.paging.loadExactPage(h)}}var y=ot.getWrapperByCommandManagerId("".concat(g.id,":").concat(g.controlId));y&&l.getTargetEntityType&&y.linkParameterMethod(l),b[e]=l}else b[e]=C[e]},_=this;for(var t in C)e(t);return b},e.prototype._getBagEvents=function(i){var e={};if((i.manifest.Events||i.manifest.CommonEvents)&&i.actions.fireManifestEvent){var t=[];i.manifest.Events&&(t=t.concat(Object.keys(i.manifest.Events))),i.manifest.CommonEvents&&(t=t.concat(Object.keys(i.manifest.CommonEvents)));for(var n=0,r=t;n0&&t.maxWidth0&&t.maxHeight-1&&(n.splice(r,1),n.length<1&&delete this._parentFlyoutNameToChildRootNameMap[e]),!1}return!1},e.prototype.getChildRoots=function(e){return this._parentFlyoutNameToChildRootNameMap.hasOwnProperty(e)?this._parentFlyoutNameToChildRootNameMap[e]:[]},e}(),Qn=function(){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])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),$n=function(n){function e(e){var t=n.call(this,e)||this;return t.state={portals:new Map},t}return Qn(e,n),e.prototype.bindDOMElement=function(n,r,o,e){if(!r.isRemoveChildPatched){var t=r.removeChild,i=this.props.onError;r.removeChild=function(){try{return t.apply(this,arguments)}catch(e){if("NotFoundError"!==e.name&&"HierarchyRequestError"!==e.name)throw i&&i(e),e}},r.isRemoveChildPatched=!0}this.setState(function(e){var t=new Map(e.portals);return t.set(r,{element:n,id:o}),{portals:t}},e)},e.prototype.unbindDOMComponent=function(r,e){this.setState(function(e){var n=new Map(e.portals);return n.forEach(function(e,t){e.id===r&&n.delete(t)}),{portals:n}},e)},e.prototype.componentDidCatch=function(e){if("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node."!==e.message)throw e},e.prototype.render=function(){var n=this,r=[];return this.state.portals.forEach(function(e,t){r.push(n.props.renderReactSubtree(e.element,t))}),r},e}(ie.Component),Yn=function(){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])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Zn=function(){return(Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&r.updateDom()}),r._scrollHandler=r.debouncingFlyoutEvent(function(){if(r.getIsRelative()&&!r.props.keepWhenRelativeToElementHides){for(var e in r._isOutOfRange=!1,r._scrollableAncestors)if(t=r._getRelativeElement(),n=r._scrollableAncestors[e],t.getBoundingClientRect().topn.getBoundingClientRect().bottom){r._isOutOfRange=!0;break}var t,n;r.updateDom()}},100),r.debouncingFlyoutEvent=r.debouncingFlyoutEvent.bind(r),r.handleMeasuring=r.handleMeasuring.bind(r),r.setFlyoutRef=r.setFlyoutRef.bind(r),r.handlePointerDown=r.handlePointerDown.bind(r),r.handleOnScroll=r.props.enableTrackOnScroll?r.handleOnScroll.bind(r):null,r.handleWindowBlur=r.handleWindowBlur.bind(r),r._isClickInsideFlyout=r._isClickInsideFlyout.bind(r),r._portal=ie.createRef(),r}return Yn(e,t),Object.defineProperty(e.prototype,"flyoutElement",{get:function(){return this._flyoutElement},enumerable:!1,configurable:!0}),e.prototype.getFlyoutRootId=function(){return this.props.isPortalToElement&&this.props.portalContainerId?this.props.portalContainerId:e.generateFlyoutId(this.props.parentCustomControlId,this.props.groupId)},e.prototype.componentDidMount=function(){var e=this;this.props.hasDynamicContent&&(this._measuringSubscriber={onMeasure:this.handleMeasuring,getComponent:function(){return e._flyoutElement},getContext:function(){return e.context}},M.getInstance().addMeasuringSubscribers(this._measuringSubscriber)),this.updateDom(),this._subscribeFlyoutPopupManager()},e.generateFlyoutId=function(e,t){return(e?e+"|":"")+(t?"__flyoutRootNode_"+t:"__flyoutRootNode")},e.prototype.componentDidUpdate=function(){this.updateDom(),M.getInstance().updateMeasuringSubscribers(this._measuringSubscriber)},e.prototype.componentWillUnmount=function(){this.removeFromDom(),this.resetFocus(),this.props.hasDynamicContent&&M.getInstance().removeMeasuringSubscribers(this._measuringSubscriber),te.getInstance().removeSubscribers(this._managerSubscriber)},e.prototype._getRelativeElement=function(){var e=document.getElementById(this.props.relativeToElementId);return e&&this.props.relativeToElementIdSelector&&(e=this.props.relativeToElementIdSelector(e)),e},e.prototype.calculatePosition=function(){var e,t={position:"absolute",visibility:this._isOutOfRange?"hidden":"visible",overflowX:this.props.disableHorizontalScroll?"hidden":"auto",overflowY:this.props.disableVerticalScroll?"hidden":"auto"},n=Zn({},this.props.size);if(this.getIsAbsolute())e=this.props.position;else{if(!this.getIsRelative()){var r=new Error("Cannot recognize positioning approach");throw F.Reporting.reportFailure("CustomControlFramework.Primitive.Flyout",r),r}var o=this._getRelativeElement();if(!o)return t.visibility="hidden",t;this._updateActualSize();var i=this.props.children;if(i&&i.props&&i.props.style){var a=new RegExp("^(\\d+)\\s*px$"),s=i.props.style,l=void 0;!n.maxHeight&&s.maxHeight&&(l=a.exec(s.maxHeight))&&(n.maxHeight=parseInt(l[1],10)),!n.maxWidth&&s.maxWidth&&(l=a.exec(s.maxWidth))&&(n.maxWidth=parseInt(l[1],10))}var u={width:n.width||this._actualSize&&this._actualSize.width,maxWidth:n.maxWidth||this._actualSize&&this._actualSize.maxWidth,height:n.height||this._actualSize&&this._actualSize.height,maxHeight:n.maxHeight||this._actualSize&&this._actualSize.maxHeight},c=null===this.props.flyoutDirection||void 0===this.props.flyoutDirection?Nn.right:this.props.flyoutDirection,p=null;if(null!==this._lastDirection&&void 0!==this._lastDirection&&(p=c,c=this._lastDirection),this.props.enforceDirection)e=Gn(u,c,o),this._lastDirection=c;else{var d=function(e,t,n,r){if(!e)return{Position:Gn(e,t,n),Direction:t};var o;null!==r&&r!==t?((o=zn(r)).splice(o.indexOf(t),1),o.unshift(t)):o=zn(t);for(var i,a,s=t,l=0,u=o;l=0?e.left:0}if(this._actualSize){var f=Wn(e,this._actualSize),h=Vn();f.width&&!n.width&&(e.left0;this.ensureRootNode(),this.parentFlyoutNode||(this.parentFlyoutNode=document.createElement("div"),this.rootNode.appendChild(this.parentFlyoutNode));var t=!!window.navigator.userAgent.match("MSIE")||!!window.navigator.userAgent.match("Trident"),o=this.calculatePosition(),n=Zn(Zn(Zn(Zn(Zn(Zn({},this.props.flyoutStyle),o),{boxSizing:"border-box"}),this.props.rootZIndex||e?{zIndex:1}:{}),t&&void 0===this._flyoutElement?{left:0}:{}),t?{display:"initial"}:{}),i=!this._actualSize,a=this.props.children!==this._previousChildren;if(a&&(this._previousChildren=this.props.children),i){var s=Hn();Object.assign(n,{bottom:null,right:null,maxWidth:s.width,maxHeight:s.height,visibility:"hidden"})}var l=ie.createElement(se,Zn({id:this.props.id,style:n,ref:this.setFlyoutRef,onClick:function(e){r._interceptClickEvent()&&e.stopPropagation()}},this.props),this.props.children);this.props.wrapElement&&(l=this.props.wrapElement(l)),this._portal.current.bindDOMElement(l,this.parentFlyoutNode,"flyout",function(){r.focusInnerElement(i),r._actualSize=jn(r._flyoutElement);var e=r.calculatePosition();if(i=i||a&&(e.left!==o.left||e.top!==o.top||e.right!==o.right||e.bottom!==o.bottom),!r._isFlyoutShown&&(window.addEventListener("blur",r.handleWindowBlur),window.addEventListener("resize",r._resizeHandler),r.getIsRelative())){r._scrollableAncestors=function(e,t){var n=[];for(e=e&&e.parentElement;e&&e!==t;)Kn(e)&&n.push(e),e=e.parentElement;return n}(r._getRelativeElement(),document.body);for(var t=0,n=r._scrollableAncestors;tt.offsetLeft+t.offsetWidth)e.scrollLeft=t.offsetLeft+t.offsetWidth-e.offsetWidth;else if(e.scrollLeftn+t.offsetWidth&&(e.scrollLeft=n-e.offsetWidth)},r.prototype._scrollToContent=function(e,t){e&&t&&(this.props.horizontal?this.props.isRTL&&this._isIEorEdge()?this._scrollToContentHorizontalRTLIEorEdge(e,t):this._scrollToContentHorizontalLTR(e,t):e.scrollTop+e.clientHeight=t.scrollHeight&&this.props.onScrollToBottom()}},r.prototype.getElementName=function(){return this.props.semanticTag?this.props.semanticTag:"div"},r.prototype.getElementProps=function(){return{onClick:this.props.onClick,onScroll:this.props.onScroll||this.props.onScrollToBottom?this._onScrollHandler:void 0,ref:this.props.scrollToId||this.props.refCallback?this._setInnerViewRef:void 0}},r.prototype.scrollToChild=function(e){if(!e){var t=new Error("child must be specified");throw F.Reporting.reportFailure("CustomControlFramework.Primitive.ScrollView",t),t}var n=I.findDOMNode(this),r=I.findDOMNode(e);this._scrollToContent(n,r)},r.prototype._setInnerViewRef=function(e){this.props.refCallback&&this.props.refCallback(this),this._scrollViewRef=e},r.prototype.getFlexClassName=function(e){var t=pr({style:e});return c(t?t.display:null)},r.prototype.getElementClassName=function(){var e=n.prototype.getElementClassName.call(this);this.props&&this.props.className&&(e+=" ".concat(this.props.className));var t=pr(this.props);return r.isElementScrollable(t)&&(e+=j.getInstance().getDisableScrollStyle()&&!this.props.isWithinATopMostSeeMore?" webkitScrollAuto":" webkitScroll"),e},r.displayName="ScrollView",r}(y);function pr(e){if(e&&e.style){var t=e.horizontal?ur(ur({},e.style),{overflowX:"scroll",flexDirection:"row"}):ur(ur({},e.style),{overflowY:"scroll",flexDirection:"column"}),n=e.contentContainerStyle?ur(ur({},e.style),e.contentContainerStyle):e.style,r=ur(ur({},t),n);return ur(ur(ur(ur({},e.style),r),B(e)),u(r))}return{}}var dr=l.connect(function(e){return{rule:pr(e)}})(cr),fr=function(){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])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),hr=function(){return(hr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&!e.freeTextMode&&(t=e.options[0]),t},p.prototype.getOptionByValue=function(e,t){if(e){var n=e.filter(function(e){return e.value===t});if(n.length>0)return n[0]}},p.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e&&!e.defaultValue){var t=this.getOptionByValue(e.options,e.value),n=this.getOptionByValue(this.props.options,this.props.value);if(e.value!==this.props.value||e.value===this.props.value&&(null==t?void 0:t.text)!==(null==n?void 0:n.text)){var r=void 0;e.freeTextMode?r={freeTextValue:this.state.hasFocus&&this.state.freeTextValue||e.value,freeTextOptionDisplayValue:this.state.hasFocus&&this.state.freeTextValue||e.value}:(this.selectedIndex=e.options&&e.options.indexOf(t),r={option:t,freeTextValue:t&&t.text,freeTextOptionDisplayValue:t&&t.text}),this.setState(r)}}if(e&&e.defaultValue&&(!this.state.option||!this.state.option.value)&&e.options!==this.props.options&&!e.freeTextMode){n=this.getOptionByValue(e.options,e.defaultValue);this.selectedIndex=e.options&&e.options.indexOf(n);r={option:n,freeTextValue:n&&n.text};this.setState(r)}},p.prototype._getIfValueChanged=function(e){return this.props.freeTextMode?e!==this.state.freeTextValue:e!==this.getSelectedOptionValue()},p.prototype.getElementProps=function(){return{name:this.props.name}},p.prototype.getElementChildren=function(){},p.prototype.setIsExpanded=function(e){e?(this._updateContainerWidth(),this._wasInnerFocusRequested=!1):this._wasInnerFocusRequested||(this.setFocusToItem(this.focusableControlId),this._wasInnerFocusRequested=!0),this.state.isExpanded||(this.keyboardScrolling=!1),this.setState({isExpanded:e})},p.prototype._toggleIsExpanded=function(){this.setIsExpanded(!this.state.isExpanded)},p.prototype.setFocus=function(){if(this.props.freeTextMode){if(this._textInput){var e=I.findDOMNode(this._textInput);e&&e.focus()}}else if(this._text){var t=I.findDOMNode(this._text);t&&t.focus()}},p.prototype.resetSelectedIndex=function(){if(this.props.defaultValue){var e=this.getSelectedOptionValue(),t=this.getOptionByValue(this.props.options,e);this.selectedIndex=this.getVisibleOptions().indexOf(t)}else{var n=this.props.value||this.props.options[0].value,r=this.props.freeTextMode&&this.state.freeTextValue||n;t=this.getOptionByValue(this.props.options,r);this.selectedIndex=this.getVisibleOptions().indexOf(t)}},p.prototype.setCurrentItemByValue=function(e,t){void 0===t&&(t=!0);var n=this.getOptionByValue(this.props.options,e),r={freeTextOptionDisplayValue:n&&n.text};this.state.isExpanded||(t=!0),n&&this.props.onOptionSelected&&this.props.onOptionSelected(n),this.selectedIndex=this.getVisibleOptions().indexOf(n),this.setState(r),t&&(this.handleValueChange(n&&n.value),this.setState({freeTextValue:n&&n.text,option:n}))},p.prototype._setCurrentItemByVisibleIndex=function(e){var t=this.getVisibleOptions();~e&&e-1){var t=this.getVisibleOptions(),n=this.state.option!==t[this.selectedIndex];this.setState({isAutoCompleting:!1,isExpanded:!1,option:t[this.selectedIndex],freeTextValue:this.props.freeTextMode?t[this.selectedIndex].text:null,freeTextOptionDisplayValue:this.props.freeTextMode?t[this.selectedIndex].text:null}),this.setFocus();var r=t[this.selectedIndex];r&&this.props.onOptionSelected&&this.props.onOptionSelected(r),n&&this.handleValueChange(t[this.selectedIndex].value)}},p.prototype.handleEscapeKey=function(e){this.state.isExpanded&&(this.setIsExpanded(!1),e.stopPropagation(),e.preventDefault())},p.prototype.handleTabKey=function(e){this.state.isExpanded&&(e.stopPropagation(),e.preventDefault())},p.prototype.handleKeyboardExpandRequest=function(){this.state.isExpanded?this.setState({isAutoCompleting:!1}):(this.resetSelectedIndex(),this.setIsExpanded(!0))},p.prototype.handleFlyoutOutsideClick=function(e){var t=e.target;t.id!==this.getButtonId()&&t.id!==this.getButtonId()+"_innerdiv"&&this.setIsExpanded(!1),this.setFocus(),this.clickedOutside=!0},p.prototype.handleInnerControlFocus=function(){this.setState({hasFocus:!0}),this.isIE&&this.handleIEBorderFocus()},p.prototype.handleIEBorderFocus=function(){if(this.isIE){var e=document.getElementById(this.focusableControlId);if(!e||null===e)return;e.setAttribute("style","border: 1px dotted;")}},p.prototype.handleInnerControlBlur=function(){this.resetSelectedIndex(),this.setState({hasFocus:!1}),this.isIE&&this.handleIEInnerControlBlur()},p.prototype.handleIEInnerControlBlur=function(){if(this.isIE){var e=document.getElementById(this.focusableControlId);if(!e||null===e)return;e.setAttribute("style","null")}},p.prototype._resetSelectedListItem=function(){this.selectedListItem=void 0,this.props.onOptionSelected&&this.props.onOptionSelected(null)},p.prototype.handleRelativeToElementSelector=function(e){return e.parentElement},p.prototype.renderOptionsList=function(e){var r=this;if(e&&e.length){var o=this.props.selectedItemStyle||p.getSelectedItemStyle(),t=e.map(function(e,t){var n=r.getListItemId(e);return ie.createElement(sr,{key:t,id:n,tabIndex:0,role:"option",dataText:e.text,dataValue:e.value,onSelected:r.handleItemSelected,isSelected:r.selectedIndex===t,style:p.getListItemStyle(),selectedStyle:o,ref:r.saveItemRef,onClick:r.handleItemPointerDown},e.text||" ")}),n=this.getPageSize(),i=this.getListId()+"_scrollView",a=n0){var a=this._isMultiple()?{value:o}:{value:o[0]};this.setState(a),this.props.onChange&&this.props.onChange(a.value)}},e.prototype.getElementName=function(){return"select"},e.prototype.getElementProps=function(){var e={value:this.props.multiple?this.state.value?this.state.value.map(function(e){return e.Value.toString()}):["-1"]:this.state.value?this.state.value.Value.toString():"-1",onChange:this._onChangeHandler};return e.describedByElementId=this.props.describedByElementId?null:this.props.describedByElementId,this.props.disabled&&(e.disabled=!0),this.props.multiple&&(e.multiple=!0),e},e.prototype.getElementChildren=function(){var o=this;return this.props.options&&this.props.options.length?this.props.options.map(function(e){var t=o._optionId(e),n=!1;if(o.props.multiple){for(var r=0;r0)if(t.files.length>1&&o.props.multipleFilesSelected)t.type="",t.type="file",o.props.multipleFilesSelected();else{var n=t.files[0],r=new FileReader;r.readAsDataURL(n),r.onload=function(){var e=o._parseFileReaderResult(n,r.result);o.props.fileSelected(e)},r.onerror=function(){o.props.onReaderError&&o.props.onReaderError("Error reading file: "+n.name+"\n"+r.error)}}else o.props.fileUnselected&&o.props.fileUnselected()}),e},t.prototype._parseFileReaderResult=function(e,t){var n=null,r=null;if(t){var o=t.indexOf(",");o>-1&&(n=t.substring(o+1));var i=t.indexOf(";");i>-1&&o>-1&&(r=t.substring(i+1,o))}return{content:n,mimeType:e.type,encoding:r,name:e.name,size:e.size}},t.displayName="FileInput",t}(y),Ao=l.connect(H)(Mo),Ro=function(){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])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(e){e[e.Default=0]="Default",e[e.Small=1]="Small",e[e.Medium=2]="Medium",e[e.Large=3]="Large"}(Po||(Po={})),function(e){e[e.None=0]="None",e[e.Lookup=1]="Lookup",e[e.Grid=2]="Grid"}(Io||(Io={}));var Lo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._renderPresence=!1,e}return Ro(e,t),e.prototype._addPresenceInformation=function(){var e=this.props.displaySize?this.props.displaySize:Po.Default,t=this.props.presenceTarget?this.props.presenceTarget:Io.None;this._presenceInstance=new this._skypeChannelContext.SkypeChannelClient.Presence(this._presenceId,this.props.sipUrl,this.props.entityReference,e,this.props.parentControlId,this.props.accessibilityLabel,t),this._presenceInstance.buildPresence()},e.prototype.componentDidMount=function(){this._renderPresence&&this._addPresenceInformation()},e.prototype.componentWillUnmount=function(){this._presenceInstance&&(this._presenceInstance.close(),this._presenceInstance=null)},e.prototype._isSkypeChannelAvailable=function(){return this._skypeChannelContext=this.context?this.context.SkypeChannel:void 0,void 0!==this._skypeChannelContext},e.prototype._isPropsAvailable=function(){return!!this.props.sipUrl||this.props.entityReference&&this._skypeChannelContext.SkypeChannelClient.PresenceInformation&&this._skypeChannelContext.SkypeChannelClient.PresenceInformation.isPresenceEnabledEntity(this.props.entityReference.entityName)},e.prototype.render=function(){return this._presenceId=this.props.id?this.props.id:this.props.parentControlId+"_presence",this._renderPresence=this._isSkypeChannelAvailable()&&this._isPropsAvailable(),this._renderPresence?ie.createElement(se,{id:this._presenceId,style:this.props.style}):null},e.displayName="PresenceIndicator",e}(ie.Component);function No(e,o){return new Promise(function(t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){var e=r.responseText;/