diff --git a/static/assets/Azure-30d5e7c0.svg b/static/assets/Azure-30d5e7c0.svg deleted file mode 100644 index da2673da15..0000000000 --- a/static/assets/Azure-30d5e7c0.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/assets/Azure-6fbfc6c9.svg b/static/assets/Azure-6fbfc6c9.svg new file mode 100644 index 0000000000..a5422c0a81 --- /dev/null +++ b/static/assets/Azure-6fbfc6c9.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/assets/index-eb86a872.js b/static/assets/index-0b97503c.js similarity index 99% rename from static/assets/index-eb86a872.js rename to static/assets/index-0b97503c.js index d26f0f0e8c..447297203d 100644 --- a/static/assets/index-eb86a872.js +++ b/static/assets/index-0b97503c.js @@ -65,7 +65,7 @@ Error generating stack: `+o.message+` * * @license MIT */function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function h7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function p7(e,t){return e.button===0&&(!t||t==="_self")&&!h7(e)}const m7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function g7(e){let{basename:t,children:n,window:r}=e,i=E.useRef();i.current==null&&(i.current=h3({window:r,v5Compat:!0}));let o=i.current,[a,s]=E.useState({action:o.action,location:o.location});return E.useLayoutEffect(()=>o.listen(s),[o]),E.createElement(c7,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const E7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v7=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=f7(t,m7),f,h=!1;if(E7&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){f=u;let g=new URL(window.location.href),T=u.startsWith("//")?new URL(g.protocol+u):new URL(u);T.origin===g.origin?u=T.pathname+T.search+T.hash:h=!0}let p=Q3(u,{relative:i}),v=T7(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function _(g){r&&r(g),g.defaultPrevented||v(g)}return E.createElement("a",Q0({},d,{href:f||p,onClick:h||o?r:_,ref:n,target:l}))});var z9;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(z9||(z9={}));var G9;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(G9||(G9={}));function T7(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=X3(),l=Ud(),u=Uy(e,{relative:a});return E.useCallback(c=>{if(p7(c,n)){c.preventDefault();let d=r!==void 0?r:rd(l)===rd(u);s(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}var j9={},Tc=void 0;try{Tc=window}catch{}function _m(e,t){if(typeof Tc<"u"){var n=Tc.__packages__=Tc.__packages__||{};if(!n[e]||!j9[e]){j9[e]=t;var r=n[e]=n[e]||[];r.push(t)}}}_m("@fluentui/set-version","6.0.0");var X0=function(e,t){return X0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},X0(e,t)};function ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");X0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var N=function(){return N=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Kr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r"u"?fl.none:fl.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(r=n==null?void 0:n.classNameToArgs)!==null&&r!==void 0?r:this._classNameToArgs,this._counter=(i=n==null?void 0:n.counter)!==null&&i!==void 0?i:this._counter,this._keyToClassName=(a=(o=this._config.classNameCache)!==null&&o!==void 0?o:n==null?void 0:n.keyToClassName)!==null&&a!==void 0?a:this._keyToClassName,this._preservedRules=(s=n==null?void 0:n.preservedRules)!==null&&s!==void 0?s:this._preservedRules,this._rules=(l=n==null?void 0:n.rules)!==null&&l!==void 0?l:this._rules}return e.getInstance=function(){if(Ha=qa[K9],!Ha||Ha._lastStyleElement&&Ha._lastStyleElement.ownerDocument!==document){var t=(qa==null?void 0:qa.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);Ha=n,qa[K9]=n}return Ha},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=N(N({},this._config),t)},e.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter(function(r){return r!==t})}},e.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter(function(r){return r!==t})}},e.prototype.getClassName=function(t){var n=this._config.namespace,r=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(r,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,n,r,i){this._keyToClassName[n]=t,this._classNameToArgs[t]={args:r,rules:i}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},e.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},e.prototype.insertRule=function(t,n){var r=this._config.injectionMode,i=r!==fl.none?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),i)switch(r){case fl.insertNode:var o=i.sheet;try{o.insertRule(t,o.cssRules.length)}catch{}break;case fl.appendChild:i.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(a){return a()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),y7||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,n=document.createElement("style"),r=null;n.setAttribute("data-merge-styles","true");var i=this._config.cspSettings;if(i&&i.nonce&&n.setAttribute("nonce",i.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();o?r=o.nextElementSibling:r=t.childNodes[0]}return t.insertBefore(n,t.contains(r)?r:null),this._lastStyleElement=n,n},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function zy(){for(var e=[],t=0;t=0)o(u.split(" "));else{var c=i.argsFromClassName(u);c?o(c):n.indexOf(u)===-1&&n.push(u)}else Array.isArray(u)?o(u):typeof u=="object"&&r.push(u)}}return o(e),{classes:n,objects:r}}function Gy(e){Ss!==e&&(Ss=e)}function jy(){return Ss===void 0&&(Ss=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Ss}var Ss;Ss=jy();function zd(){return{rtl:jy()}}var W9={};function _7(e,t){var n=e[t];n.charAt(0)!=="-"&&(e[t]=W9[n]=W9[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var R1;function C7(){var e;if(!R1){var t=typeof document<"u"?document:void 0,n=typeof navigator<"u"?navigator:void 0,r=(e=n==null?void 0:n.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?R1={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!!(n&&(/rv:11.0/i.test(n.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:R1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return R1}var $9={"user-select":1};function S7(e,t){var n=C7(),r=e[t];if($9[r]){var i=e[t+1];$9[r]&&(n.isWebkit&&e.push("-webkit-"+r,i),n.isMoz&&e.push("-moz-"+r,i),n.isMs&&e.push("-ms-"+r,i),n.isOpera&&e.push("-o-"+r,i))}}var A7=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function b7(e,t){var n=e[t],r=e[t+1];if(typeof r=="number"){var i=A7.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]="".concat(r).concat(a)}}var M1,Eo="left",vo="right",k7="@noflip",V9=(M1={},M1[Eo]=vo,M1[vo]=Eo,M1),Y9={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function F7(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if(typeof i=="string"&&i.indexOf(k7)>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(Eo)>=0)t[n]=r.replace(Eo,vo);else if(r.indexOf(vo)>=0)t[n]=r.replace(vo,Eo);else if(String(i).indexOf(Eo)>=0)t[n+1]=i.replace(Eo,vo);else if(String(i).indexOf(vo)>=0)t[n+1]=i.replace(vo,Eo);else if(V9[r])t[n]=V9[r];else if(Y9[i])t[n+1]=Y9[i];else switch(r){case"margin":case"padding":t[n+1]=x7(i);break;case"box-shadow":t[n+1]=I7(i,0);break}}}function I7(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(r*-1)),n.join(" ")}function x7(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function N7(e){for(var t=[],n=0,r=0,i=0;in&&t.push(e.substring(n,i)),n=i+1);break}return n-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map(function(i){return":global(".concat(i.trim(),")")}).join(", ")]);return t.reverse().reduce(function(i,o){var a=o[0],s=o[1],l=o[2],u=i.slice(0,a),c=i.slice(s);return u+l+c},e)}function q9(e,t){return e.indexOf(":global(")>=0?e.replace(Ky,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function Q9(e,t,n,r){t===void 0&&(t={__order:[]}),n.indexOf("@")===0?(n=n+"{"+e,As([r],t,n)):n.indexOf(",")>-1?R7(n).split(",").map(function(i){return i.trim()}).forEach(function(i){return As([r],t,q9(i,e))}):As([r],t,q9(n,e))}function As(e,t,n){t===void 0&&(t={__order:[]}),n===void 0&&(n="&");var r=br.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o0){n.subComponentStyles={};var f=n.subComponentStyles,h=function(p){if(r.hasOwnProperty(p)){var v=r[p];f[p]=function(_){return Ti.apply(void 0,v.map(function(g){return typeof g=="function"?g(_):g}))}}};for(var u in r)h(u)}return n}function Uu(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:Z0}}var $s=function(){function e(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,n){var r=this,i=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),i=setTimeout(function(){try{r._timeoutIds&&delete r._timeoutIds[i],t.apply(r._parent)}catch(o){r._logError(o)}},n),this._timeoutIds[i]=!0),i},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,n){var r=this,i=0,o=tt(n);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var a=function(){try{r._immediateIds&&delete r._immediateIds[i],t.apply(r._parent)}catch(s){r._logError(s)}};i=o.setTimeout(a,0),this._immediateIds[i]=!0}return i},e.prototype.clearImmediate=function(t,n){var r=tt(n);this._immediateIds&&this._immediateIds[t]&&(r.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,n){var r=this,i=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),i=setInterval(function(){try{t.apply(r._parent)}catch(o){r._logError(o)}},n),this._intervalIds[i]=!0),i},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,n,r){var i=this;if(this._isDisposed)return this._noop;var o=n||0,a=!0,s=!0,l=0,u,c,d=null;r&&typeof r.leading=="boolean"&&(a=r.leading),r&&typeof r.trailing=="boolean"&&(s=r.trailing);var f=function(p){var v=Date.now(),_=v-l,g=a?o-_:o;return _>=o&&(!p||a)?(l=v,d&&(i.clearTimeout(d),d=null),u=t.apply(i._parent,c)):d===null&&s&&(d=i.setTimeout(f,g)),u},h=function(){for(var p=[],v=0;v=a&&(D=!0),c=A);var M=A-c,x=a-M,P=A-d,O=!1;return u!==null&&(P>=u&&p?O=!0:x=Math.min(x,u-P)),M>=a||O||D?_(A):(p===null||!S)&&l&&(p=i.setTimeout(g,x)),f},T=function(){return!!p},y=function(){T()&&v(Date.now())},C=function(){return T()&&_(Date.now()),f},k=function(){for(var S=[],A=0;A-1)for(var a=n.split(/[ ,]+/),s=0;s"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var Xf,Gl=0,Zy=ai({overflow:"hidden !important"}),X9="data-is-scrollable",H7=function(e,t){if(e){var n=0,r=null,i=function(a){a.targetTouches.length===1&&(n=a.targetTouches[0].clientY)},o=function(a){if(a.targetTouches.length===1&&(a.stopPropagation(),!!r)){var s=a.targetTouches[0].clientY-n,l=Am(a.target);l&&(r=l),r.scrollTop===0&&s>0&&a.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&s<0&&a.preventDefault()}};t.on(e,"touchstart",i,{passive:!1}),t.on(e,"touchmove",o,{passive:!1}),r=e}},U7=function(e,t){if(e){var n=function(r){r.stopPropagation()};t.on(e,"touchmove",n,{passive:!1})}},Jy=function(e){e.preventDefault()};function z7(){var e=_n();e&&e.body&&!Gl&&(e.body.classList.add(Zy),e.body.addEventListener("touchmove",Jy,{passive:!1,capture:!1})),Gl++}function G7(){if(Gl>0){var e=_n();e&&e.body&&Gl===1&&(e.body.classList.remove(Zy),e.body.removeEventListener("touchmove",Jy)),Gl--}}function j7(){if(Xf===void 0){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Xf=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Xf}function Am(e){for(var t=e,n=_n(e);t&&t!==n.body;){if(t.getAttribute(X9)==="true")return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if(t.getAttribute(X9)!=="false"){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&(i==="scroll"||i==="auto"))return t}t=t.parentElement}return(!t||t===n.body)&&(t=tt(e)),t}var K7=void 0;function bm(e){console&&console.warn&&console.warn(e)}function e_(e,t,n,r,i){if(i===!0&&!1)for(var o,a;o1?r[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new $s(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new Er(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(n){var r=this;return this.__resolves||(this.__resolves={}),this.__resolves[n]||(this.__resolves[n]=function(i){return r[n]=i}),this.__resolves[n]},t.prototype._updateComponentRef=function(n,r){r===void 0&&(r={}),n&&r&&n.componentRef!==r.componentRef&&(this._setComponentRef(n.componentRef,null),this._setComponentRef(r.componentRef,this))},t.prototype._warnDeprecations=function(n){this.className,this.props},t.prototype._warnMutuallyExclusive=function(n){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(n,r,i){e_(this.className,this.props,n,r,i)},t.prototype._setComponentRef=function(n,r){!this._skipComponentRefResolution&&n&&(typeof n=="function"&&n(r),typeof n=="object"&&(n.current=r))},t})(E.Component);function W7(e,t,n){for(var r=0,i=n.length;r-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}var oA="data-is-focusable",aA="data-is-visible",sA="data-focuszone-id",lA="data-is-sub-focuszone";function uA(e,t,n){return hn(e,t,!0,!1,!1,n)}function cA(e,t,n){return Mn(e,t,!0,!1,!0,n)}function dA(e,t,n,r){return r===void 0&&(r=!0),hn(e,t,r,!1,!1,n,!1,!0)}function fA(e,t,n,r){return r===void 0&&(r=!0),Mn(e,t,r,!1,!0,n,!1,!0)}function hA(e,t){var n=hn(e,e,!0,!1,!1,!0,void 0,void 0,t);return n?(l_(n),!0):!1}function Mn(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=jd(t);if(i&&l&&(o||!(Pi(t)||Im(t)))){var u=Mn(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&ii(u,!0)||!s)return u;var c=Mn(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var f=Mn(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(f)return f;d=d.parentElement}}}if(n&&l&&ii(t,s))return t;var h=Mn(e,t.previousElementSibling,!0,!0,!0,o,a,s);return h||(r?null:Mn(e,t.parentElement,!0,!1,!1,o,a,s))}function hn(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=l?a_:jd,c=u(t);if(n&&c&&ii(t,s))return t;if(!i&&c&&(o||!(Pi(t)||Im(t)))){var d=hn(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(d)return d}if(t===e)return null;var f=hn(e,t.nextElementSibling,!0,!0,!1,o,a,s,l);return f||(r?null:hn(e,t.parentElement,!1,!1,!0,o,a,s,l))}function jd(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(aA);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function a_(e){return!!e&&jd(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function ii(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"),r&&(n=parseInt(r,10)));var i=e.getAttribute?e.getAttribute(oA):null,o=r!==null&&n>=0,a=!!e&&i!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||i==="true"||o);return t?n!==-1&&a:a}function Pi(e){return!!(e&&e.getAttribute&&e.getAttribute(sA))}function Im(e){return!!(e&&e.getAttribute&&e.getAttribute(lA)==="true")}function pA(e){var t=_n(e),n=t&&t.activeElement;return!!(n&&On(e,n))}function s_(e,t){return nA(e,t)!=="true"}var Ua=void 0;function l_(e){if(e){if(Ua){Ua=e;return}Ua=e;var t=tt(e);t&&t.requestAnimationFrame(function(){Ua&&Ua.focus(),Ua=void 0})}}function mA(e,t){for(var n=e,r=0,i=t;r(e.cacheSize||EA)){var h=tt();!((l=h==null?void 0:h.FabricConfig)===null||l===void 0)&&l.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return u[P1]};return o}function eh(e,t){return t=TA(t),e.has(t)||e.set(t,new Map),e.get(t)}function J9(e,t){if(typeof t=="function"){var n=t.__cachedInputs__;if(n)for(var r=0,i=t.__cachedInputs__;r"u"?null:WeakMap;function _A(){_c++}function dt(e,t,n){if(t===void 0&&(t=100),n===void 0&&(n=!1),!yu)return e;if(!eE){var r=br.getInstance();r&&r.onReset&&br.getInstance().onReset(_A),eE=!0}var i,o=0,a=_c;return function(){for(var l=[],u=0;u0&&o>t)&&(i=tE(),o=0,a=_c),c=i;for(var d=0;d=0||l.indexOf("data-")===0||l.indexOf("aria-")===0;u&&(!n||(n==null?void 0:n.indexOf(l))===-1)&&(i[l]=e[l])}return i}var $A=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function VA(e,t,n){n===void 0&&(n=$A);var r=[],i=function(a){typeof t[a]=="function"&&e[a]===void 0&&(!n||n.indexOf(a)===-1)&&(r.push(a),e[a]=function(){for(var s=[],l=0;l=0&&r.splice(l,1)}}},[t,r,i,o]);return E.useEffect(function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}},[a]),a?E.createElement(ld.Provider,{value:a},e.children):E.createElement(E.Fragment,null,e.children)};function tb(e){var t=null;try{var n=tt();t=n?n.localStorage.getItem(e):null}catch{}return t}var qo,lE="language";function nb(e){if(e===void 0&&(e="sessionStorage"),qo===void 0){var t=_n(),n=e==="localStorage"?tb(lE):e==="sessionStorage"?r_(lE):void 0;n&&(qo=n),qo===void 0&&t&&(qo=t.documentElement.getAttribute("lang")),qo===void 0&&(qo="en")}return qo}function uE(e){for(var t=[],n=1;n-1;e[r]=o?i:T_(e[r]||{},i,n)}else e[r]=i}return n.pop(),e}var cE=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},rb=["TEMPLATE","STYLE","SCRIPT"];function y_(e){var t=_n(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r"u"||e){var n=tt(),r=(t=n==null?void 0:n.navigator)===null||t===void 0?void 0:t.userAgent;nh=!!r&&r.indexOf("Macintosh")!==-1}return!!nh}function ob(e){var t=Ps(function(n){var r=Ps(function(i){return function(o){return n(o,i)}});return function(i,o){return e(i,o?r(o):n)}});return t}var ab=Ps(ob);function tp(e,t){return ab(e)(t)}var sb=["theme","styles"];function Yt(e,t,n,r,i){r=r||{scope:"",fields:void 0};var o=r.scope,a=r.fields,s=a===void 0?sb:a,l=E.forwardRef(function(c,d){var f=E.useRef(),h=PA(s,o),p=h.styles;h.dir;var v=vi(h,["styles","dir"]),_=n?n(c):void 0,g=f.current&&f.current.__cachedInputs__||[],T=c.styles;if(!f.current||p!==g[1]||T!==g[2]){var y=function(C){return Qy(C,t,p,T)};y.__cachedInputs__=[t,p,T],y.__noStyleOverride__=!p&&!T,f.current=y}return E.createElement(e,N({ref:d},v,_,c,{styles:f.current}))});l.displayName="Styled".concat(e.displayName||e.name);var u=i?E.memo(l):l;return l.displayName&&(u.displayName=l.displayName),u}var lb=function(){var e,t=tt();return!((e=t==null?void 0:t.navigator)===null||e===void 0)&&e.userAgent?t.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function Gu(e,t){for(var n=N({},t),r=0,i=Object.keys(e);rr?" (+ "+(hl.length-r)+" more)":"")),ih=void 0,hl=[]},n)))}function hb(e,t,n,r,i){i===void 0&&(i=!1);var o=N({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),a=C_(e,t,o,r);return pb(a,i)}function C_(e,t,n,r,i){var o={},a=e||{},s=a.white,l=a.black,u=a.themePrimary,c=a.themeDark,d=a.themeDarker,f=a.themeDarkAlt,h=a.themeLighter,p=a.neutralLight,v=a.neutralLighter,_=a.neutralDark,g=a.neutralQuaternary,T=a.neutralQuaternaryAlt,y=a.neutralPrimary,C=a.neutralSecondary,k=a.neutralSecondaryAlt,S=a.neutralTertiary,A=a.neutralTertiaryAlt,D=a.neutralLighterAlt,M=a.accent;return s&&(o.bodyBackground=s,o.bodyFrameBackground=s,o.accentButtonText=s,o.buttonBackground=s,o.primaryButtonText=s,o.primaryButtonTextHovered=s,o.primaryButtonTextPressed=s,o.inputBackground=s,o.inputForegroundChecked=s,o.listBackground=s,o.menuBackground=s,o.cardStandoutBackground=s),l&&(o.bodyTextChecked=l,o.buttonTextCheckedHovered=l),u&&(o.link=u,o.primaryButtonBackground=u,o.inputBackgroundChecked=u,o.inputIcon=u,o.inputFocusBorderAlt=u,o.menuIcon=u,o.menuHeader=u,o.accentButtonBackground=u),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),d&&(o.linkHovered=d),f&&(o.primaryButtonBackgroundHovered=f),h&&(o.inputPlaceholderBackgroundChecked=h),p&&(o.bodyBackgroundChecked=p,o.bodyFrameDivider=p,o.bodyDivider=p,o.variantBorder=p,o.buttonBackgroundCheckedHovered=p,o.buttonBackgroundPressed=p,o.listItemBackgroundChecked=p,o.listHeaderBackgroundPressed=p,o.menuItemBackgroundPressed=p,o.menuItemBackgroundChecked=p),v&&(o.bodyBackgroundHovered=v,o.buttonBackgroundHovered=v,o.buttonBackgroundDisabled=v,o.buttonBorderDisabled=v,o.primaryButtonBackgroundDisabled=v,o.disabledBackground=v,o.listItemBackgroundHovered=v,o.listHeaderBackgroundHovered=v,o.menuItemBackgroundHovered=v),g&&(o.primaryButtonTextDisabled=g,o.disabledSubtext=g),T&&(o.listItemBackgroundCheckedHovered=T),S&&(o.disabledBodyText=S,o.variantBorderHovered=(n==null?void 0:n.variantBorderHovered)||S,o.buttonTextDisabled=S,o.inputIconDisabled=S,o.disabledText=S),y&&(o.bodyText=y,o.actionLink=y,o.buttonText=y,o.inputBorderHovered=y,o.inputText=y,o.listText=y,o.menuItemText=y),D&&(o.bodyStandoutBackground=D,o.defaultStateBackground=D),_&&(o.actionLinkHovered=_,o.buttonTextHovered=_,o.buttonTextChecked=_,o.buttonTextPressed=_,o.inputTextHovered=_,o.menuItemTextHovered=_),C&&(o.bodySubtext=C,o.focusBorder=C,o.inputBorder=C,o.smallInputBorder=C,o.inputPlaceholderText=C),k&&(o.buttonBorder=k),A&&(o.disabledBodySubtext=A,o.disabledBorder=A,o.buttonBackgroundChecked=A,o.menuDivider=A),M&&(o.accentButtonBackground=M),t!=null&&t.elevation4&&(o.cardShadow=t.elevation4),!r&&(t!=null&&t.elevation8)?o.cardShadowHovered=t.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),o=N(N({},o),n),o}function pb(e,t){var n="";return t===!0&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}function mb(e,t){var n,r,i;t===void 0&&(t={});var o=uE({},e,t,{semanticColors:C_(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((n=t.palette)===null||n===void 0)&&n.themePrimary&&!(!((r=t.palette)===null||r===void 0)&&r.accent)&&(o.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a"u"?global:window,gE=jl&&jl.CSPSettings&&jl.CSPSettings.nonce,er=sk();function sk(){var e=jl.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=hs(hs({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=hs(hs({},e),{registeredThemableStyles:[]})),jl.__themeState__=e,e}function lk(e,t){er.loadStyles?er.loadStyles(k_(e).styleString,e):fk(e)}function uk(e){er.theme=e,dk()}function ck(e){e===void 0&&(e=3),(e===3||e===2)&&(EE(er.registeredStyles),er.registeredStyles=[]),(e===3||e===1)&&(EE(er.registeredThemableStyles),er.registeredThemableStyles=[])}function EE(e){e.forEach(function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function dk(){if(er.theme){for(var e=[],t=0,n=er.registeredThemableStyles;t0&&(ck(1),lk([].concat.apply([],e)))}}function k_(e){var t=er.theme,n=!1,r=(e||[]).map(function(i){var o=i.theme;if(o){n=!0;var a=t?t[o]:void 0,s=i.defaultValue||"inherit";return t&&!a&&console&&!(o in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(o,'". Falling back to "').concat(s,'".')),a||s}else return i.rawString});return{styleString:r.join(""),themable:n}}function fk(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=k_(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),gE&&n.setAttribute("nonce",gE),n.appendChild(document.createTextNode(i)),er.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};o?er.registeredThemableStyles.push(s):er.registeredStyles.push(s)}}var hr=ju({}),hk=[],ip="theme";function F_(){var e,t,n,r=tt();!((t=r==null?void 0:r.FabricConfig)===null||t===void 0)&&t.legacyTheme?mk(r.FabricConfig.legacyTheme):_r.getSettings([ip]).theme||(!((n=r==null?void 0:r.FabricConfig)===null||n===void 0)&&n.theme&&(hr=ju(r.FabricConfig.theme)),_r.applySettings((e={},e[ip]=hr,e)))}F_();function pk(e){return e===void 0&&(e=!1),e===!0&&(hr=ju({},e)),hr}function mk(e,t){var n;return t===void 0&&(t=!1),hr=ju(e,t),uk(N(N(N(N({},hr.palette),hr.semanticColors),hr.effects),gk(hr))),_r.applySettings((n={},n[ip]=hr,n)),hk.forEach(function(r){try{r(hr)}catch{}}),hr}function gk(e){for(var t={},n=0,r=Object.keys(e.fonts);nt.bottom||e.leftt.right)}function cd(e,t){var n=[];return e.topt.bottom&&n.push(le.bottom),e.leftt.right&&n.push(le.right),n}function rn(e,t){return e[le[t]]}function _E(e,t,n){return e[le[t]]=n,e}function Cu(e,t){var n=Vs(t);return(rn(e,n.positiveEdge)+rn(e,n.negativeEdge))/2}function Vd(e,t){return e>0?t:t*-1}function op(e,t){return Vd(e,rn(t,e))}function Hi(e,t,n){var r=rn(e,n)-rn(t,n);return Vd(n,r)}function Bs(e,t,n,r){r===void 0&&(r=!0);var i=rn(e,t)-n,o=_E(e,t,n);return r&&(o=_E(e,t*-1,rn(e,t*-1)-i)),o}function Su(e,t,n,r){return r===void 0&&(r=0),Bs(e,n,rn(t,n)+Vd(n,r))}function Ek(e,t,n,r){r===void 0&&(r=0);var i=n*-1,o=Vd(i,r);return Bs(e,n*-1,rn(t,n)+o)}function dd(e,t,n){var r=op(n,e);return r>op(n,t)}function vk(e,t){for(var n=cd(e,t),r=0,i=0,o=n;i0&&(o.indexOf(s*-1)>-1?s=s*-1:(l=s,s=o.slice(-1)[0]),a=fd(e,t,{targetEdge:s,alignmentEdge:l},i))}return a=fd(e,t,{targetEdge:c,alignmentEdge:d},i),{elementRectangle:a,targetEdge:c,alignmentEdge:d}}function yk(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=e.elementRectangle,s=i*-1,l=fd(a,t,{targetEdge:o,alignmentEdge:s},n,r);return{elementRectangle:l,targetEdge:o,alignmentEdge:s}}function _k(e,t,n,r,i,o,a){i===void 0&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};!o&&!a&&(u=Tk(e,t,n,r,i));var c=cd(u.elementRectangle,n),d=o?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(u.alignmentEdge*-1)>-1){var f=yk(u,t,i,a);if(Nm(f.elementRectangle,n))return f;u=uh(cd(f.elementRectangle,n),u,n,d)}else u=uh(c,u,n,d);else u=uh(c,u,n,d);return u}function uh(e,t,n,r){for(var i=0,o=e;iMath.abs(Hi(e,n,t*-1))?t*-1:t}function Ck(e,t,n){return n!==void 0&&rn(e,t)===rn(n,t)}function Sk(e,t,n,r,i,o,a,s){var l={},u=Dm(t),c=o?n:n*-1,d=i||Vs(n).positiveEdge;return(!a||Ck(e,Lk(d),r))&&(d=x_(e,d,r)),l[le[c]]=Hi(e,u,c),l[le[d]]=Hi(e,u,d),s&&(l[le[c*-1]]=Hi(e,u,c*-1),l[le[d*-1]]=Hi(e,u,d*-1)),l}function Ak(e){return Math.sqrt(e*e*2)}function bk(e,t,n){if(e===void 0&&(e=vt.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=N({},yE[e]);return gn()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=r.alignmentEdge*-1),t!==void 0?yE[t]:r):r}function kk(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=N_(e.targetEdge,t,n)),e.alignTargetEdge=i,e}function N_(e,t,n){var r=Cu(t,e),i=Cu(n,e),o=Vs(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Fk(e,t,n,r,i,o,a){var s=fd(e,t,r,i,a);return Nm(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:_k(s,t,n,r,i,o,a)}function Ik(e,t,n){var r=e.targetEdge*-1,i=new mi(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},a=x_(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Vs(r).positiveEdge,n),s=Hi(e.elementRectangle,e.targetRectangle,r),l=s>Math.abs(rn(t,r));return o[le[r]]=rn(t,r),o[le[a]]=Hi(t,i,a),{elementPosition:N({},o),closestEdge:N_(e.targetEdge,t,i),targetEdge:r,hideBeak:!l}}function xk(e,t){var n=t.targetRectangle,r=Vs(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Cu(n,t.targetEdge),s=new mi(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new mi(0,e,0,e);return l=Bs(l,t.targetEdge*-1,-e/2),l=I_(l,t.targetEdge*-1,a-op(i,t.elementRectangle)),dd(l,s,i)?dd(l,s,o)||(l=Su(l,s,o)):l=Su(l,s,i),l}function Dm(e){var t=e.getBoundingClientRect();return new mi(t.left,t.right,t.top,t.bottom)}function Nk(e){return new mi(e.left,e.right,e.top,e.bottom)}function Dk(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new mi(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Dm(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new mi(o,s,a,l)}if(!Nm(n,e))for(var u=cd(n,e),c=0,d=u;c=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}function Hk(e,t){return Bk(e,t)}function Ys(){var e=E.useRef();return e.current||(e.current=new $s),E.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function gi(e){var t=E.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function Ku(e){var t=E.useState(e),n=t[0],r=t[1],i=gi(function(){return function(){r(!0)}}),o=gi(function(){return function(){r(!1)}}),a=gi(function(){return function(){r(function(s){return!s})}});return[n,{setTrue:i,setFalse:o,toggle:a}]}function ch(e){var t=E.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return Os(function(){t.current=e},[e]),gi(function(){return function(){for(var n=[],r=0;r0&&u>l&&(s=u-l>1)}i!==s&&o(s)}}),function(){return n.dispose()}}),i}function jk(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==tt()&&setTimeout(function(){var r;(r=t.focus)===null||r===void 0||r.call(t)},0)}function Kk(e,t){var n=e.onRestoreFocus,r=n===void 0?jk:n,i=E.useRef(),o=E.useRef(!1);E.useEffect(function(){return i.current=_n().activeElement,pA(t.current)&&(o.current=!0),function(){var a;r==null||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:((a=_n())===null||a===void 0?void 0:a.hasFocus())||!1}),i.current=void 0}},[]),Au(t,"focus",E.useCallback(function(){o.current=!0},[]),!0),Au(t,"blur",E.useCallback(function(a){t.current&&a.relatedTarget&&!t.current.contains(a.relatedTarget)&&(o.current=!1)},[]),!0)}function Wk(e,t){var n=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;E.useEffect(function(){if(n&&t.current){var r=y_(t.current);return r}},[t,n])}var Mm=E.forwardRef(function(e,t){var n=Gu({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=E.useRef(),i=Wi(r,t);Wk(n,r),Kk(n,r);var o=n.role,a=n.className,s=n.ariaLabel,l=n.ariaLabelledBy,u=n.ariaDescribedBy,c=n.style,d=n.children,f=n.onDismiss,h=Gk(n,r),p=E.useCallback(function(_){switch(_.which){case oe.escape:f&&(f(_),_.preventDefault(),_.stopPropagation());break}},[f]),v=qd();return Au(v,"keydown",p),E.createElement("div",N({ref:i},rt(n,Qi),{className:a,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,onKeyDown:p,style:N({overflowY:h?"scroll":void 0,outline:"none"},c)}),d)});Mm.displayName="Popup";var za,$k="CalloutContentBase",Vk=(za={},za[le.top]=ps.slideUpIn10,za[le.bottom]=ps.slideDownIn10,za[le.left]=ps.slideLeftIn10,za[le.right]=ps.slideRightIn10,za),CE={top:0,left:0},Yk={opacity:0,filter:"opacity(0)",pointerEvents:"none"},qk=["role","aria-roledescription"],M_={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:vt.bottomAutoEdge},Qk=Vt({disableCaching:!0});function Xk(e,t,n){var r=e.bounds,i=e.minPagePadding,o=i===void 0?M_.minPagePadding:i,a=e.target,s=E.useState(!1),l=s[0],u=s[1],c=E.useRef(),d=E.useCallback(function(){if(!c.current||l){var h=typeof r=="function"?n?r(a,n):void 0:r;!h&&n&&(h=Hk(t.current,n),h={top:h.top+o,left:h.left+o,right:h.right-o,bottom:h.bottom-o,width:h.width-o*2,height:h.height-o*2}),c.current=h,l&&u(!1)}return c.current},[r,o,a,t,n,l]),f=Ys();return Au(n,"resize",f.debounce(function(){u(!0)},500,{leading:!0})),d}function Zk(e,t,n){var r,i=e.calloutMaxHeight,o=e.finalHeight,a=e.directionalHint,s=e.directionalHintFixed,l=e.hidden,u=E.useState(),c=u[0],d=u[1],f=(r=n==null?void 0:n.elementPosition)!==null&&r!==void 0?r:{},h=f.top,p=f.bottom;return E.useEffect(function(){var v,_=(v=t())!==null&&v!==void 0?v:{},g=_.top,T=_.bottom;!i&&!l?typeof h=="number"&&T?d(T-h):typeof p=="number"&&typeof g=="number"&&T&&d(T-g-p):d(i||void 0)},[p,i,o,a,s,t,l,n,h]),c}function Jk(e,t,n,r,i){var o=E.useState(),a=o[0],s=o[1],l=E.useRef(0),u=E.useRef(),c=Ys(),d=e.hidden,f=e.target,h=e.finalHeight,p=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return E.useEffect(function(){if(d)s(void 0),l.current=0;else{var g=c.requestAnimationFrame(function(){var T,y;if(t.current&&n){var C=N(N({},e),{target:r.current,bounds:i()}),k=n.cloneNode(!0);k.style.maxHeight=p?""+p:"",k.style.visibility="hidden",(T=n.parentElement)===null||T===void 0||T.appendChild(k);var S=u.current===f?a:void 0,A=h?Ok(C,t.current,k,S):Pk(C,t.current,k,S);(y=n.parentElement)===null||y===void 0||y.removeChild(k),!a&&A||a&&A&&!rF(a,A)&&l.current<5?(l.current++,s(A)):l.current>0&&(l.current=0,v==null||v(a))}},n);return u.current=f,function(){c.cancelAnimationFrame(g),u.current=void 0}}},[d,_,c,n,p,t,r,h,i,v,a,e,f]),a}function eF(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Ys(),a=!!t;E.useEffect(function(){if(!r&&i&&a&&n){var s=o.requestAnimationFrame(function(){return hA(n)},n);return function(){return o.cancelAnimationFrame(s)}}},[r,a,o,n,i])}function tF(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,l=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,f=e.preventDismissOnEvent,h=E.useRef(!1),p=Ys(),v=gi([function(){h.current=!0},function(){h.current=!1}]),_=!!t;return E.useEffect(function(){var g=function(A){_&&!s&&C(A)},T=function(A){!l&&!(f&&f(A))&&(a==null||a(A))},y=function(A){u||C(A)},C=function(A){var D=A.composedPath?A.composedPath():[],M=D.length>0?D[0]:A.target,x=n.current&&!On(n.current,M);if(x&&h.current){h.current=!1;return}if(!r.current&&x||A.target!==i&&x&&(!r.current||"stopPropagation"in r.current||c||M!==r.current&&!On(r.current,M))){if(f&&f(A))return;a==null||a(A)}},k=function(A){d&&(f&&!f(A)||!f&&!u)&&!(i!=null&&i.document.hasFocus())&&A.relatedTarget===null&&(a==null||a(A))},S=new Promise(function(A){p.setTimeout(function(){if(!o&&i){var D=[si(i,"scroll",g,!0),si(i,"resize",T,!0),si(i.document.documentElement,"focus",y,!0),si(i.document.documentElement,"click",y,!0),si(i,"blur",k,!0)];A(function(){D.forEach(function(M){return M()})})}},0)});return function(){S.then(function(A){return A()})}},[o,p,n,r,i,a,d,c,u,l,s,_,f]),v}var P_=E.memo(E.forwardRef(function(e,t){var n=Gu(M_,e),r=n.styles,i=n.style,o=n.ariaLabel,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,u=n.isBeakVisible,c=n.children,d=n.beakWidth,f=n.calloutWidth,h=n.calloutMaxWidth,p=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,g=n.hideOverflow,T=g===void 0?!!_:g,y=n.backgroundColor,C=n.calloutMaxHeight,k=n.onScroll,S=n.shouldRestoreFocus,A=S===void 0?!0:S,D=n.target,M=n.hidden,x=n.onLayerMounted,P=n.popupProps,O=E.useRef(null),q=E.useState(null),Z=q[0],U=q[1],j=E.useCallback(function(ot){U(ot)},[]),te=Wi(O,t),R=w_(n.target,{current:Z}),z=R[0],G=R[1],F=Xk(n,z,G),b=Jk(n,O,Z,z,F),Ve=Zk(n,F,b),J=tF(n,b,O,z,G),fe=J[0],ee=J[1],he=(b==null?void 0:b.elementPosition.top)&&(b==null?void 0:b.elementPosition.bottom),ye=N(N({},b==null?void 0:b.elementPosition),{maxHeight:Ve});if(he&&(ye.bottom=void 0),eF(n,b,Z),E.useEffect(function(){M||x==null||x()},[M]),!G)return null;var Ye=T,ue=u&&!!D,bt=Qk(r,{theme:n.theme,className:l,overflowYHidden:Ye,calloutWidth:f,positions:b,beakWidth:d,backgroundColor:y,calloutMaxWidth:h,calloutMinWidth:p,doNotLayer:v}),Ht=N(N({maxHeight:C||"100%"},i),Ye&&{overflowY:"hidden"}),qt=n.hidden?{visibility:"hidden"}:void 0;return E.createElement("div",{ref:te,className:bt.container,style:qt},E.createElement("div",N({},rt(n,Qi,qk),{className:Tn(bt.root,b&&b.targetEdge&&Vk[b.targetEdge]),style:b?N({},ye):Yk,tabIndex:-1,ref:j}),ue&&E.createElement("div",{className:bt.beak,style:nF(b)}),ue&&E.createElement("div",{className:bt.beakCurtain}),E.createElement(Mm,N({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:a,ariaLabel:o,ariaLabelledBy:s,className:bt.calloutMain,onDismiss:n.onDismiss,onMouseDown:fe,onMouseUp:ee,onRestoreFocus:n.onRestoreFocus,onScroll:k,shouldRestoreFocus:A,style:Ht},P),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:Sm(e,t)});function nF(e){var t,n,r=N(N({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((n=e==null?void 0:e.beakPosition)===null||n===void 0)&&n.hideBeak?"none":void 0});return!r.top&&!r.bottom&&!r.left&&!r.right&&(r.left=CE.left,r.top=CE.top),r}function rF(e,t){return SE(e.elementPosition,t.elementPosition)&&SE(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function SE(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],i=t[n];if(r!==void 0&&i!==void 0){if(r.toFixed(2)!==i.toFixed(2))return!1}else return!1}return!0}P_.displayName=$k;function iF(e){return{height:e,width:e}}var oF={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},aF=function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=on(oF,n),f=n.semanticColors,h=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Ls.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[ie]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},ok(),r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:f.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},iF(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},sF=Yt(P_,aF,void 0,{scope:"CalloutContent"}),O_=E.createContext(void 0),lF=function(){return function(){}};O_.Provider;function uF(){var e;return(e=E.useContext(O_))!==null&&e!==void 0?e:lF}var cF=Vt(),dF=dt(function(e,t){return ju(N(N({},e),{rtl:t}))}),fF=function(e){var t=e.theme,n=e.dir,r=gn(t)?"rtl":"ltr",i=gn()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}},L_=E.forwardRef(function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,o=e.applyThemeToBody,a=e.styles,s=cF(a,{theme:r,applyTheme:i,className:n}),l=E.useRef(null);return pF(o,s,l),E.createElement(E.Fragment,null,hF(e,s,l,t))});L_.displayName="FabricBase";function hF(e,t,n,r){var i=t.root,o=e.as,a=o===void 0?"div":o,s=e.dir,l=e.theme,u=rt(e,Qi,["dir"]),c=fF(e),d=c.rootDir,f=c.needsTheme,h=E.createElement(v_,{providerRef:n},E.createElement(a,N({dir:d},u,{className:i,ref:Wi(n,r)})));return f&&(h=E.createElement(MA,{settings:{theme:dF(l,s==="rtl")}},h)),h}function pF(e,t,n){var r=t.bodyThemed;return E.useEffect(function(){if(e){var i=_n(n.current);if(i)return i.body.classList.add(r),function(){i.body.classList.remove(r)}}},[r,e,n]),n}var dh={fontFamily:"inherit"},mF={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},gF=function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme,o=on(mF,i);return{root:[o.root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":dh,"& input":dh,"& textarea":dh},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}},EF=Yt(L_,gF,void 0,{scope:"Fabric"}),Kl={},Pm={},B_="fluent-default-layer-host",vF="#"+B_;function TF(e,t){Kl[e]||(Kl[e]=[]),Kl[e].push(t);var n=Pm[e];if(n)for(var r=0,i=n;r=0&&(n.splice(r,1),n.length===0&&delete Kl[e])}var i=Pm[e];if(i)for(var o=0,a=i;o0&&t.current.naturalHeight>0||t.current.complete&&RF.test(o):!1;d&&l(mn.loaded)}}),E.useEffect(function(){n==null||n(s)},[s]);var u=E.useCallback(function(d){r==null||r(d),o&&l(mn.loaded)},[o,r]),c=E.useCallback(function(d){i==null||i(d),l(mn.error)},[i]);return[s,u,c]}var G_=E.forwardRef(function(e,t){var n=E.useRef(),r=E.useRef(),i=PF(e,r),o=i[0],a=i[1],s=i[2],l=rt(e,WA,["width","height"]),u=e.src,c=e.alt,d=e.width,f=e.height,h=e.shouldFadeIn,p=h===void 0?!0:h,v=e.shouldStartVisible,_=e.className,g=e.imageFit,T=e.role,y=e.maximizeFrame,C=e.styles,k=e.theme,S=e.loading,A=OF(e,o,r,n),D=wF(C,{theme:k,className:_,width:d,height:f,maximizeFrame:y,shouldFadeIn:p,shouldStartVisible:v,isLoaded:o===mn.loaded||o===mn.notLoaded&&e.shouldStartVisible,isLandscape:A===bu.landscape,isCenter:g===Pn.center,isCenterContain:g===Pn.centerContain,isCenterCover:g===Pn.centerCover,isContain:g===Pn.contain,isCover:g===Pn.cover,isNone:g===Pn.none,isError:o===mn.error,isNotImageFit:g===void 0});return E.createElement("div",{className:D.root,style:{width:d,height:f},ref:n},E.createElement("img",N({},l,{onLoad:a,onError:s,key:MF+e.src||"",className:D.image,ref:Wi(r,t),src:u,alt:c,role:T,loading:S})))});G_.displayName="ImageBase";function OF(e,t,n,r){var i=E.useRef(t),o=E.useRef();return(o===void 0||i.current===mn.notLoaded&&t===mn.loaded)&&(o.current=LF(e,t,n,r)),i.current=t,o.current}function LF(e,t,n,r){var i=e.imageFit,o=e.width,a=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===mn.loaded&&(i===Pn.cover||i===Pn.contain||i===Pn.centerContain||i===Pn.centerCover)&&n.current&&r.current){var s=void 0;typeof o=="number"&&typeof a=="number"&&i!==Pn.centerContain&&i!==Pn.centerCover?s=o/a:s=r.current.clientWidth/r.current.clientHeight;var l=n.current.naturalWidth/n.current.naturalHeight;if(l>s)return bu.landscape}return bu.portrait}var BF={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},HF=function(e){var t=e.className,n=e.width,r=e.height,i=e.maximizeFrame,o=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,f=e.isCenterContain,h=e.isCenterCover,p=e.isNone,v=e.isError,_=e.isNotImageFit,g=e.theme,T=on(BF,g),y={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=tt(),k=C!==void 0&&C.navigator.msMaxTouchPoints===void 0,S=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[T.root,g.fonts.medium,{overflow:"hidden"},i&&[T.rootMaximizeFrame,{height:"100%",width:"100%"}],o&&a&&!s&&ps.fadeIn400,(u||c||d||f||h)&&{position:"relative"},t],image:[T.image,{display:"block",opacity:0},o&&["is-loaded",{opacity:1}],u&&[T.imageCenter,y],c&&[T.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&S,!k&&y],d&&[T.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&S,!k&&y],f&&[T.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},y],h&&[T.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},y],p&&[T.imageNone,{width:"auto",height:"auto"}],_&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&T.imageLandscape,!l&&T.imagePortrait,!o&&"is-notLoaded",a&&"is-fadeIn",v&&"is-error"]}},Om=Yt(G_,HF,void 0,{scope:"Image"},!0);Om.displayName="Image";var va=Uu({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),j_="ms-Icon",UF=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,o=e.styles;return{root:[r&&va.placeholder,va.root,i&&va.image,n,t,o&&o.root,o&&o.imageContainer]}},K_=dt(function(e){var t=db(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null},void 0,!0),pd=function(e){var t=e.iconName,n=e.className,r=e.style,i=r===void 0?{}:r,o=K_(t)||{},a=o.iconClassName,s=o.children,l=o.fontFamily,u=o.mergeImageProps,c=rt(e,ft),d=e["aria-label"]||e.title,f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},h=s;return u&&typeof s=="object"&&typeof s.props=="object"&&d&&(h=E.cloneElement(s,{alt:d})),E.createElement("i",N({"data-icon-name":t},f,c,u?{title:void 0,"aria-label":void 0}:{},{className:Tn(j_,va.root,a,!t&&va.placeholder,n),style:N({fontFamily:l},i)}),h)};dt(function(e,t,n){return pd({iconName:e,className:t,"aria-label":n})});var zF=Vt({cacheSize:100}),GF=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._onImageLoadingStateChange=function(i){r.props.imageProps&&r.props.imageProps.onLoadingStateChange&&r.props.imageProps.onLoadingStateChange(i),i===mn.error&&r.setState({imageLoadError:!0})},r.state={imageLoadError:!1},r}return t.prototype.render=function(){var n=this.props,r=n.children,i=n.className,o=n.styles,a=n.iconName,s=n.imageErrorAs,l=n.theme,u=typeof a=="string"&&a.length===0,c=!!this.props.imageProps||this.props.iconType===hd.image||this.props.iconType===hd.Image,d=K_(a)||{},f=d.iconClassName,h=d.children,p=d.mergeImageProps,v=zF(o,{theme:l,className:i,iconClassName:f,isImage:c,isPlaceholder:u}),_=c?"span":"i",g=rt(this.props,ft,["aria-label"]),T=this.state.imageLoadError,y=N(N({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=T&&s||Om,k=this.props["aria-label"]||this.props.ariaLabel,S=y.alt||k||this.props.title,A=!!(S||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"]),D=A?{role:c||p?void 0:"img","aria-label":c||p?void 0:S}:{"aria-hidden":!0},M=h;return p&&h&&typeof h=="object"&&S&&(M=E.cloneElement(h,{alt:S})),E.createElement(_,N({"data-icon-name":a},D,g,p?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?E.createElement(C,N({},y)):r||M)},t}(E.Component),$i=Yt(GF,UF,void 0,{scope:"Icon"},!0);$i.displayName="Icon";var jF=function(e){var t=e.className,n=e.imageProps,r=rt(e,ft,["aria-label","aria-labelledby","title","aria-describedby"]),i=n.alt||e["aria-label"],o=i||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,a={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},s=o?{}:{"aria-hidden":!0};return E.createElement("div",N({},s,r,{className:Tn(j_,va.root,va.image,t)}),E.createElement(Om,N({},a,n,{alt:o?i:""})))},ap={none:0,all:1,inputOnly:2},dn;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(dn||(dn={}));var B1="data-is-focusable",KF="data-disable-click-on-enter",fh="data-focuszone-id",Jr="tabindex",hh="data-no-vertical-wrap",ph="data-no-horizontal-wrap",mh=999999999,pl=-999999999,gh,WF="ms-FocusZone";function $F(e,t){var n;typeof MouseEvent=="function"?n=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(n=document.createEvent("MouseEvents"),n.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(n)}function VF(){return gh||(gh=ai({selectors:{":focus":{outline:"none"}}},WF)),gh}var ml={},H1=new Set,YF=["text","number","password","email","tel","url","search","textarea"],Si=!1,qF=function(e){ze(t,e);function t(n){var r,i,o,a,s=e.call(this,n)||this;s._root=E.createRef(),s._mergedRef=__(),s._onFocus=function(u){if(!s._portalContainsElement(u.target)){var c=s.props,d=c.onActiveElementChanged,f=c.doNotAllowFocusEventToPropagate,h=c.stopFocusPropagation,p=c.onFocusNotification,v=c.onFocus,_=c.shouldFocusInnerElementWhenReceivedFocus,g=c.defaultTabbableElement,T=s._isImmediateDescendantOfZone(u.target),y;if(T)y=u.target;else for(var C=u.target;C&&C!==s._root.current;){if(ii(C)&&s._isImmediateDescendantOfZone(C)){y=C;break}C=Lr(C,Si)}if(_&&u.target===s._root.current){var k=g&&typeof g=="function"&&s._root.current&&g(s._root.current);k&&ii(k)?(y=k,k.focus()):(s.focus(!0),s._activeElement&&(y=null))}var S=!s._activeElement;y&&y!==s._activeElement&&((T||S)&&s._setFocusAlignment(y,!0,!0),s._activeElement=y,S&&s._updateTabIndexes()),d&&d(s._activeElement,u),(h||f)&&u.stopPropagation(),v?v(u):p&&p()}},s._onBlur=function(){s._setParkedFocus(!1)},s._onMouseDown=function(u){if(!s._portalContainsElement(u.target)){var c=s.props.disabled;if(!c){for(var d=u.target,f=[];d&&d!==s._root.current;)f.push(d),d=Lr(d,Si);for(;f.length&&(d=f.pop(),d&&ii(d)&&s._setActiveElement(d,!0),!Pi(d)););}}},s._onKeyDown=function(u,c){if(!s._portalContainsElement(u.target)){var d=s.props,f=d.direction,h=d.disabled,p=d.isInnerZoneKeystroke,v=d.pagingSupportDisabled,_=d.shouldEnterInnerZone;if(!h&&(s.props.onKeyDown&&s.props.onKeyDown(u),!u.isDefaultPrevented()&&!(s._getDocument().activeElement===s._root.current&&s._isInnerZone))){if((_&&_(u)||p&&p(u))&&s._isImmediateDescendantOfZone(u.target)){var g=s._getFirstInnerZone();if(g){if(!g.focus(!0))return}else if(Im(u.target)){if(!s.focusElement(hn(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case oe.space:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(u.target,u))break;return;case oe.left:if(f!==dn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusLeft(c)))break;return;case oe.right:if(f!==dn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusRight(c)))break;return;case oe.up:if(f!==dn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusUp()))break;return;case oe.down:if(f!==dn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusDown()))break;return;case oe.pageDown:if(!v&&s._moveFocusPaging(!0))break;return;case oe.pageUp:if(!v&&s._moveFocusPaging(!1))break;return;case oe.tab:if(s.props.allowTabKey||s.props.handleTabKey===ap.all||s.props.handleTabKey===ap.inputOnly&&s._isElementInput(u.target)){var T=!1;if(s._processingTabKey=!0,f===dn.vertical||!s._shouldWrapFocus(s._activeElement,ph))T=u.shiftKey?s._moveFocusUp():s._moveFocusDown();else{var y=gn(c)?!u.shiftKey:u.shiftKey;T=y?s._moveFocusLeft(c):s._moveFocusRight(c)}if(s._processingTabKey=!1,T)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case oe.home:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!1))return!1;var C=s._root.current&&s._root.current.firstChild;if(s._root.current&&C&&s.focusElement(hn(s._root.current,C,!0)))break;return;case oe.end:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!0))return!1;var k=s._root.current&&s._root.current.lastChild;if(s._root.current&&s.focusElement(Mn(s._root.current,k,!0,!0,!0)))break;return;case oe.enter:if(s._shouldRaiseClicksOnEnter&&s._tryInvokeClickForFocusable(u.target,u))break;return;default:return}}u.preventDefault(),u.stopPropagation()}}},s._getHorizontalDistanceFromCenter=function(u,c,d){var f=s._focusAlignment.left||s._focusAlignment.x||0,h=Math.floor(d.top),p=Math.floor(c.bottom),v=Math.floor(d.bottom),_=Math.floor(c.top),g=u&&h>p,T=!u&&v<_;return g||T?f>=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):s._shouldWrapFocus(s._activeElement,hh)?mh:pl},Xi(s),s._id=En("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var l=(i=(r=n.shouldRaiseClicks)!==null&&r!==void 0?r:t.defaultProps.shouldRaiseClicks)!==null&&i!==void 0?i:!0;return s._shouldRaiseClicksOnEnter=(o=n.shouldRaiseClicksOnEnter)!==null&&o!==void 0?o:l,s._shouldRaiseClicksOnSpace=(a=n.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:l,s}return t.getOuterZones=function(){return H1.size},t._onKeyDownCapture=function(n){n.which===oe.tab&&H1.forEach(function(r){return r._updateTabIndexes()})},t.prototype.componentDidMount=function(){var n=this._root.current;if(ml[this._id]=this,n){for(var r=Lr(n,Si);r&&r!==this._getDocument().body&&r.nodeType===1;){if(Pi(r)){this._isInnerZone=!0;break}r=Lr(r,Si)}this._isInnerZone||(H1.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var n=this._root.current,r=this._getDocument();if((this._activeElement&&!On(this._root.current,this._activeElement,Si)||this._defaultFocusElement&&!On(this._root.current,this._defaultFocusElement,Si))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&r&&this._lastIndexPath&&(r.activeElement===r.body||r.activeElement===null||r.activeElement===n)){var i=mA(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete ml[this._id],this._isInnerZone||(H1.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var n=this,r=this.props,i=r.as,o=r.elementType,a=r.rootProps,s=r.ariaDescribedBy,l=r.ariaLabelledBy,u=r.className,c=rt(this.props,ft),d=i||o||"div";this._evaluateFocusBeforeRender();var f=pk();return E.createElement(d,N({"aria-labelledby":l,"aria-describedby":s},c,a,{className:Tn(VF(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(h){return n._onKeyDown(h,f)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!1),this._root.current)if(!n&&this._root.current.getAttribute(B1)==="true"&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var o=ml[i.getAttribute(fh)];return!!o&&o.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&On(this._root.current,this._activeElement)&&ii(this._activeElement)&&(!r||a_(this._activeElement)))return this._activeElement.focus(),!0;var a=this._root.current.firstChild;return this.focusElement(hn(this._root.current,a,!0,void 0,void 0,void 0,void 0,void 0,r))}return!1},t.prototype.focusLast=function(){if(this._root.current){var n=this._root.current&&this._root.current.lastChild;return this.focusElement(Mn(this._root.current,n,!0,!0,!0))}return!1},t.prototype.focusElement=function(n,r){var i=this.props,o=i.onBeforeFocus,a=i.shouldReceiveFocus;return a&&!a(n)||o&&!o(n)?!1:n?(this._setActiveElement(n,r),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(n){this._focusAlignment=n},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var n=this._root.current,r=this._getDocument();if(r){var i=r.activeElement;if(i!==n){var o=On(n,i,!1);this._lastIndexPath=o?gA(n,i):void 0}}},t.prototype._setParkedFocus=function(n){var r=this._root.current;r&&this._isParked!==n&&(this._isParked=n,n?(this.props.allowFocusRoot||(this._parkedTabIndex=r.getAttribute("tabindex"),r.setAttribute("tabindex","-1")),r.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(r.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):r.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(n,r){var i=this._activeElement;this._activeElement=n,i&&(Pi(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&((!this._focusAlignment||r)&&this._setFocusAlignment(n,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(n){this.props.preventDefaultWhenHandled&&n.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(n,r){var i=n;if(i===this._root.current)return!1;do{if(i.tagName==="BUTTON"||i.tagName==="A"||i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(i)&&i.getAttribute(B1)==="true"&&i.getAttribute(KF)!=="true")return $F(i,r),!0;i=Lr(i,Si)}while(i!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(Pi(n))return ml[n.getAttribute(fh)];for(var r=n.firstElementChild;r;){if(Pi(r))return ml[r.getAttribute(fh)];var i=this._getFirstInnerZone(r);if(i)return i;r=r.nextElementSibling}return null},t.prototype._moveFocus=function(n,r,i,o){o===void 0&&(o=!0);var a=this._activeElement,s=-1,l=void 0,u=!1,c=this.props.direction===dn.bidirectional;if(!a||!this._root.current||this._isElementInput(a)&&!this._shouldInputLoseFocus(a,n))return!1;var d=c?a.getBoundingClientRect():null;do if(a=n?hn(this._root.current,a):Mn(this._root.current,a),c){if(a){var f=a.getBoundingClientRect(),h=r(d,f);if(h===-1&&s===-1){l=a;break}if(h>-1&&(s===-1||h=0&&h<0)break}}else{l=a;break}while(a);if(l&&l!==this._activeElement)u=!0,this.focusElement(l);else if(this.props.isCircularNavigation&&o)return n?this.focusElement(hn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Mn(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(o,a){var s=-1,l=Math.floor(a.top),u=Math.floor(o.bottom);return l=u||l===r)&&(r=l,i>=a.left&&i<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-i)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(o,a){var s=-1,l=Math.floor(a.bottom),u=Math.floor(a.top),c=Math.floor(o.top);return l>c?n._shouldWrapFocus(n._activeElement,hh)?mh:pl:((r===-1&&l<=c||u===r)&&(r=u,i>=a.left&&i<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-i)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(n){var r=this,i=this._shouldWrapFocus(this._activeElement,ph);return this._moveFocus(gn(n),function(o,a){var s=-1,l;return gn(n)?l=parseFloat(a.top.toFixed(3))parseFloat(o.top.toFixed(3)),l&&a.right<=o.right&&r.props.direction!==dn.vertical?s=o.right-a.right:i||(s=pl),s},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(n){var r=this,i=this._shouldWrapFocus(this._activeElement,ph);return this._moveFocus(!gn(n),function(o,a){var s=-1,l;return gn(n)?l=parseFloat(a.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):l=parseFloat(a.top.toFixed(3))=o.left&&r.props.direction!==dn.vertical?s=a.left-o.left:i||(s=pl),s},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(n,r){r===void 0&&(r=!0);var i=this._activeElement;if(!i||!this._root.current||this._isElementInput(i)&&!this._shouldInputLoseFocus(i,n))return!1;var o=Am(i);if(!o)return!1;var a=-1,s=void 0,l=-1,u=-1,c=o.clientHeight,d=i.getBoundingClientRect();do if(i=n?hn(this._root.current,i):Mn(this._root.current,i),i){var f=i.getBoundingClientRect(),h=Math.floor(f.top),p=Math.floor(d.bottom),v=Math.floor(f.bottom),_=Math.floor(d.top),g=this._getHorizontalDistanceFromCenter(n,d,f),T=n&&h>p+c,y=!n&&v<_-c;if(T||y)break;g>-1&&(n&&h>l?(l=h,a=g,s=i):!n&&v-1){var i=n.selectionStart,o=n.selectionEnd,a=i!==o,s=n.value,l=n.readOnly;if(a||i>0&&!r&&!l||i!==s.length&&r&&!l||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(n)))return!1}return!0},t.prototype._shouldWrapFocus=function(n,r){return this.props.checkForNoWrap?s_(n,r):!0},t.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&o_(n,this._root.current)},t.prototype._getDocument=function(){return _n(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:dn.bidirectional,shouldRaiseClicks:!0},t}(E.Component),Dn;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Dn||(Dn={}));function ku(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function Vi(e){return!!(e.subMenuProps||e.items)}function ui(e){return!!(e.isDisabled||e.disabled)}function W_(e){var t=ku(e),n=t!==null;return n?"menuitemcheckbox":"menuitem"}var AE=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return E.createElement($i,N({},r,{className:n.icon}))},QF=function(e){var t=e.item,n=e.hasIcons;return n?t.onRenderIcon?t.onRenderIcon(e,AE):AE(e):null},XF=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=ku(n);if(t){var o=function(a){return t(n,a)};return E.createElement($i,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:o})}return null},ZF=function(e){var t=e.item,n=e.classNames;return t.text||t.name?E.createElement("span",{className:n.label},t.text||t.name):null},JF=function(e){var t=e.item,n=e.classNames;return t.secondaryText?E.createElement("span",{className:n.secondaryText},t.secondaryText):null},eI=function(e){var t=e.item,n=e.classNames,r=e.theme;return Vi(t)?E.createElement($i,N({iconName:gn(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},tI=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r.openSubMenu=function(){var i=r.props,o=i.item,a=i.openSubMenu,s=i.getSubmenuTarget;if(s){var l=s();Vi(o)&&a&&l&&a(o,l)}},r.dismissSubMenu=function(){var i=r.props,o=i.item,a=i.dismissSubMenu;Vi(o)&&a&&a()},r.dismissMenu=function(i){var o=r.props.dismissMenu;o&&o(void 0,i)},Xi(r),r}return t.prototype.render=function(){var n=this.props,r=n.item,i=n.classNames,o=r.onRenderContent||this._renderLayout;return E.createElement("div",{className:r.split?i.linkContentMenu:i.linkContent},o(this.props,{renderCheckMarkIcon:XF,renderItemIcon:QF,renderItemName:ZF,renderSecondaryText:JF,renderSubMenuIcon:eI}))},t.prototype._renderLayout=function(n,r){return E.createElement(E.Fragment,null,r.renderCheckMarkIcon(n),r.renderItemIcon(n),r.renderItemName(n),r.renderSecondaryText(n),r.renderSubMenuIcon(n))},t}(E.Component),nI=dt(function(e){return Uu({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),To=36,bE=b_(0,A_),rI=dt(function(e){var t,n,r,i,o,a=e.semanticColors,s=e.fonts,l=e.palette,u=a.menuItemBackgroundHovered,c=a.menuItemTextHovered,d=a.menuItemBackgroundPressed,f=a.bodyDivider,h={item:[s.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Uo(e),s.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:To,lineHeight:To,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[ie]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:c,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:d,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:d,color:a.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(r={},r[ie]={color:"inherit"},r)},n[ie]=N({},tn()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:To,fontSize:Hr.medium,width:Hr.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[bE]={fontSize:Hr.large,width:Hr.large},i)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:To,lineHeight:To,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Hr.small,selectors:(o={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},o[bE]={fontSize:Hr.medium},o)},splitButtonFlexContainer:[Uo(e),{display:"flex",height:To,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Ti(h)}),kE="28px",iI=b_(0,A_),oI=dt(function(e){var t;return Uu(nI(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[iI]={right:32},t)},divider:{height:16,width:1}})}),aI={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},sI=dt(function(e,t,n,r,i,o,a,s,l,u,c,d){var f,h,p,v,_=rI(e),g=on(aI,e);return Uu({item:[g.item,_.item,a],divider:[g.divider,_.divider,s],root:[g.root,_.root,r&&[g.isChecked,_.rootChecked],i&&_.anchorLink,n&&[g.isExpanded,_.rootExpanded],t&&[g.isDisabled,_.rootDisabled],!t&&!n&&[{selectors:(f={":hover":_.rootHovered,":active":_.rootPressed},f["."+cn+" &:focus, ."+cn+" &:focus:hover"]=_.rootFocused,f["."+cn+" &:hover"]={background:"inherit;"},f)}],d],splitPrimary:[_.root,{width:"calc(100% - "+kE+")"},r&&["is-checked",_.rootChecked],(t||c)&&["is-disabled",_.rootDisabled],!(t||c)&&!r&&[{selectors:(h={":hover":_.rootHovered},h[":hover ~ ."+g.splitMenu]=_.rootHovered,h[":active"]=_.rootPressed,h["."+cn+" &:focus, ."+cn+" &:focus:hover"]=_.rootFocused,h["."+cn+" &:hover"]={background:"inherit;"},h)}]],splitMenu:[g.splitMenu,_.root,{flexBasis:"0",padding:"0 8px",minWidth:kE},n&&["is-expanded",_.rootExpanded],t&&["is-disabled",_.rootDisabled],!t&&!n&&[{selectors:(p={":hover":_.rootHovered,":active":_.rootPressed},p["."+cn+" &:focus, ."+cn+" &:focus:hover"]=_.rootFocused,p["."+cn+" &:hover"]={background:"inherit;"},p)}]],anchorLink:_.anchorLink,linkContent:[g.linkContent,_.linkContent],linkContentMenu:[g.linkContentMenu,_.linkContent,{justifyContent:"center"}],icon:[g.icon,o&&_.iconColor,_.icon,l,t&&[g.isDisabled,_.iconDisabled]],iconColor:_.iconColor,checkmarkIcon:[g.checkmarkIcon,o&&_.checkmarkIcon,_.icon,l],subMenuIcon:[g.subMenuIcon,_.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[_.iconDisabled]],label:[g.label,_.label],secondaryText:[g.secondaryText,_.secondaryText],splitContainer:[_.splitButtonFlexContainer,!t&&!r&&[{selectors:(v={},v["."+cn+" &:focus, ."+cn+" &:focus:hover"]=_.rootFocused,v)}]],screenReaderText:[g.screenReaderText,_.screenReaderText,xm,{visibility:"hidden"}]})}),$_=function(e){var t=e.theme,n=e.disabled,r=e.expanded,i=e.checked,o=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,f=e.className;return sI(t,n,r,i,o,a,s,l,u,c,d,f)},Fu=Yt(tI,$_,void 0,{scope:"ContextualMenuItem"}),Lm=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._onItemMouseEnter=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,i.currentTarget)},r._onItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,i.currentTarget)},r._onItemMouseLeave=function(i){var o=r.props,a=o.item,s=o.onItemMouseLeave;s&&s(a,i)},r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;s&&s(a,i)},r._onItemMouseMove=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,i.currentTarget)},r._getSubmenuTarget=function(){},Xi(r),r}return t.prototype.shouldComponentUpdate=function(n){return!Sm(n,this.props)},t}(E.Component),lI="ktp",FE="-",uI="data-ktp-target",cI="data-ktp-execute-target",dI="ktp-layer-id",ni;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(ni||(ni={}));var fI=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,n){n===void 0&&(n=!1);var r=t;n||(r=this.addParentOverflow(t),this.sequenceMapping[r.keySequences.toString()]=r);var i=this._getUniqueKtp(r);if(n?this.persistedKeytips[i.uniqueID]=i:this.keytips[i.uniqueID]=i,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=n?ni.PERSISTED_KEYTIP_ADDED:ni.KEYTIP_ADDED;Er.raise(this,o,{keytip:r,uniqueID:i.uniqueID})}return i.uniqueID},e.prototype.update=function(t,n){var r=this.addParentOverflow(t),i=this._getUniqueKtp(r,n),o=this.keytips[n];o&&(i.keytip.visible=o.keytip.visible,this.keytips[n]=i,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[i.keytip.keySequences.toString()]=i.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Er.raise(this,ni.KEYTIP_UPDATED,{keytip:i.keytip,uniqueID:i.uniqueID}))},e.prototype.unregister=function(t,n,r){r===void 0&&(r=!1),r?delete this.persistedKeytips[n]:delete this.keytips[n],!r&&delete this.sequenceMapping[t.keySequences.toString()];var i=r?ni.PERSISTED_KEYTIP_REMOVED:ni.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Er.raise(this,i,{keytip:t,uniqueID:n})},e.prototype.enterKeytipMode=function(){Er.raise(this,ni.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Er.raise(this,ni.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(n){return t.keytips[n].keytip})},e.prototype.addParentOverflow=function(t){var n=Kr([],t.keySequences);if(n.pop(),n.length!==0){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return N(N({},t),{overflowSetSequence:r.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,n){Er.raise(this,ni.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},e.prototype._getUniqueKtp=function(t,n){return n===void 0&&(n=En()),{keytip:N({},t),uniqueID:n}},e._instance=new e,e}();function V_(e){return e.reduce(function(t,n){return t+FE+n.split("").join(FE)},lI)}function hI(e,t){var n=t.length,r=Kr([],t).pop(),i=Kr([],e);return Q7(i,n-1,r)}function pI(e){var t=" "+dI;return e.length?t+" "+V_(e):t}function mI(e){var t=E.useRef(),n=e.keytipProps?N({disabled:e.disabled},e.keytipProps):void 0,r=gi(fI.getInstance()),i=wm(e);Os(function(){t.current&&n&&((i==null?void 0:i.keytipProps)!==e.keytipProps||(i==null?void 0:i.disabled)!==e.disabled)&&r.update(n,t.current)}),Os(function(){return n&&(t.current=r.register(n)),function(){n&&r.unregister(n,t.current)}},[]);var o={ariaDescribedBy:void 0,keytipId:void 0};return n&&(o=gI(r,n,e.ariaDescribedBy)),o}function gI(e,t,n){var r=e.addParentOverflow(t),i=zu(n,pI(r.keySequences)),o=Kr([],r.keySequences);r.overflowSetSequence&&(o=hI(o,r.overflowSetSequence));var a=V_(o);return{ariaDescribedBy:i,keytipId:a}}var Iu=function(e){var t,n=e.children,r=vi(e,["children"]),i=mI(r),o=i.keytipId,a=i.ariaDescribedBy;return n((t={},t[uI]=o,t[cI]=o,t["aria-describedby"]=a,t))},EI=function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._anchor=E.createRef(),n._getMemoizedMenuButtonKeytipProps=dt(function(r){return N(N({},r),{hasMenu:!0})}),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(r){var i=n.props,o=i.item,a=i.onItemClick;a&&a(o,r)},n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Fu:d,h=r.expandedMenuItemKey,p=r.onItemClick,v=r.openSubMenu,_=r.dismissSubMenu,g=r.dismissMenu,T=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(T=T||"nofollow noopener noreferrer");var y=Vi(i),C=rt(i,d_),k=ui(i),S=i.itemProps,A=i.ariaDescription,D=i.keytipProps;D&&y&&(D=this._getMemoizedMenuButtonKeytipProps(D)),A&&(this._ariaDescriptionId=En());var M=zu(i.ariaDescribedBy,A?this._ariaDescriptionId:void 0,C["aria-describedby"]),x={"aria-describedby":M};return E.createElement("div",null,E.createElement(Iu,{keytipProps:i.keytipProps,ariaDescribedBy:M,disabled:k},function(P){return E.createElement("a",N({},x,C,P,{ref:n._anchor,href:i.href,target:i.target,rel:T,className:o.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?i.key===h:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":ui(i),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:y?n._onItemKeyDown:void 0}),E.createElement(f,N({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&p?p:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:_,dismissMenu:g,getSubmenuTarget:n._getSubmenuTarget},S)),n._renderAriaDescription(A,o.screenReaderText))}))},t}(Lm),vI=function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._btn=E.createRef(),n._getMemoizedMenuButtonKeytipProps=dt(function(r){return N(N({},r),{hasMenu:!0})}),n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Fu:d,h=r.expandedMenuItemKey,p=r.onItemMouseDown,v=r.onItemClick,_=r.openSubMenu,g=r.dismissSubMenu,T=r.dismissMenu,y=ku(i),C=y!==null,k=W_(i),S=Vi(i),A=i.itemProps,D=i.ariaLabel,M=i.ariaDescription,x=rt(i,ba);delete x.disabled;var P=i.role||k;M&&(this._ariaDescriptionId=En());var O=zu(i.ariaDescribedBy,M?this._ariaDescriptionId:void 0,x["aria-describedby"]),q={className:o.root,onClick:this._onItemClick,onKeyDown:S?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(U){return p?p(i,U):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":D,"aria-describedby":O,"aria-haspopup":S||void 0,"aria-expanded":S?i.key===h:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":ui(i),"aria-checked":(P==="menuitemcheckbox"||P==="menuitemradio")&&C?!!y:void 0,"aria-selected":P==="menuitem"&&C?!!y:void 0,role:P,style:i.style},Z=i.keytipProps;return Z&&S&&(Z=this._getMemoizedMenuButtonKeytipProps(Z)),E.createElement(Iu,{keytipProps:Z,ariaDescribedBy:O,disabled:ui(i)},function(U){return E.createElement("button",N({ref:n._btn},x,q,U),E.createElement(f,N({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&v?v:void 0,hasIcons:c,openSubMenu:_,dismissSubMenu:g,dismissMenu:T,getSubmenuTarget:n._getSubmenuTarget},A)),n._renderAriaDescription(M,o.screenReaderText))})},t}(Lm),TI=function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var i=n(t);return{wrapper:[i.wrapper],divider:[i.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},yI=Vt(),Y_=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,o=e.className,a=yI(n,{theme:r,getClassNames:i,className:o});return E.createElement("span",{className:a.wrapper,ref:t},E.createElement("span",{className:a.divider}))});Y_.displayName="VerticalDividerBase";var _I=Yt(Y_,TI,void 0,{scope:"VerticalDivider"}),CI=500,SI=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=dt(function(i){return N(N({},i),{hasMenu:!0})}),r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;i.which===oe.enter?(r._executeItemClick(i),i.preventDefault(),i.stopPropagation()):s&&s(a,i)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(i,o){return i?E.createElement("span",{id:r._ariaDescriptionId,className:o},i):null},r._onItemMouseEnterPrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(N(N({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseEnterIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,r._splitButton)},r._onItemMouseMovePrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(N(N({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseMoveIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,r._splitButton)},r._onIconItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,r._splitButton?r._splitButton:i.currentTarget)},r._executeItemClick=function(i){var o=r.props,a=o.item,s=o.executeItemClick,l=o.onItemClick;if(!(a.disabled||a.isDisabled)){if(r._processingTouch&&l)return l(a,i);s&&s(a,i)}},r._onTouchStart=function(i){r._splitButton&&!("onpointerdown"in r._splitButton)&&r._handleTouchAndPointerEvent(i)},r._onPointerDown=function(i){i.pointerType==="touch"&&(r._handleTouchAndPointerEvent(i),i.preventDefault(),i.stopImmediatePropagation())},r._async=new $s(r),r._events=new Er(r),r}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.onItemMouseLeave,f=r.expandedMenuItemKey,h=Vi(i),p=i.keytipProps;p&&(p=this._getMemoizedMenuButtonKeytipProps(p));var v=i.ariaDescription;return v&&(this._ariaDescriptionId=En()),E.createElement(Iu,{keytipProps:p,disabled:ui(i)},function(_){return E.createElement("div",{"data-ktp-target":_["data-ktp-target"],ref:function(g){return n._splitButton=g},role:W_(i),"aria-label":i.ariaLabel,className:o.splitContainer,"aria-disabled":ui(i),"aria-expanded":h?i.key===f:void 0,"aria-haspopup":!0,"aria-describedby":zu(i.ariaDescribedBy,v?n._ariaDescriptionId:void 0,_["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(n,N(N({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:n._onItemMouseMovePrimary,onKeyDown:n._onItemKeyDown,onClick:n._executeItemClick,onTouchStart:n._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},n._renderSplitPrimaryButton(i,o,a,u,c),n._renderSplitDivider(i),n._renderSplitIconButton(i,o,a,_),n._renderAriaDescription(v,o.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(n,r,i,o,a){var s=this.props,l=s.contextualMenuItemAs,u=l===void 0?Fu:l,c=s.onItemClick,d={key:n.key,disabled:ui(n)||n.primaryDisabled,name:n.name,text:n.text||n.name,secondaryText:n.secondaryText,className:r.splitPrimary,canCheck:n.canCheck,isChecked:n.isChecked,checked:n.checked,iconProps:n.iconProps,onRenderIcon:n.onRenderIcon,data:n.data,"data-is-focusable":!1},f=n.itemProps;return E.createElement("button",N({},rt(d,ba)),E.createElement(u,N({"data-is-focusable":!1,item:d,classNames:r,index:i,onCheckmarkClick:o&&c?c:void 0,hasIcons:a},f)))},t.prototype._renderSplitDivider=function(n){var r=n.getSplitButtonVerticalDividerClassNames||oI;return E.createElement(_I,{getClassNames:r})},t.prototype._renderSplitIconButton=function(n,r,i,o){var a=this.props,s=a.contextualMenuItemAs,l=s===void 0?Fu:s,u=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,h=a.dismissMenu,p={onClick:this._onIconItemClick,disabled:ui(n),className:r.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},v=N(N({},rt(p,ba)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,n):void 0,onMouseDown:function(g){return c?c(n,g):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),_=n.itemProps;return E.createElement("button",N({},v),E.createElement(l,N({componentRef:n.componentRef,item:p,classNames:r,index:i,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},_)))},t.prototype._handleTouchAndPointerEvent=function(n){var r=this,i=this.props.onTap;i&&i(n),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){r._processingTouch=!1,r._lastTouchTimeoutId=void 0},CI)},t}(Lm),AI=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._updateComposedComponentRef=r._updateComposedComponentRef.bind(r),r}return t.prototype._updateComposedComponentRef=function(n){this._composedComponentInstance=n,n?this._hoisted=VA(this,n):this._hoisted&&YA(this,this._hoisted)},t}(E.Component),ka;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(ka||(ka={}));var bI=[479,639,1023,1365,1919,99999999],q_;function Bm(){var e;return(e=q_)!==null&&e!==void 0?e:ka.large}function Q_(e){var t,n=(t=function(r){ze(i,r);function i(o){var a=r.call(this,o)||this;return a._onResize=function(){var s=X_(a.context.window);s!==a.state.responsiveMode&&a.setState({responsiveMode:s})},a._events=new Er(a),a._updateComposedComponentRef=a._updateComposedComponentRef.bind(a),a.state={responsiveMode:Bm()},a}return i.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},i.prototype.componentWillUnmount=function(){this._events.dispose()},i.prototype.render=function(){var o=this.state.responsiveMode;return o===ka.unknown?null:E.createElement(e,N({ref:this._updateComposedComponentRef,responsiveMode:o},this.props))},i}(AI),t.contextType=Rm,t);return c_(e,n)}function kI(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function X_(e){var t=ka.small;if(e){try{for(;kI(e)>bI[t];)t++}catch{t=Bm()}q_=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var Z_=function(e,t){var n=E.useState(Bm()),r=n[0],i=n[1],o=E.useCallback(function(){var s=X_(tt(e.current));r!==s&&i(s)},[e,r]),a=qd();return Au(a,"resize",o),E.useEffect(function(){t===void 0&&o()},[t]),t??r},FI=E.createContext({}),II=Vt(),xI=Vt(),NI={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:vt.bottomAutoEdge,beakWidth:16};function J_(e,t){var n=t==null?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var i=[],o=0,a=r;o0)return E.createElement("li",{role:"presentation",key:Ne.key||Q.key||"section-"+Pe},E.createElement("div",N({},at),E.createElement("ul",{className:Me.list,role:"presentation"},Ne.topDivider&&qt(Pe,Ee,!0,!0),$n&&Ht($n,Q.key||Pe,Ee,Q.title),Ne.items.map(function(m1,rl){return Ye(m1,rl,rl,Ne.items.length,sn,kn,Me)}),Ne.bottomDivider&&qt(Pe,Ee,!1,!0))))}},Ht=function(Q,Ee,Me,Pe){return E.createElement("li",{role:"presentation",title:Pe,key:Ee,className:Me.item},Q)},qt=function(Q,Ee,Me,Pe){return Pe||Q>0?E.createElement("li",{role:"separator",key:"separator-"+Q+(Me===void 0?"":Me?"-top":"-bottom"),className:Ee.divider,"aria-hidden":"true"}):null},ot=function(Q,Ee,Me,Pe,sn,kn,Ne){if(Q.onRender)return Q.onRender(N({"aria-posinset":Pe+1,"aria-setsize":sn},Q),l);var $n=i.contextualMenuItemAs,at={item:Q,classNames:Ee,index:Me,focusableElementIndex:Pe,totalItemCount:sn,hasCheckmarks:kn,hasIcons:Ne,contextualMenuItemAs:$n,onItemMouseEnter:G,onItemMouseLeave:b,onItemMouseMove:F,onItemMouseDown:GI,executeItemClick:fe,onItemKeyDown:R,expandedMenuItemKey:p,openSubMenu:v,dismissSubMenu:g,dismissMenu:l};return Q.href?E.createElement(EI,N({},at,{onItemClick:J})):Q.split&&Vi(Q)?E.createElement(SI,N({},at,{onItemClick:Ve,onItemClickBase:ee,onTap:x})):E.createElement(vI,N({},at,{onItemClick:Ve,onItemClickBase:ee}))},Ut=function(Q,Ee,Me,Pe,sn,kn){var Ne=i.contextualMenuItemAs,$n=Ne===void 0?Fu:Ne,at=Q.itemProps,Vn=Q.id,Xr=at&&rt(at,Qi);return E.createElement("div",N({id:Vn,className:Me.header},Xr,{style:Q.style}),E.createElement($n,N({item:Q,classNames:Ee,index:Pe,onCheckmarkClick:sn?Ve:void 0,hasIcons:kn},at)))},yt=i.isBeakVisible,kt=i.items,cr=i.labelElementId,Yr=i.id,jn=i.className,xe=i.beakWidth,_t=i.directionalHint,Ct=i.directionalHintForRTL,Be=i.alignTargetEdge,gt=i.gapSpace,to=i.coverTarget,B=i.ariaLabel,V=i.doNotLayer,ae=i.target,_e=i.bounds,X=i.useTargetWidth,wt=i.useTargetAsMinWidth,dr=i.directionalHintFixed,Kn=i.shouldFocusOnMount,bn=i.shouldFocusOnContainer,qr=i.title,qe=i.styles,no=i.theme,Et=i.calloutProps,nl=i.onRenderSubMenu,Tf=nl===void 0?xE:nl,c1=i.onRenderMenuList,yf=c1===void 0?function(Q,Ee){return he(Q,Qr)}:c1,_f=i.focusZoneProps,d1=i.getMenuClassNames,Qr=d1?d1(no,jn):II(qe,{theme:no,className:jn}),f1=He(kt);function He(Q){for(var Ee=0,Me=Q;Ee0){for(var Sg=0,Cf=0,Ag=kt;Cf span":{position:"relative",left:0,top:0}}}],rootDisabled:[Uo(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":DE,":focus":DE}}],iconDisabled:{color:l,selectors:(t={},t[ie]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[ie]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:wE(o.mediumPlus.fontSize),menuIcon:wE(o.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:xm}}),zm=dt(function(e,t){var n,r,i,o,a,s,l,u,c,d,f,h,p,v=e.effects,_=e.palette,g=e.semanticColors,T={left:-2,top:-2,bottom:-2,right:-2,border:"none"},y={position:"absolute",width:1,right:31,top:8,bottom:8},C={splitButtonContainer:[Uo(e,{highContrastStyle:T,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(n={},n[ie]=N({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},tn()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[ie]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[ie]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:g.buttonTextDisabled,selectors:(o={},o[ie]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[ie]=N({color:"Window",backgroundColor:"WindowText"},tn()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[ie]=N({color:"Window",backgroundColor:"WindowText"},tn()),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:v.roundedCorner2,borderBottomRightRadius:v.roundedCorner2,border:"1px solid "+_.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[ie]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:N(N({},y),{selectors:(u={},u[ie]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:N(N({},y),{selectors:(c={},c[ie]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[ie]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(h={},h[ie]={color:"GrayText"},h)}},d[ie]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},d)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(p={},p[ie]=N({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},tn()),p)},splitButtonMenuFocused:N({},Uo(e,{highContrastStyle:T,inset:2}))};return Ti(C,t)}),s2=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function qI(e){var t,n,r,i,o,a=e.semanticColors,s=e.palette,l=a.buttonBackground,u=a.buttonBackgroundPressed,c=a.buttonBackgroundHovered,d=a.buttonBackgroundDisabled,f=a.buttonText,h=a.buttonTextHovered,p=a.buttonTextDisabled,v=a.buttonTextChecked,_=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:f},rootHovered:{backgroundColor:c,color:h,selectors:(t={},t[ie]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:v},rootExpanded:{backgroundColor:u,color:v},rootChecked:{backgroundColor:u,color:v},rootCheckedHovered:{backgroundColor:u,color:_},rootDisabled:{color:p,backgroundColor:d,selectors:(n={},n[ie]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[ie]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(i={},i[ie]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:N(N({},s2()),{backgroundColor:s.neutralTertiaryAlt,selectors:(o={},o[ie]={backgroundColor:"WindowText"},o)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function QI(e){var t,n,r,i,o,a,s,l,u,c=e.palette,d=e.semanticColors;return{root:{backgroundColor:d.primaryButtonBackground,border:"1px solid "+d.primaryButtonBackground,color:d.primaryButtonText,selectors:(t={},t[ie]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},tn()),t["."+cn+" &:focus"]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid "+d.primaryButtonBackgroundHovered,color:d.primaryButtonTextHovered,selectors:(n={},n[ie]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid "+d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed,selectors:(r={},r[ie]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},tn()),r)},rootExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootChecked:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootDisabled:{color:d.primaryButtonTextDisabled,backgroundColor:d.primaryButtonBackgroundDisabled,selectors:(i={},i[ie]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(o={},o[ie]={border:"none"},o)},splitButtonDivider:N(N({},s2()),{backgroundColor:c.white,selectors:(a={},a[ie]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[ie]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(l={},l[ie]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:d.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:d.primaryButtonText},splitButtonMenuIconDisabled:{color:c.neutralTertiary,selectors:(u={},u[ie]={color:"GrayText"},u)}}}var XI="32px",ZI="80px",JI=dt(function(e,t,n){var r=Um(e),i=zm(e),o={root:{minWidth:ZI,height:XI},label:{fontWeight:Ke.semibold}};return Ti(r,o,n?QI(e):qI(e),i,t)}),Qd=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.primary,i=r===void 0?!1:r,o=n.styles,a=n.theme;return E.createElement(Hm,N({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:JI(a,o,i),onRenderDescription:Ms}))},t=Ws([Kd("DefaultButton",["theme","styles"],!0)],t),t}(E.Component),ex=dt(function(e,t){var n,r=Um(e),i=zm(e),o=e.palette,a=e.semanticColors,s={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:a.link},rootHovered:{color:o.themeDarkAlt,backgroundColor:o.neutralLighter,selectors:(n={},n[ie]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:o.themeDark,backgroundColor:o.neutralLight},rootExpanded:{color:o.themeDark,backgroundColor:o.neutralLight},rootChecked:{color:o.themeDark,backgroundColor:o.neutralLight},rootCheckedHovered:{color:o.themeDark,backgroundColor:o.neutralQuaternaryAlt},rootDisabled:{color:o.neutralTertiaryAlt}};return Ti(r,s,i,t)}),ha=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.styles,i=n.theme;return E.createElement(Hm,N({},this.props,{variantClassName:"ms-Button--icon",styles:ex(i,r),onRenderText:Ms,onRenderDescription:Ms}))},t=Ws([Kd("IconButton",["theme","styles"],!0)],t),t}(E.Component),l2=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return E.createElement(Qd,N({},this.props,{primary:!0,onRenderDescription:Ms}))},t=Ws([Kd("PrimaryButton",["theme","styles"],!0)],t),t}(E.Component),tx=dt(function(e,t,n,r){var i,o,a,s,l,u,c,d,f,h,p,v,_,g,T=Um(e),y=zm(e),C=e.palette,k=e.semanticColors,S={left:4,top:4,bottom:4,right:4,border:"none"},A={root:[Uo(e,{inset:2,highContrastStyle:S,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:C.white,color:C.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[ie]={border:"none"},i)}],rootHovered:{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(o={},o[ie]={color:"Highlight"},o["."+un.msButtonIcon]={color:C.themeDarkAlt},o["."+un.msButtonMenuIcon]={color:C.neutralPrimary},o)},rootPressed:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(a={},a["."+un.msButtonIcon]={color:C.themeDark},a["."+un.msButtonMenuIcon]={color:C.neutralPrimary},a)},rootChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(s={},s["."+un.msButtonIcon]={color:C.themeDark},s["."+un.msButtonMenuIcon]={color:C.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:C.neutralQuaternaryAlt,selectors:(l={},l["."+un.msButtonIcon]={color:C.themeDark},l["."+un.msButtonMenuIcon]={color:C.neutralPrimary},l)},rootExpanded:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(u={},u["."+un.msButtonIcon]={color:C.themeDark},u["."+un.msButtonMenuIcon]={color:C.neutralPrimary},u)},rootExpandedHovered:{backgroundColor:C.neutralQuaternaryAlt},rootDisabled:{backgroundColor:C.white,selectors:(c={},c["."+un.msButtonIcon]={color:k.disabledBodySubtext,selectors:(d={},d[ie]=N({color:"GrayText"},tn()),d)},c[ie]=N({color:"GrayText",backgroundColor:"Window"},tn()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[ie]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(h={},h[ie]={backgroundColor:"Window"},h)},splitButtonDivider:{backgroundColor:C.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:C.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:C.neutralSecondary,selectors:{":hover":{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(p={},p[ie]={color:"Highlight"},p["."+un.msButtonIcon]={color:C.neutralPrimary},p)},":active":{backgroundColor:C.neutralLight,selectors:(v={},v["."+un.msButtonIcon]={color:C.neutralPrimary},v)}}},splitButtonMenuButtonDisabled:{backgroundColor:C.white,selectors:(_={},_[ie]=N({color:"GrayText",border:"none",backgroundColor:"Window"},tn()),_)},splitButtonMenuButtonChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:C.neutralLight,color:C.black,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:C.neutralPrimary},splitButtonMenuIconDisabled:{color:C.neutralTertiary},label:{fontWeight:"normal"},icon:{color:C.themePrimary},menuIcon:(g={color:C.neutralSecondary},g[ie]={color:"GrayText"},g)};return Ti(T,y,A,t)}),xu=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.styles,i=n.theme;return E.createElement(Hm,N({},this.props,{variantClassName:"ms-Button--commandBar",styles:tx(i,r),onRenderDescription:Ms}))},t=Ws([Kd("CommandBarButton",["theme","styles"],!0)],t),t}(E.Component),nx=Vt({cacheSize:100}),rx=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.as,i=r===void 0?"label":r,o=n.children,a=n.className,s=n.disabled,l=n.styles,u=n.required,c=n.theme,d=nx(l,{className:a,disabled:s,required:u,theme:c});return E.createElement(i,N({},rt(this.props,Qi),{className:d.root}),o)},t}(E.Component),ix=function(e){var t,n=e.theme,r=e.className,i=e.disabled,o=e.required,a=n.semanticColors,s=Ke.semibold,l=a.bodyText,u=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:u,selectors:(t={},t[ie]=N({color:"GrayText"},tn()),t)},o&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},r]}},ox=Yt(rx,ix,void 0,{scope:"Label"}),ax=Vt(),sx="",Xo="TextField",lx="RedEye",ux="Hide",cx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;r._textElement=E.createRef(),r._onFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({isFocused:!0},function(){r.props.validateOnFocusIn&&r._validate(r.value)})},r._onBlur=function(a){r.props.onBlur&&r.props.onBlur(a),r.setState({isFocused:!1},function(){r.props.validateOnFocusOut&&r._validate(r.value)})},r._onRenderLabel=function(a){var s=a.label,l=a.required,u=r._classNames.subComponentStyles?r._classNames.subComponentStyles.label:void 0;return s?E.createElement(ox,{required:l,htmlFor:r._id,styles:u,disabled:a.disabled,id:r._labelId},a.label):null},r._onRenderDescription=function(a){return a.description?E.createElement("span",{className:r._classNames.description},a.description):null},r._onRevealButtonClick=function(a){r.setState(function(s){return{isRevealingPassword:!s.isRevealingPassword}})},r._onInputChange=function(a){var s,l,u=a.target,c=u.value,d=Eh(r.props,r.state)||"";if(c===void 0||c===r._lastChangeValue||c===d){r._lastChangeValue=void 0;return}r._lastChangeValue=c,(l=(s=r.props).onChange)===null||l===void 0||l.call(s,a,c),r._isControlled||r.setState({uncontrolledValue:c})},Xi(r),r._async=new $s(r),r._fallbackId=En(Xo),r._descriptionId=En(Xo+"Description"),r._labelId=En(Xo+"Label"),r._prefixId=En(Xo+"Prefix"),r._suffixId=En(Xo+"Suffix"),r._warnControlledUsage();var i=n.defaultValue,o=i===void 0?sx:i;return typeof o=="number"&&(o=String(o)),r.state={uncontrolledValue:r._isControlled?void 0:o,isFocused:!1,errorMessage:""},r._delayedValidate=r._async.debounce(r._validate,r.props.deferredValidationTime),r._lastValidation=0,r}return Object.defineProperty(t.prototype,"value",{get:function(){return Eh(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(n,r){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(n,r,i){var o=this.props,a=(i||{}).selection,s=a===void 0?[null,null]:a,l=s[0],u=s[1];!!n.multiline!=!!o.multiline&&r.isFocused&&(this.focus(),l!==null&&u!==null&&l>=0&&u>=0&&this.setSelectionRange(l,u)),n.value!==o.value&&(this._lastChangeValue=void 0);var c=Eh(n,r),d=this.value;c!==d&&(this._warnControlledUsage(n),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),RE(o)&&this._delayedValidate(d))},t.prototype.render=function(){var n=this.props,r=n.borderless,i=n.className,o=n.disabled,a=n.invalid,s=n.iconProps,l=n.inputClassName,u=n.label,c=n.multiline,d=n.required,f=n.underlined,h=n.prefix,p=n.resizable,v=n.suffix,_=n.theme,g=n.styles,T=n.autoAdjustHeight,y=n.canRevealPassword,C=n.revealPasswordAriaLabel,k=n.type,S=n.onRenderPrefix,A=S===void 0?this._onRenderPrefix:S,D=n.onRenderSuffix,M=D===void 0?this._onRenderSuffix:D,x=n.onRenderLabel,P=x===void 0?this._onRenderLabel:x,O=n.onRenderDescription,q=O===void 0?this._onRenderDescription:O,Z=this.state,U=Z.isFocused,j=Z.isRevealingPassword,te=this._errorMessage,R=typeof a=="boolean"?a:!!te,z=!!y&&k==="password"&&dx(),G=this._classNames=ax(g,{theme:_,className:i,disabled:o,focused:U,required:d,multiline:c,hasLabel:!!u,hasErrorMessage:R,borderless:r,resizable:p,hasIcon:!!s,underlined:f,inputClassName:l,autoAdjustHeight:T,hasRevealButton:z});return E.createElement("div",{ref:this.props.elementRef,className:G.root},E.createElement("div",{className:G.wrapper},P(this.props,this._onRenderLabel),E.createElement("div",{className:G.fieldGroup},(h!==void 0||this.props.onRenderPrefix)&&E.createElement("div",{className:G.prefix,id:this._prefixId},A(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&E.createElement($i,N({className:G.icon},s)),z&&E.createElement("button",{"aria-label":C,className:G.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!j,type:"button"},E.createElement("span",{className:G.revealSpan},E.createElement($i,{className:G.revealIcon,iconName:j?ux:lx}))),(v!==void 0||this.props.onRenderSuffix)&&E.createElement("div",{className:G.suffix,id:this._suffixId},M(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&E.createElement("span",{id:this._descriptionId},q(this.props,this._onRenderDescription),te&&E.createElement("div",{role:"alert"},E.createElement(t_,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(n){this._textElement.current&&(this._textElement.current.selectionStart=n)},t.prototype.setSelectionEnd=function(n){this._textElement.current&&(this._textElement.current.selectionEnd=n)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(n,r){this._textElement.current&&this._textElement.current.setSelectionRange(n,r)},t.prototype._warnControlledUsage=function(n){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,bm("Warning: 'value' prop on '"+Xo+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return kA(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(n){var r=n.prefix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},t.prototype._onRenderSuffix=function(n){var r=n.suffix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var n=this.props.errorMessage,r=n===void 0?this.state.errorMessage:n;return r||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var n=this._errorMessage;return n?typeof n=="string"?E.createElement("p",{className:this._classNames.errorMessage},E.createElement("span",{"data-automation-id":"error-message"},n)):E.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},n):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var n=this.props;return!!(n.onRenderDescription||n.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var n=this.props.invalid,r=n===void 0?!!this._errorMessage:n,i=rt(this.props,KA,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return E.createElement("textarea",N({id:this._id},i,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":o,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var n=this.props,r=n.ariaLabel,i=n.invalid,o=i===void 0?!!this._errorMessage:i,a=n.onRenderPrefix,s=n.onRenderSuffix,l=n.prefix,u=n.suffix,c=n.type,d=c===void 0?"text":c,f=n.label,h=[];f&&h.push(this._labelId),(l!==void 0||a)&&h.push(this._prefixId),(u!==void 0||s)&&h.push(this._suffixId);var p=N(N({type:this.state.isRevealingPassword?"text":d,id:this._id},rt(this.props,jA,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(h.length>0?h.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":r,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":o,onFocus:this._onFocus,onBlur:this._onBlur}),v=function(g){return E.createElement("input",N({},g))},_=this.props.onRenderInput||v;return _(p,v)},t.prototype._validate=function(n){var r=this;if(!(this._latestValidateValue===n&&RE(this.props))){this._latestValidateValue=n;var i=this.props.onGetErrorMessage,o=i&&i(n||"");if(o!==void 0)if(typeof o=="string"||!("then"in o))this.setState({errorMessage:o}),this._notifyAfterValidate(n,o);else{var a=++this._lastValidation;o.then(function(s){a===r._lastValidation&&r.setState({errorMessage:s}),r._notifyAfterValidate(n,s)})}else this._notifyAfterValidate(n,"")}},t.prototype._notifyAfterValidate=function(n,r){n===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(r,n)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var n=this._textElement.current;n.style.height="",n.style.height=n.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(E.Component);function Eh(e,t){var n=e.value,r=n===void 0?t.uncontrolledValue:n;return typeof r=="number"?String(r):r}function RE(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var U1;function dx(){if(typeof U1!="boolean"){var e=tt();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");U1=!(lb()||t)}else U1=!0}return U1}var fx={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function hx(e){var t=e.underlined,n=e.disabled,r=e.focused,i=e.theme,o=i.palette,a=i.fonts;return function(){var s;return{root:[t&&n&&{color:o.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(s={},s[ie]={height:31},s)}]}}}function px(e){var t,n,r,i,o,a,s,l,u,c,d,f,h=e.theme,p=e.className,v=e.disabled,_=e.focused,g=e.required,T=e.multiline,y=e.hasLabel,C=e.borderless,k=e.underlined,S=e.hasIcon,A=e.resizable,D=e.hasErrorMessage,M=e.inputClassName,x=e.autoAdjustHeight,P=e.hasRevealButton,O=h.semanticColors,q=h.effects,Z=h.fonts,U=on(fx,h),j={background:O.disabledBackground,color:v?O.disabledText:O.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[ie]={background:"Window",color:v?"GrayText":"WindowText"},t)},te=[{color:O.inputPlaceholderText,opacity:1,selectors:(n={},n[ie]={color:"GrayText"},n)}],R={color:O.disabledText,selectors:(r={},r[ie]={color:"GrayText"},r)};return{root:[U.root,Z.medium,g&&U.required,v&&U.disabled,_&&U.active,T&&U.multiline,C&&U.borderless,k&&U.underlined,lh,{position:"relative"},p],wrapper:[U.wrapper,k&&[{display:"flex",borderBottom:"1px solid "+(D?O.errorText:O.inputBorder),width:"100%"},v&&{borderBottomColor:O.disabledBackground,selectors:(i={},i[ie]=N({borderColor:"GrayText"},tn()),i)},!v&&{selectors:{":hover":{borderBottomColor:D?O.errorText:O.inputBorderHovered,selectors:(o={},o[ie]=N({borderBottomColor:"Highlight"},tn()),o)}}},_&&[{position:"relative"},mE(D?O.errorText:O.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[U.fieldGroup,lh,{border:"1px solid "+O.inputBorder,borderRadius:q.roundedCorner2,background:O.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},T&&{minHeight:"60px",height:"auto",display:"flex"},!_&&!v&&{selectors:{":hover":{borderColor:O.inputBorderHovered,selectors:(a={},a[ie]=N({borderColor:"Highlight"},tn()),a)}}},_&&!k&&mE(D?O.errorText:O.inputFocusBorderAlt,q.roundedCorner2),v&&{borderColor:O.disabledBackground,selectors:(s={},s[ie]=N({borderColor:"GrayText"},tn()),s),cursor:"default"},C&&{border:"none"},C&&_&&{border:"none",selectors:{":after":{border:"none"}}},k&&{flex:"1 1 0px",border:"none",textAlign:"left"},k&&v&&{backgroundColor:"transparent"},D&&!k&&{borderColor:O.errorText,selectors:{"&:hover":{borderColor:O.errorText}}},!y&&g&&{selectors:(l={":before":{content:"'*'",color:O.errorText,position:"absolute",top:-5,right:-10}},l[ie]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[Z.medium,U.field,lh,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:O.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},u[ie]={background:"Window",color:v?"GrayText":"WindowText"},u)},vE(te),T&&!A&&[U.unresizable,{resize:"none"}],T&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},T&&x&&{overflow:"hidden"},S&&!P&&{paddingRight:24},T&&S&&{paddingRight:40},v&&[{backgroundColor:O.disabledBackground,color:O.disabledText,borderColor:O.disabledBackground},vE(R)],k&&{textAlign:"left"},_&&!C&&{selectors:(c={},c[ie]={paddingLeft:11,paddingRight:11},c)},_&&T&&!C&&{selectors:(d={},d[ie]={paddingTop:4},d)},M],icon:[T&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Hr.medium,lineHeight:18},v&&{color:O.disabledText}],description:[U.description,{color:O.bodySubtext,fontSize:Z.xSmall.fontSize}],errorMessage:[U.errorMessage,ps.slideDownIn20,Z.small,{color:O.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[U.prefix,j],suffix:[U.suffix,j],revealButton:[U.revealButton,"ms-Button","ms-Button--icon",Uo(h,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:O.link,selectors:{":hover":{outline:0,color:O.primaryButtonBackgroundHovered,backgroundColor:O.buttonBackgroundHovered,selectors:(f={},f[ie]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},S&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Hr.medium,lineHeight:18},subComponentStyles:{label:hx(e)}}}var Gm=Yt(cx,px,void 0,{scope:"TextField"}),gl={auto:0,top:1,bottom:2,center:3},mx=function(e){if(e===void 0)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t},ME=function(e){if(e===void 0)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},z1=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},gx=16,Ex=100,vx=500,Tx=200,yx=500,PE=10,_x=30,Cx=2,Sx=2,Ax="page-",OE="spacer-",LE={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},u2=function(e){return e.getBoundingClientRect()},bx=u2,kx=u2,Fx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._root=E.createRef(),r._surface=E.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(i,o){return(i.items!==r.props.items||i.renderCount!==r.props.renderCount||i.startIndex!==r.props.startIndex||i.version!==r.props.version||!o.hasMounted)&&Gd()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(i,o)):o},r._onRenderRoot=function(i){var o=i.rootRef,a=i.surfaceElement,s=i.divProps;return E.createElement("div",N({ref:o},s),a)},r._onRenderSurface=function(i){var o=i.surfaceRef,a=i.pageElements,s=i.divProps;return E.createElement("div",N({ref:o},s),a)},r._onRenderPage=function(i,o){for(var a,s=r.props,l=s.onRenderCell,u=s.onRenderCellConditional,c=s.role,d=i.page,f=d.items,h=f===void 0?[]:f,p=d.startIndex,v=vi(i,["page"]),_=c===void 0?"listitem":"presentation",g=[],T=0;Tn;if(p){if(r&&this._scrollElement){for(var v=kx(this._scrollElement),_=ME(this._scrollElement),g={top:_,bottom:_+v.height},T=n-d,y=0;y=g.top&&C<=g.bottom;if(k)return;var S=ug.bottom;S||A&&(u=C-v.height)}this._scrollElement&&z1(this._scrollElement,u);return}u+=h}},t.prototype.getStartItemIndexInView=function(n){for(var r=this.state.pages||[],i=0,o=r;i=a.top&&(this._scrollTop||0)<=a.top+a.height;if(s)if(n)for(var u=0,c=a.startIndex;c0?o:void 0,"aria-label":c.length>0?d["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(n){n===void 0&&(n=this.props);var r=n.onShouldVirtualize;return!r||r(n)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(n){var r=this,i=this.props.usePageCache,o;if(i&&(o=this._pageCache[n.key],o&&o.pageElement))return o.pageElement;var a=this._getPageStyle(n),s=this.props.onRenderPage,l=s===void 0?this._onRenderPage:s,u=l({page:n,className:"ms-List-page",key:n.key,ref:function(c){r._pageRefs[n.key]=c},style:a,role:"presentation"},this._onRenderPage);return i&&n.startIndex===0&&(this._pageCache[n.key]={page:n,pageElement:u}),u},t.prototype._getPageStyle=function(n){var r=this.props.getPageStyle;return N(N({},r?r(n):{}),n.items?{}:{height:n.height})},t.prototype._onFocus=function(n){for(var r=n.target;r!==this._surface.current;){var i=r.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}r=Lr(r)}},t.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!Ix(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var n=this.props,r=n.renderedWindowsAhead,i=n.renderedWindowsBehind,o=this,a=o._requiredWindowsAhead,s=o._requiredWindowsBehind,l=Math.min(r,a+1),u=Math.min(i,s+1);(l!==a||u!==s)&&(this._requiredWindowsAhead=l,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(r>l||i>u)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(n,r){this._requiredRect||this._updateRenderRects(n,r);var i=this._buildPages(n,r),o=r.pages;return this._notifyPageChanges(o,i.pages,this.props),N(N(N({},r),i),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(n,r,i){var o=i.onPageAdded,a=i.onPageRemoved;if(o||a){for(var s={},l=0,u=n;l-1,q=!g||P>=g.top&&d<=g.bottom,Z=!y._requiredRect||P>=y._requiredRect.top&&d<=y._requiredRect.bottom,U=!_&&(Z||q&&O)||!v,j=h>=S&&h=y._visibleRect.top&&d<=y._visibleRect.bottom),u.push(z),Z&&y._allowedRect&&xx(l,{top:d,bottom:P,height:D,left:g.left,right:g.right,width:g.width})}else f||(f=y._createPage(OE+S,void 0,S,0,void 0,M,!0)),f.height=(f.height||0)+(P-d)+1,f.itemCount+=c;if(d+=P-d+1,_&&v)return"break"},y=this,C=a;Cthis._estimatedPageHeight/3)&&(l=this._surfaceRect=bx(this._surface.current),this._scrollTop=c),(i||!u||u!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=u||0;var d=Math.max(0,-l.top),f=tt(this._root.current),h={top:d,left:l.left,bottom:d+f.innerHeight,right:l.right,width:l.width,height:f.innerHeight};this._requiredRect=BE(h,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=BE(h,a,o),this._visibleRect=h}},t.defaultProps={startIndex:0,onRenderCell:function(n,r,i){return E.createElement(E.Fragment,null,n&&n.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:Sx,renderedWindowsBehind:Cx},t}(E.Component);function BE(e,t,n){var r=e.top-t*e.height,i=e.height+(t+n)*e.height;return{top:r,bottom:r+i,height:i,left:e.left,right:e.right,width:e.width}}function Ix(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function xx(e,t){return e.top=t.tope.bottom||e.bottom===-1?t.bottom:e.bottom,e.right=t.right>e.right||e.right===-1?t.right:e.right,e.width=e.right-e.left+1,e.height=e.bottom-e.top+1,e}var ci;(function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"})(ci||(ci={}));var sp;(function(e){e[e.normal=0]="normal",e[e.large=1]="large"})(sp||(sp={}));var Nx=Vt(),Dx=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.type,i=n.size,o=n.ariaLabel,a=n.ariaLive,s=n.styles,l=n.label,u=n.theme,c=n.className,d=n.labelPosition,f=o,h=rt(this.props,Qi,["size"]),p=i;p===void 0&&r!==void 0&&(p=r===sp.large?ci.large:ci.medium);var v=Nx(s,{theme:u,size:p,className:c,labelPosition:d});return E.createElement("div",N({},h,{className:v.root}),E.createElement("div",{className:v.circle}),l&&E.createElement("div",{className:v.label},l),f&&E.createElement("div",{role:"status","aria-live":a},E.createElement(t_,null,E.createElement("div",{className:v.screenReaderText},f))))},t.defaultProps={size:ci.medium,ariaLive:"polite",labelPosition:"bottom"},t}(E.Component),wx={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Rx=dt(function(){return ur({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),Mx=function(e){var t,n=e.theme,r=e.size,i=e.className,o=e.labelPosition,a=n.palette,s=on(wx,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},o==="top"&&{flexDirection:"column-reverse"},o==="right"&&{flexDirection:"row"},o==="left"&&{flexDirection:"row-reverse"},i],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:Rx(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[ie]=N({borderTopColor:"Highlight"},tn()),t)},r===ci.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===ci.small&&["ms-Spinner--small",{width:16,height:16}],r===ci.medium&&["ms-Spinner--medium",{width:20,height:20}],r===ci.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},o==="top"&&{margin:"0 0 8px"},o==="right"&&{margin:"0 0 0 8px"},o==="left"&&{margin:"0 8px 0 0"}],screenReaderText:xm}},Px=Yt(Dx,Mx,void 0,{scope:"Spinner"}),di;(function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"})(di||(di={}));var c2=Vb.durationValue2,Ox={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},Lx=function(e){var t,n=e.className,r=e.containerClassName,i=e.scrollableContentClassName,o=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,u=e.theme,c=e.topOffsetFixed,d=e.isModeless,f=e.layerClassName,h=e.isDefaultDragHandle,p=e.windowInnerHeight,v=u.palette,_=u.effects,g=u.fonts,T=on(Ox,u);return{root:[T.root,g.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+c2},c&&typeof l=="number"&&s&&{alignItems:"flex-start"},o&&T.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[T.main,{boxShadow:_.elevation64,borderRadius:_.roundedCorner2,backgroundColor:v.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?Ls.Layer:void 0},d&&{pointerEvents:"auto"},c&&typeof l=="number"&&s&&{top:l},h&&{cursor:"move"},r],scrollableContent:[T.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:p},t)},i],layer:d&&[f,T.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:g.xLargePlus.fontSize,width:"24px"}}},Bx=Vt(),Hx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;Xi(r);var i=r.props.allowTouchBodyScroll,o=i===void 0?!1:i;return r._allowTouchBodyScroll=o,r}return t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&z7()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&G7()},t.prototype.render=function(){var n=this.props,r=n.isDarkThemed,i=n.className,o=n.theme,a=n.styles,s=rt(this.props,Qi),l=Bx(a,{theme:o,className:i,isDark:r});return E.createElement("div",N({},s,{className:l.root}))},t}(E.Component),Ux={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},zx=function(e){var t,n=e.className,r=e.theme,i=e.isNone,o=e.isDark,a=r.palette,s=on(Ux,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[ie]={border:"1px solid WindowText",opacity:0},t)},i&&{visibility:"hidden"},o&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}},Gx=Yt(Hx,zx,void 0,{scope:"Overlay"}),jx=dt(function(e,t){return{root:ai(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),El={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Kx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._currentEventType=El.mouse,r._events=[],r._onMouseDown=function(i){var o=E.Children.only(r.props.children).props.onMouseDown;return o&&o(i),r._currentEventType=El.mouse,r._onDragStart(i)},r._onMouseUp=function(i){var o=E.Children.only(r.props.children).props.onMouseUp;return o&&o(i),r._currentEventType=El.mouse,r._onDragStop(i)},r._onTouchStart=function(i){var o=E.Children.only(r.props.children).props.onTouchStart;return o&&o(i),r._currentEventType=El.touch,r._onDragStart(i)},r._onTouchEnd=function(i){var o=E.Children.only(r.props.children).props.onTouchEnd;o&&o(i),r._currentEventType=El.touch,r._onDragStop(i)},r._onDragStart=function(i){if(typeof i.button=="number"&&i.button!==0)return!1;if(!(r.props.handleSelector&&!r._matchesSelector(i.target,r.props.handleSelector)||r.props.preventDragSelector&&r._matchesSelector(i.target,r.props.preventDragSelector))){r._touchId=r._getTouchId(i);var o=r._getControlPosition(i);if(o!==void 0){var a=r._createDragDataFromPosition(o);r.props.onStart&&r.props.onStart(i,a),r.setState({isDragging:!0,lastPosition:o}),r._events=[si(document.body,r._currentEventType.move,r._onDrag,!0),si(document.body,r._currentEventType.stop,r._onDragStop,!0)]}}},r._onDrag=function(i){i.type==="touchmove"&&i.preventDefault();var o=r._getControlPosition(i);if(o){var a=r._createUpdatedDragData(r._createDragDataFromPosition(o)),s=a.position;r.props.onDragChange&&r.props.onDragChange(i,a),r.setState({position:s,lastPosition:o})}},r._onDragStop=function(i){if(r.state.isDragging){var o=r._getControlPosition(i);if(o){var a=r._createDragDataFromPosition(o);r.setState({isDragging:!1,lastPosition:void 0}),r.props.onStop&&r.props.onStop(i,a),r.props.position&&r.setState({position:r.props.position}),r._events.forEach(function(s){return s()})}}},r.state={isDragging:!1,position:r.props.position||{x:0,y:0},lastPosition:void 0},r}return t.prototype.componentDidUpdate=function(n){this.props.position&&(!n.position||this.props.position!==n.position)&&this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach(function(n){return n()})},t.prototype.render=function(){var n=E.Children.only(this.props.children),r=n.props,i=this.props.position,o=this.state,a=o.position,s=o.isDragging,l=a.x,u=a.y;return i&&!s&&(l=i.x,u=i.y),E.cloneElement(n,{style:N(N({},r.style),{transform:"translate("+l+"px, "+u+"px)"}),className:jx(r.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(n){var r=this._getActiveTouch(n);if(!(this._touchId!==void 0&&!r)){var i=r||n;return{x:i.clientX,y:i.clientY}}},t.prototype._getActiveTouch=function(n){return n.targetTouches&&this._findTouchInTouchList(n.targetTouches)||n.changedTouches&&this._findTouchInTouchList(n.changedTouches)},t.prototype._getTouchId=function(n){var r=n.targetTouches&&n.targetTouches[0]||n.changedTouches&&n.changedTouches[0];if(r)return r.identifier},t.prototype._matchesSelector=function(n,r){if(!n||n===document.body)return!1;var i=n.matches||n.webkitMatchesSelector||n.msMatchesSelector;return i?i.call(n,r)||this._matchesSelector(n.parentElement,r):!1},t.prototype._findTouchInTouchList=function(n){if(this._touchId!==void 0){for(var r=0;r=(j||ka.small)&&E.createElement(U_,N({ref:he},qr),E.createElement(Mm,N({role:dr?"alertdialog":"dialog",ariaLabelledBy:P,ariaDescribedBy:q,onDismiss:A,shouldRestoreFocus:!T,enableAriaHiddenSiblings:F,"aria-modal":!R},b),E.createElement("div",{className:bn.root,role:R?void 0:"document"},!R&&E.createElement(Gx,N({"aria-hidden":!0,isDarkThemed:S,onClick:y?void 0:A,allowTouchBodyScroll:l},M)),z?E.createElement(Kx,{handleSelector:z.dragHandleSelector||"#"+Ye,preventDragSelector:"button",onStart:Tf,onDragChange:c1,onStop:yf,position:xe},f1):f1)))||null});d2.displayName="Modal";var f2=Yt(d2,Lx,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});f2.displayName="Modal";var qx=Vt(),Qx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return Xi(r),r}return t.prototype.render=function(){var n=this.props,r=n.className,i=n.styles,o=n.theme;return this._classNames=qx(i,{theme:o,className:r}),E.createElement("div",{className:this._classNames.actions},E.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var n=this;return E.Children.map(this.props.children,function(r){return r?E.createElement("span",{className:n._classNames.action},r):null})},t}(E.Component),Xx={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},Zx=function(e){var t=e.className,n=e.theme,r=on(Xx,n);return{actions:[r.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},t],action:[r.action,{margin:"0 4px"}],actionsRight:[r.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}},jm=Yt(Qx,Zx,void 0,{scope:"DialogFooter"}),Jx=Vt(),eN=E.createElement(jm,null).type,tN=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return Xi(r),r}return t.prototype.render=function(){var n=this.props,r=n.showCloseButton,i=n.className,o=n.closeButtonAriaLabel,a=n.onDismiss,s=n.subTextId,l=n.subText,u=n.titleProps,c=u===void 0?{}:u,d=n.titleId,f=n.title,h=n.type,p=n.styles,v=n.theme,_=n.draggableHeaderClassName,g=Jx(p,{theme:v,className:i,isLargeHeader:h===di.largeHeader,isClose:h===di.close,draggableHeaderClassName:_}),T=this._groupChildren(),y;return l&&(y=E.createElement("p",{className:g.subText,id:s},l)),E.createElement("div",{className:g.content},E.createElement("div",{className:g.header},E.createElement("div",N({id:d,role:"heading","aria-level":1},c,{className:Tn(g.title,c.className)}),f),E.createElement("div",{className:g.topButton},this.props.topButtonsProps.map(function(C,k){return E.createElement(ha,N({key:C.uniqueId||k},C))}),(h===di.close||r&&h!==di.largeHeader)&&E.createElement(ha,{className:g.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:a}))),E.createElement("div",{className:g.inner},E.createElement("div",{className:g.innerContent},y,T.contents),T.footers))},t.prototype._groupChildren=function(){var n={footers:[],contents:[]};return E.Children.map(this.props.children,function(r){typeof r=="object"&&r!==null&&r.type===eN?n.footers.push(r):n.contents.push(r)}),n},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=Ws([Q_],t),t}(E.Component),nN={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},rN=function(e){var t,n,r,i=e.className,o=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,u=e.isMultiline,c=e.draggableHeaderClassName,d=o.palette,f=o.fonts,h=o.effects,p=o.semanticColors,v=on(nN,o);return{content:[a&&[v.contentLgHeader,{borderTop:"4px solid "+d.themePrimary}],s&&v.close,{flexGrow:1,overflowY:"hidden"},i],subText:[v.subText,f.medium,{margin:"0 0 24px 0",color:p.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:Ke.regular}],header:[v.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&v.close,c&&[c,{cursor:"move"}]],button:[v.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:p.buttonText,fontSize:Hr.medium}}}],inner:[v.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: "+ah+"px) and (max-width: "+sh+"px)"]={padding:"0 16px 16px"},t)}],innerContent:[v.content,{position:"relative",width:"100%"}],title:[v.title,f.xLarge,{color:p.bodyText,margin:"0",minHeight:f.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: "+ah+"px) and (max-width: "+sh+"px)"]={padding:"16px 46px 16px 16px"},n)},a&&{color:p.menuHeader},u&&{fontSize:f.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(r={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:p.buttonText},".ms-Dialog-button:hover":{color:p.buttonTextHovered,borderRadius:h.roundedCorner2}},r["@media (min-width: "+ah+"px) and (max-width: "+sh+"px)"]={padding:"15px 8px 0 0"},r)}]}},iN=Yt(tN,rN,void 0,{scope:"DialogContent"}),oN=Vt(),aN={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},sN={type:di.normal,className:"",topButtonsProps:[]},lN=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._getSubTextId=function(){var i=r.props,o=i.ariaDescribedById,a=i.modalProps,s=i.dialogContentProps,l=i.subText,u=a&&a.subtitleAriaId||o;return u||(u=(s&&s.subText||l)&&r._defaultSubTextId),u},r._getTitleTextId=function(){var i=r.props,o=i.ariaLabelledById,a=i.modalProps,s=i.dialogContentProps,l=i.title,u=a&&a.titleAriaId||o;return u||(u=(s&&s.title||l)&&r._defaultTitleTextId),u},r._id=En("Dialog"),r._defaultTitleTextId=r._id+"-title",r._defaultSubTextId=r._id+"-subText",r}return t.prototype.render=function(){var n,r,i,o=this.props,a=o.className,s=o.containerClassName,l=o.contentClassName,u=o.elementToFocusOnDismiss,c=o.firstFocusableSelector,d=o.forceFocusInsideTrap,f=o.styles,h=o.hidden,p=o.disableRestoreFocus,v=p===void 0?o.ignoreExternalFocusing:p,_=o.isBlocking,g=o.isClickableOutsideFocusTrap,T=o.isDarkOverlay,y=o.isOpen,C=y===void 0?!h:y,k=o.onDismiss,S=o.onDismissed,A=o.onLayerDidMount,D=o.responsiveMode,M=o.subText,x=o.theme,P=o.title,O=o.topButtonsProps,q=o.type,Z=o.minWidth,U=o.maxWidth,j=o.modalProps,te=N({onLayerDidMount:A},j==null?void 0:j.layerProps),R,z;j!=null&&j.dragOptions&&!(!((n=j.dragOptions)===null||n===void 0)&&n.dragHandleSelector)&&(z=N({},j.dragOptions),R="ms-Dialog-draggable-header",z.dragHandleSelector="."+R);var G=N(N(N(N({},aN),{elementToFocusOnDismiss:u,firstFocusableSelector:c,forceFocusInsideTrap:d,disableRestoreFocus:v,isClickableOutsideFocusTrap:g,responsiveMode:D,className:a,containerClassName:s,isBlocking:_,isDarkOverlay:T,onDismissed:S}),j),{dragOptions:z,layerProps:te,isOpen:C}),F=N(N(N({className:l,subText:M,title:P,topButtonsProps:O,type:q},sN),o.dialogContentProps),{draggableHeaderClassName:R,titleProps:N({id:((r=o.dialogContentProps)===null||r===void 0?void 0:r.titleId)||this._defaultTitleTextId},(i=o.dialogContentProps)===null||i===void 0?void 0:i.titleProps)}),b=oN(f,{theme:x,className:G.className,containerClassName:G.containerClassName,hidden:h,dialogDefaultMinWidth:Z,dialogDefaultMaxWidth:U});return E.createElement(f2,N({},G,{className:b.root,containerClassName:b.main,onDismiss:k||G.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),E.createElement(iN,N({subTextId:this._defaultSubTextId,showCloseButton:G.isBlocking,onDismiss:k},F),o.children))},t.defaultProps={hidden:!0},t=Ws([Q_],t),t}(E.Component),uN={root:"ms-Dialog"},cN=function(e){var t,n=e.className,r=e.containerClassName,i=e.dialogDefaultMinWidth,o=i===void 0?"288px":i,a=e.dialogDefaultMaxWidth,s=a===void 0?"340px":a,l=e.hidden,u=e.theme,c=on(uN,u);return{root:[c.root,u.fonts.medium,n],main:[{width:o,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: "+S_+"px)"]={width:"auto",maxWidth:s,minWidth:o},t)},!l&&{display:"flex"},r]}},Wu=Yt(lN,cN,void 0,{scope:"Dialog"});Wu.displayName="Dialog";function dN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};Dt(n,t)}function fN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};Dt(n,t)}function hN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};Dt(n,t)}function pN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};Dt(n,t)}function mN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};Dt(n,t)}function gN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};Dt(n,t)}function EN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};Dt(n,t)}function vN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};Dt(n,t)}function TN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};Dt(n,t)}function yN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};Dt(n,t)}function _N(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};Dt(n,t)}function CN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};Dt(n,t)}function SN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};Dt(n,t)}function AN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};Dt(n,t)}function bN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};Dt(n,t)}function kN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};Dt(n,t)}function FN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};Dt(n,t)}function IN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};Dt(n,t)}function xN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};Dt(n,t)}var NN=function(){Qo("trash","delete"),Qo("onedrive","onedrivelogo"),Qo("alertsolid12","eventdatemissed12"),Qo("sixpointstar","6pointstar"),Qo("twelvepointstar","12pointstar"),Qo("toggleon","toggleleft"),Qo("toggleoff","toggleright")};_m("@fluentui/font-icons-mdl2","8.5.8");var DN="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",ja=tt();function wN(e,t){var n,r;e===void 0&&(e=((n=ja==null?void 0:ja.FabricConfig)===null||n===void 0?void 0:n.iconBaseUrl)||((r=ja==null?void 0:ja.FabricConfig)===null||r===void 0?void 0:r.fontBaseUrl)||DN),[dN,fN,hN,pN,mN,gN,EN,vN,TN,yN,_N,CN,SN,AN,bN,kN,FN,IN,xN].forEach(function(i){return i(e,t)}),NN()}var RN=Vt(),MN=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.className,o=e.vertical,a=e.alignContent,s=e.children,l=RN(n,{theme:r,className:i,alignContent:a,vertical:o});return E.createElement("div",{className:l.root,ref:t},E.createElement("div",{className:l.content,role:"separator","aria-orientation":o?"vertical":"horizontal"},s))}),PN=function(e){var t,n,r=e.theme,i=e.alignContent,o=e.vertical,a=e.className,s=i==="start",l=i==="center",u=i==="end";return{root:[r.fonts.medium,{position:"relative"},i&&{textAlign:i},!i&&{textAlign:"center"},o&&(l||!i)&&{verticalAlign:"middle"},o&&s&&{verticalAlign:"top"},o&&u&&{verticalAlign:"bottom"},o&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[ie]={backgroundColor:"WindowText"},t)}},!o&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[ie]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},o&&{padding:"12px 0"}]}},h2=Yt(MN,PN,void 0,{scope:"Separator"});h2.displayName="Separator";var Km=N;function Wl(e,t){for(var n=[],r=2;r0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return HN(t[a],l,r[a],r.slots&&r.slots[a],r._defaultStyles&&r._defaultStyles[a],r.theme)};s.isSlot=!0,n[a]=s}};for(var o in t)i(o);return n}function LN(e,t){var n,r;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?r=(n={},n[e]=t,n):r=t,r}function BN(e,t){for(var n=[],r=2;r2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(n.length===2)return{rowGap:vh(bs(n[0],t)),columnGap:vh(bs(n[1],t))};var r=vh(bs(e,t));return{rowGap:r,columnGap:r}},HE=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var n=e.split(" ");return n.length<2?bs(e,t):n.reduce(function(r,i){return bs(r,t)+" "+bs(i,t)})},Ka={start:"flex-start",end:"flex-end"},lp={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},$N=function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,v,_=e.className,g=e.disableShrink,T=e.enableScopedSelectors,y=e.grow,C=e.horizontal,k=e.horizontalAlign,S=e.reversed,A=e.verticalAlign,D=e.verticalFill,M=e.wrap,x=on(lp,t),P=n&&n.childrenGap?n.childrenGap:e.gap,O=n&&n.maxHeight?n.maxHeight:e.maxHeight,q=n&&n.maxWidth?n.maxWidth:e.maxWidth,Z=n&&n.padding?n.padding:e.padding,U=WN(P,t),j=U.rowGap,te=U.columnGap,R=""+-.5*te.value+te.unit,z=""+-.5*j.value+j.unit,G={textOverflow:"ellipsis"},F="> "+(T?"."+lp.child:"*"),b=(r={},r[F+":not(."+g2.root+")"]={flexShrink:0},r);return M?{root:[x.root,{flexWrap:"wrap",maxWidth:q,maxHeight:O,width:"auto",overflow:"visible",height:"100%"},k&&(i={},i[C?"justifyContent":"alignItems"]=Ka[k]||k,i),A&&(o={},o[C?"alignItems":"justifyContent"]=Ka[A]||A,o),_,{display:"flex"},C&&{height:D?"100%":"auto"}],inner:[x.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:R,marginRight:R,marginTop:z,marginBottom:z,overflow:"visible",boxSizing:"border-box",padding:HE(Z,t),width:te.value===0?"100%":"calc(100% + "+te.value+te.unit+")",maxWidth:"100vw"},a[F]=N({margin:""+.5*j.value+j.unit+" "+.5*te.value+te.unit},G),a),g&&b,k&&(s={},s[C?"justifyContent":"alignItems"]=Ka[k]||k,s),A&&(l={},l[C?"alignItems":"justifyContent"]=Ka[A]||A,l),C&&(u={flexDirection:S?"row-reverse":"row",height:j.value===0?"100%":"calc(100% + "+j.value+j.unit+")"},u[F]={maxWidth:te.value===0?"100%":"calc(100% - "+te.value+te.unit+")"},u),!C&&(c={flexDirection:S?"column-reverse":"column",height:"calc(100% + "+j.value+j.unit+")"},c[F]={maxHeight:j.value===0?"100%":"calc(100% - "+j.value+j.unit+")"},c)]}:{root:[x.root,(d={display:"flex",flexDirection:C?S?"row-reverse":"row":S?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:D?"100%":"auto",maxWidth:q,maxHeight:O,padding:HE(Z,t),boxSizing:"border-box"},d[F]=G,d),g&&b,y&&{flexGrow:y===!0?1:y},k&&(f={},f[C?"justifyContent":"alignItems"]=Ka[k]||k,f),A&&(h={},h[C?"alignItems":"justifyContent"]=Ka[A]||A,h),C&&te.value>0&&(p={},p[S?F+":not(:last-child)":F+":not(:first-child)"]={marginLeft:""+te.value+te.unit},p),!C&&j.value>0&&(v={},v[S?F+":not(:last-child)":F+":not(:first-child)"]={marginTop:""+j.value+j.unit},v),_]}},VN=function(e){var t=e.as,n=t===void 0?"div":t,r=e.disableShrink,i=r===void 0?!1:r,o=e.enableScopedSelectors,a=o===void 0?!1:o,s=e.wrap,l=vi(e,["as","disableShrink","enableScopedSelectors","wrap"]),u=E2(e.children,{disableShrink:i,enableScopedSelectors:a}),c=rt(l,ft),d=Wm(e,{root:n,inner:"div"});return s?Wl(d.root,N({},c),Wl(d.inner,null,u)):Wl(d.root,N({},c),u)};function E2(e,t){var n=t.disableShrink,r=t.enableScopedSelectors,i=E.Children.toArray(e);return i=E.Children.map(i,function(o){if(!o||!E.isValidElement(o))return o;if(o.type===E.Fragment)return o.props.children?E2(o.props.children,{disableShrink:n,enableScopedSelectors:r}):null;var a=o,s={};YN(o)&&(s={shrink:!n});var l=a.props.className;return E.cloneElement(a,N(N(N(N({},s),a.props),l&&{className:l}),r&&{className:Tn(lp.child,l)}))}),i}function YN(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===So.displayName}var qN={Item:So},me=$m(VN,{displayName:"Stack",styles:$N,statics:qN}),QN=function(e){if(e.children==null)return null;e.block,e.className;var t=e.as,n=t===void 0?"span":t;e.variant,e.nowrap;var r=vi(e,["block","className","as","variant","nowrap"]),i=Wm(e,{root:n});return Wl(i.root,N({},rt(r,ft)))},XN=function(e,t){var n=e.as,r=e.className,i=e.block,o=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,u=s[a||"medium"];return{root:[u,{color:u.color||l.bodyText,display:i?n==="td"?"table-cell":"block":"inline",mozOsxFontSmoothing:u.MozOsxFontSmoothing,webkitFontSmoothing:u.WebkitFontSmoothing},o&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},Fo=$m(QN,{displayName:"Text",styles:XN});const ZN="_layout_19t1l_1",JN="_header_19t1l_7",eD="_headerContainer_19t1l_11",tD="_headerTitleContainer_19t1l_17",nD="_headerTitle_19t1l_17",rD="_headerIcon_19t1l_34",iD="_shareButtonContainer_19t1l_40",oD="_shareButton_19t1l_40",aD="_shareButtonText_19t1l_63",sD="_urlTextBox_19t1l_73",lD="_copyButtonContainer_19t1l_83",uD="_copyButton_19t1l_83",cD="_copyButtonText_19t1l_105",Ai={layout:ZN,header:JN,headerContainer:eD,headerTitleContainer:tD,headerTitle:nD,headerIcon:rD,shareButtonContainer:iD,shareButton:oD,shareButtonText:aD,urlTextBox:sD,copyButtonContainer:lD,copyButton:uD,copyButtonText:cD},v2="/assets/Azure-30d5e7c0.svg",Th=typeof window>"u"?global:window,yh="@griffel/";function dD(e,t){return Th[Symbol.for(yh+e)]||(Th[Symbol.for(yh+e)]=t),Th[Symbol.for(yh+e)]}const up=dD("DEFINITION_LOOKUP_TABLE",{}),Cc="data-make-styles-bucket",cp=7,Vm="___",fD=Vm.length+cp,hD=0,pD=1;function mD(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function gD(e){const t=e.length;if(t===cp)return e;for(let n=t;n0&&(t+=c.slice(0,d)),n+=f,r[u]=f}}}if(n==="")return t.slice(0,-1);const i=zE[n];if(i!==void 0)return t+i;const o=[];for(let u=0;uo.cssText):r}}}const yD=["r","d","l","v","w","f","i","h","a","k","t","m"],GE=yD.reduce((e,t,n)=>(e[t]=n,e),{});function _D(e,t,n,r,i={}){const o=e==="m",a=o?e+i.m:e;if(!r.stylesheets[a]){const s=t&&t.createElement("style"),l=TD(s,e,{...r.styleElementAttributes,...o&&{media:i.m}});r.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,CD(t,n,e,r,i))}return r.stylesheets[a]}function CD(e,t,n,r,i){const o=GE[n];let a=c=>o-GE[c.getAttribute(Cc)],s=e.head.querySelectorAll(`[${Cc}]`);if(n==="m"&&i){const c=e.head.querySelectorAll(`[${Cc}="${n}"]`);c.length&&(s=c,a=d=>r.compareMediaQueries(i.m,d.media))}const l=s.length;let u=l-1;for(;u>=0;){const c=s.item(u);if(a(c)>0)return c.nextSibling;u--}return l>0?s.item(0):t?t.nextSibling:null}let SD=0;const AD=(e,t)=>et?1:0;function bD(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:n,insertionPoint:r,styleElementAttributes:i,compareMediaQueries:o=AD}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:o,id:`d${SD++}`,insertCSSRules(s){for(const l in s){const u=s[l];for(let c=0,d=u.length;c{const{title:t,primaryFill:n="currentColor"}=e,r=vi(e,["title","primaryFill"]),i=Object.assign(Object.assign({},r),{title:void 0,fill:n}),o=wD();return i.className=ED(o.root,i.className),t&&(i["aria-label"]=t),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},MD=(e,t)=>{const n=r=>{const i=RD(r);return E.createElement(e,Object.assign({},i))};return n.displayName=t,n},$u=MD,PD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z",fill:t}))},OD=$u(PD,"CopyRegular"),LD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5ZM10 6a.5.5 0 0 1 .5.41V11a.5.5 0 0 1-1 .09V6.5c0-.28.22-.5.5-.5Z",fill:t}))},BD=$u(LD,"ErrorCircleRegular"),HD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:t}))},UD=$u(HD,"SendRegular"),zD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M9.72 2.08a.5.5 0 0 1 .56 0c1.94 1.3 4.03 2.1 6.3 2.43A.5.5 0 0 1 17 5v4.34c-.26-.38-.6-.7-1-.94V5.43a15.97 15.97 0 0 1-5.6-2.08L10 3.1l-.4.25A15.97 15.97 0 0 1 4 5.43V9.5c0 3.4 1.97 5.86 6 7.46V17a2 2 0 0 0 .24.94l-.06.03a.5.5 0 0 1-.36 0C5.31 16.23 3 13.39 3 9.5V5a.5.5 0 0 1 .43-.5 15.05 15.05 0 0 0 6.3-2.42ZM12.5 12v-1a2 2 0 1 1 4 0v1h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h.5Zm1-1v1h2v-1a1 1 0 1 0-2 0Zm1.75 4a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z",fill:t}))},GD=$u(zD,"ShieldLockRegular"),jD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Z",fill:t}))},KD=$u(jD,"SquareRegular"),WD=({onClick:e})=>L(xu,{styles:{root:{width:86,height:32,borderRadius:4,background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)",padding:"5px 12px",marginRight:"20px"},icon:{color:"#FFFFFF"},rootHovered:{background:"linear-gradient(135deg, #0F6CBD 0%, #2D87C3 51.04%, #8DDDD8 100%)"},label:{fontWeight:600,fontSize:14,lineHeight:"20px",color:"#FFFFFF"}},iconProps:{iconName:"Share"},onClick:e,text:"Share"}),$D=({onClick:e,text:t})=>L(Qd,{text:t,iconProps:{iconName:"History"},onClick:e,styles:{root:{width:"180px",border:"1px solid #D1D1D1"},rootHovered:{border:"1px solid #D1D1D1"},rootPressed:{border:"1px solid #D1D1D1"}}}),VD=(e,t)=>{switch(t.type){case"TOGGLE_CHAT_HISTORY":return{...e,isChatHistoryOpen:!e.isChatHistoryOpen};case"UPDATE_CURRENT_CHAT":return{...e,currentChat:t.payload};case"UPDATE_CHAT_HISTORY_LOADING_STATE":return{...e,chatHistoryLoadingState:t.payload};case"UPDATE_CHAT_HISTORY":if(!e.chatHistory||!e.currentChat)return e;let n=e.chatHistory.findIndex(a=>a.id===t.payload.id);if(n!==-1){let a=[...e.chatHistory];return a[n]=e.currentChat,{...e,chatHistory:a}}else return{...e,chatHistory:[...e.chatHistory,t.payload]};case"UPDATE_CHAT_TITLE":if(!e.chatHistory)return{...e,chatHistory:[]};let r=e.chatHistory.map(a=>{var s;return a.id===t.payload.id?(((s=e.currentChat)==null?void 0:s.id)===t.payload.id&&(e.currentChat.title=t.payload.title),{...a,title:t.payload.title}):a});return{...e,chatHistory:r};case"DELETE_CHAT_ENTRY":if(!e.chatHistory)return{...e,chatHistory:[]};let i=e.chatHistory.filter(a=>a.id!==t.payload);return e.currentChat=null,{...e,chatHistory:i};case"DELETE_CHAT_HISTORY":return{...e,chatHistory:[],filteredChatHistory:[],currentChat:null};case"DELETE_CURRENT_CHAT_MESSAGES":if(!e.currentChat||!e.chatHistory)return e;const o={...e.currentChat,messages:[]};return{...e,currentChat:o};case"FETCH_CHAT_HISTORY":return{...e,chatHistory:t.payload};case"SET_COSMOSDB_STATUS":return{...e,isCosmosDBAvailable:t.payload};default:return e}};var tr=(e=>(e.NotConfigured="CosmosDB is not configured",e.NotWorking="CosmosDB is not working",e.Working="CosmosDB is configured and working",e))(tr||{}),wn=(e=>(e.Loading="loading",e.Success="success",e.Fail="fail",e.NotStarted="notStarted",e))(wn||{});async function YD(e,t){return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e.messages}),signal:t})}async function qD(){const e=await fetch("/.auth/me");return e.ok?await e.json():(console.log("No identity provider found. Access to chat will be blocked."),[])}const QD=async()=>await fetch("/history/list",{method:"GET"}).then(async t=>{const n=await t.json();return Array.isArray(n)?await Promise.all(n.map(async i=>{let o=[];return o=await XD(i.id).then(s=>s).catch(s=>(console.error("error fetching messages: ",s),[])),{id:i.id,title:i.title,date:i.createdAt,messages:o}})):(console.error("There was an issue fetching your data."),null)}).catch(t=>(console.error("There was an issue fetching your data."),null)),XD=async e=>await fetch("/history/read",{method:"POST",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(async n=>{if(!n)return[];const r=await n.json();let i=[];return r!=null&&r.messages&&r.messages.forEach(o=>{const a={id:o.id,role:o.role,date:o.createdAt,content:o.content};i.push(a)}),i}).catch(n=>(console.error("There was an issue fetching your data."),[])),jE=async(e,t,n)=>{let r;return n?r=JSON.stringify({conversation_id:n,messages:e.messages}):r=JSON.stringify({messages:e.messages}),await fetch("/history/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:r,signal:t}).then(o=>o).catch(o=>(console.error("There was an issue fetching your data."),new Response))},ZD=async(e,t)=>await fetch("/history/update",{method:"POST",body:JSON.stringify({conversation_id:t,messages:e}),headers:{"Content-Type":"application/json"}}).then(async r=>r).catch(r=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),JD=async e=>await fetch("/history/delete",{method:"DELETE",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(n=>n).catch(n=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),ew=async()=>await fetch("/history/delete_all",{method:"DELETE",body:JSON.stringify({}),headers:{"Content-Type":"application/json"}}).then(t=>t).catch(t=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),tw=async e=>await fetch("/history/clear",{method:"POST",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(n=>n).catch(n=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),nw=async(e,t)=>await fetch("/history/rename",{method:"POST",body:JSON.stringify({conversation_id:e,title:t}),headers:{"Content-Type":"application/json"}}).then(r=>r).catch(r=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),rw=async()=>await fetch("/history/ensure",{method:"GET"}).then(async t=>{let n=await t.json(),r;return n.message?r=tr.Working:t.status===500?r=tr.NotWorking:r=tr.NotConfigured,t.ok?{cosmosDB:!0,status:r}:{cosmosDB:!1,status:r}}).catch(t=>(console.error("There was an issue fetching your data."),{cosmosDB:!1,status:t})),iw={isChatHistoryOpen:!1,chatHistoryLoadingState:wn.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:tr.NotConfigured}},qs=E.createContext(void 0),ow=({children:e})=>{const[t,n]=E.useReducer(VD,iw);return E.useEffect(()=>{const r=async()=>await QD().then(a=>(n(a?{type:"FETCH_CHAT_HISTORY",payload:a}:{type:"FETCH_CHAT_HISTORY",payload:null}),a)).catch(a=>(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"FETCH_CHAT_HISTORY",payload:null}),console.error("There was an issue fetching your data."),null));(async()=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Loading}),rw().then(o=>{o!=null&&o.cosmosDB?r().then(a=>{a?(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Success}),n({type:"SET_COSMOSDB_STATUS",payload:o})):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:tr.NotWorking}}))}).catch(a=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:tr.NotWorking}})}):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:o}))}).catch(o=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:tr.NotConfigured}})})})()},[]),L(qs.Provider,{value:{state:t,dispatch:n},children:e})},aw=()=>{var d,f;const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[i,o]=E.useState("Copy URL"),a=E.useContext(qs),s=()=>{t(!0)},l=()=>{t(!1),r(!1),o("Copy URL")},u=()=>{navigator.clipboard.writeText(window.location.href),r(!0)},c=()=>{a==null||a.dispatch({type:"TOGGLE_CHAT_HISTORY"})};return E.useEffect(()=>{n&&o("Copied URL")},[n]),E.useEffect(()=>{},[a==null?void 0:a.state.isCosmosDBAvailable.status]),pe("div",{className:Ai.layout,children:[L("header",{className:Ai.header,role:"banner",children:pe(me,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[pe(me,{horizontal:!0,verticalAlign:"center",children:[L("img",{src:v2,className:Ai.headerIcon,"aria-hidden":"true"}),L(v7,{to:"/",className:Ai.headerTitleContainer,children:L("h1",{className:Ai.headerTitle,children:"Azure AI"})})]}),pe(me,{horizontal:!0,tokens:{childrenGap:4},children:[((d=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:d.status)!==tr.NotConfigured&&L($D,{onClick:c,text:(f=a==null?void 0:a.state)!=null&&f.isChatHistoryOpen?"Hide chat history":"Show chat history"}),L(WD,{onClick:s})]})]})}),L(u7,{}),L(Wu,{onDismiss:l,hidden:!e,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"200px",minHeight:"100px"}}}]},dialogContentProps:{title:"Share the web app",showCloseButton:!0},children:pe(me,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[L(Gm,{className:Ai.urlTextBox,defaultValue:window.location.href,readOnly:!0}),pe("div",{className:Ai.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:u,onKeyDown:h=>h.key==="Enter"||h.key===" "?u():null,children:[L(OD,{className:Ai.copyButton}),L("span",{className:Ai.copyButtonText,children:i})]})]})})]})},sw=()=>L("h1",{children:"404"}),KE=["http","https","mailto","tel"];function lw(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! +`+hl.slice(0,r).join(", ")+(hl.length>r?" (+ "+(hl.length-r)+" more)":"")),ih=void 0,hl=[]},n)))}function hb(e,t,n,r,i){i===void 0&&(i=!1);var o=N({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),a=C_(e,t,o,r);return pb(a,i)}function C_(e,t,n,r,i){var o={},a=e||{},s=a.white,l=a.black,u=a.themePrimary,c=a.themeDark,d=a.themeDarker,f=a.themeDarkAlt,h=a.themeLighter,p=a.neutralLight,v=a.neutralLighter,_=a.neutralDark,g=a.neutralQuaternary,T=a.neutralQuaternaryAlt,y=a.neutralPrimary,C=a.neutralSecondary,k=a.neutralSecondaryAlt,S=a.neutralTertiary,A=a.neutralTertiaryAlt,D=a.neutralLighterAlt,M=a.accent;return s&&(o.bodyBackground=s,o.bodyFrameBackground=s,o.accentButtonText=s,o.buttonBackground=s,o.primaryButtonText=s,o.primaryButtonTextHovered=s,o.primaryButtonTextPressed=s,o.inputBackground=s,o.inputForegroundChecked=s,o.listBackground=s,o.menuBackground=s,o.cardStandoutBackground=s),l&&(o.bodyTextChecked=l,o.buttonTextCheckedHovered=l),u&&(o.link=u,o.primaryButtonBackground=u,o.inputBackgroundChecked=u,o.inputIcon=u,o.inputFocusBorderAlt=u,o.menuIcon=u,o.menuHeader=u,o.accentButtonBackground=u),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),d&&(o.linkHovered=d),f&&(o.primaryButtonBackgroundHovered=f),h&&(o.inputPlaceholderBackgroundChecked=h),p&&(o.bodyBackgroundChecked=p,o.bodyFrameDivider=p,o.bodyDivider=p,o.variantBorder=p,o.buttonBackgroundCheckedHovered=p,o.buttonBackgroundPressed=p,o.listItemBackgroundChecked=p,o.listHeaderBackgroundPressed=p,o.menuItemBackgroundPressed=p,o.menuItemBackgroundChecked=p),v&&(o.bodyBackgroundHovered=v,o.buttonBackgroundHovered=v,o.buttonBackgroundDisabled=v,o.buttonBorderDisabled=v,o.primaryButtonBackgroundDisabled=v,o.disabledBackground=v,o.listItemBackgroundHovered=v,o.listHeaderBackgroundHovered=v,o.menuItemBackgroundHovered=v),g&&(o.primaryButtonTextDisabled=g,o.disabledSubtext=g),T&&(o.listItemBackgroundCheckedHovered=T),S&&(o.disabledBodyText=S,o.variantBorderHovered=(n==null?void 0:n.variantBorderHovered)||S,o.buttonTextDisabled=S,o.inputIconDisabled=S,o.disabledText=S),y&&(o.bodyText=y,o.actionLink=y,o.buttonText=y,o.inputBorderHovered=y,o.inputText=y,o.listText=y,o.menuItemText=y),D&&(o.bodyStandoutBackground=D,o.defaultStateBackground=D),_&&(o.actionLinkHovered=_,o.buttonTextHovered=_,o.buttonTextChecked=_,o.buttonTextPressed=_,o.inputTextHovered=_,o.menuItemTextHovered=_),C&&(o.bodySubtext=C,o.focusBorder=C,o.inputBorder=C,o.smallInputBorder=C,o.inputPlaceholderText=C),k&&(o.buttonBorder=k),A&&(o.disabledBodySubtext=A,o.disabledBorder=A,o.buttonBackgroundChecked=A,o.menuDivider=A),M&&(o.accentButtonBackground=M),t!=null&&t.elevation4&&(o.cardShadow=t.elevation4),!r&&(t!=null&&t.elevation8)?o.cardShadowHovered=t.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),o=N(N({},o),n),o}function pb(e,t){var n="";return t===!0&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}function mb(e,t){var n,r,i;t===void 0&&(t={});var o=uE({},e,t,{semanticColors:C_(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((n=t.palette)===null||n===void 0)&&n.themePrimary&&!(!((r=t.palette)===null||r===void 0)&&r.accent)&&(o.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a"u"?global:window,gE=jl&&jl.CSPSettings&&jl.CSPSettings.nonce,er=sk();function sk(){var e=jl.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=hs(hs({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=hs(hs({},e),{registeredThemableStyles:[]})),jl.__themeState__=e,e}function lk(e,t){er.loadStyles?er.loadStyles(k_(e).styleString,e):fk(e)}function uk(e){er.theme=e,dk()}function ck(e){e===void 0&&(e=3),(e===3||e===2)&&(EE(er.registeredStyles),er.registeredStyles=[]),(e===3||e===1)&&(EE(er.registeredThemableStyles),er.registeredThemableStyles=[])}function EE(e){e.forEach(function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function dk(){if(er.theme){for(var e=[],t=0,n=er.registeredThemableStyles;t0&&(ck(1),lk([].concat.apply([],e)))}}function k_(e){var t=er.theme,n=!1,r=(e||[]).map(function(i){var o=i.theme;if(o){n=!0;var a=t?t[o]:void 0,s=i.defaultValue||"inherit";return t&&!a&&console&&!(o in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(o,'". Falling back to "').concat(s,'".')),a||s}else return i.rawString});return{styleString:r.join(""),themable:n}}function fk(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=k_(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),gE&&n.setAttribute("nonce",gE),n.appendChild(document.createTextNode(i)),er.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};o?er.registeredThemableStyles.push(s):er.registeredStyles.push(s)}}var hr=ju({}),hk=[],ip="theme";function F_(){var e,t,n,r=tt();!((t=r==null?void 0:r.FabricConfig)===null||t===void 0)&&t.legacyTheme?mk(r.FabricConfig.legacyTheme):_r.getSettings([ip]).theme||(!((n=r==null?void 0:r.FabricConfig)===null||n===void 0)&&n.theme&&(hr=ju(r.FabricConfig.theme)),_r.applySettings((e={},e[ip]=hr,e)))}F_();function pk(e){return e===void 0&&(e=!1),e===!0&&(hr=ju({},e)),hr}function mk(e,t){var n;return t===void 0&&(t=!1),hr=ju(e,t),uk(N(N(N(N({},hr.palette),hr.semanticColors),hr.effects),gk(hr))),_r.applySettings((n={},n[ip]=hr,n)),hk.forEach(function(r){try{r(hr)}catch{}}),hr}function gk(e){for(var t={},n=0,r=Object.keys(e.fonts);nt.bottom||e.leftt.right)}function cd(e,t){var n=[];return e.topt.bottom&&n.push(le.bottom),e.leftt.right&&n.push(le.right),n}function rn(e,t){return e[le[t]]}function _E(e,t,n){return e[le[t]]=n,e}function Cu(e,t){var n=Vs(t);return(rn(e,n.positiveEdge)+rn(e,n.negativeEdge))/2}function Vd(e,t){return e>0?t:t*-1}function op(e,t){return Vd(e,rn(t,e))}function Hi(e,t,n){var r=rn(e,n)-rn(t,n);return Vd(n,r)}function Bs(e,t,n,r){r===void 0&&(r=!0);var i=rn(e,t)-n,o=_E(e,t,n);return r&&(o=_E(e,t*-1,rn(e,t*-1)-i)),o}function Su(e,t,n,r){return r===void 0&&(r=0),Bs(e,n,rn(t,n)+Vd(n,r))}function Ek(e,t,n,r){r===void 0&&(r=0);var i=n*-1,o=Vd(i,r);return Bs(e,n*-1,rn(t,n)+o)}function dd(e,t,n){var r=op(n,e);return r>op(n,t)}function vk(e,t){for(var n=cd(e,t),r=0,i=0,o=n;i0&&(o.indexOf(s*-1)>-1?s=s*-1:(l=s,s=o.slice(-1)[0]),a=fd(e,t,{targetEdge:s,alignmentEdge:l},i))}return a=fd(e,t,{targetEdge:c,alignmentEdge:d},i),{elementRectangle:a,targetEdge:c,alignmentEdge:d}}function yk(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=e.elementRectangle,s=i*-1,l=fd(a,t,{targetEdge:o,alignmentEdge:s},n,r);return{elementRectangle:l,targetEdge:o,alignmentEdge:s}}function _k(e,t,n,r,i,o,a){i===void 0&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};!o&&!a&&(u=Tk(e,t,n,r,i));var c=cd(u.elementRectangle,n),d=o?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(u.alignmentEdge*-1)>-1){var f=yk(u,t,i,a);if(Nm(f.elementRectangle,n))return f;u=uh(cd(f.elementRectangle,n),u,n,d)}else u=uh(c,u,n,d);else u=uh(c,u,n,d);return u}function uh(e,t,n,r){for(var i=0,o=e;iMath.abs(Hi(e,n,t*-1))?t*-1:t}function Ck(e,t,n){return n!==void 0&&rn(e,t)===rn(n,t)}function Sk(e,t,n,r,i,o,a,s){var l={},u=Dm(t),c=o?n:n*-1,d=i||Vs(n).positiveEdge;return(!a||Ck(e,Lk(d),r))&&(d=x_(e,d,r)),l[le[c]]=Hi(e,u,c),l[le[d]]=Hi(e,u,d),s&&(l[le[c*-1]]=Hi(e,u,c*-1),l[le[d*-1]]=Hi(e,u,d*-1)),l}function Ak(e){return Math.sqrt(e*e*2)}function bk(e,t,n){if(e===void 0&&(e=vt.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=N({},yE[e]);return gn()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=r.alignmentEdge*-1),t!==void 0?yE[t]:r):r}function kk(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=N_(e.targetEdge,t,n)),e.alignTargetEdge=i,e}function N_(e,t,n){var r=Cu(t,e),i=Cu(n,e),o=Vs(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Fk(e,t,n,r,i,o,a){var s=fd(e,t,r,i,a);return Nm(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:_k(s,t,n,r,i,o,a)}function Ik(e,t,n){var r=e.targetEdge*-1,i=new mi(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},a=x_(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Vs(r).positiveEdge,n),s=Hi(e.elementRectangle,e.targetRectangle,r),l=s>Math.abs(rn(t,r));return o[le[r]]=rn(t,r),o[le[a]]=Hi(t,i,a),{elementPosition:N({},o),closestEdge:N_(e.targetEdge,t,i),targetEdge:r,hideBeak:!l}}function xk(e,t){var n=t.targetRectangle,r=Vs(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Cu(n,t.targetEdge),s=new mi(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new mi(0,e,0,e);return l=Bs(l,t.targetEdge*-1,-e/2),l=I_(l,t.targetEdge*-1,a-op(i,t.elementRectangle)),dd(l,s,i)?dd(l,s,o)||(l=Su(l,s,o)):l=Su(l,s,i),l}function Dm(e){var t=e.getBoundingClientRect();return new mi(t.left,t.right,t.top,t.bottom)}function Nk(e){return new mi(e.left,e.right,e.top,e.bottom)}function Dk(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new mi(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Dm(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new mi(o,s,a,l)}if(!Nm(n,e))for(var u=cd(n,e),c=0,d=u;c=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}function Hk(e,t){return Bk(e,t)}function Ys(){var e=E.useRef();return e.current||(e.current=new $s),E.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function gi(e){var t=E.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function Ku(e){var t=E.useState(e),n=t[0],r=t[1],i=gi(function(){return function(){r(!0)}}),o=gi(function(){return function(){r(!1)}}),a=gi(function(){return function(){r(function(s){return!s})}});return[n,{setTrue:i,setFalse:o,toggle:a}]}function ch(e){var t=E.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return Os(function(){t.current=e},[e]),gi(function(){return function(){for(var n=[],r=0;r0&&u>l&&(s=u-l>1)}i!==s&&o(s)}}),function(){return n.dispose()}}),i}function jk(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==tt()&&setTimeout(function(){var r;(r=t.focus)===null||r===void 0||r.call(t)},0)}function Kk(e,t){var n=e.onRestoreFocus,r=n===void 0?jk:n,i=E.useRef(),o=E.useRef(!1);E.useEffect(function(){return i.current=_n().activeElement,pA(t.current)&&(o.current=!0),function(){var a;r==null||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:((a=_n())===null||a===void 0?void 0:a.hasFocus())||!1}),i.current=void 0}},[]),Au(t,"focus",E.useCallback(function(){o.current=!0},[]),!0),Au(t,"blur",E.useCallback(function(a){t.current&&a.relatedTarget&&!t.current.contains(a.relatedTarget)&&(o.current=!1)},[]),!0)}function Wk(e,t){var n=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;E.useEffect(function(){if(n&&t.current){var r=y_(t.current);return r}},[t,n])}var Mm=E.forwardRef(function(e,t){var n=Gu({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=E.useRef(),i=Wi(r,t);Wk(n,r),Kk(n,r);var o=n.role,a=n.className,s=n.ariaLabel,l=n.ariaLabelledBy,u=n.ariaDescribedBy,c=n.style,d=n.children,f=n.onDismiss,h=Gk(n,r),p=E.useCallback(function(_){switch(_.which){case oe.escape:f&&(f(_),_.preventDefault(),_.stopPropagation());break}},[f]),v=qd();return Au(v,"keydown",p),E.createElement("div",N({ref:i},rt(n,Qi),{className:a,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,onKeyDown:p,style:N({overflowY:h?"scroll":void 0,outline:"none"},c)}),d)});Mm.displayName="Popup";var za,$k="CalloutContentBase",Vk=(za={},za[le.top]=ps.slideUpIn10,za[le.bottom]=ps.slideDownIn10,za[le.left]=ps.slideLeftIn10,za[le.right]=ps.slideRightIn10,za),CE={top:0,left:0},Yk={opacity:0,filter:"opacity(0)",pointerEvents:"none"},qk=["role","aria-roledescription"],M_={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:vt.bottomAutoEdge},Qk=Vt({disableCaching:!0});function Xk(e,t,n){var r=e.bounds,i=e.minPagePadding,o=i===void 0?M_.minPagePadding:i,a=e.target,s=E.useState(!1),l=s[0],u=s[1],c=E.useRef(),d=E.useCallback(function(){if(!c.current||l){var h=typeof r=="function"?n?r(a,n):void 0:r;!h&&n&&(h=Hk(t.current,n),h={top:h.top+o,left:h.left+o,right:h.right-o,bottom:h.bottom-o,width:h.width-o*2,height:h.height-o*2}),c.current=h,l&&u(!1)}return c.current},[r,o,a,t,n,l]),f=Ys();return Au(n,"resize",f.debounce(function(){u(!0)},500,{leading:!0})),d}function Zk(e,t,n){var r,i=e.calloutMaxHeight,o=e.finalHeight,a=e.directionalHint,s=e.directionalHintFixed,l=e.hidden,u=E.useState(),c=u[0],d=u[1],f=(r=n==null?void 0:n.elementPosition)!==null&&r!==void 0?r:{},h=f.top,p=f.bottom;return E.useEffect(function(){var v,_=(v=t())!==null&&v!==void 0?v:{},g=_.top,T=_.bottom;!i&&!l?typeof h=="number"&&T?d(T-h):typeof p=="number"&&typeof g=="number"&&T&&d(T-g-p):d(i||void 0)},[p,i,o,a,s,t,l,n,h]),c}function Jk(e,t,n,r,i){var o=E.useState(),a=o[0],s=o[1],l=E.useRef(0),u=E.useRef(),c=Ys(),d=e.hidden,f=e.target,h=e.finalHeight,p=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return E.useEffect(function(){if(d)s(void 0),l.current=0;else{var g=c.requestAnimationFrame(function(){var T,y;if(t.current&&n){var C=N(N({},e),{target:r.current,bounds:i()}),k=n.cloneNode(!0);k.style.maxHeight=p?""+p:"",k.style.visibility="hidden",(T=n.parentElement)===null||T===void 0||T.appendChild(k);var S=u.current===f?a:void 0,A=h?Ok(C,t.current,k,S):Pk(C,t.current,k,S);(y=n.parentElement)===null||y===void 0||y.removeChild(k),!a&&A||a&&A&&!rF(a,A)&&l.current<5?(l.current++,s(A)):l.current>0&&(l.current=0,v==null||v(a))}},n);return u.current=f,function(){c.cancelAnimationFrame(g),u.current=void 0}}},[d,_,c,n,p,t,r,h,i,v,a,e,f]),a}function eF(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Ys(),a=!!t;E.useEffect(function(){if(!r&&i&&a&&n){var s=o.requestAnimationFrame(function(){return hA(n)},n);return function(){return o.cancelAnimationFrame(s)}}},[r,a,o,n,i])}function tF(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,l=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,f=e.preventDismissOnEvent,h=E.useRef(!1),p=Ys(),v=gi([function(){h.current=!0},function(){h.current=!1}]),_=!!t;return E.useEffect(function(){var g=function(A){_&&!s&&C(A)},T=function(A){!l&&!(f&&f(A))&&(a==null||a(A))},y=function(A){u||C(A)},C=function(A){var D=A.composedPath?A.composedPath():[],M=D.length>0?D[0]:A.target,x=n.current&&!On(n.current,M);if(x&&h.current){h.current=!1;return}if(!r.current&&x||A.target!==i&&x&&(!r.current||"stopPropagation"in r.current||c||M!==r.current&&!On(r.current,M))){if(f&&f(A))return;a==null||a(A)}},k=function(A){d&&(f&&!f(A)||!f&&!u)&&!(i!=null&&i.document.hasFocus())&&A.relatedTarget===null&&(a==null||a(A))},S=new Promise(function(A){p.setTimeout(function(){if(!o&&i){var D=[si(i,"scroll",g,!0),si(i,"resize",T,!0),si(i.document.documentElement,"focus",y,!0),si(i.document.documentElement,"click",y,!0),si(i,"blur",k,!0)];A(function(){D.forEach(function(M){return M()})})}},0)});return function(){S.then(function(A){return A()})}},[o,p,n,r,i,a,d,c,u,l,s,_,f]),v}var P_=E.memo(E.forwardRef(function(e,t){var n=Gu(M_,e),r=n.styles,i=n.style,o=n.ariaLabel,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,u=n.isBeakVisible,c=n.children,d=n.beakWidth,f=n.calloutWidth,h=n.calloutMaxWidth,p=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,g=n.hideOverflow,T=g===void 0?!!_:g,y=n.backgroundColor,C=n.calloutMaxHeight,k=n.onScroll,S=n.shouldRestoreFocus,A=S===void 0?!0:S,D=n.target,M=n.hidden,x=n.onLayerMounted,P=n.popupProps,O=E.useRef(null),q=E.useState(null),Z=q[0],U=q[1],j=E.useCallback(function(ot){U(ot)},[]),te=Wi(O,t),R=w_(n.target,{current:Z}),z=R[0],G=R[1],F=Xk(n,z,G),b=Jk(n,O,Z,z,F),Ve=Zk(n,F,b),J=tF(n,b,O,z,G),fe=J[0],ee=J[1],he=(b==null?void 0:b.elementPosition.top)&&(b==null?void 0:b.elementPosition.bottom),ye=N(N({},b==null?void 0:b.elementPosition),{maxHeight:Ve});if(he&&(ye.bottom=void 0),eF(n,b,Z),E.useEffect(function(){M||x==null||x()},[M]),!G)return null;var Ye=T,ue=u&&!!D,bt=Qk(r,{theme:n.theme,className:l,overflowYHidden:Ye,calloutWidth:f,positions:b,beakWidth:d,backgroundColor:y,calloutMaxWidth:h,calloutMinWidth:p,doNotLayer:v}),Ht=N(N({maxHeight:C||"100%"},i),Ye&&{overflowY:"hidden"}),qt=n.hidden?{visibility:"hidden"}:void 0;return E.createElement("div",{ref:te,className:bt.container,style:qt},E.createElement("div",N({},rt(n,Qi,qk),{className:Tn(bt.root,b&&b.targetEdge&&Vk[b.targetEdge]),style:b?N({},ye):Yk,tabIndex:-1,ref:j}),ue&&E.createElement("div",{className:bt.beak,style:nF(b)}),ue&&E.createElement("div",{className:bt.beakCurtain}),E.createElement(Mm,N({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:a,ariaLabel:o,ariaLabelledBy:s,className:bt.calloutMain,onDismiss:n.onDismiss,onMouseDown:fe,onMouseUp:ee,onRestoreFocus:n.onRestoreFocus,onScroll:k,shouldRestoreFocus:A,style:Ht},P),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:Sm(e,t)});function nF(e){var t,n,r=N(N({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((n=e==null?void 0:e.beakPosition)===null||n===void 0)&&n.hideBeak?"none":void 0});return!r.top&&!r.bottom&&!r.left&&!r.right&&(r.left=CE.left,r.top=CE.top),r}function rF(e,t){return SE(e.elementPosition,t.elementPosition)&&SE(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function SE(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],i=t[n];if(r!==void 0&&i!==void 0){if(r.toFixed(2)!==i.toFixed(2))return!1}else return!1}return!0}P_.displayName=$k;function iF(e){return{height:e,width:e}}var oF={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},aF=function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=on(oF,n),f=n.semanticColors,h=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Ls.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[ie]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},ok(),r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:f.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},iF(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},sF=Yt(P_,aF,void 0,{scope:"CalloutContent"}),O_=E.createContext(void 0),lF=function(){return function(){}};O_.Provider;function uF(){var e;return(e=E.useContext(O_))!==null&&e!==void 0?e:lF}var cF=Vt(),dF=dt(function(e,t){return ju(N(N({},e),{rtl:t}))}),fF=function(e){var t=e.theme,n=e.dir,r=gn(t)?"rtl":"ltr",i=gn()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}},L_=E.forwardRef(function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,o=e.applyThemeToBody,a=e.styles,s=cF(a,{theme:r,applyTheme:i,className:n}),l=E.useRef(null);return pF(o,s,l),E.createElement(E.Fragment,null,hF(e,s,l,t))});L_.displayName="FabricBase";function hF(e,t,n,r){var i=t.root,o=e.as,a=o===void 0?"div":o,s=e.dir,l=e.theme,u=rt(e,Qi,["dir"]),c=fF(e),d=c.rootDir,f=c.needsTheme,h=E.createElement(v_,{providerRef:n},E.createElement(a,N({dir:d},u,{className:i,ref:Wi(n,r)})));return f&&(h=E.createElement(MA,{settings:{theme:dF(l,s==="rtl")}},h)),h}function pF(e,t,n){var r=t.bodyThemed;return E.useEffect(function(){if(e){var i=_n(n.current);if(i)return i.body.classList.add(r),function(){i.body.classList.remove(r)}}},[r,e,n]),n}var dh={fontFamily:"inherit"},mF={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},gF=function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme,o=on(mF,i);return{root:[o.root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":dh,"& input":dh,"& textarea":dh},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}},EF=Yt(L_,gF,void 0,{scope:"Fabric"}),Kl={},Pm={},B_="fluent-default-layer-host",vF="#"+B_;function TF(e,t){Kl[e]||(Kl[e]=[]),Kl[e].push(t);var n=Pm[e];if(n)for(var r=0,i=n;r=0&&(n.splice(r,1),n.length===0&&delete Kl[e])}var i=Pm[e];if(i)for(var o=0,a=i;o0&&t.current.naturalHeight>0||t.current.complete&&RF.test(o):!1;d&&l(mn.loaded)}}),E.useEffect(function(){n==null||n(s)},[s]);var u=E.useCallback(function(d){r==null||r(d),o&&l(mn.loaded)},[o,r]),c=E.useCallback(function(d){i==null||i(d),l(mn.error)},[i]);return[s,u,c]}var G_=E.forwardRef(function(e,t){var n=E.useRef(),r=E.useRef(),i=PF(e,r),o=i[0],a=i[1],s=i[2],l=rt(e,WA,["width","height"]),u=e.src,c=e.alt,d=e.width,f=e.height,h=e.shouldFadeIn,p=h===void 0?!0:h,v=e.shouldStartVisible,_=e.className,g=e.imageFit,T=e.role,y=e.maximizeFrame,C=e.styles,k=e.theme,S=e.loading,A=OF(e,o,r,n),D=wF(C,{theme:k,className:_,width:d,height:f,maximizeFrame:y,shouldFadeIn:p,shouldStartVisible:v,isLoaded:o===mn.loaded||o===mn.notLoaded&&e.shouldStartVisible,isLandscape:A===bu.landscape,isCenter:g===Pn.center,isCenterContain:g===Pn.centerContain,isCenterCover:g===Pn.centerCover,isContain:g===Pn.contain,isCover:g===Pn.cover,isNone:g===Pn.none,isError:o===mn.error,isNotImageFit:g===void 0});return E.createElement("div",{className:D.root,style:{width:d,height:f},ref:n},E.createElement("img",N({},l,{onLoad:a,onError:s,key:MF+e.src||"",className:D.image,ref:Wi(r,t),src:u,alt:c,role:T,loading:S})))});G_.displayName="ImageBase";function OF(e,t,n,r){var i=E.useRef(t),o=E.useRef();return(o===void 0||i.current===mn.notLoaded&&t===mn.loaded)&&(o.current=LF(e,t,n,r)),i.current=t,o.current}function LF(e,t,n,r){var i=e.imageFit,o=e.width,a=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===mn.loaded&&(i===Pn.cover||i===Pn.contain||i===Pn.centerContain||i===Pn.centerCover)&&n.current&&r.current){var s=void 0;typeof o=="number"&&typeof a=="number"&&i!==Pn.centerContain&&i!==Pn.centerCover?s=o/a:s=r.current.clientWidth/r.current.clientHeight;var l=n.current.naturalWidth/n.current.naturalHeight;if(l>s)return bu.landscape}return bu.portrait}var BF={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},HF=function(e){var t=e.className,n=e.width,r=e.height,i=e.maximizeFrame,o=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,f=e.isCenterContain,h=e.isCenterCover,p=e.isNone,v=e.isError,_=e.isNotImageFit,g=e.theme,T=on(BF,g),y={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=tt(),k=C!==void 0&&C.navigator.msMaxTouchPoints===void 0,S=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[T.root,g.fonts.medium,{overflow:"hidden"},i&&[T.rootMaximizeFrame,{height:"100%",width:"100%"}],o&&a&&!s&&ps.fadeIn400,(u||c||d||f||h)&&{position:"relative"},t],image:[T.image,{display:"block",opacity:0},o&&["is-loaded",{opacity:1}],u&&[T.imageCenter,y],c&&[T.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&S,!k&&y],d&&[T.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&S,!k&&y],f&&[T.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},y],h&&[T.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},y],p&&[T.imageNone,{width:"auto",height:"auto"}],_&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&T.imageLandscape,!l&&T.imagePortrait,!o&&"is-notLoaded",a&&"is-fadeIn",v&&"is-error"]}},Om=Yt(G_,HF,void 0,{scope:"Image"},!0);Om.displayName="Image";var va=Uu({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),j_="ms-Icon",UF=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,o=e.styles;return{root:[r&&va.placeholder,va.root,i&&va.image,n,t,o&&o.root,o&&o.imageContainer]}},K_=dt(function(e){var t=db(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null},void 0,!0),pd=function(e){var t=e.iconName,n=e.className,r=e.style,i=r===void 0?{}:r,o=K_(t)||{},a=o.iconClassName,s=o.children,l=o.fontFamily,u=o.mergeImageProps,c=rt(e,ft),d=e["aria-label"]||e.title,f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},h=s;return u&&typeof s=="object"&&typeof s.props=="object"&&d&&(h=E.cloneElement(s,{alt:d})),E.createElement("i",N({"data-icon-name":t},f,c,u?{title:void 0,"aria-label":void 0}:{},{className:Tn(j_,va.root,a,!t&&va.placeholder,n),style:N({fontFamily:l},i)}),h)};dt(function(e,t,n){return pd({iconName:e,className:t,"aria-label":n})});var zF=Vt({cacheSize:100}),GF=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._onImageLoadingStateChange=function(i){r.props.imageProps&&r.props.imageProps.onLoadingStateChange&&r.props.imageProps.onLoadingStateChange(i),i===mn.error&&r.setState({imageLoadError:!0})},r.state={imageLoadError:!1},r}return t.prototype.render=function(){var n=this.props,r=n.children,i=n.className,o=n.styles,a=n.iconName,s=n.imageErrorAs,l=n.theme,u=typeof a=="string"&&a.length===0,c=!!this.props.imageProps||this.props.iconType===hd.image||this.props.iconType===hd.Image,d=K_(a)||{},f=d.iconClassName,h=d.children,p=d.mergeImageProps,v=zF(o,{theme:l,className:i,iconClassName:f,isImage:c,isPlaceholder:u}),_=c?"span":"i",g=rt(this.props,ft,["aria-label"]),T=this.state.imageLoadError,y=N(N({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=T&&s||Om,k=this.props["aria-label"]||this.props.ariaLabel,S=y.alt||k||this.props.title,A=!!(S||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"]),D=A?{role:c||p?void 0:"img","aria-label":c||p?void 0:S}:{"aria-hidden":!0},M=h;return p&&h&&typeof h=="object"&&S&&(M=E.cloneElement(h,{alt:S})),E.createElement(_,N({"data-icon-name":a},D,g,p?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?E.createElement(C,N({},y)):r||M)},t}(E.Component),$i=Yt(GF,UF,void 0,{scope:"Icon"},!0);$i.displayName="Icon";var jF=function(e){var t=e.className,n=e.imageProps,r=rt(e,ft,["aria-label","aria-labelledby","title","aria-describedby"]),i=n.alt||e["aria-label"],o=i||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,a={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},s=o?{}:{"aria-hidden":!0};return E.createElement("div",N({},s,r,{className:Tn(j_,va.root,va.image,t)}),E.createElement(Om,N({},a,n,{alt:o?i:""})))},ap={none:0,all:1,inputOnly:2},dn;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(dn||(dn={}));var B1="data-is-focusable",KF="data-disable-click-on-enter",fh="data-focuszone-id",Jr="tabindex",hh="data-no-vertical-wrap",ph="data-no-horizontal-wrap",mh=999999999,pl=-999999999,gh,WF="ms-FocusZone";function $F(e,t){var n;typeof MouseEvent=="function"?n=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(n=document.createEvent("MouseEvents"),n.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(n)}function VF(){return gh||(gh=ai({selectors:{":focus":{outline:"none"}}},WF)),gh}var ml={},H1=new Set,YF=["text","number","password","email","tel","url","search","textarea"],Si=!1,qF=function(e){ze(t,e);function t(n){var r,i,o,a,s=e.call(this,n)||this;s._root=E.createRef(),s._mergedRef=__(),s._onFocus=function(u){if(!s._portalContainsElement(u.target)){var c=s.props,d=c.onActiveElementChanged,f=c.doNotAllowFocusEventToPropagate,h=c.stopFocusPropagation,p=c.onFocusNotification,v=c.onFocus,_=c.shouldFocusInnerElementWhenReceivedFocus,g=c.defaultTabbableElement,T=s._isImmediateDescendantOfZone(u.target),y;if(T)y=u.target;else for(var C=u.target;C&&C!==s._root.current;){if(ii(C)&&s._isImmediateDescendantOfZone(C)){y=C;break}C=Lr(C,Si)}if(_&&u.target===s._root.current){var k=g&&typeof g=="function"&&s._root.current&&g(s._root.current);k&&ii(k)?(y=k,k.focus()):(s.focus(!0),s._activeElement&&(y=null))}var S=!s._activeElement;y&&y!==s._activeElement&&((T||S)&&s._setFocusAlignment(y,!0,!0),s._activeElement=y,S&&s._updateTabIndexes()),d&&d(s._activeElement,u),(h||f)&&u.stopPropagation(),v?v(u):p&&p()}},s._onBlur=function(){s._setParkedFocus(!1)},s._onMouseDown=function(u){if(!s._portalContainsElement(u.target)){var c=s.props.disabled;if(!c){for(var d=u.target,f=[];d&&d!==s._root.current;)f.push(d),d=Lr(d,Si);for(;f.length&&(d=f.pop(),d&&ii(d)&&s._setActiveElement(d,!0),!Pi(d)););}}},s._onKeyDown=function(u,c){if(!s._portalContainsElement(u.target)){var d=s.props,f=d.direction,h=d.disabled,p=d.isInnerZoneKeystroke,v=d.pagingSupportDisabled,_=d.shouldEnterInnerZone;if(!h&&(s.props.onKeyDown&&s.props.onKeyDown(u),!u.isDefaultPrevented()&&!(s._getDocument().activeElement===s._root.current&&s._isInnerZone))){if((_&&_(u)||p&&p(u))&&s._isImmediateDescendantOfZone(u.target)){var g=s._getFirstInnerZone();if(g){if(!g.focus(!0))return}else if(Im(u.target)){if(!s.focusElement(hn(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case oe.space:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(u.target,u))break;return;case oe.left:if(f!==dn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusLeft(c)))break;return;case oe.right:if(f!==dn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusRight(c)))break;return;case oe.up:if(f!==dn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusUp()))break;return;case oe.down:if(f!==dn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusDown()))break;return;case oe.pageDown:if(!v&&s._moveFocusPaging(!0))break;return;case oe.pageUp:if(!v&&s._moveFocusPaging(!1))break;return;case oe.tab:if(s.props.allowTabKey||s.props.handleTabKey===ap.all||s.props.handleTabKey===ap.inputOnly&&s._isElementInput(u.target)){var T=!1;if(s._processingTabKey=!0,f===dn.vertical||!s._shouldWrapFocus(s._activeElement,ph))T=u.shiftKey?s._moveFocusUp():s._moveFocusDown();else{var y=gn(c)?!u.shiftKey:u.shiftKey;T=y?s._moveFocusLeft(c):s._moveFocusRight(c)}if(s._processingTabKey=!1,T)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case oe.home:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!1))return!1;var C=s._root.current&&s._root.current.firstChild;if(s._root.current&&C&&s.focusElement(hn(s._root.current,C,!0)))break;return;case oe.end:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!0))return!1;var k=s._root.current&&s._root.current.lastChild;if(s._root.current&&s.focusElement(Mn(s._root.current,k,!0,!0,!0)))break;return;case oe.enter:if(s._shouldRaiseClicksOnEnter&&s._tryInvokeClickForFocusable(u.target,u))break;return;default:return}}u.preventDefault(),u.stopPropagation()}}},s._getHorizontalDistanceFromCenter=function(u,c,d){var f=s._focusAlignment.left||s._focusAlignment.x||0,h=Math.floor(d.top),p=Math.floor(c.bottom),v=Math.floor(d.bottom),_=Math.floor(c.top),g=u&&h>p,T=!u&&v<_;return g||T?f>=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):s._shouldWrapFocus(s._activeElement,hh)?mh:pl},Xi(s),s._id=En("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var l=(i=(r=n.shouldRaiseClicks)!==null&&r!==void 0?r:t.defaultProps.shouldRaiseClicks)!==null&&i!==void 0?i:!0;return s._shouldRaiseClicksOnEnter=(o=n.shouldRaiseClicksOnEnter)!==null&&o!==void 0?o:l,s._shouldRaiseClicksOnSpace=(a=n.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:l,s}return t.getOuterZones=function(){return H1.size},t._onKeyDownCapture=function(n){n.which===oe.tab&&H1.forEach(function(r){return r._updateTabIndexes()})},t.prototype.componentDidMount=function(){var n=this._root.current;if(ml[this._id]=this,n){for(var r=Lr(n,Si);r&&r!==this._getDocument().body&&r.nodeType===1;){if(Pi(r)){this._isInnerZone=!0;break}r=Lr(r,Si)}this._isInnerZone||(H1.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var n=this._root.current,r=this._getDocument();if((this._activeElement&&!On(this._root.current,this._activeElement,Si)||this._defaultFocusElement&&!On(this._root.current,this._defaultFocusElement,Si))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&r&&this._lastIndexPath&&(r.activeElement===r.body||r.activeElement===null||r.activeElement===n)){var i=mA(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete ml[this._id],this._isInnerZone||(H1.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var n=this,r=this.props,i=r.as,o=r.elementType,a=r.rootProps,s=r.ariaDescribedBy,l=r.ariaLabelledBy,u=r.className,c=rt(this.props,ft),d=i||o||"div";this._evaluateFocusBeforeRender();var f=pk();return E.createElement(d,N({"aria-labelledby":l,"aria-describedby":s},c,a,{className:Tn(VF(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(h){return n._onKeyDown(h,f)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!1),this._root.current)if(!n&&this._root.current.getAttribute(B1)==="true"&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var o=ml[i.getAttribute(fh)];return!!o&&o.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&On(this._root.current,this._activeElement)&&ii(this._activeElement)&&(!r||a_(this._activeElement)))return this._activeElement.focus(),!0;var a=this._root.current.firstChild;return this.focusElement(hn(this._root.current,a,!0,void 0,void 0,void 0,void 0,void 0,r))}return!1},t.prototype.focusLast=function(){if(this._root.current){var n=this._root.current&&this._root.current.lastChild;return this.focusElement(Mn(this._root.current,n,!0,!0,!0))}return!1},t.prototype.focusElement=function(n,r){var i=this.props,o=i.onBeforeFocus,a=i.shouldReceiveFocus;return a&&!a(n)||o&&!o(n)?!1:n?(this._setActiveElement(n,r),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(n){this._focusAlignment=n},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var n=this._root.current,r=this._getDocument();if(r){var i=r.activeElement;if(i!==n){var o=On(n,i,!1);this._lastIndexPath=o?gA(n,i):void 0}}},t.prototype._setParkedFocus=function(n){var r=this._root.current;r&&this._isParked!==n&&(this._isParked=n,n?(this.props.allowFocusRoot||(this._parkedTabIndex=r.getAttribute("tabindex"),r.setAttribute("tabindex","-1")),r.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(r.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):r.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(n,r){var i=this._activeElement;this._activeElement=n,i&&(Pi(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&((!this._focusAlignment||r)&&this._setFocusAlignment(n,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(n){this.props.preventDefaultWhenHandled&&n.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(n,r){var i=n;if(i===this._root.current)return!1;do{if(i.tagName==="BUTTON"||i.tagName==="A"||i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(i)&&i.getAttribute(B1)==="true"&&i.getAttribute(KF)!=="true")return $F(i,r),!0;i=Lr(i,Si)}while(i!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(Pi(n))return ml[n.getAttribute(fh)];for(var r=n.firstElementChild;r;){if(Pi(r))return ml[r.getAttribute(fh)];var i=this._getFirstInnerZone(r);if(i)return i;r=r.nextElementSibling}return null},t.prototype._moveFocus=function(n,r,i,o){o===void 0&&(o=!0);var a=this._activeElement,s=-1,l=void 0,u=!1,c=this.props.direction===dn.bidirectional;if(!a||!this._root.current||this._isElementInput(a)&&!this._shouldInputLoseFocus(a,n))return!1;var d=c?a.getBoundingClientRect():null;do if(a=n?hn(this._root.current,a):Mn(this._root.current,a),c){if(a){var f=a.getBoundingClientRect(),h=r(d,f);if(h===-1&&s===-1){l=a;break}if(h>-1&&(s===-1||h=0&&h<0)break}}else{l=a;break}while(a);if(l&&l!==this._activeElement)u=!0,this.focusElement(l);else if(this.props.isCircularNavigation&&o)return n?this.focusElement(hn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Mn(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(o,a){var s=-1,l=Math.floor(a.top),u=Math.floor(o.bottom);return l=u||l===r)&&(r=l,i>=a.left&&i<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-i)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(o,a){var s=-1,l=Math.floor(a.bottom),u=Math.floor(a.top),c=Math.floor(o.top);return l>c?n._shouldWrapFocus(n._activeElement,hh)?mh:pl:((r===-1&&l<=c||u===r)&&(r=u,i>=a.left&&i<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-i)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(n){var r=this,i=this._shouldWrapFocus(this._activeElement,ph);return this._moveFocus(gn(n),function(o,a){var s=-1,l;return gn(n)?l=parseFloat(a.top.toFixed(3))parseFloat(o.top.toFixed(3)),l&&a.right<=o.right&&r.props.direction!==dn.vertical?s=o.right-a.right:i||(s=pl),s},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(n){var r=this,i=this._shouldWrapFocus(this._activeElement,ph);return this._moveFocus(!gn(n),function(o,a){var s=-1,l;return gn(n)?l=parseFloat(a.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):l=parseFloat(a.top.toFixed(3))=o.left&&r.props.direction!==dn.vertical?s=a.left-o.left:i||(s=pl),s},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(n,r){r===void 0&&(r=!0);var i=this._activeElement;if(!i||!this._root.current||this._isElementInput(i)&&!this._shouldInputLoseFocus(i,n))return!1;var o=Am(i);if(!o)return!1;var a=-1,s=void 0,l=-1,u=-1,c=o.clientHeight,d=i.getBoundingClientRect();do if(i=n?hn(this._root.current,i):Mn(this._root.current,i),i){var f=i.getBoundingClientRect(),h=Math.floor(f.top),p=Math.floor(d.bottom),v=Math.floor(f.bottom),_=Math.floor(d.top),g=this._getHorizontalDistanceFromCenter(n,d,f),T=n&&h>p+c,y=!n&&v<_-c;if(T||y)break;g>-1&&(n&&h>l?(l=h,a=g,s=i):!n&&v-1){var i=n.selectionStart,o=n.selectionEnd,a=i!==o,s=n.value,l=n.readOnly;if(a||i>0&&!r&&!l||i!==s.length&&r&&!l||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(n)))return!1}return!0},t.prototype._shouldWrapFocus=function(n,r){return this.props.checkForNoWrap?s_(n,r):!0},t.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&o_(n,this._root.current)},t.prototype._getDocument=function(){return _n(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:dn.bidirectional,shouldRaiseClicks:!0},t}(E.Component),Dn;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Dn||(Dn={}));function ku(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function Vi(e){return!!(e.subMenuProps||e.items)}function ui(e){return!!(e.isDisabled||e.disabled)}function W_(e){var t=ku(e),n=t!==null;return n?"menuitemcheckbox":"menuitem"}var AE=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return E.createElement($i,N({},r,{className:n.icon}))},QF=function(e){var t=e.item,n=e.hasIcons;return n?t.onRenderIcon?t.onRenderIcon(e,AE):AE(e):null},XF=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=ku(n);if(t){var o=function(a){return t(n,a)};return E.createElement($i,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:o})}return null},ZF=function(e){var t=e.item,n=e.classNames;return t.text||t.name?E.createElement("span",{className:n.label},t.text||t.name):null},JF=function(e){var t=e.item,n=e.classNames;return t.secondaryText?E.createElement("span",{className:n.secondaryText},t.secondaryText):null},eI=function(e){var t=e.item,n=e.classNames,r=e.theme;return Vi(t)?E.createElement($i,N({iconName:gn(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},tI=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r.openSubMenu=function(){var i=r.props,o=i.item,a=i.openSubMenu,s=i.getSubmenuTarget;if(s){var l=s();Vi(o)&&a&&l&&a(o,l)}},r.dismissSubMenu=function(){var i=r.props,o=i.item,a=i.dismissSubMenu;Vi(o)&&a&&a()},r.dismissMenu=function(i){var o=r.props.dismissMenu;o&&o(void 0,i)},Xi(r),r}return t.prototype.render=function(){var n=this.props,r=n.item,i=n.classNames,o=r.onRenderContent||this._renderLayout;return E.createElement("div",{className:r.split?i.linkContentMenu:i.linkContent},o(this.props,{renderCheckMarkIcon:XF,renderItemIcon:QF,renderItemName:ZF,renderSecondaryText:JF,renderSubMenuIcon:eI}))},t.prototype._renderLayout=function(n,r){return E.createElement(E.Fragment,null,r.renderCheckMarkIcon(n),r.renderItemIcon(n),r.renderItemName(n),r.renderSecondaryText(n),r.renderSubMenuIcon(n))},t}(E.Component),nI=dt(function(e){return Uu({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),To=36,bE=b_(0,A_),rI=dt(function(e){var t,n,r,i,o,a=e.semanticColors,s=e.fonts,l=e.palette,u=a.menuItemBackgroundHovered,c=a.menuItemTextHovered,d=a.menuItemBackgroundPressed,f=a.bodyDivider,h={item:[s.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Uo(e),s.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:To,lineHeight:To,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[ie]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:c,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:d,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:d,color:a.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(r={},r[ie]={color:"inherit"},r)},n[ie]=N({},tn()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:To,fontSize:Hr.medium,width:Hr.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[bE]={fontSize:Hr.large,width:Hr.large},i)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:To,lineHeight:To,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Hr.small,selectors:(o={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},o[bE]={fontSize:Hr.medium},o)},splitButtonFlexContainer:[Uo(e),{display:"flex",height:To,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Ti(h)}),kE="28px",iI=b_(0,A_),oI=dt(function(e){var t;return Uu(nI(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[iI]={right:32},t)},divider:{height:16,width:1}})}),aI={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},sI=dt(function(e,t,n,r,i,o,a,s,l,u,c,d){var f,h,p,v,_=rI(e),g=on(aI,e);return Uu({item:[g.item,_.item,a],divider:[g.divider,_.divider,s],root:[g.root,_.root,r&&[g.isChecked,_.rootChecked],i&&_.anchorLink,n&&[g.isExpanded,_.rootExpanded],t&&[g.isDisabled,_.rootDisabled],!t&&!n&&[{selectors:(f={":hover":_.rootHovered,":active":_.rootPressed},f["."+cn+" &:focus, ."+cn+" &:focus:hover"]=_.rootFocused,f["."+cn+" &:hover"]={background:"inherit;"},f)}],d],splitPrimary:[_.root,{width:"calc(100% - "+kE+")"},r&&["is-checked",_.rootChecked],(t||c)&&["is-disabled",_.rootDisabled],!(t||c)&&!r&&[{selectors:(h={":hover":_.rootHovered},h[":hover ~ ."+g.splitMenu]=_.rootHovered,h[":active"]=_.rootPressed,h["."+cn+" &:focus, ."+cn+" &:focus:hover"]=_.rootFocused,h["."+cn+" &:hover"]={background:"inherit;"},h)}]],splitMenu:[g.splitMenu,_.root,{flexBasis:"0",padding:"0 8px",minWidth:kE},n&&["is-expanded",_.rootExpanded],t&&["is-disabled",_.rootDisabled],!t&&!n&&[{selectors:(p={":hover":_.rootHovered,":active":_.rootPressed},p["."+cn+" &:focus, ."+cn+" &:focus:hover"]=_.rootFocused,p["."+cn+" &:hover"]={background:"inherit;"},p)}]],anchorLink:_.anchorLink,linkContent:[g.linkContent,_.linkContent],linkContentMenu:[g.linkContentMenu,_.linkContent,{justifyContent:"center"}],icon:[g.icon,o&&_.iconColor,_.icon,l,t&&[g.isDisabled,_.iconDisabled]],iconColor:_.iconColor,checkmarkIcon:[g.checkmarkIcon,o&&_.checkmarkIcon,_.icon,l],subMenuIcon:[g.subMenuIcon,_.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[_.iconDisabled]],label:[g.label,_.label],secondaryText:[g.secondaryText,_.secondaryText],splitContainer:[_.splitButtonFlexContainer,!t&&!r&&[{selectors:(v={},v["."+cn+" &:focus, ."+cn+" &:focus:hover"]=_.rootFocused,v)}]],screenReaderText:[g.screenReaderText,_.screenReaderText,xm,{visibility:"hidden"}]})}),$_=function(e){var t=e.theme,n=e.disabled,r=e.expanded,i=e.checked,o=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,f=e.className;return sI(t,n,r,i,o,a,s,l,u,c,d,f)},Fu=Yt(tI,$_,void 0,{scope:"ContextualMenuItem"}),Lm=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._onItemMouseEnter=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,i.currentTarget)},r._onItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,i.currentTarget)},r._onItemMouseLeave=function(i){var o=r.props,a=o.item,s=o.onItemMouseLeave;s&&s(a,i)},r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;s&&s(a,i)},r._onItemMouseMove=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,i.currentTarget)},r._getSubmenuTarget=function(){},Xi(r),r}return t.prototype.shouldComponentUpdate=function(n){return!Sm(n,this.props)},t}(E.Component),lI="ktp",FE="-",uI="data-ktp-target",cI="data-ktp-execute-target",dI="ktp-layer-id",ni;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(ni||(ni={}));var fI=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,n){n===void 0&&(n=!1);var r=t;n||(r=this.addParentOverflow(t),this.sequenceMapping[r.keySequences.toString()]=r);var i=this._getUniqueKtp(r);if(n?this.persistedKeytips[i.uniqueID]=i:this.keytips[i.uniqueID]=i,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=n?ni.PERSISTED_KEYTIP_ADDED:ni.KEYTIP_ADDED;Er.raise(this,o,{keytip:r,uniqueID:i.uniqueID})}return i.uniqueID},e.prototype.update=function(t,n){var r=this.addParentOverflow(t),i=this._getUniqueKtp(r,n),o=this.keytips[n];o&&(i.keytip.visible=o.keytip.visible,this.keytips[n]=i,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[i.keytip.keySequences.toString()]=i.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Er.raise(this,ni.KEYTIP_UPDATED,{keytip:i.keytip,uniqueID:i.uniqueID}))},e.prototype.unregister=function(t,n,r){r===void 0&&(r=!1),r?delete this.persistedKeytips[n]:delete this.keytips[n],!r&&delete this.sequenceMapping[t.keySequences.toString()];var i=r?ni.PERSISTED_KEYTIP_REMOVED:ni.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Er.raise(this,i,{keytip:t,uniqueID:n})},e.prototype.enterKeytipMode=function(){Er.raise(this,ni.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Er.raise(this,ni.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(n){return t.keytips[n].keytip})},e.prototype.addParentOverflow=function(t){var n=Kr([],t.keySequences);if(n.pop(),n.length!==0){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return N(N({},t),{overflowSetSequence:r.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,n){Er.raise(this,ni.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},e.prototype._getUniqueKtp=function(t,n){return n===void 0&&(n=En()),{keytip:N({},t),uniqueID:n}},e._instance=new e,e}();function V_(e){return e.reduce(function(t,n){return t+FE+n.split("").join(FE)},lI)}function hI(e,t){var n=t.length,r=Kr([],t).pop(),i=Kr([],e);return Q7(i,n-1,r)}function pI(e){var t=" "+dI;return e.length?t+" "+V_(e):t}function mI(e){var t=E.useRef(),n=e.keytipProps?N({disabled:e.disabled},e.keytipProps):void 0,r=gi(fI.getInstance()),i=wm(e);Os(function(){t.current&&n&&((i==null?void 0:i.keytipProps)!==e.keytipProps||(i==null?void 0:i.disabled)!==e.disabled)&&r.update(n,t.current)}),Os(function(){return n&&(t.current=r.register(n)),function(){n&&r.unregister(n,t.current)}},[]);var o={ariaDescribedBy:void 0,keytipId:void 0};return n&&(o=gI(r,n,e.ariaDescribedBy)),o}function gI(e,t,n){var r=e.addParentOverflow(t),i=zu(n,pI(r.keySequences)),o=Kr([],r.keySequences);r.overflowSetSequence&&(o=hI(o,r.overflowSetSequence));var a=V_(o);return{ariaDescribedBy:i,keytipId:a}}var Iu=function(e){var t,n=e.children,r=vi(e,["children"]),i=mI(r),o=i.keytipId,a=i.ariaDescribedBy;return n((t={},t[uI]=o,t[cI]=o,t["aria-describedby"]=a,t))},EI=function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._anchor=E.createRef(),n._getMemoizedMenuButtonKeytipProps=dt(function(r){return N(N({},r),{hasMenu:!0})}),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(r){var i=n.props,o=i.item,a=i.onItemClick;a&&a(o,r)},n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Fu:d,h=r.expandedMenuItemKey,p=r.onItemClick,v=r.openSubMenu,_=r.dismissSubMenu,g=r.dismissMenu,T=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(T=T||"nofollow noopener noreferrer");var y=Vi(i),C=rt(i,d_),k=ui(i),S=i.itemProps,A=i.ariaDescription,D=i.keytipProps;D&&y&&(D=this._getMemoizedMenuButtonKeytipProps(D)),A&&(this._ariaDescriptionId=En());var M=zu(i.ariaDescribedBy,A?this._ariaDescriptionId:void 0,C["aria-describedby"]),x={"aria-describedby":M};return E.createElement("div",null,E.createElement(Iu,{keytipProps:i.keytipProps,ariaDescribedBy:M,disabled:k},function(P){return E.createElement("a",N({},x,C,P,{ref:n._anchor,href:i.href,target:i.target,rel:T,className:o.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?i.key===h:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":ui(i),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:y?n._onItemKeyDown:void 0}),E.createElement(f,N({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&p?p:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:_,dismissMenu:g,getSubmenuTarget:n._getSubmenuTarget},S)),n._renderAriaDescription(A,o.screenReaderText))}))},t}(Lm),vI=function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._btn=E.createRef(),n._getMemoizedMenuButtonKeytipProps=dt(function(r){return N(N({},r),{hasMenu:!0})}),n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Fu:d,h=r.expandedMenuItemKey,p=r.onItemMouseDown,v=r.onItemClick,_=r.openSubMenu,g=r.dismissSubMenu,T=r.dismissMenu,y=ku(i),C=y!==null,k=W_(i),S=Vi(i),A=i.itemProps,D=i.ariaLabel,M=i.ariaDescription,x=rt(i,ba);delete x.disabled;var P=i.role||k;M&&(this._ariaDescriptionId=En());var O=zu(i.ariaDescribedBy,M?this._ariaDescriptionId:void 0,x["aria-describedby"]),q={className:o.root,onClick:this._onItemClick,onKeyDown:S?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(U){return p?p(i,U):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":D,"aria-describedby":O,"aria-haspopup":S||void 0,"aria-expanded":S?i.key===h:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":ui(i),"aria-checked":(P==="menuitemcheckbox"||P==="menuitemradio")&&C?!!y:void 0,"aria-selected":P==="menuitem"&&C?!!y:void 0,role:P,style:i.style},Z=i.keytipProps;return Z&&S&&(Z=this._getMemoizedMenuButtonKeytipProps(Z)),E.createElement(Iu,{keytipProps:Z,ariaDescribedBy:O,disabled:ui(i)},function(U){return E.createElement("button",N({ref:n._btn},x,q,U),E.createElement(f,N({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&v?v:void 0,hasIcons:c,openSubMenu:_,dismissSubMenu:g,dismissMenu:T,getSubmenuTarget:n._getSubmenuTarget},A)),n._renderAriaDescription(M,o.screenReaderText))})},t}(Lm),TI=function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var i=n(t);return{wrapper:[i.wrapper],divider:[i.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},yI=Vt(),Y_=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,o=e.className,a=yI(n,{theme:r,getClassNames:i,className:o});return E.createElement("span",{className:a.wrapper,ref:t},E.createElement("span",{className:a.divider}))});Y_.displayName="VerticalDividerBase";var _I=Yt(Y_,TI,void 0,{scope:"VerticalDivider"}),CI=500,SI=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=dt(function(i){return N(N({},i),{hasMenu:!0})}),r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;i.which===oe.enter?(r._executeItemClick(i),i.preventDefault(),i.stopPropagation()):s&&s(a,i)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(i,o){return i?E.createElement("span",{id:r._ariaDescriptionId,className:o},i):null},r._onItemMouseEnterPrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(N(N({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseEnterIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,r._splitButton)},r._onItemMouseMovePrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(N(N({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseMoveIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,r._splitButton)},r._onIconItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,r._splitButton?r._splitButton:i.currentTarget)},r._executeItemClick=function(i){var o=r.props,a=o.item,s=o.executeItemClick,l=o.onItemClick;if(!(a.disabled||a.isDisabled)){if(r._processingTouch&&l)return l(a,i);s&&s(a,i)}},r._onTouchStart=function(i){r._splitButton&&!("onpointerdown"in r._splitButton)&&r._handleTouchAndPointerEvent(i)},r._onPointerDown=function(i){i.pointerType==="touch"&&(r._handleTouchAndPointerEvent(i),i.preventDefault(),i.stopImmediatePropagation())},r._async=new $s(r),r._events=new Er(r),r}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.onItemMouseLeave,f=r.expandedMenuItemKey,h=Vi(i),p=i.keytipProps;p&&(p=this._getMemoizedMenuButtonKeytipProps(p));var v=i.ariaDescription;return v&&(this._ariaDescriptionId=En()),E.createElement(Iu,{keytipProps:p,disabled:ui(i)},function(_){return E.createElement("div",{"data-ktp-target":_["data-ktp-target"],ref:function(g){return n._splitButton=g},role:W_(i),"aria-label":i.ariaLabel,className:o.splitContainer,"aria-disabled":ui(i),"aria-expanded":h?i.key===f:void 0,"aria-haspopup":!0,"aria-describedby":zu(i.ariaDescribedBy,v?n._ariaDescriptionId:void 0,_["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(n,N(N({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:n._onItemMouseMovePrimary,onKeyDown:n._onItemKeyDown,onClick:n._executeItemClick,onTouchStart:n._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},n._renderSplitPrimaryButton(i,o,a,u,c),n._renderSplitDivider(i),n._renderSplitIconButton(i,o,a,_),n._renderAriaDescription(v,o.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(n,r,i,o,a){var s=this.props,l=s.contextualMenuItemAs,u=l===void 0?Fu:l,c=s.onItemClick,d={key:n.key,disabled:ui(n)||n.primaryDisabled,name:n.name,text:n.text||n.name,secondaryText:n.secondaryText,className:r.splitPrimary,canCheck:n.canCheck,isChecked:n.isChecked,checked:n.checked,iconProps:n.iconProps,onRenderIcon:n.onRenderIcon,data:n.data,"data-is-focusable":!1},f=n.itemProps;return E.createElement("button",N({},rt(d,ba)),E.createElement(u,N({"data-is-focusable":!1,item:d,classNames:r,index:i,onCheckmarkClick:o&&c?c:void 0,hasIcons:a},f)))},t.prototype._renderSplitDivider=function(n){var r=n.getSplitButtonVerticalDividerClassNames||oI;return E.createElement(_I,{getClassNames:r})},t.prototype._renderSplitIconButton=function(n,r,i,o){var a=this.props,s=a.contextualMenuItemAs,l=s===void 0?Fu:s,u=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,h=a.dismissMenu,p={onClick:this._onIconItemClick,disabled:ui(n),className:r.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},v=N(N({},rt(p,ba)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,n):void 0,onMouseDown:function(g){return c?c(n,g):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),_=n.itemProps;return E.createElement("button",N({},v),E.createElement(l,N({componentRef:n.componentRef,item:p,classNames:r,index:i,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},_)))},t.prototype._handleTouchAndPointerEvent=function(n){var r=this,i=this.props.onTap;i&&i(n),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){r._processingTouch=!1,r._lastTouchTimeoutId=void 0},CI)},t}(Lm),AI=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._updateComposedComponentRef=r._updateComposedComponentRef.bind(r),r}return t.prototype._updateComposedComponentRef=function(n){this._composedComponentInstance=n,n?this._hoisted=VA(this,n):this._hoisted&&YA(this,this._hoisted)},t}(E.Component),ka;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(ka||(ka={}));var bI=[479,639,1023,1365,1919,99999999],q_;function Bm(){var e;return(e=q_)!==null&&e!==void 0?e:ka.large}function Q_(e){var t,n=(t=function(r){ze(i,r);function i(o){var a=r.call(this,o)||this;return a._onResize=function(){var s=X_(a.context.window);s!==a.state.responsiveMode&&a.setState({responsiveMode:s})},a._events=new Er(a),a._updateComposedComponentRef=a._updateComposedComponentRef.bind(a),a.state={responsiveMode:Bm()},a}return i.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},i.prototype.componentWillUnmount=function(){this._events.dispose()},i.prototype.render=function(){var o=this.state.responsiveMode;return o===ka.unknown?null:E.createElement(e,N({ref:this._updateComposedComponentRef,responsiveMode:o},this.props))},i}(AI),t.contextType=Rm,t);return c_(e,n)}function kI(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function X_(e){var t=ka.small;if(e){try{for(;kI(e)>bI[t];)t++}catch{t=Bm()}q_=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var Z_=function(e,t){var n=E.useState(Bm()),r=n[0],i=n[1],o=E.useCallback(function(){var s=X_(tt(e.current));r!==s&&i(s)},[e,r]),a=qd();return Au(a,"resize",o),E.useEffect(function(){t===void 0&&o()},[t]),t??r},FI=E.createContext({}),II=Vt(),xI=Vt(),NI={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:vt.bottomAutoEdge,beakWidth:16};function J_(e,t){var n=t==null?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var i=[],o=0,a=r;o0)return E.createElement("li",{role:"presentation",key:Ne.key||Q.key||"section-"+Pe},E.createElement("div",N({},at),E.createElement("ul",{className:Me.list,role:"presentation"},Ne.topDivider&&qt(Pe,Ee,!0,!0),$n&&Ht($n,Q.key||Pe,Ee,Q.title),Ne.items.map(function(m1,rl){return Ye(m1,rl,rl,Ne.items.length,sn,kn,Me)}),Ne.bottomDivider&&qt(Pe,Ee,!1,!0))))}},Ht=function(Q,Ee,Me,Pe){return E.createElement("li",{role:"presentation",title:Pe,key:Ee,className:Me.item},Q)},qt=function(Q,Ee,Me,Pe){return Pe||Q>0?E.createElement("li",{role:"separator",key:"separator-"+Q+(Me===void 0?"":Me?"-top":"-bottom"),className:Ee.divider,"aria-hidden":"true"}):null},ot=function(Q,Ee,Me,Pe,sn,kn,Ne){if(Q.onRender)return Q.onRender(N({"aria-posinset":Pe+1,"aria-setsize":sn},Q),l);var $n=i.contextualMenuItemAs,at={item:Q,classNames:Ee,index:Me,focusableElementIndex:Pe,totalItemCount:sn,hasCheckmarks:kn,hasIcons:Ne,contextualMenuItemAs:$n,onItemMouseEnter:G,onItemMouseLeave:b,onItemMouseMove:F,onItemMouseDown:GI,executeItemClick:fe,onItemKeyDown:R,expandedMenuItemKey:p,openSubMenu:v,dismissSubMenu:g,dismissMenu:l};return Q.href?E.createElement(EI,N({},at,{onItemClick:J})):Q.split&&Vi(Q)?E.createElement(SI,N({},at,{onItemClick:Ve,onItemClickBase:ee,onTap:x})):E.createElement(vI,N({},at,{onItemClick:Ve,onItemClickBase:ee}))},Ut=function(Q,Ee,Me,Pe,sn,kn){var Ne=i.contextualMenuItemAs,$n=Ne===void 0?Fu:Ne,at=Q.itemProps,Vn=Q.id,Xr=at&&rt(at,Qi);return E.createElement("div",N({id:Vn,className:Me.header},Xr,{style:Q.style}),E.createElement($n,N({item:Q,classNames:Ee,index:Pe,onCheckmarkClick:sn?Ve:void 0,hasIcons:kn},at)))},yt=i.isBeakVisible,kt=i.items,cr=i.labelElementId,Yr=i.id,jn=i.className,xe=i.beakWidth,_t=i.directionalHint,Ct=i.directionalHintForRTL,Be=i.alignTargetEdge,gt=i.gapSpace,to=i.coverTarget,B=i.ariaLabel,V=i.doNotLayer,ae=i.target,_e=i.bounds,X=i.useTargetWidth,wt=i.useTargetAsMinWidth,dr=i.directionalHintFixed,Kn=i.shouldFocusOnMount,bn=i.shouldFocusOnContainer,qr=i.title,qe=i.styles,no=i.theme,Et=i.calloutProps,nl=i.onRenderSubMenu,Tf=nl===void 0?xE:nl,c1=i.onRenderMenuList,yf=c1===void 0?function(Q,Ee){return he(Q,Qr)}:c1,_f=i.focusZoneProps,d1=i.getMenuClassNames,Qr=d1?d1(no,jn):II(qe,{theme:no,className:jn}),f1=He(kt);function He(Q){for(var Ee=0,Me=Q;Ee0){for(var Sg=0,Cf=0,Ag=kt;Cf span":{position:"relative",left:0,top:0}}}],rootDisabled:[Uo(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":DE,":focus":DE}}],iconDisabled:{color:l,selectors:(t={},t[ie]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[ie]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:wE(o.mediumPlus.fontSize),menuIcon:wE(o.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:xm}}),zm=dt(function(e,t){var n,r,i,o,a,s,l,u,c,d,f,h,p,v=e.effects,_=e.palette,g=e.semanticColors,T={left:-2,top:-2,bottom:-2,right:-2,border:"none"},y={position:"absolute",width:1,right:31,top:8,bottom:8},C={splitButtonContainer:[Uo(e,{highContrastStyle:T,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(n={},n[ie]=N({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},tn()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[ie]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[ie]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:g.buttonTextDisabled,selectors:(o={},o[ie]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[ie]=N({color:"Window",backgroundColor:"WindowText"},tn()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[ie]=N({color:"Window",backgroundColor:"WindowText"},tn()),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:v.roundedCorner2,borderBottomRightRadius:v.roundedCorner2,border:"1px solid "+_.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[ie]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:N(N({},y),{selectors:(u={},u[ie]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:N(N({},y),{selectors:(c={},c[ie]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[ie]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(h={},h[ie]={color:"GrayText"},h)}},d[ie]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},d)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(p={},p[ie]=N({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},tn()),p)},splitButtonMenuFocused:N({},Uo(e,{highContrastStyle:T,inset:2}))};return Ti(C,t)}),s2=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function qI(e){var t,n,r,i,o,a=e.semanticColors,s=e.palette,l=a.buttonBackground,u=a.buttonBackgroundPressed,c=a.buttonBackgroundHovered,d=a.buttonBackgroundDisabled,f=a.buttonText,h=a.buttonTextHovered,p=a.buttonTextDisabled,v=a.buttonTextChecked,_=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:f},rootHovered:{backgroundColor:c,color:h,selectors:(t={},t[ie]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:v},rootExpanded:{backgroundColor:u,color:v},rootChecked:{backgroundColor:u,color:v},rootCheckedHovered:{backgroundColor:u,color:_},rootDisabled:{color:p,backgroundColor:d,selectors:(n={},n[ie]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[ie]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(i={},i[ie]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:N(N({},s2()),{backgroundColor:s.neutralTertiaryAlt,selectors:(o={},o[ie]={backgroundColor:"WindowText"},o)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function QI(e){var t,n,r,i,o,a,s,l,u,c=e.palette,d=e.semanticColors;return{root:{backgroundColor:d.primaryButtonBackground,border:"1px solid "+d.primaryButtonBackground,color:d.primaryButtonText,selectors:(t={},t[ie]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},tn()),t["."+cn+" &:focus"]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid "+d.primaryButtonBackgroundHovered,color:d.primaryButtonTextHovered,selectors:(n={},n[ie]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid "+d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed,selectors:(r={},r[ie]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},tn()),r)},rootExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootChecked:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootDisabled:{color:d.primaryButtonTextDisabled,backgroundColor:d.primaryButtonBackgroundDisabled,selectors:(i={},i[ie]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(o={},o[ie]={border:"none"},o)},splitButtonDivider:N(N({},s2()),{backgroundColor:c.white,selectors:(a={},a[ie]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[ie]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(l={},l[ie]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:d.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:d.primaryButtonText},splitButtonMenuIconDisabled:{color:c.neutralTertiary,selectors:(u={},u[ie]={color:"GrayText"},u)}}}var XI="32px",ZI="80px",JI=dt(function(e,t,n){var r=Um(e),i=zm(e),o={root:{minWidth:ZI,height:XI},label:{fontWeight:Ke.semibold}};return Ti(r,o,n?QI(e):qI(e),i,t)}),Qd=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.primary,i=r===void 0?!1:r,o=n.styles,a=n.theme;return E.createElement(Hm,N({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:JI(a,o,i),onRenderDescription:Ms}))},t=Ws([Kd("DefaultButton",["theme","styles"],!0)],t),t}(E.Component),ex=dt(function(e,t){var n,r=Um(e),i=zm(e),o=e.palette,a=e.semanticColors,s={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:a.link},rootHovered:{color:o.themeDarkAlt,backgroundColor:o.neutralLighter,selectors:(n={},n[ie]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:o.themeDark,backgroundColor:o.neutralLight},rootExpanded:{color:o.themeDark,backgroundColor:o.neutralLight},rootChecked:{color:o.themeDark,backgroundColor:o.neutralLight},rootCheckedHovered:{color:o.themeDark,backgroundColor:o.neutralQuaternaryAlt},rootDisabled:{color:o.neutralTertiaryAlt}};return Ti(r,s,i,t)}),ha=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.styles,i=n.theme;return E.createElement(Hm,N({},this.props,{variantClassName:"ms-Button--icon",styles:ex(i,r),onRenderText:Ms,onRenderDescription:Ms}))},t=Ws([Kd("IconButton",["theme","styles"],!0)],t),t}(E.Component),l2=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return E.createElement(Qd,N({},this.props,{primary:!0,onRenderDescription:Ms}))},t=Ws([Kd("PrimaryButton",["theme","styles"],!0)],t),t}(E.Component),tx=dt(function(e,t,n,r){var i,o,a,s,l,u,c,d,f,h,p,v,_,g,T=Um(e),y=zm(e),C=e.palette,k=e.semanticColors,S={left:4,top:4,bottom:4,right:4,border:"none"},A={root:[Uo(e,{inset:2,highContrastStyle:S,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:C.white,color:C.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[ie]={border:"none"},i)}],rootHovered:{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(o={},o[ie]={color:"Highlight"},o["."+un.msButtonIcon]={color:C.themeDarkAlt},o["."+un.msButtonMenuIcon]={color:C.neutralPrimary},o)},rootPressed:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(a={},a["."+un.msButtonIcon]={color:C.themeDark},a["."+un.msButtonMenuIcon]={color:C.neutralPrimary},a)},rootChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(s={},s["."+un.msButtonIcon]={color:C.themeDark},s["."+un.msButtonMenuIcon]={color:C.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:C.neutralQuaternaryAlt,selectors:(l={},l["."+un.msButtonIcon]={color:C.themeDark},l["."+un.msButtonMenuIcon]={color:C.neutralPrimary},l)},rootExpanded:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(u={},u["."+un.msButtonIcon]={color:C.themeDark},u["."+un.msButtonMenuIcon]={color:C.neutralPrimary},u)},rootExpandedHovered:{backgroundColor:C.neutralQuaternaryAlt},rootDisabled:{backgroundColor:C.white,selectors:(c={},c["."+un.msButtonIcon]={color:k.disabledBodySubtext,selectors:(d={},d[ie]=N({color:"GrayText"},tn()),d)},c[ie]=N({color:"GrayText",backgroundColor:"Window"},tn()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[ie]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(h={},h[ie]={backgroundColor:"Window"},h)},splitButtonDivider:{backgroundColor:C.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:C.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:C.neutralSecondary,selectors:{":hover":{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(p={},p[ie]={color:"Highlight"},p["."+un.msButtonIcon]={color:C.neutralPrimary},p)},":active":{backgroundColor:C.neutralLight,selectors:(v={},v["."+un.msButtonIcon]={color:C.neutralPrimary},v)}}},splitButtonMenuButtonDisabled:{backgroundColor:C.white,selectors:(_={},_[ie]=N({color:"GrayText",border:"none",backgroundColor:"Window"},tn()),_)},splitButtonMenuButtonChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:C.neutralLight,color:C.black,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:C.neutralPrimary},splitButtonMenuIconDisabled:{color:C.neutralTertiary},label:{fontWeight:"normal"},icon:{color:C.themePrimary},menuIcon:(g={color:C.neutralSecondary},g[ie]={color:"GrayText"},g)};return Ti(T,y,A,t)}),xu=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.styles,i=n.theme;return E.createElement(Hm,N({},this.props,{variantClassName:"ms-Button--commandBar",styles:tx(i,r),onRenderDescription:Ms}))},t=Ws([Kd("CommandBarButton",["theme","styles"],!0)],t),t}(E.Component),nx=Vt({cacheSize:100}),rx=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.as,i=r===void 0?"label":r,o=n.children,a=n.className,s=n.disabled,l=n.styles,u=n.required,c=n.theme,d=nx(l,{className:a,disabled:s,required:u,theme:c});return E.createElement(i,N({},rt(this.props,Qi),{className:d.root}),o)},t}(E.Component),ix=function(e){var t,n=e.theme,r=e.className,i=e.disabled,o=e.required,a=n.semanticColors,s=Ke.semibold,l=a.bodyText,u=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:u,selectors:(t={},t[ie]=N({color:"GrayText"},tn()),t)},o&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},r]}},ox=Yt(rx,ix,void 0,{scope:"Label"}),ax=Vt(),sx="",Xo="TextField",lx="RedEye",ux="Hide",cx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;r._textElement=E.createRef(),r._onFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({isFocused:!0},function(){r.props.validateOnFocusIn&&r._validate(r.value)})},r._onBlur=function(a){r.props.onBlur&&r.props.onBlur(a),r.setState({isFocused:!1},function(){r.props.validateOnFocusOut&&r._validate(r.value)})},r._onRenderLabel=function(a){var s=a.label,l=a.required,u=r._classNames.subComponentStyles?r._classNames.subComponentStyles.label:void 0;return s?E.createElement(ox,{required:l,htmlFor:r._id,styles:u,disabled:a.disabled,id:r._labelId},a.label):null},r._onRenderDescription=function(a){return a.description?E.createElement("span",{className:r._classNames.description},a.description):null},r._onRevealButtonClick=function(a){r.setState(function(s){return{isRevealingPassword:!s.isRevealingPassword}})},r._onInputChange=function(a){var s,l,u=a.target,c=u.value,d=Eh(r.props,r.state)||"";if(c===void 0||c===r._lastChangeValue||c===d){r._lastChangeValue=void 0;return}r._lastChangeValue=c,(l=(s=r.props).onChange)===null||l===void 0||l.call(s,a,c),r._isControlled||r.setState({uncontrolledValue:c})},Xi(r),r._async=new $s(r),r._fallbackId=En(Xo),r._descriptionId=En(Xo+"Description"),r._labelId=En(Xo+"Label"),r._prefixId=En(Xo+"Prefix"),r._suffixId=En(Xo+"Suffix"),r._warnControlledUsage();var i=n.defaultValue,o=i===void 0?sx:i;return typeof o=="number"&&(o=String(o)),r.state={uncontrolledValue:r._isControlled?void 0:o,isFocused:!1,errorMessage:""},r._delayedValidate=r._async.debounce(r._validate,r.props.deferredValidationTime),r._lastValidation=0,r}return Object.defineProperty(t.prototype,"value",{get:function(){return Eh(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(n,r){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(n,r,i){var o=this.props,a=(i||{}).selection,s=a===void 0?[null,null]:a,l=s[0],u=s[1];!!n.multiline!=!!o.multiline&&r.isFocused&&(this.focus(),l!==null&&u!==null&&l>=0&&u>=0&&this.setSelectionRange(l,u)),n.value!==o.value&&(this._lastChangeValue=void 0);var c=Eh(n,r),d=this.value;c!==d&&(this._warnControlledUsage(n),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),RE(o)&&this._delayedValidate(d))},t.prototype.render=function(){var n=this.props,r=n.borderless,i=n.className,o=n.disabled,a=n.invalid,s=n.iconProps,l=n.inputClassName,u=n.label,c=n.multiline,d=n.required,f=n.underlined,h=n.prefix,p=n.resizable,v=n.suffix,_=n.theme,g=n.styles,T=n.autoAdjustHeight,y=n.canRevealPassword,C=n.revealPasswordAriaLabel,k=n.type,S=n.onRenderPrefix,A=S===void 0?this._onRenderPrefix:S,D=n.onRenderSuffix,M=D===void 0?this._onRenderSuffix:D,x=n.onRenderLabel,P=x===void 0?this._onRenderLabel:x,O=n.onRenderDescription,q=O===void 0?this._onRenderDescription:O,Z=this.state,U=Z.isFocused,j=Z.isRevealingPassword,te=this._errorMessage,R=typeof a=="boolean"?a:!!te,z=!!y&&k==="password"&&dx(),G=this._classNames=ax(g,{theme:_,className:i,disabled:o,focused:U,required:d,multiline:c,hasLabel:!!u,hasErrorMessage:R,borderless:r,resizable:p,hasIcon:!!s,underlined:f,inputClassName:l,autoAdjustHeight:T,hasRevealButton:z});return E.createElement("div",{ref:this.props.elementRef,className:G.root},E.createElement("div",{className:G.wrapper},P(this.props,this._onRenderLabel),E.createElement("div",{className:G.fieldGroup},(h!==void 0||this.props.onRenderPrefix)&&E.createElement("div",{className:G.prefix,id:this._prefixId},A(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&E.createElement($i,N({className:G.icon},s)),z&&E.createElement("button",{"aria-label":C,className:G.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!j,type:"button"},E.createElement("span",{className:G.revealSpan},E.createElement($i,{className:G.revealIcon,iconName:j?ux:lx}))),(v!==void 0||this.props.onRenderSuffix)&&E.createElement("div",{className:G.suffix,id:this._suffixId},M(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&E.createElement("span",{id:this._descriptionId},q(this.props,this._onRenderDescription),te&&E.createElement("div",{role:"alert"},E.createElement(t_,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(n){this._textElement.current&&(this._textElement.current.selectionStart=n)},t.prototype.setSelectionEnd=function(n){this._textElement.current&&(this._textElement.current.selectionEnd=n)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(n,r){this._textElement.current&&this._textElement.current.setSelectionRange(n,r)},t.prototype._warnControlledUsage=function(n){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,bm("Warning: 'value' prop on '"+Xo+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return kA(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(n){var r=n.prefix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},t.prototype._onRenderSuffix=function(n){var r=n.suffix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var n=this.props.errorMessage,r=n===void 0?this.state.errorMessage:n;return r||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var n=this._errorMessage;return n?typeof n=="string"?E.createElement("p",{className:this._classNames.errorMessage},E.createElement("span",{"data-automation-id":"error-message"},n)):E.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},n):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var n=this.props;return!!(n.onRenderDescription||n.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var n=this.props.invalid,r=n===void 0?!!this._errorMessage:n,i=rt(this.props,KA,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return E.createElement("textarea",N({id:this._id},i,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":o,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var n=this.props,r=n.ariaLabel,i=n.invalid,o=i===void 0?!!this._errorMessage:i,a=n.onRenderPrefix,s=n.onRenderSuffix,l=n.prefix,u=n.suffix,c=n.type,d=c===void 0?"text":c,f=n.label,h=[];f&&h.push(this._labelId),(l!==void 0||a)&&h.push(this._prefixId),(u!==void 0||s)&&h.push(this._suffixId);var p=N(N({type:this.state.isRevealingPassword?"text":d,id:this._id},rt(this.props,jA,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(h.length>0?h.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":r,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":o,onFocus:this._onFocus,onBlur:this._onBlur}),v=function(g){return E.createElement("input",N({},g))},_=this.props.onRenderInput||v;return _(p,v)},t.prototype._validate=function(n){var r=this;if(!(this._latestValidateValue===n&&RE(this.props))){this._latestValidateValue=n;var i=this.props.onGetErrorMessage,o=i&&i(n||"");if(o!==void 0)if(typeof o=="string"||!("then"in o))this.setState({errorMessage:o}),this._notifyAfterValidate(n,o);else{var a=++this._lastValidation;o.then(function(s){a===r._lastValidation&&r.setState({errorMessage:s}),r._notifyAfterValidate(n,s)})}else this._notifyAfterValidate(n,"")}},t.prototype._notifyAfterValidate=function(n,r){n===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(r,n)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var n=this._textElement.current;n.style.height="",n.style.height=n.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(E.Component);function Eh(e,t){var n=e.value,r=n===void 0?t.uncontrolledValue:n;return typeof r=="number"?String(r):r}function RE(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var U1;function dx(){if(typeof U1!="boolean"){var e=tt();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");U1=!(lb()||t)}else U1=!0}return U1}var fx={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function hx(e){var t=e.underlined,n=e.disabled,r=e.focused,i=e.theme,o=i.palette,a=i.fonts;return function(){var s;return{root:[t&&n&&{color:o.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(s={},s[ie]={height:31},s)}]}}}function px(e){var t,n,r,i,o,a,s,l,u,c,d,f,h=e.theme,p=e.className,v=e.disabled,_=e.focused,g=e.required,T=e.multiline,y=e.hasLabel,C=e.borderless,k=e.underlined,S=e.hasIcon,A=e.resizable,D=e.hasErrorMessage,M=e.inputClassName,x=e.autoAdjustHeight,P=e.hasRevealButton,O=h.semanticColors,q=h.effects,Z=h.fonts,U=on(fx,h),j={background:O.disabledBackground,color:v?O.disabledText:O.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[ie]={background:"Window",color:v?"GrayText":"WindowText"},t)},te=[{color:O.inputPlaceholderText,opacity:1,selectors:(n={},n[ie]={color:"GrayText"},n)}],R={color:O.disabledText,selectors:(r={},r[ie]={color:"GrayText"},r)};return{root:[U.root,Z.medium,g&&U.required,v&&U.disabled,_&&U.active,T&&U.multiline,C&&U.borderless,k&&U.underlined,lh,{position:"relative"},p],wrapper:[U.wrapper,k&&[{display:"flex",borderBottom:"1px solid "+(D?O.errorText:O.inputBorder),width:"100%"},v&&{borderBottomColor:O.disabledBackground,selectors:(i={},i[ie]=N({borderColor:"GrayText"},tn()),i)},!v&&{selectors:{":hover":{borderBottomColor:D?O.errorText:O.inputBorderHovered,selectors:(o={},o[ie]=N({borderBottomColor:"Highlight"},tn()),o)}}},_&&[{position:"relative"},mE(D?O.errorText:O.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[U.fieldGroup,lh,{border:"1px solid "+O.inputBorder,borderRadius:q.roundedCorner2,background:O.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},T&&{minHeight:"60px",height:"auto",display:"flex"},!_&&!v&&{selectors:{":hover":{borderColor:O.inputBorderHovered,selectors:(a={},a[ie]=N({borderColor:"Highlight"},tn()),a)}}},_&&!k&&mE(D?O.errorText:O.inputFocusBorderAlt,q.roundedCorner2),v&&{borderColor:O.disabledBackground,selectors:(s={},s[ie]=N({borderColor:"GrayText"},tn()),s),cursor:"default"},C&&{border:"none"},C&&_&&{border:"none",selectors:{":after":{border:"none"}}},k&&{flex:"1 1 0px",border:"none",textAlign:"left"},k&&v&&{backgroundColor:"transparent"},D&&!k&&{borderColor:O.errorText,selectors:{"&:hover":{borderColor:O.errorText}}},!y&&g&&{selectors:(l={":before":{content:"'*'",color:O.errorText,position:"absolute",top:-5,right:-10}},l[ie]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[Z.medium,U.field,lh,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:O.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},u[ie]={background:"Window",color:v?"GrayText":"WindowText"},u)},vE(te),T&&!A&&[U.unresizable,{resize:"none"}],T&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},T&&x&&{overflow:"hidden"},S&&!P&&{paddingRight:24},T&&S&&{paddingRight:40},v&&[{backgroundColor:O.disabledBackground,color:O.disabledText,borderColor:O.disabledBackground},vE(R)],k&&{textAlign:"left"},_&&!C&&{selectors:(c={},c[ie]={paddingLeft:11,paddingRight:11},c)},_&&T&&!C&&{selectors:(d={},d[ie]={paddingTop:4},d)},M],icon:[T&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Hr.medium,lineHeight:18},v&&{color:O.disabledText}],description:[U.description,{color:O.bodySubtext,fontSize:Z.xSmall.fontSize}],errorMessage:[U.errorMessage,ps.slideDownIn20,Z.small,{color:O.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[U.prefix,j],suffix:[U.suffix,j],revealButton:[U.revealButton,"ms-Button","ms-Button--icon",Uo(h,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:O.link,selectors:{":hover":{outline:0,color:O.primaryButtonBackgroundHovered,backgroundColor:O.buttonBackgroundHovered,selectors:(f={},f[ie]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},S&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Hr.medium,lineHeight:18},subComponentStyles:{label:hx(e)}}}var Gm=Yt(cx,px,void 0,{scope:"TextField"}),gl={auto:0,top:1,bottom:2,center:3},mx=function(e){if(e===void 0)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t},ME=function(e){if(e===void 0)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},z1=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},gx=16,Ex=100,vx=500,Tx=200,yx=500,PE=10,_x=30,Cx=2,Sx=2,Ax="page-",OE="spacer-",LE={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},u2=function(e){return e.getBoundingClientRect()},bx=u2,kx=u2,Fx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._root=E.createRef(),r._surface=E.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(i,o){return(i.items!==r.props.items||i.renderCount!==r.props.renderCount||i.startIndex!==r.props.startIndex||i.version!==r.props.version||!o.hasMounted)&&Gd()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(i,o)):o},r._onRenderRoot=function(i){var o=i.rootRef,a=i.surfaceElement,s=i.divProps;return E.createElement("div",N({ref:o},s),a)},r._onRenderSurface=function(i){var o=i.surfaceRef,a=i.pageElements,s=i.divProps;return E.createElement("div",N({ref:o},s),a)},r._onRenderPage=function(i,o){for(var a,s=r.props,l=s.onRenderCell,u=s.onRenderCellConditional,c=s.role,d=i.page,f=d.items,h=f===void 0?[]:f,p=d.startIndex,v=vi(i,["page"]),_=c===void 0?"listitem":"presentation",g=[],T=0;Tn;if(p){if(r&&this._scrollElement){for(var v=kx(this._scrollElement),_=ME(this._scrollElement),g={top:_,bottom:_+v.height},T=n-d,y=0;y=g.top&&C<=g.bottom;if(k)return;var S=ug.bottom;S||A&&(u=C-v.height)}this._scrollElement&&z1(this._scrollElement,u);return}u+=h}},t.prototype.getStartItemIndexInView=function(n){for(var r=this.state.pages||[],i=0,o=r;i=a.top&&(this._scrollTop||0)<=a.top+a.height;if(s)if(n)for(var u=0,c=a.startIndex;c0?o:void 0,"aria-label":c.length>0?d["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(n){n===void 0&&(n=this.props);var r=n.onShouldVirtualize;return!r||r(n)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(n){var r=this,i=this.props.usePageCache,o;if(i&&(o=this._pageCache[n.key],o&&o.pageElement))return o.pageElement;var a=this._getPageStyle(n),s=this.props.onRenderPage,l=s===void 0?this._onRenderPage:s,u=l({page:n,className:"ms-List-page",key:n.key,ref:function(c){r._pageRefs[n.key]=c},style:a,role:"presentation"},this._onRenderPage);return i&&n.startIndex===0&&(this._pageCache[n.key]={page:n,pageElement:u}),u},t.prototype._getPageStyle=function(n){var r=this.props.getPageStyle;return N(N({},r?r(n):{}),n.items?{}:{height:n.height})},t.prototype._onFocus=function(n){for(var r=n.target;r!==this._surface.current;){var i=r.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}r=Lr(r)}},t.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!Ix(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var n=this.props,r=n.renderedWindowsAhead,i=n.renderedWindowsBehind,o=this,a=o._requiredWindowsAhead,s=o._requiredWindowsBehind,l=Math.min(r,a+1),u=Math.min(i,s+1);(l!==a||u!==s)&&(this._requiredWindowsAhead=l,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(r>l||i>u)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(n,r){this._requiredRect||this._updateRenderRects(n,r);var i=this._buildPages(n,r),o=r.pages;return this._notifyPageChanges(o,i.pages,this.props),N(N(N({},r),i),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(n,r,i){var o=i.onPageAdded,a=i.onPageRemoved;if(o||a){for(var s={},l=0,u=n;l-1,q=!g||P>=g.top&&d<=g.bottom,Z=!y._requiredRect||P>=y._requiredRect.top&&d<=y._requiredRect.bottom,U=!_&&(Z||q&&O)||!v,j=h>=S&&h=y._visibleRect.top&&d<=y._visibleRect.bottom),u.push(z),Z&&y._allowedRect&&xx(l,{top:d,bottom:P,height:D,left:g.left,right:g.right,width:g.width})}else f||(f=y._createPage(OE+S,void 0,S,0,void 0,M,!0)),f.height=(f.height||0)+(P-d)+1,f.itemCount+=c;if(d+=P-d+1,_&&v)return"break"},y=this,C=a;Cthis._estimatedPageHeight/3)&&(l=this._surfaceRect=bx(this._surface.current),this._scrollTop=c),(i||!u||u!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=u||0;var d=Math.max(0,-l.top),f=tt(this._root.current),h={top:d,left:l.left,bottom:d+f.innerHeight,right:l.right,width:l.width,height:f.innerHeight};this._requiredRect=BE(h,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=BE(h,a,o),this._visibleRect=h}},t.defaultProps={startIndex:0,onRenderCell:function(n,r,i){return E.createElement(E.Fragment,null,n&&n.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:Sx,renderedWindowsBehind:Cx},t}(E.Component);function BE(e,t,n){var r=e.top-t*e.height,i=e.height+(t+n)*e.height;return{top:r,bottom:r+i,height:i,left:e.left,right:e.right,width:e.width}}function Ix(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function xx(e,t){return e.top=t.tope.bottom||e.bottom===-1?t.bottom:e.bottom,e.right=t.right>e.right||e.right===-1?t.right:e.right,e.width=e.right-e.left+1,e.height=e.bottom-e.top+1,e}var ci;(function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"})(ci||(ci={}));var sp;(function(e){e[e.normal=0]="normal",e[e.large=1]="large"})(sp||(sp={}));var Nx=Vt(),Dx=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.type,i=n.size,o=n.ariaLabel,a=n.ariaLive,s=n.styles,l=n.label,u=n.theme,c=n.className,d=n.labelPosition,f=o,h=rt(this.props,Qi,["size"]),p=i;p===void 0&&r!==void 0&&(p=r===sp.large?ci.large:ci.medium);var v=Nx(s,{theme:u,size:p,className:c,labelPosition:d});return E.createElement("div",N({},h,{className:v.root}),E.createElement("div",{className:v.circle}),l&&E.createElement("div",{className:v.label},l),f&&E.createElement("div",{role:"status","aria-live":a},E.createElement(t_,null,E.createElement("div",{className:v.screenReaderText},f))))},t.defaultProps={size:ci.medium,ariaLive:"polite",labelPosition:"bottom"},t}(E.Component),wx={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Rx=dt(function(){return ur({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),Mx=function(e){var t,n=e.theme,r=e.size,i=e.className,o=e.labelPosition,a=n.palette,s=on(wx,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},o==="top"&&{flexDirection:"column-reverse"},o==="right"&&{flexDirection:"row"},o==="left"&&{flexDirection:"row-reverse"},i],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:Rx(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[ie]=N({borderTopColor:"Highlight"},tn()),t)},r===ci.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===ci.small&&["ms-Spinner--small",{width:16,height:16}],r===ci.medium&&["ms-Spinner--medium",{width:20,height:20}],r===ci.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},o==="top"&&{margin:"0 0 8px"},o==="right"&&{margin:"0 0 0 8px"},o==="left"&&{margin:"0 8px 0 0"}],screenReaderText:xm}},Px=Yt(Dx,Mx,void 0,{scope:"Spinner"}),di;(function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"})(di||(di={}));var c2=Vb.durationValue2,Ox={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},Lx=function(e){var t,n=e.className,r=e.containerClassName,i=e.scrollableContentClassName,o=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,u=e.theme,c=e.topOffsetFixed,d=e.isModeless,f=e.layerClassName,h=e.isDefaultDragHandle,p=e.windowInnerHeight,v=u.palette,_=u.effects,g=u.fonts,T=on(Ox,u);return{root:[T.root,g.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+c2},c&&typeof l=="number"&&s&&{alignItems:"flex-start"},o&&T.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[T.main,{boxShadow:_.elevation64,borderRadius:_.roundedCorner2,backgroundColor:v.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?Ls.Layer:void 0},d&&{pointerEvents:"auto"},c&&typeof l=="number"&&s&&{top:l},h&&{cursor:"move"},r],scrollableContent:[T.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:p},t)},i],layer:d&&[f,T.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:g.xLargePlus.fontSize,width:"24px"}}},Bx=Vt(),Hx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;Xi(r);var i=r.props.allowTouchBodyScroll,o=i===void 0?!1:i;return r._allowTouchBodyScroll=o,r}return t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&z7()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&G7()},t.prototype.render=function(){var n=this.props,r=n.isDarkThemed,i=n.className,o=n.theme,a=n.styles,s=rt(this.props,Qi),l=Bx(a,{theme:o,className:i,isDark:r});return E.createElement("div",N({},s,{className:l.root}))},t}(E.Component),Ux={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},zx=function(e){var t,n=e.className,r=e.theme,i=e.isNone,o=e.isDark,a=r.palette,s=on(Ux,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[ie]={border:"1px solid WindowText",opacity:0},t)},i&&{visibility:"hidden"},o&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}},Gx=Yt(Hx,zx,void 0,{scope:"Overlay"}),jx=dt(function(e,t){return{root:ai(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),El={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Kx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._currentEventType=El.mouse,r._events=[],r._onMouseDown=function(i){var o=E.Children.only(r.props.children).props.onMouseDown;return o&&o(i),r._currentEventType=El.mouse,r._onDragStart(i)},r._onMouseUp=function(i){var o=E.Children.only(r.props.children).props.onMouseUp;return o&&o(i),r._currentEventType=El.mouse,r._onDragStop(i)},r._onTouchStart=function(i){var o=E.Children.only(r.props.children).props.onTouchStart;return o&&o(i),r._currentEventType=El.touch,r._onDragStart(i)},r._onTouchEnd=function(i){var o=E.Children.only(r.props.children).props.onTouchEnd;o&&o(i),r._currentEventType=El.touch,r._onDragStop(i)},r._onDragStart=function(i){if(typeof i.button=="number"&&i.button!==0)return!1;if(!(r.props.handleSelector&&!r._matchesSelector(i.target,r.props.handleSelector)||r.props.preventDragSelector&&r._matchesSelector(i.target,r.props.preventDragSelector))){r._touchId=r._getTouchId(i);var o=r._getControlPosition(i);if(o!==void 0){var a=r._createDragDataFromPosition(o);r.props.onStart&&r.props.onStart(i,a),r.setState({isDragging:!0,lastPosition:o}),r._events=[si(document.body,r._currentEventType.move,r._onDrag,!0),si(document.body,r._currentEventType.stop,r._onDragStop,!0)]}}},r._onDrag=function(i){i.type==="touchmove"&&i.preventDefault();var o=r._getControlPosition(i);if(o){var a=r._createUpdatedDragData(r._createDragDataFromPosition(o)),s=a.position;r.props.onDragChange&&r.props.onDragChange(i,a),r.setState({position:s,lastPosition:o})}},r._onDragStop=function(i){if(r.state.isDragging){var o=r._getControlPosition(i);if(o){var a=r._createDragDataFromPosition(o);r.setState({isDragging:!1,lastPosition:void 0}),r.props.onStop&&r.props.onStop(i,a),r.props.position&&r.setState({position:r.props.position}),r._events.forEach(function(s){return s()})}}},r.state={isDragging:!1,position:r.props.position||{x:0,y:0},lastPosition:void 0},r}return t.prototype.componentDidUpdate=function(n){this.props.position&&(!n.position||this.props.position!==n.position)&&this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach(function(n){return n()})},t.prototype.render=function(){var n=E.Children.only(this.props.children),r=n.props,i=this.props.position,o=this.state,a=o.position,s=o.isDragging,l=a.x,u=a.y;return i&&!s&&(l=i.x,u=i.y),E.cloneElement(n,{style:N(N({},r.style),{transform:"translate("+l+"px, "+u+"px)"}),className:jx(r.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(n){var r=this._getActiveTouch(n);if(!(this._touchId!==void 0&&!r)){var i=r||n;return{x:i.clientX,y:i.clientY}}},t.prototype._getActiveTouch=function(n){return n.targetTouches&&this._findTouchInTouchList(n.targetTouches)||n.changedTouches&&this._findTouchInTouchList(n.changedTouches)},t.prototype._getTouchId=function(n){var r=n.targetTouches&&n.targetTouches[0]||n.changedTouches&&n.changedTouches[0];if(r)return r.identifier},t.prototype._matchesSelector=function(n,r){if(!n||n===document.body)return!1;var i=n.matches||n.webkitMatchesSelector||n.msMatchesSelector;return i?i.call(n,r)||this._matchesSelector(n.parentElement,r):!1},t.prototype._findTouchInTouchList=function(n){if(this._touchId!==void 0){for(var r=0;r=(j||ka.small)&&E.createElement(U_,N({ref:he},qr),E.createElement(Mm,N({role:dr?"alertdialog":"dialog",ariaLabelledBy:P,ariaDescribedBy:q,onDismiss:A,shouldRestoreFocus:!T,enableAriaHiddenSiblings:F,"aria-modal":!R},b),E.createElement("div",{className:bn.root,role:R?void 0:"document"},!R&&E.createElement(Gx,N({"aria-hidden":!0,isDarkThemed:S,onClick:y?void 0:A,allowTouchBodyScroll:l},M)),z?E.createElement(Kx,{handleSelector:z.dragHandleSelector||"#"+Ye,preventDragSelector:"button",onStart:Tf,onDragChange:c1,onStop:yf,position:xe},f1):f1)))||null});d2.displayName="Modal";var f2=Yt(d2,Lx,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});f2.displayName="Modal";var qx=Vt(),Qx=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return Xi(r),r}return t.prototype.render=function(){var n=this.props,r=n.className,i=n.styles,o=n.theme;return this._classNames=qx(i,{theme:o,className:r}),E.createElement("div",{className:this._classNames.actions},E.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var n=this;return E.Children.map(this.props.children,function(r){return r?E.createElement("span",{className:n._classNames.action},r):null})},t}(E.Component),Xx={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},Zx=function(e){var t=e.className,n=e.theme,r=on(Xx,n);return{actions:[r.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},t],action:[r.action,{margin:"0 4px"}],actionsRight:[r.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}},jm=Yt(Qx,Zx,void 0,{scope:"DialogFooter"}),Jx=Vt(),eN=E.createElement(jm,null).type,tN=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return Xi(r),r}return t.prototype.render=function(){var n=this.props,r=n.showCloseButton,i=n.className,o=n.closeButtonAriaLabel,a=n.onDismiss,s=n.subTextId,l=n.subText,u=n.titleProps,c=u===void 0?{}:u,d=n.titleId,f=n.title,h=n.type,p=n.styles,v=n.theme,_=n.draggableHeaderClassName,g=Jx(p,{theme:v,className:i,isLargeHeader:h===di.largeHeader,isClose:h===di.close,draggableHeaderClassName:_}),T=this._groupChildren(),y;return l&&(y=E.createElement("p",{className:g.subText,id:s},l)),E.createElement("div",{className:g.content},E.createElement("div",{className:g.header},E.createElement("div",N({id:d,role:"heading","aria-level":1},c,{className:Tn(g.title,c.className)}),f),E.createElement("div",{className:g.topButton},this.props.topButtonsProps.map(function(C,k){return E.createElement(ha,N({key:C.uniqueId||k},C))}),(h===di.close||r&&h!==di.largeHeader)&&E.createElement(ha,{className:g.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:a}))),E.createElement("div",{className:g.inner},E.createElement("div",{className:g.innerContent},y,T.contents),T.footers))},t.prototype._groupChildren=function(){var n={footers:[],contents:[]};return E.Children.map(this.props.children,function(r){typeof r=="object"&&r!==null&&r.type===eN?n.footers.push(r):n.contents.push(r)}),n},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=Ws([Q_],t),t}(E.Component),nN={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},rN=function(e){var t,n,r,i=e.className,o=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,u=e.isMultiline,c=e.draggableHeaderClassName,d=o.palette,f=o.fonts,h=o.effects,p=o.semanticColors,v=on(nN,o);return{content:[a&&[v.contentLgHeader,{borderTop:"4px solid "+d.themePrimary}],s&&v.close,{flexGrow:1,overflowY:"hidden"},i],subText:[v.subText,f.medium,{margin:"0 0 24px 0",color:p.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:Ke.regular}],header:[v.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&v.close,c&&[c,{cursor:"move"}]],button:[v.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:p.buttonText,fontSize:Hr.medium}}}],inner:[v.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: "+ah+"px) and (max-width: "+sh+"px)"]={padding:"0 16px 16px"},t)}],innerContent:[v.content,{position:"relative",width:"100%"}],title:[v.title,f.xLarge,{color:p.bodyText,margin:"0",minHeight:f.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: "+ah+"px) and (max-width: "+sh+"px)"]={padding:"16px 46px 16px 16px"},n)},a&&{color:p.menuHeader},u&&{fontSize:f.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(r={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:p.buttonText},".ms-Dialog-button:hover":{color:p.buttonTextHovered,borderRadius:h.roundedCorner2}},r["@media (min-width: "+ah+"px) and (max-width: "+sh+"px)"]={padding:"15px 8px 0 0"},r)}]}},iN=Yt(tN,rN,void 0,{scope:"DialogContent"}),oN=Vt(),aN={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},sN={type:di.normal,className:"",topButtonsProps:[]},lN=function(e){ze(t,e);function t(n){var r=e.call(this,n)||this;return r._getSubTextId=function(){var i=r.props,o=i.ariaDescribedById,a=i.modalProps,s=i.dialogContentProps,l=i.subText,u=a&&a.subtitleAriaId||o;return u||(u=(s&&s.subText||l)&&r._defaultSubTextId),u},r._getTitleTextId=function(){var i=r.props,o=i.ariaLabelledById,a=i.modalProps,s=i.dialogContentProps,l=i.title,u=a&&a.titleAriaId||o;return u||(u=(s&&s.title||l)&&r._defaultTitleTextId),u},r._id=En("Dialog"),r._defaultTitleTextId=r._id+"-title",r._defaultSubTextId=r._id+"-subText",r}return t.prototype.render=function(){var n,r,i,o=this.props,a=o.className,s=o.containerClassName,l=o.contentClassName,u=o.elementToFocusOnDismiss,c=o.firstFocusableSelector,d=o.forceFocusInsideTrap,f=o.styles,h=o.hidden,p=o.disableRestoreFocus,v=p===void 0?o.ignoreExternalFocusing:p,_=o.isBlocking,g=o.isClickableOutsideFocusTrap,T=o.isDarkOverlay,y=o.isOpen,C=y===void 0?!h:y,k=o.onDismiss,S=o.onDismissed,A=o.onLayerDidMount,D=o.responsiveMode,M=o.subText,x=o.theme,P=o.title,O=o.topButtonsProps,q=o.type,Z=o.minWidth,U=o.maxWidth,j=o.modalProps,te=N({onLayerDidMount:A},j==null?void 0:j.layerProps),R,z;j!=null&&j.dragOptions&&!(!((n=j.dragOptions)===null||n===void 0)&&n.dragHandleSelector)&&(z=N({},j.dragOptions),R="ms-Dialog-draggable-header",z.dragHandleSelector="."+R);var G=N(N(N(N({},aN),{elementToFocusOnDismiss:u,firstFocusableSelector:c,forceFocusInsideTrap:d,disableRestoreFocus:v,isClickableOutsideFocusTrap:g,responsiveMode:D,className:a,containerClassName:s,isBlocking:_,isDarkOverlay:T,onDismissed:S}),j),{dragOptions:z,layerProps:te,isOpen:C}),F=N(N(N({className:l,subText:M,title:P,topButtonsProps:O,type:q},sN),o.dialogContentProps),{draggableHeaderClassName:R,titleProps:N({id:((r=o.dialogContentProps)===null||r===void 0?void 0:r.titleId)||this._defaultTitleTextId},(i=o.dialogContentProps)===null||i===void 0?void 0:i.titleProps)}),b=oN(f,{theme:x,className:G.className,containerClassName:G.containerClassName,hidden:h,dialogDefaultMinWidth:Z,dialogDefaultMaxWidth:U});return E.createElement(f2,N({},G,{className:b.root,containerClassName:b.main,onDismiss:k||G.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),E.createElement(iN,N({subTextId:this._defaultSubTextId,showCloseButton:G.isBlocking,onDismiss:k},F),o.children))},t.defaultProps={hidden:!0},t=Ws([Q_],t),t}(E.Component),uN={root:"ms-Dialog"},cN=function(e){var t,n=e.className,r=e.containerClassName,i=e.dialogDefaultMinWidth,o=i===void 0?"288px":i,a=e.dialogDefaultMaxWidth,s=a===void 0?"340px":a,l=e.hidden,u=e.theme,c=on(uN,u);return{root:[c.root,u.fonts.medium,n],main:[{width:o,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: "+S_+"px)"]={width:"auto",maxWidth:s,minWidth:o},t)},!l&&{display:"flex"},r]}},Wu=Yt(lN,cN,void 0,{scope:"Dialog"});Wu.displayName="Dialog";function dN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};Dt(n,t)}function fN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};Dt(n,t)}function hN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};Dt(n,t)}function pN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};Dt(n,t)}function mN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};Dt(n,t)}function gN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};Dt(n,t)}function EN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};Dt(n,t)}function vN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};Dt(n,t)}function TN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};Dt(n,t)}function yN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};Dt(n,t)}function _N(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};Dt(n,t)}function CN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};Dt(n,t)}function SN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};Dt(n,t)}function AN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};Dt(n,t)}function bN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};Dt(n,t)}function kN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};Dt(n,t)}function FN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};Dt(n,t)}function IN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};Dt(n,t)}function xN(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};Dt(n,t)}var NN=function(){Qo("trash","delete"),Qo("onedrive","onedrivelogo"),Qo("alertsolid12","eventdatemissed12"),Qo("sixpointstar","6pointstar"),Qo("twelvepointstar","12pointstar"),Qo("toggleon","toggleleft"),Qo("toggleoff","toggleright")};_m("@fluentui/font-icons-mdl2","8.5.8");var DN="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",ja=tt();function wN(e,t){var n,r;e===void 0&&(e=((n=ja==null?void 0:ja.FabricConfig)===null||n===void 0?void 0:n.iconBaseUrl)||((r=ja==null?void 0:ja.FabricConfig)===null||r===void 0?void 0:r.fontBaseUrl)||DN),[dN,fN,hN,pN,mN,gN,EN,vN,TN,yN,_N,CN,SN,AN,bN,kN,FN,IN,xN].forEach(function(i){return i(e,t)}),NN()}var RN=Vt(),MN=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.className,o=e.vertical,a=e.alignContent,s=e.children,l=RN(n,{theme:r,className:i,alignContent:a,vertical:o});return E.createElement("div",{className:l.root,ref:t},E.createElement("div",{className:l.content,role:"separator","aria-orientation":o?"vertical":"horizontal"},s))}),PN=function(e){var t,n,r=e.theme,i=e.alignContent,o=e.vertical,a=e.className,s=i==="start",l=i==="center",u=i==="end";return{root:[r.fonts.medium,{position:"relative"},i&&{textAlign:i},!i&&{textAlign:"center"},o&&(l||!i)&&{verticalAlign:"middle"},o&&s&&{verticalAlign:"top"},o&&u&&{verticalAlign:"bottom"},o&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[ie]={backgroundColor:"WindowText"},t)}},!o&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[ie]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},o&&{padding:"12px 0"}]}},h2=Yt(MN,PN,void 0,{scope:"Separator"});h2.displayName="Separator";var Km=N;function Wl(e,t){for(var n=[],r=2;r0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return HN(t[a],l,r[a],r.slots&&r.slots[a],r._defaultStyles&&r._defaultStyles[a],r.theme)};s.isSlot=!0,n[a]=s}};for(var o in t)i(o);return n}function LN(e,t){var n,r;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?r=(n={},n[e]=t,n):r=t,r}function BN(e,t){for(var n=[],r=2;r2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(n.length===2)return{rowGap:vh(bs(n[0],t)),columnGap:vh(bs(n[1],t))};var r=vh(bs(e,t));return{rowGap:r,columnGap:r}},HE=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var n=e.split(" ");return n.length<2?bs(e,t):n.reduce(function(r,i){return bs(r,t)+" "+bs(i,t)})},Ka={start:"flex-start",end:"flex-end"},lp={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},$N=function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,v,_=e.className,g=e.disableShrink,T=e.enableScopedSelectors,y=e.grow,C=e.horizontal,k=e.horizontalAlign,S=e.reversed,A=e.verticalAlign,D=e.verticalFill,M=e.wrap,x=on(lp,t),P=n&&n.childrenGap?n.childrenGap:e.gap,O=n&&n.maxHeight?n.maxHeight:e.maxHeight,q=n&&n.maxWidth?n.maxWidth:e.maxWidth,Z=n&&n.padding?n.padding:e.padding,U=WN(P,t),j=U.rowGap,te=U.columnGap,R=""+-.5*te.value+te.unit,z=""+-.5*j.value+j.unit,G={textOverflow:"ellipsis"},F="> "+(T?"."+lp.child:"*"),b=(r={},r[F+":not(."+g2.root+")"]={flexShrink:0},r);return M?{root:[x.root,{flexWrap:"wrap",maxWidth:q,maxHeight:O,width:"auto",overflow:"visible",height:"100%"},k&&(i={},i[C?"justifyContent":"alignItems"]=Ka[k]||k,i),A&&(o={},o[C?"alignItems":"justifyContent"]=Ka[A]||A,o),_,{display:"flex"},C&&{height:D?"100%":"auto"}],inner:[x.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:R,marginRight:R,marginTop:z,marginBottom:z,overflow:"visible",boxSizing:"border-box",padding:HE(Z,t),width:te.value===0?"100%":"calc(100% + "+te.value+te.unit+")",maxWidth:"100vw"},a[F]=N({margin:""+.5*j.value+j.unit+" "+.5*te.value+te.unit},G),a),g&&b,k&&(s={},s[C?"justifyContent":"alignItems"]=Ka[k]||k,s),A&&(l={},l[C?"alignItems":"justifyContent"]=Ka[A]||A,l),C&&(u={flexDirection:S?"row-reverse":"row",height:j.value===0?"100%":"calc(100% + "+j.value+j.unit+")"},u[F]={maxWidth:te.value===0?"100%":"calc(100% - "+te.value+te.unit+")"},u),!C&&(c={flexDirection:S?"column-reverse":"column",height:"calc(100% + "+j.value+j.unit+")"},c[F]={maxHeight:j.value===0?"100%":"calc(100% - "+j.value+j.unit+")"},c)]}:{root:[x.root,(d={display:"flex",flexDirection:C?S?"row-reverse":"row":S?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:D?"100%":"auto",maxWidth:q,maxHeight:O,padding:HE(Z,t),boxSizing:"border-box"},d[F]=G,d),g&&b,y&&{flexGrow:y===!0?1:y},k&&(f={},f[C?"justifyContent":"alignItems"]=Ka[k]||k,f),A&&(h={},h[C?"alignItems":"justifyContent"]=Ka[A]||A,h),C&&te.value>0&&(p={},p[S?F+":not(:last-child)":F+":not(:first-child)"]={marginLeft:""+te.value+te.unit},p),!C&&j.value>0&&(v={},v[S?F+":not(:last-child)":F+":not(:first-child)"]={marginTop:""+j.value+j.unit},v),_]}},VN=function(e){var t=e.as,n=t===void 0?"div":t,r=e.disableShrink,i=r===void 0?!1:r,o=e.enableScopedSelectors,a=o===void 0?!1:o,s=e.wrap,l=vi(e,["as","disableShrink","enableScopedSelectors","wrap"]),u=E2(e.children,{disableShrink:i,enableScopedSelectors:a}),c=rt(l,ft),d=Wm(e,{root:n,inner:"div"});return s?Wl(d.root,N({},c),Wl(d.inner,null,u)):Wl(d.root,N({},c),u)};function E2(e,t){var n=t.disableShrink,r=t.enableScopedSelectors,i=E.Children.toArray(e);return i=E.Children.map(i,function(o){if(!o||!E.isValidElement(o))return o;if(o.type===E.Fragment)return o.props.children?E2(o.props.children,{disableShrink:n,enableScopedSelectors:r}):null;var a=o,s={};YN(o)&&(s={shrink:!n});var l=a.props.className;return E.cloneElement(a,N(N(N(N({},s),a.props),l&&{className:l}),r&&{className:Tn(lp.child,l)}))}),i}function YN(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===So.displayName}var qN={Item:So},me=$m(VN,{displayName:"Stack",styles:$N,statics:qN}),QN=function(e){if(e.children==null)return null;e.block,e.className;var t=e.as,n=t===void 0?"span":t;e.variant,e.nowrap;var r=vi(e,["block","className","as","variant","nowrap"]),i=Wm(e,{root:n});return Wl(i.root,N({},rt(r,ft)))},XN=function(e,t){var n=e.as,r=e.className,i=e.block,o=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,u=s[a||"medium"];return{root:[u,{color:u.color||l.bodyText,display:i?n==="td"?"table-cell":"block":"inline",mozOsxFontSmoothing:u.MozOsxFontSmoothing,webkitFontSmoothing:u.WebkitFontSmoothing},o&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},Fo=$m(QN,{displayName:"Text",styles:XN});const ZN="_layout_19t1l_1",JN="_header_19t1l_7",eD="_headerContainer_19t1l_11",tD="_headerTitleContainer_19t1l_17",nD="_headerTitle_19t1l_17",rD="_headerIcon_19t1l_34",iD="_shareButtonContainer_19t1l_40",oD="_shareButton_19t1l_40",aD="_shareButtonText_19t1l_63",sD="_urlTextBox_19t1l_73",lD="_copyButtonContainer_19t1l_83",uD="_copyButton_19t1l_83",cD="_copyButtonText_19t1l_105",Ai={layout:ZN,header:JN,headerContainer:eD,headerTitleContainer:tD,headerTitle:nD,headerIcon:rD,shareButtonContainer:iD,shareButton:oD,shareButtonText:aD,urlTextBox:sD,copyButtonContainer:lD,copyButton:uD,copyButtonText:cD},v2="/assets/Azure-6fbfc6c9.svg",Th=typeof window>"u"?global:window,yh="@griffel/";function dD(e,t){return Th[Symbol.for(yh+e)]||(Th[Symbol.for(yh+e)]=t),Th[Symbol.for(yh+e)]}const up=dD("DEFINITION_LOOKUP_TABLE",{}),Cc="data-make-styles-bucket",cp=7,Vm="___",fD=Vm.length+cp,hD=0,pD=1;function mD(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function gD(e){const t=e.length;if(t===cp)return e;for(let n=t;n0&&(t+=c.slice(0,d)),n+=f,r[u]=f}}}if(n==="")return t.slice(0,-1);const i=zE[n];if(i!==void 0)return t+i;const o=[];for(let u=0;uo.cssText):r}}}const yD=["r","d","l","v","w","f","i","h","a","k","t","m"],GE=yD.reduce((e,t,n)=>(e[t]=n,e),{});function _D(e,t,n,r,i={}){const o=e==="m",a=o?e+i.m:e;if(!r.stylesheets[a]){const s=t&&t.createElement("style"),l=TD(s,e,{...r.styleElementAttributes,...o&&{media:i.m}});r.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,CD(t,n,e,r,i))}return r.stylesheets[a]}function CD(e,t,n,r,i){const o=GE[n];let a=c=>o-GE[c.getAttribute(Cc)],s=e.head.querySelectorAll(`[${Cc}]`);if(n==="m"&&i){const c=e.head.querySelectorAll(`[${Cc}="${n}"]`);c.length&&(s=c,a=d=>r.compareMediaQueries(i.m,d.media))}const l=s.length;let u=l-1;for(;u>=0;){const c=s.item(u);if(a(c)>0)return c.nextSibling;u--}return l>0?s.item(0):t?t.nextSibling:null}let SD=0;const AD=(e,t)=>et?1:0;function bD(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:n,insertionPoint:r,styleElementAttributes:i,compareMediaQueries:o=AD}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:o,id:`d${SD++}`,insertCSSRules(s){for(const l in s){const u=s[l];for(let c=0,d=u.length;c{const{title:t,primaryFill:n="currentColor"}=e,r=vi(e,["title","primaryFill"]),i=Object.assign(Object.assign({},r),{title:void 0,fill:n}),o=wD();return i.className=ED(o.root,i.className),t&&(i["aria-label"]=t),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},MD=(e,t)=>{const n=r=>{const i=RD(r);return E.createElement(e,Object.assign({},i))};return n.displayName=t,n},$u=MD,PD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z",fill:t}))},OD=$u(PD,"CopyRegular"),LD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5ZM10 6a.5.5 0 0 1 .5.41V11a.5.5 0 0 1-1 .09V6.5c0-.28.22-.5.5-.5Z",fill:t}))},BD=$u(LD,"ErrorCircleRegular"),HD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:t}))},UD=$u(HD,"SendRegular"),zD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M9.72 2.08a.5.5 0 0 1 .56 0c1.94 1.3 4.03 2.1 6.3 2.43A.5.5 0 0 1 17 5v4.34c-.26-.38-.6-.7-1-.94V5.43a15.97 15.97 0 0 1-5.6-2.08L10 3.1l-.4.25A15.97 15.97 0 0 1 4 5.43V9.5c0 3.4 1.97 5.86 6 7.46V17a2 2 0 0 0 .24.94l-.06.03a.5.5 0 0 1-.36 0C5.31 16.23 3 13.39 3 9.5V5a.5.5 0 0 1 .43-.5 15.05 15.05 0 0 0 6.3-2.42ZM12.5 12v-1a2 2 0 1 1 4 0v1h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h.5Zm1-1v1h2v-1a1 1 0 1 0-2 0Zm1.75 4a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z",fill:t}))},GD=$u(zD,"ShieldLockRegular"),jD=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Z",fill:t}))},KD=$u(jD,"SquareRegular"),WD=({onClick:e})=>L(xu,{styles:{root:{width:86,height:32,borderRadius:4,background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)",padding:"5px 12px",marginRight:"20px"},icon:{color:"#FFFFFF"},rootHovered:{background:"linear-gradient(135deg, #0F6CBD 0%, #2D87C3 51.04%, #8DDDD8 100%)"},label:{fontWeight:600,fontSize:14,lineHeight:"20px",color:"#FFFFFF"}},iconProps:{iconName:"Share"},onClick:e,text:"Share"}),$D=({onClick:e,text:t})=>L(Qd,{text:t,iconProps:{iconName:"History"},onClick:e,styles:{root:{width:"180px",border:"1px solid #D1D1D1"},rootHovered:{border:"1px solid #D1D1D1"},rootPressed:{border:"1px solid #D1D1D1"}}}),VD=(e,t)=>{switch(t.type){case"TOGGLE_CHAT_HISTORY":return{...e,isChatHistoryOpen:!e.isChatHistoryOpen};case"UPDATE_CURRENT_CHAT":return{...e,currentChat:t.payload};case"UPDATE_CHAT_HISTORY_LOADING_STATE":return{...e,chatHistoryLoadingState:t.payload};case"UPDATE_CHAT_HISTORY":if(!e.chatHistory||!e.currentChat)return e;let n=e.chatHistory.findIndex(a=>a.id===t.payload.id);if(n!==-1){let a=[...e.chatHistory];return a[n]=e.currentChat,{...e,chatHistory:a}}else return{...e,chatHistory:[...e.chatHistory,t.payload]};case"UPDATE_CHAT_TITLE":if(!e.chatHistory)return{...e,chatHistory:[]};let r=e.chatHistory.map(a=>{var s;return a.id===t.payload.id?(((s=e.currentChat)==null?void 0:s.id)===t.payload.id&&(e.currentChat.title=t.payload.title),{...a,title:t.payload.title}):a});return{...e,chatHistory:r};case"DELETE_CHAT_ENTRY":if(!e.chatHistory)return{...e,chatHistory:[]};let i=e.chatHistory.filter(a=>a.id!==t.payload);return e.currentChat=null,{...e,chatHistory:i};case"DELETE_CHAT_HISTORY":return{...e,chatHistory:[],filteredChatHistory:[],currentChat:null};case"DELETE_CURRENT_CHAT_MESSAGES":if(!e.currentChat||!e.chatHistory)return e;const o={...e.currentChat,messages:[]};return{...e,currentChat:o};case"FETCH_CHAT_HISTORY":return{...e,chatHistory:t.payload};case"SET_COSMOSDB_STATUS":return{...e,isCosmosDBAvailable:t.payload};default:return e}};var tr=(e=>(e.NotConfigured="CosmosDB is not configured",e.NotWorking="CosmosDB is not working",e.Working="CosmosDB is configured and working",e))(tr||{}),wn=(e=>(e.Loading="loading",e.Success="success",e.Fail="fail",e.NotStarted="notStarted",e))(wn||{});async function YD(e,t){return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e.messages}),signal:t})}async function qD(){const e=await fetch("/.auth/me");return e.ok?await e.json():(console.log("No identity provider found. Access to chat will be blocked."),[])}const QD=async()=>await fetch("/history/list",{method:"GET"}).then(async t=>{const n=await t.json();return Array.isArray(n)?await Promise.all(n.map(async i=>{let o=[];return o=await XD(i.id).then(s=>s).catch(s=>(console.error("error fetching messages: ",s),[])),{id:i.id,title:i.title,date:i.createdAt,messages:o}})):(console.error("There was an issue fetching your data."),null)}).catch(t=>(console.error("There was an issue fetching your data."),null)),XD=async e=>await fetch("/history/read",{method:"POST",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(async n=>{if(!n)return[];const r=await n.json();let i=[];return r!=null&&r.messages&&r.messages.forEach(o=>{const a={id:o.id,role:o.role,date:o.createdAt,content:o.content};i.push(a)}),i}).catch(n=>(console.error("There was an issue fetching your data."),[])),jE=async(e,t,n)=>{let r;return n?r=JSON.stringify({conversation_id:n,messages:e.messages}):r=JSON.stringify({messages:e.messages}),await fetch("/history/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:r,signal:t}).then(o=>o).catch(o=>(console.error("There was an issue fetching your data."),new Response))},ZD=async(e,t)=>await fetch("/history/update",{method:"POST",body:JSON.stringify({conversation_id:t,messages:e}),headers:{"Content-Type":"application/json"}}).then(async r=>r).catch(r=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),JD=async e=>await fetch("/history/delete",{method:"DELETE",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(n=>n).catch(n=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),ew=async()=>await fetch("/history/delete_all",{method:"DELETE",body:JSON.stringify({}),headers:{"Content-Type":"application/json"}}).then(t=>t).catch(t=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),tw=async e=>await fetch("/history/clear",{method:"POST",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(n=>n).catch(n=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),nw=async(e,t)=>await fetch("/history/rename",{method:"POST",body:JSON.stringify({conversation_id:e,title:t}),headers:{"Content-Type":"application/json"}}).then(r=>r).catch(r=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),rw=async()=>await fetch("/history/ensure",{method:"GET"}).then(async t=>{let n=await t.json(),r;return n.message?r=tr.Working:t.status===500?r=tr.NotWorking:r=tr.NotConfigured,t.ok?{cosmosDB:!0,status:r}:{cosmosDB:!1,status:r}}).catch(t=>(console.error("There was an issue fetching your data."),{cosmosDB:!1,status:t})),iw={isChatHistoryOpen:!1,chatHistoryLoadingState:wn.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:tr.NotConfigured}},qs=E.createContext(void 0),ow=({children:e})=>{const[t,n]=E.useReducer(VD,iw);return E.useEffect(()=>{const r=async()=>await QD().then(a=>(n(a?{type:"FETCH_CHAT_HISTORY",payload:a}:{type:"FETCH_CHAT_HISTORY",payload:null}),a)).catch(a=>(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"FETCH_CHAT_HISTORY",payload:null}),console.error("There was an issue fetching your data."),null));(async()=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Loading}),rw().then(o=>{o!=null&&o.cosmosDB?r().then(a=>{a?(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Success}),n({type:"SET_COSMOSDB_STATUS",payload:o})):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:tr.NotWorking}}))}).catch(a=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:tr.NotWorking}})}):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:o}))}).catch(o=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:wn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:tr.NotConfigured}})})})()},[]),L(qs.Provider,{value:{state:t,dispatch:n},children:e})},aw=()=>{var d,f;const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[i,o]=E.useState("Copy URL"),a=E.useContext(qs),s=()=>{t(!0)},l=()=>{t(!1),r(!1),o("Copy URL")},u=()=>{navigator.clipboard.writeText(window.location.href),r(!0)},c=()=>{a==null||a.dispatch({type:"TOGGLE_CHAT_HISTORY"})};return E.useEffect(()=>{n&&o("Copied URL")},[n]),E.useEffect(()=>{},[a==null?void 0:a.state.isCosmosDBAvailable.status]),pe("div",{className:Ai.layout,children:[L("header",{className:Ai.header,role:"banner",children:pe(me,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[pe(me,{horizontal:!0,verticalAlign:"center",children:[L("img",{src:v2,className:Ai.headerIcon,"aria-hidden":"true"}),L(v7,{to:"/",className:Ai.headerTitleContainer,children:L("h1",{className:Ai.headerTitle,children:"Azure AI"})})]}),pe(me,{horizontal:!0,tokens:{childrenGap:4},children:[((d=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:d.status)!==tr.NotConfigured&&L($D,{onClick:c,text:(f=a==null?void 0:a.state)!=null&&f.isChatHistoryOpen?"Hide chat history":"Show chat history"}),L(WD,{onClick:s})]})]})}),L(u7,{}),L(Wu,{onDismiss:l,hidden:!e,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"200px",minHeight:"100px"}}}]},dialogContentProps:{title:"Share the web app",showCloseButton:!0},children:pe(me,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[L(Gm,{className:Ai.urlTextBox,defaultValue:window.location.href,readOnly:!0}),pe("div",{className:Ai.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:u,onKeyDown:h=>h.key==="Enter"||h.key===" "?u():null,children:[L(OD,{className:Ai.copyButton}),L("span",{className:Ai.copyButtonText,children:i})]})]})})]})},sw=()=>L("h1",{children:"404"}),KE=["http","https","mailto","tel"];function lw(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh @@ -107,4 +107,4 @@ Error generating stack: `+o.message+` `)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==re.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,re.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=vd}switchToPlaintextParsing(){this.insertionMode=vd,this.originalInsertionMode=Ei,this.tokenizer.state=w.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===m.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===re.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===m.TITLE||t===m.TEXTAREA?this.tokenizer.state=w.MODE.RCDATA:t===m.STYLE||t===m.XMP||t===m.IFRAME||t===m.NOEMBED||t===m.NOFRAMES||t===m.NOSCRIPT?this.tokenizer.state=w.MODE.RAWTEXT:t===m.SCRIPT?this.tokenizer.state=w.MODE.SCRIPT_DATA:t===m.PLAINTEXT&&(this.tokenizer.state=w.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,re.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,re.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(m.HTML,re.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===re.HTML||this.treeAdapter.getTagName(n)===m.ANNOTATION_XML&&r===re.MATHML&&t.type===w.START_TAG_TOKEN&&t.tagName===m.SVG)return!1;const i=t.type===w.CHARACTER_TOKEN||t.type===w.NULL_CHARACTER_TOKEN||t.type===w.WHITESPACE_CHARACTER_TOKEN;return(t.type===w.START_TAG_TOKEN&&t.tagName!==m.MGLYPH&&t.tagName!==m.MALIGNMARK||i)&&this._isIntegrationPoint(n,re.MATHML)||(t.type===w.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,re.HTML)?!1:t.type!==w.EOF_TOKEN}_processToken(t){Uv[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){Uv[Ei][t.type](this,t)}_processTokenInForeignContent(t){t.type===w.CHARACTER_TOKEN?MU(this,t):t.type===w.NULL_CHARACTER_TOKEN?RU(this,t):t.type===w.WHITESPACE_CHARACTER_TOKEN?Nn(this,t):t.type===w.COMMENT_TOKEN?Ft(this,t):t.type===w.START_TAG_TOKEN?PU(this,t):t.type===w.END_TAG_TOKEN&&OU(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===w.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Wt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return li.isIntegrationPoint(r,i,o,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===Lv.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),o=rH[i];if(o){this.insertionMode=o;break}else if(!n&&(i===m.TD||i===m.TH)){this.insertionMode=pf;break}else if(!n&&i===m.HEAD){this.insertionMode=Zs;break}else if(i===m.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===m.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===m.HTML){this.insertionMode=this.headElement?ff:df;break}else if(n){this.insertionMode=Ei;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===m.TEMPLATE)break;if(i===m.TABLE){this.insertionMode=sg;return}}this.insertionMode=ag}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===m.TEMPLATE&&o===re.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===m.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ma.SPECIAL_ELEMENTS[r][n]}}var aH=oH;function sH(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Mr(e,t),n}function lH(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function uH(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=nH;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=cH(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function cH(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function dH(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===m.TEMPLATE&&i===re.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function fH(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function yo(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==m.TEMPLATE&&e._err(Wt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Wt.endTagWithoutMatchingOpenElement)}function Xl(e,t){e.openElements.pop(),e.insertionMode=ff,e._processToken(t)}function TH(e,t){const n=t.tagName;n===m.HTML?Gn(e,t):n===m.BASEFONT||n===m.BGSOUND||n===m.HEAD||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.STYLE?Ot(e,t):n===m.NOSCRIPT?e._err(Wt.nestedNoscriptInHead):Zl(e,t)}function yH(e,t){const n=t.tagName;n===m.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Zs):n===m.BR?Zl(e,t):e._err(Wt.endTagWithoutMatchingOpenElement)}function Zl(e,t){const n=t.type===w.EOF_TOKEN?Wt.openElementsLeftAfterEof:Wt.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=Zs,e._processToken(t)}function _H(e,t){const n=t.tagName;n===m.HTML?Gn(e,t):n===m.BODY?(e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode=Ei):n===m.FRAMESET?(e._insertElement(t,re.HTML),e.insertionMode=mf):n===m.BASE||n===m.BASEFONT||n===m.BGSOUND||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.SCRIPT||n===m.STYLE||n===m.TEMPLATE||n===m.TITLE?(e._err(Wt.abandonedHeadElementChild),e.openElements.push(e.headElement),Ot(e,t),e.openElements.remove(e.headElement)):n===m.HEAD?e._err(Wt.misplacedStartTagForHeadElement):Jl(e,t)}function CH(e,t){const n=t.tagName;n===m.BODY||n===m.HTML||n===m.BR?Jl(e,t):n===m.TEMPLATE?Pa(e,t):e._err(Wt.endTagWithoutMatchingOpenElement)}function Jl(e,t){e._insertFakeElement(m.BODY),e.insertionMode=Ei,e._processToken(t)}function ta(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function oc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function SH(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function AH(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function bH(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,re.HTML),e.insertionMode=mf)}function Fi(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,re.HTML)}function kH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6)&&e.openElements.pop(),e._insertElement(t,re.HTML)}function Gv(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function FH(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,re.HTML),n||(e.formElement=e.openElements.current))}function IH(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===m.LI&&o===m.LI?a=m.LI:(n===m.DD||n===m.DT)&&(o===m.DD||o===m.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==m.ADDRESS&&o!==m.DIV&&o!==m.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,re.HTML)}function xH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.tokenizer.state=w.MODE.PLAINTEXT}function NH(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.framesetOk=!1}function DH(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(m.A);n&&(yo(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Va(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wH(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(yo(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jv(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function RH(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ma.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode=en}function Ja(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function MH(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,re.HTML);const n=w.getTokenAttr(t,$8.TYPE);(!n||n.toLowerCase()!==V8)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Kv(e,t){e._appendElement(t,re.HTML),t.ackSelfClosing=!0}function PH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function OH(e,t){t.tagName=m.IMG,Ja(e,t)}function LH(e,t){e._insertElement(t,re.HTML),e.skipNextNewLine=!0,e.tokenizer.state=w.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=vd}function BH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function HH(e,t){e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function Wv(e,t){e._switchToTextParsing(t,w.MODE.RAWTEXT)}function UH(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode===en||e.insertionMode===hf||e.insertionMode===Cr||e.insertionMode===Yi||e.insertionMode===pf?e.insertionMode=sg:e.insertionMode=ag}function $v(e,t){e.openElements.currentTagName===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML)}function Vv(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,re.HTML)}function zH(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,re.HTML)}function GH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,re.HTML)}function jH(e,t){e._reconstructActiveFormattingElements(),li.adjustTokenMathMLAttrs(t),li.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,re.MATHML):e._insertElement(t,re.MATHML),t.ackSelfClosing=!0}function KH(e,t){e._reconstructActiveFormattingElements(),li.adjustTokenSVGAttrs(t),li.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,re.SVG):e._insertElement(t,re.SVG),t.ackSelfClosing=!0}function fr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML)}function Gn(e,t){const n=t.tagName;switch(n.length){case 1:n===m.I||n===m.S||n===m.B||n===m.U?Va(e,t):n===m.P?Fi(e,t):n===m.A?DH(e,t):fr(e,t);break;case 2:n===m.DL||n===m.OL||n===m.UL?Fi(e,t):n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6?kH(e,t):n===m.LI||n===m.DD||n===m.DT?IH(e,t):n===m.EM||n===m.TT?Va(e,t):n===m.BR?Ja(e,t):n===m.HR?PH(e,t):n===m.RB?Vv(e,t):n===m.RT||n===m.RP?zH(e,t):n!==m.TH&&n!==m.TD&&n!==m.TR&&fr(e,t);break;case 3:n===m.DIV||n===m.DIR||n===m.NAV?Fi(e,t):n===m.PRE?Gv(e,t):n===m.BIG?Va(e,t):n===m.IMG||n===m.WBR?Ja(e,t):n===m.XMP?BH(e,t):n===m.SVG?KH(e,t):n===m.RTC?Vv(e,t):n!==m.COL&&fr(e,t);break;case 4:n===m.HTML?SH(e,t):n===m.BASE||n===m.LINK||n===m.META?Ot(e,t):n===m.BODY?AH(e,t):n===m.MAIN||n===m.MENU?Fi(e,t):n===m.FORM?FH(e,t):n===m.CODE||n===m.FONT?Va(e,t):n===m.NOBR?wH(e,t):n===m.AREA?Ja(e,t):n===m.MATH?jH(e,t):n===m.MENU?GH(e,t):n!==m.HEAD&&fr(e,t);break;case 5:n===m.STYLE||n===m.TITLE?Ot(e,t):n===m.ASIDE?Fi(e,t):n===m.SMALL?Va(e,t):n===m.TABLE?RH(e,t):n===m.EMBED?Ja(e,t):n===m.INPUT?MH(e,t):n===m.PARAM||n===m.TRACK?Kv(e,t):n===m.IMAGE?OH(e,t):n!==m.FRAME&&n!==m.TBODY&&n!==m.TFOOT&&n!==m.THEAD&&fr(e,t);break;case 6:n===m.SCRIPT?Ot(e,t):n===m.CENTER||n===m.FIGURE||n===m.FOOTER||n===m.HEADER||n===m.HGROUP||n===m.DIALOG?Fi(e,t):n===m.BUTTON?NH(e,t):n===m.STRIKE||n===m.STRONG?Va(e,t):n===m.APPLET||n===m.OBJECT?jv(e,t):n===m.KEYGEN?Ja(e,t):n===m.SOURCE?Kv(e,t):n===m.IFRAME?HH(e,t):n===m.SELECT?UH(e,t):n===m.OPTION?$v(e,t):fr(e,t);break;case 7:n===m.BGSOUND?Ot(e,t):n===m.DETAILS||n===m.ADDRESS||n===m.ARTICLE||n===m.SECTION||n===m.SUMMARY?Fi(e,t):n===m.LISTING?Gv(e,t):n===m.MARQUEE?jv(e,t):n===m.NOEMBED?Wv(e,t):n!==m.CAPTION&&fr(e,t);break;case 8:n===m.BASEFONT?Ot(e,t):n===m.FRAMESET?bH(e,t):n===m.FIELDSET?Fi(e,t):n===m.TEXTAREA?LH(e,t):n===m.TEMPLATE?Ot(e,t):n===m.NOSCRIPT?e.options.scriptingEnabled?Wv(e,t):fr(e,t):n===m.OPTGROUP?$v(e,t):n!==m.COLGROUP&&fr(e,t);break;case 9:n===m.PLAINTEXT?xH(e,t):fr(e,t);break;case 10:n===m.BLOCKQUOTE||n===m.FIGCAPTION?Fi(e,t):fr(e,t);break;default:fr(e,t)}}function WH(e){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=lg)}function $H(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=lg,e._processToken(t))}function fo(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function VH(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):e.openElements.remove(n))}function YH(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(m.P),e._closePElement()}function qH(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function QH(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function XH(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Yv(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ZH(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(m.BR),e.openElements.pop(),e.framesetOk=!1}function Mr(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function ug(e,t){const n=t.tagName;switch(n.length){case 1:n===m.A||n===m.B||n===m.I||n===m.S||n===m.U?yo(e,t):n===m.P?YH(e):Mr(e,t);break;case 2:n===m.DL||n===m.UL||n===m.OL?fo(e,t):n===m.LI?qH(e):n===m.DD||n===m.DT?QH(e,t):n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6?XH(e):n===m.BR?ZH(e):n===m.EM||n===m.TT?yo(e,t):Mr(e,t);break;case 3:n===m.BIG?yo(e,t):n===m.DIR||n===m.DIV||n===m.NAV||n===m.PRE?fo(e,t):Mr(e,t);break;case 4:n===m.BODY?WH(e):n===m.HTML?$H(e,t):n===m.FORM?VH(e):n===m.CODE||n===m.FONT||n===m.NOBR?yo(e,t):n===m.MAIN||n===m.MENU?fo(e,t):Mr(e,t);break;case 5:n===m.ASIDE?fo(e,t):n===m.SMALL?yo(e,t):Mr(e,t);break;case 6:n===m.CENTER||n===m.FIGURE||n===m.FOOTER||n===m.HEADER||n===m.HGROUP||n===m.DIALOG?fo(e,t):n===m.APPLET||n===m.OBJECT?Yv(e,t):n===m.STRIKE||n===m.STRONG?yo(e,t):Mr(e,t);break;case 7:n===m.ADDRESS||n===m.ARTICLE||n===m.DETAILS||n===m.SECTION||n===m.SUMMARY||n===m.LISTING?fo(e,t):n===m.MARQUEE?Yv(e,t):Mr(e,t);break;case 8:n===m.FIELDSET?fo(e,t):n===m.TEMPLATE?Pa(e,t):Mr(e,t);break;case 10:n===m.BLOCKQUOTE||n===m.FIGCAPTION?fo(e,t):Mr(e,t);break;default:Mr(e,t)}}function Ii(e,t){e.tmplInsertionModeStackTop>-1?nC(e,t):e.stopped=!0}function JH(e,t){t.tagName===m.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function eU(e,t){e._err(Wt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function xi(e,t){const n=e.openElements.currentTagName;n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Q8,e._processToken(t)):pr(e,t)}function tU(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,re.HTML),e.insertionMode=hf}function nU(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,re.HTML),e.insertionMode=a1}function rU(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.COLGROUP),e.insertionMode=a1,e._processToken(t)}function iU(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,re.HTML),e.insertionMode=Cr}function oU(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.TBODY),e.insertionMode=Cr,e._processToken(t)}function aU(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processToken(t))}function sU(e,t){const n=w.getTokenAttr(t,$8.TYPE);n&&n.toLowerCase()===V8?e._appendElement(t,re.HTML):pr(e,t),t.ackSelfClosing=!0}function lU(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,re.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function cg(e,t){const n=t.tagName;switch(n.length){case 2:n===m.TD||n===m.TH||n===m.TR?oU(e,t):pr(e,t);break;case 3:n===m.COL?rU(e,t):pr(e,t);break;case 4:n===m.FORM?lU(e,t):pr(e,t);break;case 5:n===m.TABLE?aU(e,t):n===m.STYLE?Ot(e,t):n===m.TBODY||n===m.TFOOT||n===m.THEAD?iU(e,t):n===m.INPUT?sU(e,t):pr(e,t);break;case 6:n===m.SCRIPT?Ot(e,t):pr(e,t);break;case 7:n===m.CAPTION?tU(e,t):pr(e,t);break;case 8:n===m.COLGROUP?nU(e,t):n===m.TEMPLATE?Ot(e,t):pr(e,t);break;default:pr(e,t)}}function dg(e,t){const n=t.tagName;n===m.TABLE?e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode()):n===m.TEMPLATE?Pa(e,t):n!==m.BODY&&n!==m.CAPTION&&n!==m.COL&&n!==m.COLGROUP&&n!==m.HTML&&n!==m.TBODY&&n!==m.TD&&n!==m.TFOOT&&n!==m.TH&&n!==m.THEAD&&n!==m.TR&&pr(e,t)}function pr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function uU(e,t){e.pendingCharacterTokens.push(t)}function cU(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function bl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function bU(e,t){t.tagName===m.HTML?Gn(e,t):_d(e,t)}function kU(e,t){t.tagName===m.HTML?e.fragmentContext||(e.insertionMode=Z8):_d(e,t)}function _d(e,t){e.insertionMode=Ei,e._processToken(t)}function FU(e,t){const n=t.tagName;n===m.HTML?Gn(e,t):n===m.FRAMESET?e._insertElement(t,re.HTML):n===m.FRAME?(e._appendElement(t,re.HTML),t.ackSelfClosing=!0):n===m.NOFRAMES&&Ot(e,t)}function IU(e,t){t.tagName===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==m.FRAMESET&&(e.insertionMode=X8))}function xU(e,t){const n=t.tagName;n===m.HTML?Gn(e,t):n===m.NOFRAMES&&Ot(e,t)}function NU(e,t){t.tagName===m.HTML&&(e.insertionMode=J8)}function DU(e,t){t.tagName===m.HTML?Gn(e,t):Ic(e,t)}function Ic(e,t){e.insertionMode=Ei,e._processToken(t)}function wU(e,t){const n=t.tagName;n===m.HTML?Gn(e,t):n===m.NOFRAMES&&Ot(e,t)}function RU(e,t){t.chars=JB.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function MU(e,t){e._insertCharacters(t),e.framesetOk=!1}function PU(e,t){if(li.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==re.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===re.MATHML?li.adjustTokenMathMLAttrs(t):r===re.SVG&&(li.adjustTokenSVGTagName(t),li.adjustTokenSVGAttrs(t)),li.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function OU(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===re.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const qv=/[#.]/g;function LU(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const s=a&&a.line,l=a&&a.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const u=(n[s-2]||0)+l-1||0;if(u>-1&&u{const x=A;if(x.value.stitch&&M!==null&&D!==null)return M.children[D]=x.value.stitch,D}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const A={nodeName:"template",tagName:"template",attrs:[],namespaceURI:Du.html,childNodes:[]},D={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:Du.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(D,A),i._pushTmplInsertionMode(lz),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),S(),i._adoptNodes(D.childNodes[0],M),M}function h(){const A=i.treeAdapter.createDocument();if(i._bootstrap(A,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),S(),A}function p(A){let D=-1;if(A)for(;++DlC(t,n,e)}function Sz(){const e=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"];let t=[];for(let n=0;n<36;n++)n===8||n===13||n===18||n===23?t[n]="-":t[n]=e[Math.ceil(Math.random()*e.length-1)];return t.join("")}var Ni=Sz;const Az="_container_onjb8_1",bz="_chatRoot_onjb8_8",kz="_chatContainer_onjb8_18",Fz="_chatEmptyState_onjb8_30",Iz="_chatEmptyStateTitle_onjb8_38",xz="_chatEmptyStateSubtitle_onjb8_50",Nz="_chatIcon_onjb8_63",Dz="_chatMessageStream_onjb8_68",wz="_chatMessageUser_onjb8_80",Rz="_chatMessageUserMessage_onjb8_86",Mz="_chatMessageGpt_onjb8_104",Pz="_chatMessageError_onjb8_110",Oz="_chatMessageErrorContent_onjb8_125",Lz="_chatInput_onjb8_137",Bz="_clearChatBroom_onjb8_150",Hz="_clearChatBroomNoCosmos_onjb8_167",Uz="_newChatIcon_onjb8_184",zz="_stopGeneratingContainer_onjb8_201",Gz="_stopGeneratingIcon_onjb8_218",jz="_stopGeneratingText_onjb8_224",Kz="_citationPanel_onjb8_239",Wz="_citationPanelHeaderContainer_onjb8_257",$z="_citationPanelHeader_onjb8_257",Vz="_citationPanelDismiss_onjb8_272",Yz="_citationPanelTitle_onjb8_283",qz="_citationPanelContent_onjb8_293",ke={container:Az,chatRoot:bz,chatContainer:kz,chatEmptyState:Fz,chatEmptyStateTitle:Iz,chatEmptyStateSubtitle:xz,chatIcon:Nz,chatMessageStream:Dz,chatMessageUser:wz,chatMessageUserMessage:Rz,chatMessageGpt:Mz,chatMessageError:Pz,chatMessageErrorContent:Oz,chatInput:Lz,clearChatBroom:Bz,clearChatBroomNoCosmos:Hz,newChatIcon:Uz,stopGeneratingContainer:zz,stopGeneratingIcon:Gz,stopGeneratingText:jz,citationPanel:Kz,citationPanelHeaderContainer:Wz,citationPanelHeader:$z,citationPanelDismiss:Vz,citationPanelTitle:Yz,citationPanelContent:qz},Qz="_answerContainer_8d9c8_1",Xz="_answerText_8d9c8_12",Zz="_answerFooter_8d9c8_29",Jz="_answerDisclaimerContainer_8d9c8_38",eG="_answerDisclaimer_8d9c8_38",tG="_citationContainer_8d9c8_58",nG="_citation_8d9c8_58",rG="_accordionIcon_8d9c8_108",iG="_accordionTitle_8d9c8_123",oG="_clickableSup_8d9c8_139",Di={answerContainer:Qz,answerText:Xz,answerFooter:Zz,answerDisclaimerContainer:Jz,answerDisclaimer:eG,citationContainer:tG,citation:nG,accordionIcon:rG,accordionTitle:iG,clickableSup:oG};var aG=typeof global=="object"&&global&&global.Object===Object&&global;const uC=aG;var sG=typeof self=="object"&&self&&self.Object===Object&&self,lG=uC||sG||Function("return this")();const _i=lG;var uG=_i.Symbol;const Us=uG;var cC=Object.prototype,cG=cC.hasOwnProperty,dG=cC.toString,kl=Us?Us.toStringTag:void 0;function fG(e){var t=cG.call(e,kl),n=e[kl];try{e[kl]=void 0;var r=!0}catch{}var i=dG.call(e);return r&&(t?e[kl]=n:delete e[kl]),i}var hG=Object.prototype,pG=hG.toString;function mG(e){return pG.call(e)}var gG="[object Null]",EG="[object Undefined]",Jv=Us?Us.toStringTag:void 0;function s1(e){return e==null?e===void 0?EG:gG:Jv&&Jv in Object(e)?fG(e):mG(e)}function l1(e){return e!=null&&typeof e=="object"}var vG=Array.isArray;const pg=vG;function u1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var TG="[object AsyncFunction]",yG="[object Function]",_G="[object GeneratorFunction]",CG="[object Proxy]";function dC(e){if(!u1(e))return!1;var t=s1(e);return t==yG||t==_G||t==TG||t==CG}var SG=_i["__core-js_shared__"];const Xh=SG;var eT=function(){var e=/[^.]+$/.exec(Xh&&Xh.keys&&Xh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AG(e){return!!eT&&eT in e}var bG=Function.prototype,kG=bG.toString;function Oa(e){if(e!=null){try{return kG.call(e)}catch{}try{return e+""}catch{}}return""}var FG=/[\\^$.*+?()[\]{}|]/g,IG=/^\[object .+?Constructor\]$/,xG=Function.prototype,NG=Object.prototype,DG=xG.toString,wG=NG.hasOwnProperty,RG=RegExp("^"+DG.call(wG).replace(FG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MG(e){if(!u1(e)||AG(e))return!1;var t=dC(e)?RG:IG;return t.test(Oa(e))}function PG(e,t){return e==null?void 0:e[t]}function La(e,t){var n=PG(e,t);return MG(n)?n:void 0}var OG=La(_i,"WeakMap");const Cp=OG;var tT=Object.create,LG=function(){function e(){}return function(t){if(!u1(t))return{};if(tT)return tT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const BG=LG;function HG(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e-1&&e%1==0&&e<=VG}function gC(e){return e!=null&&mC(e.length)&&!dC(e)}var YG=Object.prototype;function mg(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||YG;return e===n}function qG(e,t){for(var n=-1,r=Array(e);++n-1}function uK(e,t){var n=this.__data__,r=Ef(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function eo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{let s=a.slice(r,a.length-1),l=o$(e.citations[Number(s)-1]);i.find(u=>u.id===s)||(t=t.replaceAll(a,` ^${++o}^ `),l.id=s,l.reindex_id=o.toString(),i.push(l))}),{citations:i,markdownFormatText:t}}function s$(){return e=>{Hs(e,["text"],(t,n,r)=>{if(t.type!=="text")return;const{value:i}=t,o=i.split(/\^/);if(o.length===1||o.length%2===0)return;const a=o.map((s,l)=>l%2===0?{type:"text",value:s}:{type:"superscript",data:{hName:"sup"},children:[{type:"text",value:s}]});r.children.splice(n,1,...a)}),Hs(e,["text"],(t,n,r)=>{if(t.type!=="text")return;const{value:i}=t,o=i.split(/\~/);if(o.length===1||o.length%2===0)return;const a=o.map((s,l)=>l%2===0?{type:"text",value:s}:{type:"subscript",data:{hName:"sub"},children:[{type:"text",value:s}]});r.children.splice(n,1,...a)})}}const _T=({answer:e,onCitationClicked:t})=>{const[n,{toggle:r}]=Ku(!1),i=50,o=E.useMemo(()=>a$(e),[e]),[a,s]=E.useState(n),l=()=>{s(!a),r()};E.useEffect(()=>{s(n)},[n]);const u=(c,d,f=!1)=>{let h="";if(c.filepath&&c.chunk_id)if(f&&c.filepath.length>i){const p=c.filepath.length;h=`${c.filepath.substring(0,20)}...${c.filepath.substring(p-20)} - Part ${parseInt(c.chunk_id)+1}`}else h=`${c.filepath} - Part ${parseInt(c.chunk_id)+1}`;else c.filepath&&c.reindex_id?h=`${c.filepath} - Part ${c.reindex_id}`:h=`Citation ${d}`;return h};return L(Ta,{children:pe(me,{className:Di.answerContainer,tabIndex:0,children:[L(me.Item,{grow:!0,children:L(sf,{linkTarget:"_blank",remarkPlugins:[N8,s$],children:o.markdownFormatText,className:Di.answerText})}),pe(me,{horizontal:!0,className:Di.answerFooter,children:[!!o.citations.length&&L(me.Item,{onKeyDown:c=>c.key==="Enter"||c.key===" "?r():null,children:L(me,{style:{width:"100%"},children:pe(me,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[L(Fo,{className:Di.accordionTitle,onClick:r,"aria-label":"Open references",tabIndex:0,role:"button",children:L("span",{children:o.citations.length>1?o.citations.length+" references":"1 reference"})}),L(pd,{className:Di.accordionIcon,onClick:l,iconName:a?"ChevronDown":"ChevronRight"})]})})}),L(me.Item,{className:Di.answerDisclaimerContainer,children:L("span",{className:Di.answerDisclaimer,children:"AI-generated content may be incorrect"})})]}),a&&L("div",{style:{marginTop:8,display:"flex",flexFlow:"wrap column",maxHeight:"150px",gap:"4px"},children:o.citations.map((c,d)=>pe("span",{title:u(c,++d),tabIndex:0,role:"link",onClick:()=>t(c),onKeyDown:f=>f.key==="Enter"||f.key===" "?t(c):null,className:Di.citationContainer,"aria-label":u(c,d),children:[L("div",{className:Di.citation,children:d}),u(c,d,!0)]},d))})]})})},l$="/assets/Send-d0601aaa.svg",u$="_questionInputContainer_pe9s7_1",c$="_questionInputTextArea_pe9s7_13",d$="_questionInputSendButtonContainer_pe9s7_22",f$="_questionInputSendButton_pe9s7_22",h$="_questionInputSendButtonDisabled_pe9s7_33",p$="_questionInputBottomBorder_pe9s7_41",m$="_questionInputOptionsButton_pe9s7_52",Ya={questionInputContainer:u$,questionInputTextArea:c$,questionInputSendButtonContainer:d$,questionInputSendButton:f$,questionInputSendButtonDisabled:h$,questionInputBottomBorder:p$,questionInputOptionsButton:m$},g$=({onSend:e,disabled:t,placeholder:n,clearOnSend:r,conversationId:i})=>{const[o,a]=E.useState(""),s=()=>{t||!o.trim()||(i?e(o,i):e(o),r&&a(""))},l=d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),s())},u=(d,f)=>{a(f||"")},c=t||!o.trim();return pe(me,{horizontal:!0,className:Ya.questionInputContainer,children:[L(Gm,{className:Ya.questionInputTextArea,placeholder:n,multiline:!0,resizable:!1,borderless:!0,value:o,onChange:u,onKeyDown:l}),L("div",{className:Ya.questionInputSendButtonContainer,role:"button",tabIndex:0,"aria-label":"Ask question button",onClick:s,onKeyDown:d=>d.key==="Enter"||d.key===" "?s():null,children:c?L(UD,{className:Ya.questionInputSendButtonDisabled}):L("img",{src:l$,className:Ya.questionInputSendButton})}),L("div",{className:Ya.questionInputBottomBorder})]})},E$="_container_6xp25_1",v$="_listContainer_6xp25_7",T$="_itemCell_6xp25_12",y$="_itemButton_6xp25_29",_$="_chatGroup_6xp25_46",C$="_chatList_6xp25_51",S$="_chatMonth_6xp25_55",A$="_chatTitle_6xp25_62",fi={container:E$,listContainer:v$,itemCell:T$,itemButton:y$,chatGroup:_$,chatList:C$,chatMonth:S$,chatTitle:A$},b$=e=>{const n=new Date().getFullYear(),[r,i]=e.split(" ");return parseInt(i)===n?r:e},k$=({item:e,onSelect:t})=>{var U,j,te;const[n,r]=E.useState(!1),[i,o]=E.useState(!1),[a,s]=E.useState(""),[l,{toggle:u}]=Ku(!0),[c,d]=E.useState(!1),[f,h]=E.useState(!1),[p,v]=E.useState(void 0),[_,g]=E.useState(!1),T=E.useRef(null),y=E.useContext(qs),C=(e==null?void 0:e.id)===((U=y==null?void 0:y.state.currentChat)==null?void 0:U.id),k={type:di.close,title:"Are you sure you want to delete this item?",closeButtonAriaLabel:"Close",subText:"The history of this chat session will permanently removed."},S={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};if(!e)return null;E.useEffect(()=>{_&&T.current&&(T.current.focus(),g(!1))},[_]),E.useEffect(()=>{var R;((R=y==null?void 0:y.state.currentChat)==null?void 0:R.id)!==(e==null?void 0:e.id)&&(o(!1),s(""))},[(j=y==null?void 0:y.state.currentChat)==null?void 0:j.id,e==null?void 0:e.id]);const A=async()=>{(await JD(e.id)).ok?y==null||y.dispatch({type:"DELETE_CHAT_ENTRY",payload:e.id}):(d(!0),setTimeout(()=>{d(!1)},5e3)),u()},D=()=>{o(!0),g(!0),s(e==null?void 0:e.title)},M=()=>{t(e),y==null||y.dispatch({type:"UPDATE_CURRENT_CHAT",payload:e})},x=((te=e==null?void 0:e.title)==null?void 0:te.length)>28?`${e.title.substring(0,28)} ...`:e.title,P=async R=>{if(R.preventDefault(),p||f)return;if(a==e.title){v("Error: Enter a new title to proceed."),setTimeout(()=>{v(void 0),g(!0),T.current&&T.current.focus()},5e3);return}h(!0),(await nw(e.id,a)).ok?(h(!1),o(!1),y==null||y.dispatch({type:"UPDATE_CHAT_TITLE",payload:{...e,title:a}}),s("")):(v("Error: could not rename item"),setTimeout(()=>{g(!0),v(void 0),T.current&&T.current.focus()},5e3))},O=R=>{s(R.target.value)},q=()=>{o(!1),s("")},Z=R=>{if(R.key==="Enter")return P(R);if(R.key==="Escape"){q();return}};return pe(me,{tabIndex:0,"aria-label":"chat history item",className:fi.itemCell,onClick:()=>M(),onKeyDown:R=>R.key==="Enter"||R.key===" "?M():null,verticalAlign:"center",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),styles:{root:{backgroundColor:C?"#e6e6e6":"transparent"}},children:[i?L(Ta,{children:L(me.Item,{style:{width:"100%"},children:pe("form",{"aria-label":"edit title form",onSubmit:R=>P(R),style:{padding:"5px 0px"},children:[pe(me,{horizontal:!0,verticalAlign:"start",children:[L(me.Item,{children:L(Gm,{componentRef:T,autoFocus:_,value:a,placeholder:e.title,onChange:O,onKeyDown:Z,disabled:!!p})}),a&&L(me.Item,{children:pe(me,{"aria-label":"action button group",horizontal:!0,verticalAlign:"center",children:[L(ha,{role:"button",disabled:p!==void 0,onKeyDown:R=>R.key===" "||R.key==="Enter"?P(R):null,onClick:R=>P(R),"aria-label":"confirm new title",iconProps:{iconName:"CheckMark"},styles:{root:{color:"green",marginLeft:"5px"}}}),L(ha,{role:"button",disabled:p!==void 0,onKeyDown:R=>R.key===" "||R.key==="Enter"?q():null,onClick:()=>q(),"aria-label":"cancel edit title",iconProps:{iconName:"Cancel"},styles:{root:{color:"red",marginLeft:"5px"}}})]})})]}),p&&L(Fo,{role:"alert","aria-label":p,style:{fontSize:12,fontWeight:400,color:"rgb(164,38,44)"},children:p})]})})}):L(Ta,{children:pe(me,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[L("div",{className:fi.chatTitle,children:x}),(C||n)&&pe(me,{horizontal:!0,horizontalAlign:"end",children:[L(ha,{className:fi.itemButton,iconProps:{iconName:"Delete"},title:"Delete",onClick:u,onKeyDown:R=>R.key===" "?u():null}),L(ha,{className:fi.itemButton,iconProps:{iconName:"Edit"},title:"Edit",onClick:D,onKeyDown:R=>R.key===" "?D():null})]})]})}),c&&L(Fo,{styles:{root:{color:"red",marginTop:5,fontSize:14}},children:"Error: could not delete item"}),L(Wu,{hidden:l,onDismiss:u,dialogContentProps:k,modalProps:S,children:pe(jm,{children:[L(l2,{onClick:A,text:"Delete"}),L(Qd,{onClick:u,text:"Cancel"})]})})]},e.id)},F$=({groupedChatHistory:e})=>{const[,t]=E.useState(null),n=i=>{i&&t(i)},r=i=>L(k$,{item:i,onSelect:()=>n(i)});return L("div",{className:fi.listContainer,children:e.map(i=>i.entries.length>0&&pe(me,{horizontalAlign:"start",verticalAlign:"center",className:fi.chatGroup,"aria-label":`chat history group: ${i.month}`,children:[L(me,{"aria-label":i.month,className:fi.chatMonth,children:b$(i.month)}),L(Fx,{"aria-label":"chat history list",items:i.entries,onRenderCell:r,className:fi.chatList}),L(h2,{styles:{root:{width:"100%",position:"relative","::before":{backgroundColor:"#d6d6d6"}}}})]},i.month))})},I$=e=>{const t=[{month:"Recent",entries:[]}],n=new Date;return e.forEach(r=>{const i=new Date(r.date),o=(n.getTime()-i.getTime())/(1e3*60*60*24),a=i.toLocaleString("default",{month:"long",year:"numeric"}),s=t.find(l=>l.month===a);o<=7?t[0].entries.push(r):s?s.entries.push(r):t.push({month:a,entries:[r]})}),t.sort((r,i)=>{if(r.entries.length===0&&i.entries.length===0)return 0;if(r.entries.length===0)return 1;if(i.entries.length===0)return-1;const o=new Date(r.entries[0].date);return new Date(i.entries[0].date).getTime()-o.getTime()}),t.forEach(r=>{r.entries.sort((i,o)=>{const a=new Date(i.date);return new Date(o.date).getTime()-a.getTime()})}),t},x$=()=>{const e=E.useContext(qs),t=e==null?void 0:e.state.chatHistory;pn.useEffect(()=>{},[e==null?void 0:e.state.chatHistory]);let n;if(t&&t.length>0)n=I$(t);else return L(me,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:L(So,{children:L(Fo,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:L("span",{children:"No chat history."})})})});return L(F$,{groupedChatHistory:n})},CT={root:{padding:"0",display:"flex",justifyContent:"center",backgroundColor:"transparent"}},N$={root:{height:"50px"}};function D$(e){var T,y,C;const t=E.useContext(qs),[n,r]=pn.useState(!1),[i,{toggle:o}]=Ku(!0),[a,s]=pn.useState(!1),[l,u]=pn.useState(!1),c={type:di.close,title:l?"Error deleting all of chat history":"Are you sure you want to clear all chat history?",closeButtonAriaLabel:"Close",subText:l?"Please try again. If the problem persists, please contact the site administrator.":"All chat history will be permanently removed."},d={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},f=[{key:"clearAll",text:"Clear all chat history",iconProps:{iconName:"Delete"}}],h=()=>{t==null||t.dispatch({type:"TOGGLE_CHAT_HISTORY"})},p=pn.useCallback(k=>{k.preventDefault(),r(!0)},[]),v=pn.useCallback(()=>r(!1),[]),_=async()=>{s(!0),(await ew()).ok?(t==null||t.dispatch({type:"DELETE_CHAT_HISTORY"}),o()):u(!0),s(!1)},g=()=>{o(),setTimeout(()=>{u(!1)},2e3)};return pn.useEffect(()=>{},[t==null?void 0:t.state.chatHistory,l]),pe("section",{className:fi.container,"data-is-scrollable":!0,"aria-label":"chat history panel",children:[pe(me,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",wrap:!0,"aria-label":"chat history header",children:[L(So,{children:L(Fo,{role:"heading","aria-level":2,style:{alignSelf:"center",fontWeight:"600",fontSize:"18px",marginRight:"auto",paddingLeft:"20px"},children:"Chat history"})}),L(me,{verticalAlign:"start",children:pe(me,{horizontal:!0,styles:N$,children:[L(xu,{iconProps:{iconName:"More"},title:"Clear all chat history",onClick:p,"aria-label":"clear all chat history",styles:CT,role:"button",id:"moreButton"}),L(md,{items:f,hidden:!n,target:"#moreButton",onItemClick:o,onDismiss:v}),L(xu,{iconProps:{iconName:"Cancel"},title:"Hide",onClick:h,"aria-label":"hide button",styles:CT,role:"button"})]})})]}),L(me,{"aria-label":"chat history panel content",styles:{root:{display:"flex",flexGrow:1,flexDirection:"column",paddingTop:"2.5px",maxWidth:"100%"}},style:{display:"flex",flexGrow:1,flexDirection:"column",flexWrap:"wrap",padding:"1px"},children:pe(me,{className:fi.chatHistoryListContainer,children:[(t==null?void 0:t.state.chatHistoryLoadingState)===wn.Success&&(t==null?void 0:t.state.isCosmosDBAvailable.cosmosDB)&&L(x$,{}),(t==null?void 0:t.state.chatHistoryLoadingState)===wn.Fail&&(t==null?void 0:t.state.isCosmosDBAvailable)&&L(Ta,{children:L(me,{children:pe(me,{horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[L(So,{children:pe(Fo,{style:{alignSelf:"center",fontWeight:"400",fontSize:16},children:[((T=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:T.status)&&L("span",{children:(y=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:y.status}),!((C=t==null?void 0:t.state.isCosmosDBAvailable)!=null&&C.status)&&L("span",{children:"Error loading chat history"})]})}),L(So,{children:L(Fo,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:L("span",{children:"Chat history can't be saved at this time"})})})]})})}),(t==null?void 0:t.state.chatHistoryLoadingState)===wn.Loading&&L(Ta,{children:L(me,{children:pe(me,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[L(So,{style:{justifyContent:"center",alignItems:"center"},children:L(Px,{style:{alignSelf:"flex-start",height:"100%",marginRight:"5px"},size:ci.medium})}),L(So,{children:L(Fo,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:L("span",{style:{whiteSpace:"pre-wrap"},children:"Loading chat history"})})})]})})})]})}),L(Wu,{hidden:i,onDismiss:a?()=>{}:g,dialogContentProps:c,modalProps:d,children:pe(jm,{children:[!l&&L(l2,{onClick:_,disabled:a,text:"Clear All"}),L(Qd,{onClick:g,disabled:a,text:l?"Close":"Cancel"})]})})]})}const w$=()=>{var z,G,F,b,Ve;const e=E.useContext(qs),t=E.useRef(null),[n,r]=E.useState(!1),[i,o]=E.useState(!1),[a,s]=E.useState(),[l,u]=E.useState(!1),c=E.useRef([]),[d,f]=E.useState(!0),[h,p]=E.useState([]),[v,_]=E.useState("Not Running"),[g,T]=E.useState(!1),[y,{toggle:C}]=Ku(!0),[k,S]=E.useState(),A={type:di.close,title:k==null?void 0:k.title,closeButtonAriaLabel:"Close",subText:k==null?void 0:k.subtitle},D={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};E.useEffect(()=>{var J;if(((J=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:J.status)===tr.NotWorking&&e.state.chatHistoryLoadingState===wn.Fail&&y){let fe=`${e.state.isCosmosDBAvailable.status}. Please contact the site administrator.`;S({title:"Chat history is not enabled",subtitle:fe}),C()}},[e==null?void 0:e.state.isCosmosDBAvailable]);const M=()=>{C(),setTimeout(()=>{S(null)},500)},x=async()=>{(await qD()).length===0&&window.location.hostname!=="127.0.0.1"?f(!0):f(!1)},P=async(J,fe)=>{var Ht,qt;r(!0),o(!0);const ee=new AbortController;c.current.unshift(ee);const he={id:Ni(),role:"user",content:J,date:new Date().toISOString()};let ye;if(!fe)ye={id:fe??Ni(),title:J,messages:[he],date:new Date().toISOString()};else if(ye=(Ht=e==null?void 0:e.state)==null?void 0:Ht.currentChat,ye)ye.messages.push(he);else{console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(ot=>ot!==ee);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ye}),p(ye.messages);const Ye={messages:[...ye.messages.filter(ot=>ot.role!=="error")]};let ue={};try{const ot=await YD(Ye,ee.signal);if(ot!=null&&ot.body){const Ut=ot.body.getReader();let yt="";for(;;){_("Processing");const{done:kt,value:cr}=await Ut.read();if(kt)break;var bt=new TextDecoder("utf-8").decode(cr);bt.split(` `).forEach(jn=>{try{yt+=jn,ue=JSON.parse(yt),ue.choices[0].messages.forEach(xe=>{xe.id=Ni(),xe.date=new Date().toISOString()}),o(!1),p([...h,...ue.choices[0].messages]),yt=""}catch{}})}ye.messages.push(...ue.choices[0].messages),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ye}),p([...h,...ue.choices[0].messages])}}catch{if(ee.signal.aborted)p([...h,he]);else{let Ut="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(qt=ue.error)!=null&&qt.message?Ut=ue.error.message:typeof ue.error=="string"&&(Ut=ue.error);let yt={id:Ni(),role:"error",content:Ut,date:new Date().toISOString()};ye.messages.push(yt),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ye}),p([...h,yt])}}finally{r(!1),o(!1),c.current=c.current.filter(ot=>ot!==ee),_("Done")}return ee.abort()},O=async(J,fe)=>{var Ht,qt,ot,Ut,yt,kt,cr,Yr,jn;r(!0),o(!0);const ee=new AbortController;c.current.unshift(ee);const he={id:Ni(),role:"user",content:J,date:new Date().toISOString()};let ye,Ye;if(fe)if(Ye=(qt=(Ht=e==null?void 0:e.state)==null?void 0:Ht.chatHistory)==null?void 0:qt.find(xe=>xe.id===fe),Ye)Ye.messages.push(he),ye={messages:[...Ye.messages.filter(xe=>xe.role!=="error")]};else{console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(xe=>xe!==ee);return}else ye={messages:[he].filter(xe=>xe.role!=="error")},p(ye.messages);let ue={};try{const xe=fe?await jE(ye,ee.signal,fe):await jE(ye,ee.signal);if(!(xe!=null&&xe.ok)){let _t={id:Ni(),role:"error",content:"There was an error generating a response. Chat history can't be saved at this time. If the problem persists, please contact the site administrator.",date:new Date().toISOString()},Ct;if(fe){if(Ct=(Ut=(ot=e==null?void 0:e.state)==null?void 0:ot.chatHistory)==null?void 0:Ut.find(Be=>Be.id===fe),!Ct){console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(Be=>Be!==ee);return}Ct.messages.push(_t)}else{p([...h,he,_t]),r(!1),o(!1),c.current=c.current.filter(Be=>Be!==ee);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ct}),p([...Ct.messages]);return}if(xe!=null&&xe.body){const _t=xe.body.getReader();let Ct="";for(;;){_("Processing");const{done:gt,value:to}=await _t.read();if(gt)break;var bt=new TextDecoder("utf-8").decode(to);bt.split(` `).forEach(V=>{try{Ct+=V,ue=JSON.parse(Ct),ue.choices[0].messages.forEach(ae=>{ae.id=Ni(),ae.date=new Date().toISOString()}),o(!1),p(fe?[...h,...ue.choices[0].messages]:[...h,he,...ue.choices[0].messages]),Ct=""}catch{}})}let Be;if(fe){if(Be=(kt=(yt=e==null?void 0:e.state)==null?void 0:yt.chatHistory)==null?void 0:kt.find(gt=>gt.id===fe),!Be){console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(gt=>gt!==ee);return}Be.messages.push(...ue.choices[0].messages)}else Be={id:ue.history_metadata.conversation_id,title:ue.history_metadata.title,messages:[he],date:ue.history_metadata.date},Be.messages.push(...ue.choices[0].messages);if(!Be){r(!1),o(!1),c.current=c.current.filter(gt=>gt!==ee);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Be}),p([...h,...ue.choices[0].messages])}}catch{if(ee.signal.aborted)p([...h,he]);else{let _t="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(cr=ue.error)!=null&&cr.message?_t=ue.error.message:typeof ue.error=="string"&&(_t=ue.error);let Ct={id:Ni(),role:"error",content:_t,date:new Date().toISOString()},Be;if(fe){if(Be=(jn=(Yr=e==null?void 0:e.state)==null?void 0:Yr.chatHistory)==null?void 0:jn.find(gt=>gt.id===fe),!Be){console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(gt=>gt!==ee);return}Be.messages.push(Ct)}else{if(!ue.history_metadata){console.error("Error retrieving data.",ue),r(!1),o(!1),c.current=c.current.filter(gt=>gt!==ee);return}Be={id:ue.history_metadata.conversation_id,title:ue.history_metadata.title,messages:[he],date:ue.history_metadata.date},Be.messages.push(Ct)}if(!Be){r(!1),o(!1),c.current=c.current.filter(gt=>gt!==ee);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Be}),p([...h,Ct])}}finally{r(!1),o(!1),c.current=c.current.filter(xe=>xe!==ee),_("Done")}return ee.abort()},q=async()=>{var J;T(!0),(J=e==null?void 0:e.state.currentChat)!=null&&J.id&&(e!=null&&e.state.isCosmosDBAvailable.cosmosDB)&&((await tw(e==null?void 0:e.state.currentChat.id)).ok?(e==null||e.dispatch({type:"DELETE_CURRENT_CHAT_MESSAGES",payload:e==null?void 0:e.state.currentChat.id}),e==null||e.dispatch({type:"UPDATE_CHAT_HISTORY",payload:e==null?void 0:e.state.currentChat}),s(void 0),u(!1),p([])):(S({title:"Error clearing current chat",subtitle:"Please try again. If the problem persists, please contact the site administrator."}),C())),T(!1)},Z=()=>{_("Processing"),p([]),u(!1),s(void 0),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:null}),_("Done")},U=()=>{c.current.forEach(J=>J.abort()),o(!1),r(!1)};E.useEffect(()=>{e!=null&&e.state.currentChat?p(e.state.currentChat.messages):p([])},[e==null?void 0:e.state.currentChat]),E.useLayoutEffect(()=>{var fe;const J=async(ee,he)=>await ZD(ee,he);if(e&&e.state.currentChat&&v==="Done"){if(e.state.isCosmosDBAvailable.cosmosDB){if(!((fe=e==null?void 0:e.state.currentChat)!=null&&fe.messages)){console.error("Failure fetching current chat state.");return}J(e.state.currentChat.messages,e.state.currentChat.id).then(ee=>{var he,ye;if(!ee.ok){let Ye="An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator.",ue={id:Ni(),role:"error",content:Ye,date:new Date().toISOString()};if(!((he=e==null?void 0:e.state.currentChat)!=null&&he.messages))throw{...new Error,message:"Failure fetching current chat state."};p([...(ye=e==null?void 0:e.state.currentChat)==null?void 0:ye.messages,ue])}return ee}).catch(ee=>(console.error("Error: ",ee),{...new Response,ok:!1,status:500}))}e==null||e.dispatch({type:"UPDATE_CHAT_HISTORY",payload:e.state.currentChat}),p(e.state.currentChat.messages),_("Not Running")}},[v]),E.useEffect(()=>{x()},[]),E.useLayoutEffect(()=>{var J;(J=t.current)==null||J.scrollIntoView({behavior:"smooth"})},[i,v]);const j=J=>{s([J.content,J.id,J.title??"",J.filepath??"","",""]),u(!0)},te=J=>{if(J!=null&&J.role&&(J==null?void 0:J.role)==="tool")try{return JSON.parse(J.content).citations}catch{return[]}return[]},R=()=>n||h&&h.length===0||g||(e==null?void 0:e.state.chatHistoryLoadingState)===wn.Loading;return L("div",{className:ke.container,role:"main",children:d?pe(me,{className:ke.chatEmptyState,children:[L(GD,{className:ke.chatIcon,style:{color:"darkorange",height:"200px",width:"200px"}}),L("h1",{className:ke.chatEmptyStateTitle,children:"Authentication Not Configured"}),pe("h2",{className:ke.chatEmptyStateSubtitle,children:["This app does not have authentication configured. Please add an identity provider by finding your app in the",L("a",{href:"https://portal.azure.com/",target:"_blank",children:" Azure Portal "}),"and following",L("a",{href:"https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service#3-configure-authentication-and-authorization",target:"_blank",children:" these instructions"}),"."]}),L("h2",{className:ke.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:L("strong",{children:"Authentication configuration takes a few minutes to apply. "})}),L("h2",{className:ke.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:L("strong",{children:"If you deployed in the last 10 minutes, please wait and reload the page after 10 minutes."})})]}):pe(me,{horizontal:!0,className:ke.chatRoot,children:[pe("div",{className:ke.chatContainer,children:[!h||h.length<1?pe(me,{className:ke.chatEmptyState,children:[L("img",{src:v2,className:ke.chatIcon,"aria-hidden":"true"}),L("h1",{className:ke.chatEmptyStateTitle,children:"Start chatting"}),L("h2",{className:ke.chatEmptyStateSubtitle,children:"This chatbot is configured to answer your questions"})]}):pe("div",{className:ke.chatMessageStream,style:{marginBottom:n?"40px":"0px"},role:"log",children:[h.map((J,fe)=>L(Ta,{children:J.role==="user"?L("div",{className:ke.chatMessageUser,tabIndex:0,children:L("div",{className:ke.chatMessageUserMessage,children:J.content})}):J.role==="assistant"?L("div",{className:ke.chatMessageGpt,children:L(_T,{answer:{answer:J.content,citations:te(h[fe-1])},onCitationClicked:ee=>j(ee)})}):J.role==="error"?pe("div",{className:ke.chatMessageError,children:[pe(me,{horizontal:!0,className:ke.chatMessageErrorContent,children:[L(BD,{className:ke.errorIcon,style:{color:"rgba(182, 52, 67, 1)"}}),L("span",{children:"Error"})]}),L("span",{className:ke.chatMessageErrorContent,children:J.content})]}):null})),i&&L(Ta,{children:L("div",{className:ke.chatMessageGpt,children:L(_T,{answer:{answer:"Generating answer...",citations:[]},onCitationClicked:()=>null})})}),L("div",{ref:t})]}),pe(me,{horizontal:!0,className:ke.chatInput,children:[n&&pe(me,{horizontal:!0,className:ke.stopGeneratingContainer,role:"button","aria-label":"Stop generating",tabIndex:0,onClick:U,onKeyDown:J=>J.key==="Enter"||J.key===" "?U():null,children:[L(KD,{className:ke.stopGeneratingIcon,"aria-hidden":"true"}),L("span",{className:ke.stopGeneratingText,"aria-hidden":"true",children:"Stop generating"})]}),pe(me,{children:[((z=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:z.status)!==tr.NotConfigured&&L(xu,{role:"button",styles:{icon:{color:"#FFFFFF"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#BDBDBD"}},className:ke.newChatIcon,iconProps:{iconName:"Add"},onClick:Z,disabled:R(),"aria-label":"start a new chat button"}),L(xu,{role:"button",styles:{icon:{color:"#FFFFFF"},root:{color:"#FFFFFF",background:R()?"#BDBDBD":"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)",cursor:R()?"":"pointer"}},className:((G=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:G.status)!==tr.NotConfigured?ke.clearChatBroom:ke.clearChatBroomNoCosmos,iconProps:{iconName:"Broom"},onClick:q,disabled:R(),"aria-label":"clear chat button"}),L(Wu,{hidden:y,onDismiss:M,dialogContentProps:A,modalProps:D})]}),L(g$,{clearOnSend:!0,placeholder:"Type a new question...",disabled:n,onSend:(J,fe)=>{var ee;(ee=e==null?void 0:e.state.isCosmosDBAvailable)!=null&&ee.cosmosDB?O(J,fe):P(J,fe)},conversationId:(F=e==null?void 0:e.state.currentChat)!=null&&F.id?(b=e==null?void 0:e.state.currentChat)==null?void 0:b.id:void 0})]})]}),h&&h.length>0&&l&&a&&pe(me.Item,{className:ke.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Citations Panel",children:[pe(me,{"aria-label":"Citations Panel Header Container",horizontal:!0,className:ke.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[L("span",{"aria-label":"Citations",className:ke.citationPanelHeader,children:"Citations"}),L(ha,{iconProps:{iconName:"Cancel"},"aria-label":"Close citations panel",onClick:()=>u(!1)})]}),L("h5",{className:ke.citationPanelTitle,tabIndex:0,children:a[2]}),L("div",{tabIndex:0,children:L(sf,{linkTarget:"_blank",className:ke.citationPanelContent,children:a[0],remarkPlugins:[N8],rehypePlugins:[Cz]})})]}),(e==null?void 0:e.state.isChatHistoryOpen)&&((Ve=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Ve.status)!==tr.NotConfigured&&L(D$,{})]})})};wN();function R$(){return L(ow,{children:L(g7,{children:L(d7,{children:pe(vc,{path:"/",element:L(aw,{}),children:[L(vc,{index:!0,element:L(w$,{})}),L(vc,{path:"*",element:L(sw,{})})]})})})})}Jh.createRoot(document.getElementById("root")).render(L(pn.StrictMode,{children:L(R$,{})}))});export default M$(); -//# sourceMappingURL=index-eb86a872.js.map +//# sourceMappingURL=index-0b97503c.js.map diff --git a/static/assets/index-eb86a872.js.map b/static/assets/index-0b97503c.js.map similarity index 99% rename from static/assets/index-eb86a872.js.map rename to static/assets/index-0b97503c.js.map index a1bf8f5342..bb65941229 100644 --- a/static/assets/index-eb86a872.js.map +++ b/static/assets/index-0b97503c.js.map @@ -1 +1 @@ -{"version":3,"file":"index-eb86a872.js","sources":["../../frontend/node_modules/react/cjs/react.production.min.js","../../frontend/node_modules/react/index.js","../../frontend/node_modules/react/cjs/react-jsx-runtime.production.min.js","../../frontend/node_modules/react/jsx-runtime.js","../../frontend/node_modules/scheduler/cjs/scheduler.production.min.js","../../frontend/node_modules/scheduler/index.js","../../frontend/node_modules/react-dom/cjs/react-dom.production.min.js","../../frontend/node_modules/react-dom/index.js","../../frontend/node_modules/react-dom/client.js","../../frontend/node_modules/@remix-run/router/dist/router.js","../../frontend/node_modules/react-router/dist/index.js","../../frontend/node_modules/react-router-dom/dist/index.js","../../frontend/node_modules/@fluentui/set-version/lib/setVersion.js","../../frontend/node_modules/@fluentui/set-version/lib/index.js","../../frontend/node_modules/tslib/tslib.es6.js","../../frontend/node_modules/@fluentui/merge-styles/lib/Stylesheet.js","../../frontend/node_modules/@fluentui/merge-styles/lib/extractStyleParts.js","../../frontend/node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/kebabRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/getVendorSettings.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/prefixRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/provideUnits.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/rtlifyRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/tokenizeWithParentheses.js","../../frontend/node_modules/@fluentui/merge-styles/lib/styleToClassName.js","../../frontend/node_modules/@fluentui/merge-styles/lib/mergeStyles.js","../../frontend/node_modules/@fluentui/merge-styles/lib/concatStyleSets.js","../../frontend/node_modules/@fluentui/merge-styles/lib/mergeStyleSets.js","../../frontend/node_modules/@fluentui/merge-styles/lib/concatStyleSetsWithProps.js","../../frontend/node_modules/@fluentui/merge-styles/lib/fontFace.js","../../frontend/node_modules/@fluentui/merge-styles/lib/keyframes.js","../../frontend/node_modules/@fluentui/style-utilities/lib/utilities/buildClassMap.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/canUseDOM.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/getWindow.js","../../frontend/node_modules/@fluentui/utilities/lib/Async.js","../../frontend/node_modules/@fluentui/utilities/lib/object.js","../../frontend/node_modules/@fluentui/utilities/lib/EventGroup.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/getDocument.js","../../frontend/node_modules/@fluentui/utilities/lib/scroll.js","../../frontend/node_modules/@fluentui/utilities/lib/warn/warn.js","../../frontend/node_modules/@fluentui/utilities/lib/warn/warnConditionallyRequiredProps.js","../../frontend/node_modules/@fluentui/utilities/lib/BaseComponent.js","../../frontend/node_modules/@fluentui/utilities/lib/DelayedRender.js","../../frontend/node_modules/@fluentui/utilities/lib/GlobalSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/KeyCodes.js","../../frontend/node_modules/@fluentui/utilities/lib/Rectangle.js","../../frontend/node_modules/@fluentui/utilities/lib/appendFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/aria.js","../../frontend/node_modules/@fluentui/utilities/lib/array.js","../../frontend/node_modules/@fluentui/utilities/lib/sessionStorage.js","../../frontend/node_modules/@fluentui/utilities/lib/rtl.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/isVirtualElement.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/getVirtualParent.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/getParent.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/elementContains.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/findElementRecursive.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/elementContainsAttribute.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/setPortalAttribute.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/portalContainsElement.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/setVirtualParent.js","../../frontend/node_modules/@fluentui/utilities/lib/focus.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/on.js","../../frontend/node_modules/@fluentui/utilities/lib/classNamesFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/memoize.js","../../frontend/node_modules/@fluentui/utilities/lib/componentAs/composeComponentAs.js","../../frontend/node_modules/@fluentui/utilities/lib/controlled.js","../../frontend/node_modules/@fluentui/utilities/lib/css.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/Customizations.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/CustomizerContext.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/mergeSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/mergeCustomizations.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/Customizer.js","../../frontend/node_modules/@fluentui/utilities/lib/hoistStatics.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/customizable.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/useCustomizationSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/extendComponent.js","../../frontend/node_modules/@fluentui/utilities/lib/getId.js","../../frontend/node_modules/@fluentui/utilities/lib/properties.js","../../frontend/node_modules/@fluentui/utilities/lib/hoist.js","../../frontend/node_modules/@fluentui/utilities/lib/initializeComponentRef.js","../../frontend/node_modules/@fluentui/utilities/lib/keyboard.js","../../frontend/node_modules/@fluentui/utilities/lib/setFocusVisibility.js","../../frontend/node_modules/@fluentui/utilities/lib/useFocusRects.js","../../frontend/node_modules/@fluentui/utilities/lib/FocusRectsProvider.js","../../frontend/node_modules/@fluentui/utilities/lib/localStorage.js","../../frontend/node_modules/@fluentui/utilities/lib/language.js","../../frontend/node_modules/@fluentui/utilities/lib/merge.js","../../frontend/node_modules/@fluentui/utilities/lib/mobileDetector.js","../../frontend/node_modules/@fluentui/utilities/lib/modalize.js","../../frontend/node_modules/@fluentui/utilities/lib/osDetector.js","../../frontend/node_modules/@fluentui/utilities/lib/renderFunction/composeRenderFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/styled.js","../../frontend/node_modules/@fluentui/utilities/lib/ie11Detector.js","../../frontend/node_modules/@fluentui/utilities/lib/getPropsWithDefaults.js","../../frontend/node_modules/@fluentui/utilities/lib/createMergedRef.js","../../frontend/node_modules/@fluentui/utilities/lib/useIsomorphicLayoutEffect.js","../../frontend/node_modules/@fluentui/style-utilities/lib/utilities/icons.js","../../frontend/node_modules/@fluentui/theme/lib/utilities/makeSemanticColors.js","../../frontend/node_modules/@fluentui/theme/lib/mergeThemes.js","../../frontend/node_modules/@fluentui/theme/lib/colors/DefaultPalette.js","../../frontend/node_modules/@fluentui/theme/lib/effects/FluentDepths.js","../../frontend/node_modules/@fluentui/theme/lib/effects/DefaultEffects.js","../../frontend/node_modules/@fluentui/theme/lib/spacing/DefaultSpacing.js","../../frontend/node_modules/@fluentui/theme/lib/motion/AnimationStyles.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/FluentFonts.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/createFontStyles.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/DefaultFontStyles.js","../../frontend/node_modules/@fluentui/theme/lib/createTheme.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/CommonStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/zIndexes.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getFocusStyle.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/hiddenContentStyle.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getGlobalClassNames.js","../../frontend/node_modules/@microsoft/load-themed-styles/lib-es6/index.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/theme.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/GeneralStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getPlaceholderStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/classNames/AnimationClassNames.js","../../frontend/node_modules/@fluentui/style-utilities/lib/version.js","../../frontend/node_modules/@fluentui/style-utilities/lib/index.js","../../frontend/node_modules/@fluentui/react/lib/common/DirectionalHint.js","../../frontend/node_modules/@fluentui/react/lib/utilities/positioning/positioning.types.js","../../frontend/node_modules/@fluentui/react/lib/utilities/positioning/positioning.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useAsync.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useConst.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useBoolean.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useEventCallback.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useId.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useMergedRefs.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useOnEvent.js","../../frontend/node_modules/@fluentui/react-hooks/lib/usePrevious.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useSetTimeout.js","../../frontend/node_modules/@fluentui/react-window-provider/lib/WindowProvider.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useTarget.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useUnmount.js","../../frontend/node_modules/@fluentui/react/lib/components/Popup/Popup.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.js","../../frontend/node_modules/@fluentui/react-portal-compat-context/lib/PortalCompatContext.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.notification.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/Callout.js","../../frontend/node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/FontIcon.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/ImageIcon.js","../../frontend/node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.types.js","../../frontend/node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.types.js","../../frontend/node_modules/@fluentui/react/lib/utilities/contextualMenu/contextualMenuUtility.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.cnstyles.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipConstants.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipManager.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipUtils.js","../../frontend/node_modules/@fluentui/react/lib/components/KeytipData/useKeytipData.js","../../frontend/node_modules/@fluentui/react/lib/components/KeytipData/KeytipData.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js","../../frontend/node_modules/@fluentui/react/lib/utilities/decorators/BaseDecorator.js","../../frontend/node_modules/@fluentui/react/lib/utilities/decorators/withResponsiveMode.js","../../frontend/node_modules/@fluentui/react/lib/utilities/hooks/useResponsiveMode.js","../../frontend/node_modules/@fluentui/react/lib/utilities/MenuContext/MenuContext.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/ButtonThemes.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/PrimaryButton/PrimaryButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.base.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.js","../../frontend/node_modules/@fluentui/react/lib/components/List/List.types.js","../../frontend/node_modules/@fluentui/react/lib/components/List/utils/scroll.js","../../frontend/node_modules/@fluentui/react/lib/components/List/List.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.js","../../frontend/node_modules/@fluentui/react/lib/utilities/DraggableZone/DraggableZone.styles.js","../../frontend/node_modules/@fluentui/react/lib/utilities/DraggableZone/DraggableZone.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-0.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-1.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-2.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-3.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-4.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-5.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-6.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-7.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-8.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-9.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-10.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-11.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-12.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-13.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-14.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-15.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-16.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-17.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/iconAliases.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/version.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/index.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/utilities.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/slots.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/createComponent.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackItem/StackItem.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackItem/StackItem.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackUtils.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/Stack.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/Stack.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.view.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.js","../../frontend/src/assets/Azure.svg","../../frontend/node_modules/@griffel/core/constants.esm.js","../../frontend/node_modules/@emotion/hash/dist/emotion-hash.esm.js","../../frontend/node_modules/@griffel/core/runtime/utils/hashSequence.esm.js","../../frontend/node_modules/@griffel/core/runtime/reduceToClassNameForSlots.esm.js","../../frontend/node_modules/@griffel/core/mergeClasses.esm.js","../../frontend/node_modules/@griffel/core/runtime/utils/normalizeCSSBucketEntry.esm.js","../../frontend/node_modules/@griffel/core/renderer/createIsomorphicStyleSheet.esm.js","../../frontend/node_modules/@griffel/core/renderer/getStyleSheetForBucket.esm.js","../../frontend/node_modules/@griffel/core/renderer/createDOMRenderer.esm.js","../../frontend/node_modules/@griffel/core/__styles.esm.js","../../frontend/node_modules/@griffel/react/RendererContext.esm.js","../../frontend/node_modules/@griffel/react/TextDirectionContext.esm.js","../../frontend/node_modules/@griffel/react/__styles.esm.js","../../frontend/node_modules/@fluentui/react-icons/lib/utils/useIconState.js","../../frontend/node_modules/@fluentui/react-icons/lib/utils/wrapIcon.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-2.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-3.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-6.js","../../frontend/src/components/common/Button.tsx","../../frontend/src/state/AppReducer.tsx","../../frontend/src/api/models.ts","../../frontend/src/api/api.ts","../../frontend/src/state/AppProvider.tsx","../../frontend/src/pages/layout/Layout.tsx","../../frontend/src/pages/NoPage.tsx","../../frontend/node_modules/react-markdown/lib/uri-transformer.js","../../frontend/node_modules/is-buffer/index.js","../../frontend/node_modules/unist-util-stringify-position/lib/index.js","../../frontend/node_modules/vfile-message/lib/index.js","../../frontend/node_modules/vfile/lib/minpath.browser.js","../../frontend/node_modules/vfile/lib/minproc.browser.js","../../frontend/node_modules/vfile/lib/minurl.shared.js","../../frontend/node_modules/vfile/lib/minurl.browser.js","../../frontend/node_modules/vfile/lib/index.js","../../frontend/node_modules/bail/index.js","../../frontend/node_modules/extend/index.js","../../frontend/node_modules/is-plain-obj/index.js","../../frontend/node_modules/trough/index.js","../../frontend/node_modules/unified/lib/index.js","../../frontend/node_modules/mdast-util-to-string/lib/index.js","../../frontend/node_modules/micromark-util-chunked/index.js","../../frontend/node_modules/micromark-util-combine-extensions/index.js","../../frontend/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js","../../frontend/node_modules/micromark-util-character/index.js","../../frontend/node_modules/micromark-factory-space/index.js","../../frontend/node_modules/micromark/lib/initialize/content.js","../../frontend/node_modules/micromark/lib/initialize/document.js","../../frontend/node_modules/micromark-util-classify-character/index.js","../../frontend/node_modules/micromark-util-resolve-all/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/attention.js","../../frontend/node_modules/micromark-core-commonmark/lib/autolink.js","../../frontend/node_modules/micromark-core-commonmark/lib/blank-line.js","../../frontend/node_modules/micromark-core-commonmark/lib/block-quote.js","../../frontend/node_modules/micromark-core-commonmark/lib/character-escape.js","../../frontend/node_modules/decode-named-character-reference/index.dom.js","../../frontend/node_modules/micromark-core-commonmark/lib/character-reference.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-fenced.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-indented.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-text.js","../../frontend/node_modules/micromark-util-subtokenize/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/content.js","../../frontend/node_modules/micromark-factory-destination/index.js","../../frontend/node_modules/micromark-factory-label/index.js","../../frontend/node_modules/micromark-factory-title/index.js","../../frontend/node_modules/micromark-factory-whitespace/index.js","../../frontend/node_modules/micromark-util-normalize-identifier/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/definition.js","../../frontend/node_modules/micromark-core-commonmark/lib/hard-break-escape.js","../../frontend/node_modules/micromark-core-commonmark/lib/heading-atx.js","../../frontend/node_modules/micromark-util-html-tag-name/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/html-flow.js","../../frontend/node_modules/micromark-core-commonmark/lib/html-text.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-end.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-start-image.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-start-link.js","../../frontend/node_modules/micromark-core-commonmark/lib/line-ending.js","../../frontend/node_modules/micromark-core-commonmark/lib/thematic-break.js","../../frontend/node_modules/micromark-core-commonmark/lib/list.js","../../frontend/node_modules/micromark-core-commonmark/lib/setext-underline.js","../../frontend/node_modules/micromark/lib/initialize/flow.js","../../frontend/node_modules/micromark/lib/initialize/text.js","../../frontend/node_modules/micromark/lib/create-tokenizer.js","../../frontend/node_modules/micromark/lib/constructs.js","../../frontend/node_modules/micromark/lib/parse.js","../../frontend/node_modules/micromark/lib/preprocess.js","../../frontend/node_modules/micromark/lib/postprocess.js","../../frontend/node_modules/micromark-util-decode-numeric-character-reference/index.js","../../frontend/node_modules/micromark-util-decode-string/index.js","../../frontend/node_modules/mdast-util-from-markdown/lib/index.js","../../frontend/node_modules/remark-parse/lib/index.js","../../frontend/node_modules/unist-builder/lib/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/traverse.js","../../frontend/node_modules/unist-util-is/lib/index.js","../../frontend/node_modules/unist-util-visit-parents/lib/index.js","../../frontend/node_modules/unist-util-visit/lib/index.js","../../frontend/node_modules/unist-util-position/lib/index.js","../../frontend/node_modules/unist-util-generated/lib/index.js","../../frontend/node_modules/mdast-util-definitions/lib/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js","../../frontend/node_modules/mdast-util-to-hast/lib/wrap.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/list.js","../../frontend/node_modules/mdast-util-to-hast/lib/footer.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/break.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/code.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/delete.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/footnote.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/heading.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/html.js","../../frontend/node_modules/mdurl/encode.js","../../frontend/node_modules/mdast-util-to-hast/lib/revert.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/image.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/link.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/list-item.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/root.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/strong.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/table.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/text.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/index.js","../../frontend/node_modules/remark-rehype/index.js","../../frontend/node_modules/prop-types/lib/ReactPropTypesSecret.js","../../frontend/node_modules/prop-types/factoryWithThrowingShims.js","../../frontend/node_modules/prop-types/index.js","../../frontend/node_modules/property-information/lib/util/schema.js","../../frontend/node_modules/property-information/lib/util/merge.js","../../frontend/node_modules/property-information/lib/normalize.js","../../frontend/node_modules/property-information/lib/util/info.js","../../frontend/node_modules/property-information/lib/util/types.js","../../frontend/node_modules/property-information/lib/util/defined-info.js","../../frontend/node_modules/property-information/lib/util/create.js","../../frontend/node_modules/property-information/lib/xlink.js","../../frontend/node_modules/property-information/lib/xml.js","../../frontend/node_modules/property-information/lib/util/case-sensitive-transform.js","../../frontend/node_modules/property-information/lib/util/case-insensitive-transform.js","../../frontend/node_modules/property-information/lib/xmlns.js","../../frontend/node_modules/property-information/lib/aria.js","../../frontend/node_modules/property-information/lib/html.js","../../frontend/node_modules/property-information/lib/svg.js","../../frontend/node_modules/property-information/lib/find.js","../../frontend/node_modules/property-information/lib/hast-to-react.js","../../frontend/node_modules/property-information/index.js","../../frontend/node_modules/react-markdown/lib/rehype-filter.js","../../frontend/node_modules/react-is/cjs/react-is.production.min.js","../../frontend/node_modules/react-is/index.js","../../frontend/node_modules/hast-util-whitespace/index.js","../../frontend/node_modules/space-separated-tokens/index.js","../../frontend/node_modules/comma-separated-tokens/index.js","../../frontend/node_modules/inline-style-parser/index.js","../../frontend/node_modules/style-to-object/index.js","../../frontend/node_modules/react-markdown/lib/ast-to-react.js","../../frontend/node_modules/react-markdown/lib/react-markdown.js","../../frontend/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm-footnote/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm-table/lib/edit-map.js","../../frontend/node_modules/micromark-extension-gfm-table/lib/infer.js","../../frontend/node_modules/micromark-extension-gfm-table/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm/index.js","../../frontend/node_modules/ccount/index.js","../../frontend/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js","../../frontend/node_modules/mdast-util-find-and-replace/lib/index.js","../../frontend/node_modules/mdast-util-gfm-autolink-literal/lib/index.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/association.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/container-flow.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/safe.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/track.js","../../frontend/node_modules/mdast-util-gfm-footnote/lib/index.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js","../../frontend/node_modules/mdast-util-gfm-strikethrough/lib/index.js","../../frontend/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js","../../frontend/node_modules/markdown-table/index.js","../../frontend/node_modules/mdast-util-gfm-table/lib/index.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js","../../frontend/node_modules/mdast-util-to-markdown/lib/handle/list-item.js","../../frontend/node_modules/mdast-util-gfm-task-list-item/lib/index.js","../../frontend/node_modules/mdast-util-gfm/lib/index.js","../../frontend/node_modules/remark-gfm/index.js","../../frontend/node_modules/parse5/lib/common/unicode.js","../../frontend/node_modules/parse5/lib/common/error-codes.js","../../frontend/node_modules/parse5/lib/tokenizer/preprocessor.js","../../frontend/node_modules/parse5/lib/tokenizer/named-entity-data.js","../../frontend/node_modules/parse5/lib/tokenizer/index.js","../../frontend/node_modules/parse5/lib/common/html.js","../../frontend/node_modules/parse5/lib/parser/open-element-stack.js","../../frontend/node_modules/parse5/lib/parser/formatting-element-list.js","../../frontend/node_modules/parse5/lib/utils/mixin.js","../../frontend/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js","../../frontend/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js","../../frontend/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js","../../frontend/node_modules/parse5/lib/extensions/location-info/parser-mixin.js","../../frontend/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js","../../frontend/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js","../../frontend/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js","../../frontend/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js","../../frontend/node_modules/parse5/lib/tree-adapters/default.js","../../frontend/node_modules/parse5/lib/utils/merge-options.js","../../frontend/node_modules/parse5/lib/common/doctype.js","../../frontend/node_modules/parse5/lib/common/foreign-content.js","../../frontend/node_modules/parse5/lib/parser/index.js","../../frontend/node_modules/hast-util-parse-selector/lib/index.js","../../frontend/node_modules/hastscript/lib/core.js","../../frontend/node_modules/hastscript/lib/html.js","../../frontend/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js","../../frontend/node_modules/hastscript/lib/svg.js","../../frontend/node_modules/vfile-location/lib/index.js","../../frontend/node_modules/web-namespaces/index.js","../../frontend/node_modules/hast-util-from-parse5/lib/index.js","../../frontend/node_modules/zwitch/index.js","../../frontend/node_modules/hast-util-to-parse5/lib/index.js","../../frontend/node_modules/html-void-elements/index.js","../../frontend/node_modules/hast-util-raw/lib/index.js","../../frontend/node_modules/rehype-raw/index.js","../../frontend/node_modules/react-uuid/uuid.js","../../frontend/node_modules/lodash-es/_freeGlobal.js","../../frontend/node_modules/lodash-es/_root.js","../../frontend/node_modules/lodash-es/_Symbol.js","../../frontend/node_modules/lodash-es/_getRawTag.js","../../frontend/node_modules/lodash-es/_objectToString.js","../../frontend/node_modules/lodash-es/_baseGetTag.js","../../frontend/node_modules/lodash-es/isObjectLike.js","../../frontend/node_modules/lodash-es/isArray.js","../../frontend/node_modules/lodash-es/isObject.js","../../frontend/node_modules/lodash-es/isFunction.js","../../frontend/node_modules/lodash-es/_coreJsData.js","../../frontend/node_modules/lodash-es/_isMasked.js","../../frontend/node_modules/lodash-es/_toSource.js","../../frontend/node_modules/lodash-es/_baseIsNative.js","../../frontend/node_modules/lodash-es/_getValue.js","../../frontend/node_modules/lodash-es/_getNative.js","../../frontend/node_modules/lodash-es/_WeakMap.js","../../frontend/node_modules/lodash-es/_baseCreate.js","../../frontend/node_modules/lodash-es/_copyArray.js","../../frontend/node_modules/lodash-es/_defineProperty.js","../../frontend/node_modules/lodash-es/_arrayEach.js","../../frontend/node_modules/lodash-es/_isIndex.js","../../frontend/node_modules/lodash-es/_baseAssignValue.js","../../frontend/node_modules/lodash-es/eq.js","../../frontend/node_modules/lodash-es/_assignValue.js","../../frontend/node_modules/lodash-es/_copyObject.js","../../frontend/node_modules/lodash-es/isLength.js","../../frontend/node_modules/lodash-es/isArrayLike.js","../../frontend/node_modules/lodash-es/_isPrototype.js","../../frontend/node_modules/lodash-es/_baseTimes.js","../../frontend/node_modules/lodash-es/_baseIsArguments.js","../../frontend/node_modules/lodash-es/isArguments.js","../../frontend/node_modules/lodash-es/stubFalse.js","../../frontend/node_modules/lodash-es/isBuffer.js","../../frontend/node_modules/lodash-es/_baseIsTypedArray.js","../../frontend/node_modules/lodash-es/_baseUnary.js","../../frontend/node_modules/lodash-es/_nodeUtil.js","../../frontend/node_modules/lodash-es/isTypedArray.js","../../frontend/node_modules/lodash-es/_arrayLikeKeys.js","../../frontend/node_modules/lodash-es/_overArg.js","../../frontend/node_modules/lodash-es/_nativeKeys.js","../../frontend/node_modules/lodash-es/_baseKeys.js","../../frontend/node_modules/lodash-es/keys.js","../../frontend/node_modules/lodash-es/_nativeKeysIn.js","../../frontend/node_modules/lodash-es/_baseKeysIn.js","../../frontend/node_modules/lodash-es/keysIn.js","../../frontend/node_modules/lodash-es/_nativeCreate.js","../../frontend/node_modules/lodash-es/_hashClear.js","../../frontend/node_modules/lodash-es/_hashDelete.js","../../frontend/node_modules/lodash-es/_hashGet.js","../../frontend/node_modules/lodash-es/_hashHas.js","../../frontend/node_modules/lodash-es/_hashSet.js","../../frontend/node_modules/lodash-es/_Hash.js","../../frontend/node_modules/lodash-es/_listCacheClear.js","../../frontend/node_modules/lodash-es/_assocIndexOf.js","../../frontend/node_modules/lodash-es/_listCacheDelete.js","../../frontend/node_modules/lodash-es/_listCacheGet.js","../../frontend/node_modules/lodash-es/_listCacheHas.js","../../frontend/node_modules/lodash-es/_listCacheSet.js","../../frontend/node_modules/lodash-es/_ListCache.js","../../frontend/node_modules/lodash-es/_Map.js","../../frontend/node_modules/lodash-es/_mapCacheClear.js","../../frontend/node_modules/lodash-es/_isKeyable.js","../../frontend/node_modules/lodash-es/_getMapData.js","../../frontend/node_modules/lodash-es/_mapCacheDelete.js","../../frontend/node_modules/lodash-es/_mapCacheGet.js","../../frontend/node_modules/lodash-es/_mapCacheHas.js","../../frontend/node_modules/lodash-es/_mapCacheSet.js","../../frontend/node_modules/lodash-es/_MapCache.js","../../frontend/node_modules/lodash-es/_arrayPush.js","../../frontend/node_modules/lodash-es/_getPrototype.js","../../frontend/node_modules/lodash-es/_stackClear.js","../../frontend/node_modules/lodash-es/_stackDelete.js","../../frontend/node_modules/lodash-es/_stackGet.js","../../frontend/node_modules/lodash-es/_stackHas.js","../../frontend/node_modules/lodash-es/_stackSet.js","../../frontend/node_modules/lodash-es/_Stack.js","../../frontend/node_modules/lodash-es/_baseAssign.js","../../frontend/node_modules/lodash-es/_baseAssignIn.js","../../frontend/node_modules/lodash-es/_cloneBuffer.js","../../frontend/node_modules/lodash-es/_arrayFilter.js","../../frontend/node_modules/lodash-es/stubArray.js","../../frontend/node_modules/lodash-es/_getSymbols.js","../../frontend/node_modules/lodash-es/_copySymbols.js","../../frontend/node_modules/lodash-es/_getSymbolsIn.js","../../frontend/node_modules/lodash-es/_copySymbolsIn.js","../../frontend/node_modules/lodash-es/_baseGetAllKeys.js","../../frontend/node_modules/lodash-es/_getAllKeys.js","../../frontend/node_modules/lodash-es/_getAllKeysIn.js","../../frontend/node_modules/lodash-es/_DataView.js","../../frontend/node_modules/lodash-es/_Promise.js","../../frontend/node_modules/lodash-es/_Set.js","../../frontend/node_modules/lodash-es/_getTag.js","../../frontend/node_modules/lodash-es/_initCloneArray.js","../../frontend/node_modules/lodash-es/_Uint8Array.js","../../frontend/node_modules/lodash-es/_cloneArrayBuffer.js","../../frontend/node_modules/lodash-es/_cloneDataView.js","../../frontend/node_modules/lodash-es/_cloneRegExp.js","../../frontend/node_modules/lodash-es/_cloneSymbol.js","../../frontend/node_modules/lodash-es/_cloneTypedArray.js","../../frontend/node_modules/lodash-es/_initCloneByTag.js","../../frontend/node_modules/lodash-es/_initCloneObject.js","../../frontend/node_modules/lodash-es/_baseIsMap.js","../../frontend/node_modules/lodash-es/isMap.js","../../frontend/node_modules/lodash-es/_baseIsSet.js","../../frontend/node_modules/lodash-es/isSet.js","../../frontend/node_modules/lodash-es/_baseClone.js","../../frontend/node_modules/lodash-es/cloneDeep.js","../../frontend/src/components/Answer/AnswerParser.tsx","../../frontend/node_modules/remark-supersub/lib/index.js","../../frontend/src/components/Answer/Answer.tsx","../../frontend/src/assets/Send.svg","../../frontend/src/components/QuestionInput/QuestionInput.tsx","../../frontend/src/components/ChatHistory/ChatHistoryListItem.tsx","../../frontend/src/components/ChatHistory/ChatHistoryList.tsx","../../frontend/src/components/ChatHistory/ChatHistoryPanel.tsx","../../frontend/src/pages/chat/Chat.tsx","../../frontend/src/index.tsx"],"sourcesContent":["/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3 createMemoryLocation(entry, typeof entry === \"string\" ? null : entry.state, index === 0 ? \"default\" : undefined));\n let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex);\n let action = Action.Pop;\n let listener = null;\n\n function clampIndex(n) {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n\n function getCurrentLocation() {\n return entries[index];\n }\n\n function createMemoryLocation(to, state, key) {\n if (state === void 0) {\n state = null;\n }\n\n let location = createLocation(entries ? getCurrentLocation().pathname : \"/\", to, state, key);\n warning$1(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in memory history: \" + JSON.stringify(to));\n return location;\n }\n\n function createHref(to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n let history = {\n get index() {\n return index;\n },\n\n get action() {\n return action;\n },\n\n get location() {\n return getCurrentLocation();\n },\n\n createHref,\n\n createURL(to) {\n return new URL(createHref(to), \"http://localhost\");\n },\n\n encodeLocation(to) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\"\n };\n },\n\n push(to, state) {\n action = Action.Push;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 1\n });\n }\n },\n\n replace(to, state) {\n action = Action.Replace;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 0\n });\n }\n },\n\n go(delta) {\n action = Action.Pop;\n let nextIndex = clampIndex(index + delta);\n let nextLocation = entries[nextIndex];\n index = nextIndex;\n\n if (listener) {\n listener({\n action,\n location: nextLocation,\n delta\n });\n }\n },\n\n listen(fn) {\n listener = fn;\n return () => {\n listener = null;\n };\n }\n\n };\n return history;\n}\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\n\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n function createBrowserLocation(window, globalHistory) {\n let {\n pathname,\n search,\n hash\n } = window.location;\n return createLocation(\"\", {\n pathname,\n search,\n hash\n }, // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n\n function createBrowserHref(window, to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);\n}\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\n\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n function createHashLocation(window, globalHistory) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = parsePath(window.location.hash.substr(1));\n return createLocation(\"\", {\n pathname,\n search,\n hash\n }, // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n\n function createHashHref(window, to) {\n let base = window.document.querySelector(\"base\");\n let href = \"\";\n\n if (base && base.getAttribute(\"href\")) {\n let url = window.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n\n function validateHashLocation(location, to) {\n warning$1(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\");\n }\n\n return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options);\n}\nfunction invariant(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\n\nfunction warning$1(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\n * For browser-based histories, we combine the state and key into an object\n */\n\n\nfunction getHistoryState(location, index) {\n return {\n usr: location.state,\n key: location.key,\n idx: index\n };\n}\n/**\n * Creates a Location object with a unique key from the given Path\n */\n\n\nfunction createLocation(current, to, state, key) {\n if (state === void 0) {\n state = null;\n }\n\n let location = _extends({\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\"\n }, typeof to === \"string\" ? parsePath(to) : to, {\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: to && to.key || key || createKey()\n });\n\n return location;\n}\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\n\nfunction createPath(_ref) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = _ref;\n if (search && search !== \"?\") pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\") pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\n\nfunction parsePath(path) {\n let parsedPath = {};\n\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n\n let searchIndex = path.indexOf(\"?\");\n\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n\n if (path) {\n parsedPath.pathname = path;\n }\n }\n\n return parsedPath;\n}\n\nfunction getUrlBasedHistory(getLocation, createHref, validateLocation, options) {\n if (options === void 0) {\n options = {};\n }\n\n let {\n window = document.defaultView,\n v5Compat = false\n } = options;\n let globalHistory = window.history;\n let action = Action.Pop;\n let listener = null;\n let index = getIndex(); // Index should only be null when we initialize. If not, it's because the\n // user called history.pushState or history.replaceState directly, in which\n // case we should log a warning as it will result in bugs.\n\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), \"\");\n }\n\n function getIndex() {\n let state = globalHistory.state || {\n idx: null\n };\n return state.idx;\n }\n\n function handlePop() {\n action = Action.Pop;\n let nextIndex = getIndex();\n let delta = nextIndex == null ? null : nextIndex - index;\n index = nextIndex;\n\n if (listener) {\n listener({\n action,\n location: history.location,\n delta\n });\n }\n }\n\n function push(to, state) {\n action = Action.Push;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex() + 1;\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location); // try...catch because iOS limits us to 100 pushState calls :/\n\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 1\n });\n }\n }\n\n function replace(to, state) {\n action = Action.Replace;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex();\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 0\n });\n }\n }\n\n function createURL(to) {\n // window.location.origin is \"null\" (the literal string value) in Firefox\n // under certain conditions, notably when serving from a local HTML file\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n let base = window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n let href = typeof to === \"string\" ? to : createPath(to);\n invariant(base, \"No window.location.(origin|href) available to create URL for href: \" + href);\n return new URL(href, base);\n }\n\n let history = {\n get action() {\n return action;\n },\n\n get location() {\n return getLocation(window, globalHistory);\n },\n\n listen(fn) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n\n window.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n return () => {\n window.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n\n createHref(to) {\n return createHref(window, to);\n },\n\n createURL,\n\n encodeLocation(to) {\n // Encode a Location the same way window.location would\n let url = createURL(to);\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash\n };\n },\n\n push,\n replace,\n\n go(n) {\n return globalHistory.go(n);\n }\n\n };\n return history;\n} //#endregion\n\nvar ResultType;\n\n(function (ResultType) {\n ResultType[\"data\"] = \"data\";\n ResultType[\"deferred\"] = \"deferred\";\n ResultType[\"redirect\"] = \"redirect\";\n ResultType[\"error\"] = \"error\";\n})(ResultType || (ResultType = {}));\n\nfunction isIndexRoute(route) {\n return route.index === true;\n} // Walk the route tree generating unique IDs where necessary so we are working\n// solely with AgnosticDataRouteObject's within the Router\n\n\nfunction convertRoutesToDataRoutes(routes, parentPath, allIds) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n\n if (allIds === void 0) {\n allIds = new Set();\n }\n\n return routes.map((route, index) => {\n let treePath = [...parentPath, index];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(route.index !== true || !route.children, \"Cannot specify children on an index route\");\n invariant(!allIds.has(id), \"Found a route id collision on id \\\"\" + id + \"\\\". Route \" + \"id's must be globally unique within Data Router usages\");\n allIds.add(id);\n\n if (isIndexRoute(route)) {\n let indexRoute = _extends({}, route, {\n id\n });\n\n return indexRoute;\n } else {\n let pathOrLayoutRoute = _extends({}, route, {\n id,\n children: route.children ? convertRoutesToDataRoutes(route.children, treePath, allIds) : undefined\n });\n\n return pathOrLayoutRoute;\n }\n });\n}\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/utils/match-routes\n */\n\nfunction matchRoutes(routes, locationArg, basename) {\n if (basename === void 0) {\n basename = \"/\";\n }\n\n let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n let pathname = stripBasename(location.pathname || \"/\", basename);\n\n if (pathname == null) {\n return null;\n }\n\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n let matches = null;\n\n for (let i = 0; matches == null && i < branches.length; ++i) {\n matches = matchRouteBranch(branches[i], // Incoming pathnames are generally encoded from either window.location\n // or from router.navigate, but we want to match against the unencoded\n // paths in the route definitions. Memory router locations won't be\n // encoded here but there also shouldn't be anything to decode so this\n // should be a safe operation. This avoids needing matchRoutes to be\n // history-aware.\n safelyDecodeURI(pathname));\n }\n\n return matches;\n}\n\nfunction flattenRoutes(routes, branches, parentsMeta, parentPath) {\n if (branches === void 0) {\n branches = [];\n }\n\n if (parentsMeta === void 0) {\n parentsMeta = [];\n }\n\n if (parentPath === void 0) {\n parentPath = \"\";\n }\n\n let flattenRoute = (route, index, relativePath) => {\n let meta = {\n relativePath: relativePath === undefined ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route\n };\n\n if (meta.relativePath.startsWith(\"/\")) {\n invariant(meta.relativePath.startsWith(parentPath), \"Absolute route path \\\"\" + meta.relativePath + \"\\\" nested under path \" + (\"\\\"\" + parentPath + \"\\\" is not valid. An absolute child route path \") + \"must start with the combined path of all its parent routes.\");\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta); // Add the children before adding this route to the array so we traverse the\n // route tree depth-first and child routes appear before their parents in\n // the \"flattened\" version.\n\n if (route.children && route.children.length > 0) {\n invariant( // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true, \"Index routes must not have child routes. Please remove \" + (\"all child routes from route path \\\"\" + path + \"\\\".\"));\n flattenRoutes(route.children, branches, routesMeta, path);\n } // Routes without a path shouldn't ever match by themselves unless they are\n // index routes, so don't add them to the list of possible branches.\n\n\n if (route.path == null && !route.index) {\n return;\n }\n\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta\n });\n };\n\n routes.forEach((route, index) => {\n var _route$path;\n\n // coarse-grain check for optional params\n if (route.path === \"\" || !((_route$path = route.path) != null && _route$path.includes(\"?\"))) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, exploded);\n }\n }\n });\n return branches;\n}\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\n\n\nfunction explodeOptionalSegments(path) {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n let [first, ...rest] = segments; // Optional path segments are denoted by a trailing `?`\n\n let isOptional = first.endsWith(\"?\"); // Compute the corresponding required segment: `foo?` -> `foo`\n\n let required = first.replace(/\\?$/, \"\");\n\n if (rest.length === 0) {\n // Intepret empty string as omitting an optional segment\n // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n return isOptional ? [required, \"\"] : [required];\n }\n\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n let result = []; // All child paths with the prefix. Do this for all children before the\n // optional version for all children so we get consistent ordering where the\n // parent optional aspect is preferred as required. Otherwise, we can get\n // child sections interspersed where deeper optional segments are higher than\n // parent optional segments, where for example, /:two would explodes _earlier_\n // then /:one. By always including the parent as required _for all children_\n // first, we avoid this issue\n\n result.push(...restExploded.map(subpath => subpath === \"\" ? required : [required, subpath].join(\"/\"))); // Then if this is an optional value, add all child versions without\n\n if (isOptional) {\n result.push(...restExploded);\n } // for absolute paths, ensure `/` instead of empty segment\n\n\n return result.map(exploded => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded);\n}\n\nfunction rankRouteBranches(branches) {\n branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first\n : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex)));\n}\n\nconst paramRe = /^:\\w+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\n\nconst isSplat = s => s === \"*\";\n\nfunction computeScore(path, index) {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n\n if (index) {\n initialScore += indexRouteValue;\n }\n\n return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue), initialScore);\n}\n\nfunction compareIndexes(a, b) {\n let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n return siblings ? // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1] : // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0;\n}\n\nfunction matchRouteBranch(branch, pathname) {\n let {\n routesMeta\n } = branch;\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches = [];\n\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end\n }, remainingPathname);\n if (!match) return null;\n Object.assign(matchedParams, match.params);\n let route = meta.route;\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])),\n route\n });\n\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n\n return matches;\n}\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/utils/generate-path\n */\n\n\nfunction generatePath(originalPath, params) {\n if (params === void 0) {\n params = {};\n }\n\n let path = originalPath;\n\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(false, \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n path = path.replace(/\\*$/, \"/*\");\n }\n\n return path.replace(/^:(\\w+)(\\??)/g, (_, key, optional) => {\n let param = params[key];\n\n if (optional === \"?\") {\n return param == null ? \"\" : param;\n }\n\n if (param == null) {\n invariant(false, \"Missing \\\":\" + key + \"\\\" param\");\n }\n\n return param;\n }).replace(/\\/:(\\w+)(\\??)/g, (_, key, optional) => {\n let param = params[key];\n\n if (optional === \"?\") {\n return param == null ? \"\" : \"/\" + param;\n }\n\n if (param == null) {\n invariant(false, \"Missing \\\":\" + key + \"\\\" param\");\n }\n\n return \"/\" + param;\n }) // Remove any optional markers from optional static segments\n .replace(/\\?/g, \"\").replace(/(\\/?)\\*/, (_, prefix, __, str) => {\n const star = \"*\";\n\n if (params[star] == null) {\n // If no splat was provided, trim the trailing slash _unless_ it's\n // the entire path\n return str === \"/*\" ? \"/\" : \"\";\n } // Apply the splat\n\n\n return \"\" + prefix + params[star];\n });\n}\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/utils/match-path\n */\n\nfunction matchPath(pattern, pathname) {\n if (typeof pattern === \"string\") {\n pattern = {\n path: pattern,\n caseSensitive: false,\n end: true\n };\n }\n\n let [matcher, paramNames] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);\n let match = pathname.match(matcher);\n if (!match) return null;\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params = paramNames.reduce((memo, paramName, index) => {\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n }\n\n memo[paramName] = safelyDecodeURIComponent(captureGroups[index] || \"\", paramName);\n return memo;\n }, {});\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\n\nfunction compilePath(path, caseSensitive, end) {\n if (caseSensitive === void 0) {\n caseSensitive = false;\n }\n\n if (end === void 0) {\n end = true;\n }\n\n warning(path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"), \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n let paramNames = [];\n let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n .replace(/[\\\\.*+^$?{}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n .replace(/\\/:(\\w+)/g, (_, paramName) => {\n paramNames.push(paramName);\n return \"/([^\\\\/]+)\";\n });\n\n if (path.endsWith(\"*\")) {\n paramNames.push(\"*\");\n regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" // Already matched the initial /, just match the rest\n : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n } else if (end) {\n // When matching to the end, ignore trailing slashes\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n // If our path is non-empty and contains anything beyond an initial slash,\n // then we have _some_ form of path in our regex so we should expect to\n // match only if we find the end of this path segment. Look for an optional\n // non-captured trailing slash (to match a portion of the URL) or the end\n // of the path (if we've matched to the end). We used to do this with a\n // word boundary but that gives false positives on routes like\n // /user-preferences since `-` counts as a word boundary.\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else ;\n\n let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n return [matcher, paramNames];\n}\n\nfunction safelyDecodeURI(value) {\n try {\n return decodeURI(value);\n } catch (error) {\n warning(false, \"The URL path \\\"\" + value + \"\\\" could not be decoded because it is is a \" + \"malformed URL segment. This is probably due to a bad percent \" + (\"encoding (\" + error + \").\"));\n return value;\n }\n}\n\nfunction safelyDecodeURIComponent(value, paramName) {\n try {\n return decodeURIComponent(value);\n } catch (error) {\n warning(false, \"The value for the URL param \\\"\" + paramName + \"\\\" will not be decoded because\" + (\" the string \\\"\" + value + \"\\\" is a malformed URL segment. This is probably\") + (\" due to a bad percent encoding (\" + error + \").\"));\n return value;\n }\n}\n/**\n * @private\n */\n\n\nfunction stripBasename(pathname, basename) {\n if (basename === \"/\") return pathname;\n\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n } // We want to leave trailing slash behavior in the user's control, so if they\n // specify a basename with a trailing slash, we should support it\n\n\n let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n let nextChar = pathname.charAt(startIndex);\n\n if (nextChar && nextChar !== \"/\") {\n // pathname does not start with basename/\n return null;\n }\n\n return pathname.slice(startIndex) || \"/\";\n}\n/**\n * @private\n */\n\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging @remix-run/router!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/utils/resolve-path\n */\n\nfunction resolvePath(to, fromPathname) {\n if (fromPathname === void 0) {\n fromPathname = \"/\";\n }\n\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\"\n } = typeof to === \"string\" ? parsePath(to) : to;\n let pathname = toPathname ? toPathname.startsWith(\"/\") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash)\n };\n}\n\nfunction resolvePathname(relativePath, fromPathname) {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n relativeSegments.forEach(segment => {\n if (segment === \"..\") {\n // Keep the root \"\" segment so the pathname starts at /\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\n\nfunction getInvalidPathError(char, field, dest, path) {\n return \"Cannot include a '\" + char + \"' character in a manually specified \" + (\"`to.\" + field + \"` field [\" + JSON.stringify(path) + \"]. Please separate it out to the \") + (\"`to.\" + dest + \"` field. Alternatively you may provide the full path as \") + \"a string in and the router will parse it for you.\";\n}\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same. Both of the following examples should link back to the root:\n *\n * \n * \n * \n *\n * \n * \n * }> // <-- Does not contribute\n * // <-- Does not contribute\n * \n * \n */\n\n\nfunction getPathContributingMatches(matches) {\n return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);\n}\n/**\n * @private\n */\n\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {\n if (isPathRelative === void 0) {\n isPathRelative = false;\n }\n\n let to;\n\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = _extends({}, toArg);\n invariant(!to.pathname || !to.pathname.includes(\"?\"), getInvalidPathError(\"?\", \"pathname\", \"search\", to));\n invariant(!to.pathname || !to.pathname.includes(\"#\"), getInvalidPathError(\"#\", \"pathname\", \"hash\", to));\n invariant(!to.search || !to.search.includes(\"#\"), getInvalidPathError(\"#\", \"search\", \"hash\", to));\n }\n\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n let from; // Routing is relative to the current pathname if explicitly requested.\n //\n // If a pathname is explicitly provided in `to`, it should be relative to the\n // route context. This is explained in `Note on `` values` in our\n // migration guide from v5 as a means of disambiguation between `to` values\n // that begin with `/` and those that do not. However, this is problematic for\n // `to` values that do not provide a pathname. `to` can simply be a search or\n // hash string, in which case we should assume that the navigation is relative\n // to the current location's pathname and *not* the route pathname.\n\n if (isPathRelative || toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n\n if (toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\"); // Each leading .. segment means \"go up one route\" instead of \"go up one\n // URL segment\". This is a key difference from how works and a\n // major reason we call this a \"to\" value instead of a \"href\".\n\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n\n to.pathname = toSegments.join(\"/\");\n } // If there are more \"..\" segments than parent routes, resolve relative to\n // the root / URL.\n\n\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n\n let path = resolvePath(to, from); // Ensure the pathname has a trailing slash if the original \"to\" had one\n\n let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\"); // Or if this was a link to the current path which has a trailing slash\n\n let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n\n if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n path.pathname += \"/\";\n }\n\n return path;\n}\n/**\n * @private\n */\n\nfunction getToPathname(to) {\n // Empty strings should be treated the same as / paths\n return to === \"\" || to.pathname === \"\" ? \"/\" : typeof to === \"string\" ? parsePath(to).pathname : to.pathname;\n}\n/**\n * @private\n */\n\nconst joinPaths = paths => paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\n/**\n * @private\n */\n\nconst normalizePathname = pathname => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n/**\n * @private\n */\n\nconst normalizeSearch = search => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\n/**\n * @private\n */\n\nconst normalizeHash = hash => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n */\n\nconst json = function json(data, init) {\n if (init === void 0) {\n init = {};\n }\n\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n let headers = new Headers(responseInit.headers);\n\n if (!headers.has(\"Content-Type\")) {\n headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n\n return new Response(JSON.stringify(data), _extends({}, responseInit, {\n headers\n }));\n};\nclass AbortedDeferredError extends Error {}\nclass DeferredData {\n constructor(data, responseInit) {\n this.pendingKeysSet = new Set();\n this.subscribers = new Set();\n this.deferredKeys = [];\n invariant(data && typeof data === \"object\" && !Array.isArray(data), \"defer() only accepts plain objects\"); // Set up an AbortController + Promise we can race against to exit early\n // cancellation\n\n let reject;\n this.abortPromise = new Promise((_, r) => reject = r);\n this.controller = new AbortController();\n\n let onAbort = () => reject(new AbortedDeferredError(\"Deferred data aborted\"));\n\n this.unlistenAbortSignal = () => this.controller.signal.removeEventListener(\"abort\", onAbort);\n\n this.controller.signal.addEventListener(\"abort\", onAbort);\n this.data = Object.entries(data).reduce((acc, _ref) => {\n let [key, value] = _ref;\n return Object.assign(acc, {\n [key]: this.trackPromise(key, value)\n });\n }, {});\n\n if (this.done) {\n // All incoming values were resolved\n this.unlistenAbortSignal();\n }\n\n this.init = responseInit;\n }\n\n trackPromise(key, value) {\n if (!(value instanceof Promise)) {\n return value;\n }\n\n this.deferredKeys.push(key);\n this.pendingKeysSet.add(key); // We store a little wrapper promise that will be extended with\n // _data/_error props upon resolve/reject\n\n let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, null, data), error => this.onSettle(promise, key, error)); // Register rejection listeners to avoid uncaught promise rejections on\n // errors or aborted deferred values\n\n promise.catch(() => {});\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n return promise;\n }\n\n onSettle(promise, key, error, data) {\n if (this.controller.signal.aborted && error instanceof AbortedDeferredError) {\n this.unlistenAbortSignal();\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n return Promise.reject(error);\n }\n\n this.pendingKeysSet.delete(key);\n\n if (this.done) {\n // Nothing left to abort!\n this.unlistenAbortSignal();\n }\n\n if (error) {\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n this.emit(false, key);\n return Promise.reject(error);\n }\n\n Object.defineProperty(promise, \"_data\", {\n get: () => data\n });\n this.emit(false, key);\n return data;\n }\n\n emit(aborted, settledKey) {\n this.subscribers.forEach(subscriber => subscriber(aborted, settledKey));\n }\n\n subscribe(fn) {\n this.subscribers.add(fn);\n return () => this.subscribers.delete(fn);\n }\n\n cancel() {\n this.controller.abort();\n this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k));\n this.emit(true);\n }\n\n async resolveData(signal) {\n let aborted = false;\n\n if (!this.done) {\n let onAbort = () => this.cancel();\n\n signal.addEventListener(\"abort\", onAbort);\n aborted = await new Promise(resolve => {\n this.subscribe(aborted => {\n signal.removeEventListener(\"abort\", onAbort);\n\n if (aborted || this.done) {\n resolve(aborted);\n }\n });\n });\n }\n\n return aborted;\n }\n\n get done() {\n return this.pendingKeysSet.size === 0;\n }\n\n get unwrappedData() {\n invariant(this.data !== null && this.done, \"Can only unwrap data on initialized and settled deferreds\");\n return Object.entries(this.data).reduce((acc, _ref2) => {\n let [key, value] = _ref2;\n return Object.assign(acc, {\n [key]: unwrapTrackedPromise(value)\n });\n }, {});\n }\n\n get pendingKeys() {\n return Array.from(this.pendingKeysSet);\n }\n\n}\n\nfunction isTrackedPromise(value) {\n return value instanceof Promise && value._tracked === true;\n}\n\nfunction unwrapTrackedPromise(value) {\n if (!isTrackedPromise(value)) {\n return value;\n }\n\n if (value._error) {\n throw value._error;\n }\n\n return value._data;\n}\n\nconst defer = function defer(data, init) {\n if (init === void 0) {\n init = {};\n }\n\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n return new DeferredData(data, responseInit);\n};\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\n\nconst redirect = function redirect(url, init) {\n if (init === void 0) {\n init = 302;\n }\n\n let responseInit = init;\n\n if (typeof responseInit === \"number\") {\n responseInit = {\n status: responseInit\n };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n return new Response(null, _extends({}, responseInit, {\n headers\n }));\n};\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n */\n\nclass ErrorResponse {\n constructor(status, statusText, data, internal) {\n if (internal === void 0) {\n internal = false;\n }\n\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n\n if (data instanceof Error) {\n this.data = data.toString();\n this.error = data;\n } else {\n this.data = data;\n }\n }\n\n}\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response thrown from an action/loader\n */\n\nfunction isRouteErrorResponse(error) {\n return error != null && typeof error.status === \"number\" && typeof error.statusText === \"string\" && typeof error.internal === \"boolean\" && \"data\" in error;\n}\n\nconst validMutationMethodsArr = [\"post\", \"put\", \"patch\", \"delete\"];\nconst validMutationMethods = new Set(validMutationMethodsArr);\nconst validRequestMethodsArr = [\"get\", ...validMutationMethodsArr];\nconst validRequestMethods = new Set(validRequestMethodsArr);\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\nconst IDLE_NAVIGATION = {\n state: \"idle\",\n location: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n};\nconst IDLE_FETCHER = {\n state: \"idle\",\n data: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n};\nconst IDLE_BLOCKER = {\n state: \"unblocked\",\n proceed: undefined,\n reset: undefined,\n location: undefined\n};\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nconst isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\";\nconst isServer = !isBrowser; //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Create a router and listen to history POP navigations\n */\n\nfunction createRouter(init) {\n invariant(init.routes.length > 0, \"You must provide a non-empty routes array to createRouter\");\n let dataRoutes = convertRoutesToDataRoutes(init.routes); // Cleanup function for history\n\n let unlistenHistory = null; // Externally-provided functions to call on all state changes\n\n let subscribers = new Set(); // Externally-provided object to hold scroll restoration locations during routing\n\n let savedScrollPositions = null; // Externally-provided function to get scroll restoration keys\n\n let getScrollRestorationKey = null; // Externally-provided function to get current scroll position\n\n let getScrollPosition = null; // One-time flag to control the initial hydration scroll restoration. Because\n // we don't get the saved positions from until _after_\n // the initial render, we need to manually trigger a separate updateState to\n // send along the restoreScrollPosition\n // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n // SSR did the initial scroll restoration.\n\n let initialScrollRestored = init.hydrationData != null;\n let initialMatches = matchRoutes(dataRoutes, init.history.location, init.basename);\n let initialErrors = null;\n\n if (initialMatches == null) {\n // If we do not match a user-provided-route, fall back to the root\n // to allow the error boundary to take over\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname\n });\n let {\n matches,\n route\n } = getShortCircuitMatches(dataRoutes);\n initialMatches = matches;\n initialErrors = {\n [route.id]: error\n };\n }\n\n let initialized = !initialMatches.some(m => m.route.loader) || init.hydrationData != null;\n let router;\n let state = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n actionData: init.hydrationData && init.hydrationData.actionData || null,\n errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n fetchers: new Map(),\n blockers: new Map()\n }; // -- Stateful internal variables to manage navigations --\n // Current navigation in progress (to be committed in completeNavigation)\n\n let pendingAction = Action.Pop; // Should the current navigation prevent the scroll reset if scroll cannot\n // be restored?\n\n let pendingPreventScrollReset = false; // AbortController for the active navigation\n\n let pendingNavigationController; // We use this to avoid touching history in completeNavigation if a\n // revalidation is entirely uninterrupted\n\n let isUninterruptedRevalidation = false; // Use this internal flag to force revalidation of all loaders:\n // - submissions (completed or interrupted)\n // - useRevalidate()\n // - X-Remix-Revalidate (from redirect)\n\n let isRevalidationRequired = false; // Use this internal array to capture routes that require revalidation due\n // to a cancelled deferred on action submission\n\n let cancelledDeferredRoutes = []; // Use this internal array to capture fetcher loads that were cancelled by an\n // action navigation and require revalidation\n\n let cancelledFetcherLoads = []; // AbortControllers for any in-flight fetchers\n\n let fetchControllers = new Map(); // Track loads based on the order in which they started\n\n let incrementingLoadId = 0; // Track the outstanding pending navigation data load to be compared against\n // the globally incrementing load when a fetcher load lands after a completed\n // navigation\n\n let pendingNavigationLoadId = -1; // Fetchers that triggered data reloads as a result of their actions\n\n let fetchReloadIds = new Map(); // Fetchers that triggered redirect navigations from their actions\n\n let fetchRedirectIds = new Set(); // Most recent href/match for fetcher.load calls for fetchers\n\n let fetchLoadMatches = new Map(); // Store DeferredData instances for active route matches. When a\n // route loader returns defer() we stick one in here. Then, when a nested\n // promise resolves we update loaderData. If a new navigation starts we\n // cancel active deferreds for eliminated routes.\n\n let activeDeferreds = new Map(); // Store blocker functions in a separate Map outside of router state since\n // we don't need to update UI state if they change\n\n let blockerFunctions = new Map(); // Flag to ignore the next history update, so we can revert the URL change on\n // a POP navigation that was blocked by the user without touching router state\n\n let ignoreNextHistoryUpdate = false; // Initialize the router, all side effects should be kicked off from here.\n // Implemented as a Fluent API for ease of:\n // let router = createRouter(init).initialize();\n\n function initialize() {\n // If history informs us of a POP navigation, start the navigation but do not update\n // state. We'll update our own state once the navigation completes\n unlistenHistory = init.history.listen(_ref => {\n let {\n action: historyAction,\n location,\n delta\n } = _ref;\n\n // Ignore this event if it was just us resetting the URL from a\n // blocked POP navigation\n if (ignoreNextHistoryUpdate) {\n ignoreNextHistoryUpdate = false;\n return;\n }\n\n warning(blockerFunctions.size === 0 || delta != null, \"You are trying to use a blocker on a POP navigation to a location \" + \"that was not created by @remix-run/router. This will fail silently in \" + \"production. This can happen if you are navigating outside the router \" + \"via `window.history.pushState`/`window.location.hash` instead of using \" + \"router navigation APIs. This can also happen if you are using \" + \"createHashRouter and the user manually changes the URL.\");\n let blockerKey = shouldBlockNavigation({\n currentLocation: state.location,\n nextLocation: location,\n historyAction\n });\n\n if (blockerKey && delta != null) {\n // Restore the URL to match the current UI, but don't update router state\n ignoreNextHistoryUpdate = true;\n init.history.go(delta * -1); // Put the blocker into a blocked state\n\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location,\n\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location\n }); // Re-do the same POP navigation we just blocked\n\n init.history.go(delta);\n },\n\n reset() {\n deleteBlocker(blockerKey);\n updateState({\n blockers: new Map(router.state.blockers)\n });\n }\n\n });\n return;\n }\n\n return startNavigation(historyAction, location);\n }); // Kick off initial data load if needed. Use Pop to avoid modifying history\n\n if (!state.initialized) {\n startNavigation(Action.Pop, state.location);\n }\n\n return router;\n } // Clean up a router and it's side effects\n\n\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n state.blockers.forEach((_, key) => deleteBlocker(key));\n } // Subscribe to state updates for the router\n\n\n function subscribe(fn) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n } // Update our state and notify the calling context of the change\n\n\n function updateState(newState) {\n state = _extends({}, state, newState);\n subscribers.forEach(subscriber => subscriber(state));\n } // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n // and setting state.[historyAction/location/matches] to the new route.\n // - Location is a required param\n // - Navigation will always be set to IDLE_NAVIGATION\n // - Can pass any other state in newState\n\n\n function completeNavigation(location, newState) {\n var _location$state, _location$state2;\n\n // Deduce if we're in a loading/actionReload state:\n // - We have committed actionData in the store\n // - The current navigation was a mutation submission\n // - We're past the submitting state and into the loading state\n // - The location being loaded is not the result of a redirect\n let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true;\n let actionData;\n\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n // Empty actionData -> clear prior actionData due to an action error\n actionData = null;\n }\n } else if (isActionReload) {\n // Keep the current data if we're wrapping up the action reload\n actionData = state.actionData;\n } else {\n // Clear actionData on any other completed navigations\n actionData = null;\n } // Always preserve any existing loaderData from re-used routes\n\n\n let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData; // On a successful navigation we can assume we got through all blockers\n // so we can start fresh\n\n for (let [key] of blockerFunctions) {\n deleteBlocker(key);\n } // Always respect the user flag. Otherwise don't reset on mutation\n // submission navigations unless they redirect\n\n\n let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_location$state2 = location.state) == null ? void 0 : _location$state2._isRedirect) !== true;\n updateState(_extends({}, newState, {\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n restoreScrollPosition: getSavedScrollPosition(location, newState.matches || state.matches),\n preventScrollReset,\n blockers: new Map(state.blockers)\n }));\n\n if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) {\n init.history.push(location, location.state);\n } else if (pendingAction === Action.Replace) {\n init.history.replace(location, location.state);\n } // Reset stateful navigation vars\n\n\n pendingAction = Action.Pop;\n pendingPreventScrollReset = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n cancelledDeferredRoutes = [];\n cancelledFetcherLoads = [];\n } // Trigger a navigation event, which can either be a numerical POP or a PUSH\n // replace with an optional submission\n\n\n async function navigate(to, opts) {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(to, opts);\n let currentLocation = state.location;\n let nextLocation = createLocation(state.location, path, opts && opts.state); // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n // URL from window.location, so we need to encode it here so the behavior\n // remains the same as POP and non-data-router usages. new URL() does all\n // the same encoding we'd get from a history.pushState/window.location read\n // without having to touch history\n\n nextLocation = _extends({}, nextLocation, init.history.encodeLocation(nextLocation));\n let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n let historyAction = Action.Push;\n\n if (userReplace === true) {\n historyAction = Action.Replace;\n } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n // By default on submissions to the current location we REPLACE so that\n // users don't have to double-click the back button to get to the prior\n // location. If the user redirects to a different location from the\n // action/loader this will be ignored and the redirect will be a PUSH\n historyAction = Action.Replace;\n }\n\n let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : undefined;\n let blockerKey = shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction\n });\n\n if (blockerKey) {\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location: nextLocation,\n\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location: nextLocation\n }); // Send the same navigation through\n\n navigate(to, opts);\n },\n\n reset() {\n deleteBlocker(blockerKey);\n updateState({\n blockers: new Map(state.blockers)\n });\n }\n\n });\n return;\n }\n\n return await startNavigation(historyAction, nextLocation, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace\n });\n } // Revalidate all current loaders. If a navigation is in progress or if this\n // is interrupted by a navigation, allow this to \"succeed\" by calling all\n // loaders during the next loader round\n\n\n function revalidate() {\n interruptActiveLoads();\n updateState({\n revalidation: \"loading\"\n }); // If we're currently submitting an action, we don't need to start a new\n // navigation, we'll just let the follow up loader execution call all loaders\n\n if (state.navigation.state === \"submitting\") {\n return;\n } // If we're currently in an idle state, start a new navigation for the current\n // action/location and mark it as uninterrupted, which will skip the history\n // update in completeNavigation\n\n\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true\n });\n return;\n } // Otherwise, if we're currently in a loading state, just start a new\n // navigation to the navigation.location but do not trigger an uninterrupted\n // revalidation so that history correctly updates once the navigation completes\n\n\n startNavigation(pendingAction || state.historyAction, state.navigation.location, {\n overrideNavigation: state.navigation\n });\n } // Start a navigation to the given action/location. Can optionally provide a\n // overrideNavigation which will override the normalLoad in the case of a redirect\n // navigation\n\n\n async function startNavigation(historyAction, location, opts) {\n // Abort any in-progress navigations and start a new one. Unset any ongoing\n // uninterrupted revalidations unless told otherwise, since we want this\n // new navigation to update history normally\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true; // Save the current scroll position every time we start a new navigation,\n // and track whether we should reset scroll on completion\n\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = matchRoutes(dataRoutes, location, init.basename); // Short circuit with a 404 on the root error boundary if we match nothing\n\n if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes); // Cancel all pending deferred on 404s since we don't keep any routes\n\n cancelActiveDeferreds();\n completeNavigation(location, {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n });\n return;\n } // Short circuit if it's only a hash change and not a mutation submission\n // For example, on /page#hash and submit a
which will\n // default to a navigation to /page\n\n\n if (isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {\n completeNavigation(location, {\n matches\n });\n return;\n } // Create a controller/Request for this navigation\n\n\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(init.history, location, pendingNavigationController.signal, opts && opts.submission);\n let pendingActionData;\n let pendingError;\n\n if (opts && opts.pendingError) {\n // If we have a pendingError, it means the user attempted a GET submission\n // with binary FormData so assign here and skip to handleLoaders. That\n // way we handle calling loaders above the boundary etc. It's not really\n // different from an actionError in that sense.\n pendingError = {\n [findNearestBoundary(matches).route.id]: opts.pendingError\n };\n } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n // Call action if we received an action submission\n let actionOutput = await handleAction(request, location, opts.submission, matches, {\n replace: opts.replace\n });\n\n if (actionOutput.shortCircuited) {\n return;\n }\n\n pendingActionData = actionOutput.pendingActionData;\n pendingError = actionOutput.pendingActionError;\n\n let navigation = _extends({\n state: \"loading\",\n location\n }, opts.submission);\n\n loadingNavigation = navigation; // Create a GET request for the loaders\n\n request = new Request(request.url, {\n signal: request.signal\n });\n } // Call loaders\n\n\n let {\n shortCircuited,\n loaderData,\n errors\n } = await handleLoaders(request, location, matches, loadingNavigation, opts && opts.submission, opts && opts.replace, pendingActionData, pendingError);\n\n if (shortCircuited) {\n return;\n } // Clean up now that the action/loaders have completed. Don't clean up if\n // we short circuited because pendingNavigationController will have already\n // been assigned to a new controller for the next navigation\n\n\n pendingNavigationController = null;\n completeNavigation(location, _extends({\n matches\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}, {\n loaderData,\n errors\n }));\n } // Call the action matched by the leaf route for this navigation and handle\n // redirects/errors\n\n\n async function handleAction(request, location, submission, matches, opts) {\n interruptActiveLoads(); // Put us in a submitting state\n\n let navigation = _extends({\n state: \"submitting\",\n location\n }, submission);\n\n updateState({\n navigation\n }); // Call our action and get the result\n\n let result;\n let actionMatch = getTargetMatch(matches, location);\n\n if (!actionMatch.route.action) {\n result = {\n type: ResultType.error,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id\n })\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, router.basename);\n\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n }\n\n if (isRedirectResult(result)) {\n let replace;\n\n if (opts && opts.replace != null) {\n replace = opts.replace;\n } else {\n // If the user didn't explicity indicate replace behavior, replace if\n // we redirected to the exact same location we're currently at to avoid\n // double back-buttons\n replace = result.location === state.location.pathname + state.location.search;\n }\n\n await startRedirectNavigation(state, result, {\n submission,\n replace\n });\n return {\n shortCircuited: true\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id); // By default, all submissions are REPLACE navigations, but if the\n // action threw an error that'll be rendered in an errorElement, we fall\n // back to PUSH so that the user can use the back button to get back to\n // the pre-submission form location to try again\n\n if ((opts && opts.replace) !== true) {\n pendingAction = Action.Push;\n }\n\n return {\n // Send back an empty object we can use to clear out any prior actionData\n pendingActionData: {},\n pendingActionError: {\n [boundaryMatch.route.id]: result.error\n }\n };\n }\n\n if (isDeferredResult(result)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n\n return {\n pendingActionData: {\n [actionMatch.route.id]: result.data\n }\n };\n } // Call all applicable loaders for the given matches, handling redirects,\n // errors, etc.\n\n\n async function handleLoaders(request, location, matches, overrideNavigation, submission, replace, pendingActionData, pendingError) {\n // Figure out the right navigation we want to use for data loading\n let loadingNavigation = overrideNavigation;\n\n if (!loadingNavigation) {\n let navigation = _extends({\n state: \"loading\",\n location,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n }, submission);\n\n loadingNavigation = navigation;\n } // If this was a redirect from an action we don't have a \"submission\" but\n // we have it on the loading navigation so use that if available\n\n\n let activeSubmission = submission ? submission : loadingNavigation.formMethod && loadingNavigation.formAction && loadingNavigation.formData && loadingNavigation.formEncType ? {\n formMethod: loadingNavigation.formMethod,\n formAction: loadingNavigation.formAction,\n formData: loadingNavigation.formData,\n formEncType: loadingNavigation.formEncType\n } : undefined;\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, activeSubmission, location, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, pendingActionData, pendingError, fetchLoadMatches); // Cancel pending deferreds for no-longer-matched routes or routes we're\n // about to reload. Note that if this is an action reload we would have\n // already cancelled all pending deferreds so this would be a no-op\n\n cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId)); // Short circuit if we have no loaders to run\n\n if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n completeNavigation(location, _extends({\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingError || null\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}));\n return {\n shortCircuited: true\n };\n } // If this is an uninterrupted revalidation, we remain in our current idle\n // state. If not, we need to switch to our loading state and load data,\n // preserving any new action data or existing action data (in the case of\n // a revalidation interrupting an actionReload)\n\n\n if (!isUninterruptedRevalidation) {\n revalidatingFetchers.forEach(rf => {\n let fetcher = state.fetchers.get(rf.key);\n let revalidatingFetcher = {\n state: \"loading\",\n data: fetcher && fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(rf.key, revalidatingFetcher);\n });\n let actionData = pendingActionData || state.actionData;\n updateState(_extends({\n navigation: loadingNavigation\n }, actionData ? Object.keys(actionData).length === 0 ? {\n actionData: null\n } : {\n actionData\n } : {}, revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {}));\n }\n\n pendingNavigationLoadId = ++incrementingLoadId;\n revalidatingFetchers.forEach(rf => fetchControllers.set(rf.key, pendingNavigationController));\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, request);\n\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n } // Clean up _after_ loaders have completed. Don't clean up if we short\n // circuited because fetchControllers would have been aborted and\n // reassigned to new controllers for the next navigation\n\n\n revalidatingFetchers.forEach(rf => fetchControllers.delete(rf.key)); // If any loaders returned a redirect Response, start a new REPLACE navigation\n\n let redirect = findRedirect(results);\n\n if (redirect) {\n await startRedirectNavigation(state, redirect, {\n replace\n });\n return {\n shortCircuited: true\n };\n } // Process and commit output from loaders\n\n\n let {\n loaderData,\n errors\n } = processLoaderData(state, matches, matchesToLoad, loaderResults, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds); // Wire up subscribers to update loaderData as promises settle\n\n activeDeferreds.forEach((deferredData, routeId) => {\n deferredData.subscribe(aborted => {\n // Note: No need to updateState here since the TrackedPromise on\n // loaderData is stable across resolve/reject\n // Remove this instance if we were aborted or if promises have settled\n if (aborted || deferredData.done) {\n activeDeferreds.delete(routeId);\n }\n });\n });\n markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n return _extends({\n loaderData,\n errors\n }, didAbortFetchLoads || revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {});\n }\n\n function getFetcher(key) {\n return state.fetchers.get(key) || IDLE_FETCHER;\n } // Trigger a fetcher load/submit for the given fetcher key\n\n\n function fetch(key, routeId, href, opts) {\n if (isServer) {\n throw new Error(\"router.fetch() was called during the server render, but it shouldn't be. \" + \"You are likely calling a useFetcher() method in the body of your component. \" + \"Try moving it to a useEffect or a callback.\");\n }\n\n if (fetchControllers.has(key)) abortFetcher(key);\n let matches = matchRoutes(dataRoutes, href, init.basename);\n\n if (!matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: href\n }));\n return;\n }\n\n let {\n path,\n submission\n } = normalizeNavigateOptions(href, opts, true);\n let match = getTargetMatch(matches, path);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n\n if (submission && isMutationMethod(submission.formMethod)) {\n handleFetcherAction(key, routeId, path, match, matches, submission);\n return;\n } // Store off the match so we can call it's shouldRevalidate on subsequent\n // revalidations\n\n\n fetchLoadMatches.set(key, {\n routeId,\n path,\n match,\n matches\n });\n handleFetcherLoader(key, routeId, path, match, matches, submission);\n } // Call the action for the matched fetcher.submit(), and then handle redirects,\n // errors, and revalidation\n\n\n async function handleFetcherAction(key, routeId, path, match, requestMatches, submission) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n\n if (!match.route.action) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId: routeId\n });\n setFetcherError(key, routeId, error);\n return;\n } // Put this fetcher into it's submitting state\n\n\n let existingFetcher = state.fetchers.get(key);\n\n let fetcher = _extends({\n state: \"submitting\"\n }, submission, {\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, fetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }); // Call the action for the fetcher\n\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);\n fetchControllers.set(key, abortController);\n let actionResult = await callLoaderOrAction(\"action\", fetchRequest, match, requestMatches, router.basename);\n\n if (fetchRequest.signal.aborted) {\n // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-submit which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n return;\n }\n\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n fetchRedirectIds.add(key);\n\n let loadingFetcher = _extends({\n state: \"loading\"\n }, submission, {\n data: undefined,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadingFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n });\n return startRedirectNavigation(state, actionResult, {\n isFetchActionRedirect: true\n });\n } // Process any non-redirect errors thrown\n\n\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n\n if (isDeferredResult(actionResult)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n } // Start the data load for current matches, or the next location if we're\n // in the middle of a navigation\n\n\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(init.history, nextLocation, abortController.signal);\n let matches = state.navigation.state !== \"idle\" ? matchRoutes(dataRoutes, state.navigation.location, init.basename) : state.matches;\n invariant(matches, \"Didn't find any matches after fetcher action\");\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n\n let loadFetcher = _extends({\n state: \"loading\",\n data: actionResult.data\n }, submission, {\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadFetcher);\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, submission, nextLocation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, {\n [match.route.id]: actionResult.data\n }, undefined, // No need to send through errors since we short circuit above\n fetchLoadMatches); // Put all revalidating fetchers into the loading state, except for the\n // current fetcher which we want to keep in it's current loading state which\n // contains it's action submission info + action data\n\n revalidatingFetchers.filter(rf => rf.key !== key).forEach(rf => {\n let staleKey = rf.key;\n let existingFetcher = state.fetchers.get(staleKey);\n let revalidatingFetcher = {\n state: \"loading\",\n data: existingFetcher && existingFetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(staleKey, revalidatingFetcher);\n fetchControllers.set(staleKey, abortController);\n });\n updateState({\n fetchers: new Map(state.fetchers)\n });\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, revalidationRequest);\n\n if (abortController.signal.aborted) {\n return;\n }\n\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach(r => fetchControllers.delete(r.key));\n let redirect = findRedirect(results);\n\n if (redirect) {\n return startRedirectNavigation(state, redirect);\n } // Process and commit output from loaders\n\n\n let {\n loaderData,\n errors\n } = processLoaderData(state, state.matches, matchesToLoad, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds);\n let doneFetcher = {\n state: \"idle\",\n data: actionResult.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n let didAbortFetchLoads = abortStaleFetchLoads(loadId); // If we are currently in a navigation loading state and this fetcher is\n // more recent than the navigation, we want the newer data so abort the\n // navigation and complete it with the fetcher data\n\n if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers)\n });\n } else {\n // otherwise just update with the fetcher data, preserving any existing\n // loaderData for loaders that did not need to reload. We have to\n // manually merge here since we aren't going through completeNavigation\n updateState(_extends({\n errors,\n loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors)\n }, didAbortFetchLoads ? {\n fetchers: new Map(state.fetchers)\n } : {}));\n isRevalidationRequired = false;\n }\n } // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n\n\n async function handleFetcherLoader(key, routeId, path, match, matches, submission) {\n let existingFetcher = state.fetchers.get(key); // Put this fetcher into it's loading state\n\n let loadingFetcher = _extends({\n state: \"loading\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n }, submission, {\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadingFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }); // Call the loader for this fetcher route match\n\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);\n fetchControllers.set(key, abortController);\n let result = await callLoaderOrAction(\"loader\", fetchRequest, match, matches, router.basename); // Deferred isn't supported for fetcher loads, await everything and treat it\n // as a normal load. resolveDeferredData will return undefined if this\n // fetcher gets aborted, so we just leave result untouched and short circuit\n // below if that happens\n\n if (isDeferredResult(result)) {\n result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result;\n } // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-load which would have put _new_ controller is in fetchControllers\n\n\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n if (fetchRequest.signal.aborted) {\n return;\n } // If the loader threw a redirect Response, start a new REPLACE navigation\n\n\n if (isRedirectResult(result)) {\n await startRedirectNavigation(state, result);\n return;\n } // Process any non-redirect errors thrown\n\n\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n state.fetchers.delete(key); // TODO: In remix, this would reset to IDLE_NAVIGATION if it was a catch -\n // do we need to behave any differently with our non-redirect errors?\n // What if it was a non-redirect Response?\n\n updateState({\n fetchers: new Map(state.fetchers),\n errors: {\n [boundaryMatch.route.id]: result.error\n }\n });\n return;\n }\n\n invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\"); // Put the fetcher back into an idle state\n\n let doneFetcher = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n });\n }\n /**\n * Utility function to handle redirects returned from an action or loader.\n * Normally, a redirect \"replaces\" the navigation that triggered it. So, for\n * example:\n *\n * - user is on /a\n * - user clicks a link to /b\n * - loader for /b redirects to /c\n *\n * In a non-JS app the browser would track the in-flight navigation to /b and\n * then replace it with /c when it encountered the redirect response. In\n * the end it would only ever update the URL bar with /c.\n *\n * In client-side routing using pushState/replaceState, we aim to emulate\n * this behavior and we also do not update history until the end of the\n * navigation (including processed redirects). This means that we never\n * actually touch history until we've processed redirects, so we just use\n * the history action from the original navigation (PUSH or REPLACE).\n */\n\n\n async function startRedirectNavigation(state, redirect, _temp) {\n var _window;\n\n let {\n submission,\n replace,\n isFetchActionRedirect\n } = _temp === void 0 ? {} : _temp;\n\n if (redirect.revalidate) {\n isRevalidationRequired = true;\n }\n\n let redirectLocation = createLocation(state.location, redirect.location, // TODO: This can be removed once we get rid of useTransition in Remix v2\n _extends({\n _isRedirect: true\n }, isFetchActionRedirect ? {\n _isFetchActionRedirect: true\n } : {}));\n invariant(redirectLocation, \"Expected a location on the redirect navigation\"); // Check if this an absolute external redirect that goes to a new origin\n\n if (ABSOLUTE_URL_REGEX.test(redirect.location) && isBrowser && typeof ((_window = window) == null ? void 0 : _window.location) !== \"undefined\") {\n let newOrigin = init.history.createURL(redirect.location).origin;\n\n if (window.location.origin !== newOrigin) {\n if (replace) {\n window.location.replace(redirect.location);\n } else {\n window.location.assign(redirect.location);\n }\n\n return;\n }\n } // There's no need to abort on redirects, since we don't detect the\n // redirect until the action/loaders have settled\n\n\n pendingNavigationController = null;\n let redirectHistoryAction = replace === true ? Action.Replace : Action.Push; // Use the incoming submission if provided, fallback on the active one in\n // state.navigation\n\n let {\n formMethod,\n formAction,\n formEncType,\n formData\n } = state.navigation;\n\n if (!submission && formMethod && formAction && formData && formEncType) {\n submission = {\n formMethod,\n formAction,\n formEncType,\n formData\n };\n } // If this was a 307/308 submission we want to preserve the HTTP method and\n // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n // redirected location\n\n\n if (redirectPreserveMethodStatusCodes.has(redirect.status) && submission && isMutationMethod(submission.formMethod)) {\n await startNavigation(redirectHistoryAction, redirectLocation, {\n submission: _extends({}, submission, {\n formAction: redirect.location\n }),\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n } else {\n // Otherwise, we kick off a new loading navigation, preserving the\n // submission info for the duration of this navigation\n await startNavigation(redirectHistoryAction, redirectLocation, {\n overrideNavigation: {\n state: \"loading\",\n location: redirectLocation,\n formMethod: submission ? submission.formMethod : undefined,\n formAction: submission ? submission.formAction : undefined,\n formEncType: submission ? submission.formEncType : undefined,\n formData: submission ? submission.formData : undefined\n },\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n }\n }\n\n async function callLoadersAndMaybeResolveData(currentMatches, matches, matchesToLoad, fetchersToLoad, request) {\n // Call all navigation loaders and revalidating fetcher loaders in parallel,\n // then slice off the results into separate arrays so we can handle them\n // accordingly\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, router.basename)), ...fetchersToLoad.map(f => callLoaderOrAction(\"loader\", createClientSideRequest(init.history, f.path, request.signal), f.match, f.matches, router.basename))]);\n let loaderResults = results.slice(0, matchesToLoad.length);\n let fetcherResults = results.slice(matchesToLoad.length);\n await Promise.all([resolveDeferredResults(currentMatches, matchesToLoad, loaderResults, request.signal, false, state.loaderData), resolveDeferredResults(currentMatches, fetchersToLoad.map(f => f.match), fetcherResults, request.signal, true)]);\n return {\n results,\n loaderResults,\n fetcherResults\n };\n }\n\n function interruptActiveLoads() {\n // Every interruption triggers a revalidation\n isRevalidationRequired = true; // Cancel pending route-level deferreds and mark cancelled routes for\n // revalidation\n\n cancelledDeferredRoutes.push(...cancelActiveDeferreds()); // Abort in-flight fetcher loads\n\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.push(key);\n abortFetcher(key);\n }\n });\n }\n\n function setFetcherError(key, routeId, error) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState({\n errors: {\n [boundaryMatch.route.id]: error\n },\n fetchers: new Map(state.fetchers)\n });\n }\n\n function deleteFetcher(key) {\n if (fetchControllers.has(key)) abortFetcher(key);\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n state.fetchers.delete(key);\n }\n\n function abortFetcher(key) {\n let controller = fetchControllers.get(key);\n invariant(controller, \"Expected fetch controller: \" + key);\n controller.abort();\n fetchControllers.delete(key);\n }\n\n function markFetchersDone(keys) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher = {\n state: \"idle\",\n data: fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n function markFetchRedirectsDone() {\n let doneKeys = [];\n\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n }\n }\n\n markFetchersDone(doneKeys);\n }\n\n function abortStaleFetchLoads(landedId) {\n let yeetedKeys = [];\n\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n\n function getBlocker(key, fn) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n\n if (blockerFunctions.get(key) !== fn) {\n blockerFunctions.set(key, fn);\n }\n\n return blocker;\n }\n\n function deleteBlocker(key) {\n state.blockers.delete(key);\n blockerFunctions.delete(key);\n } // Utility function to update blockers, ensuring valid state transitions\n\n\n function updateBlocker(key, newBlocker) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER; // Poor mans state machine :)\n // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM\n\n invariant(blocker.state === \"unblocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"proceeding\" || blocker.state === \"blocked\" && newBlocker.state === \"unblocked\" || blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\", \"Invalid blocker state transition: \" + blocker.state + \" -> \" + newBlocker.state);\n state.blockers.set(key, newBlocker);\n updateState({\n blockers: new Map(state.blockers)\n });\n }\n\n function shouldBlockNavigation(_ref2) {\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = _ref2;\n\n if (blockerFunctions.size === 0) {\n return;\n } // We ony support a single active blocker at the moment since we don't have\n // any compelling use cases for multi-blocker yet\n\n\n if (blockerFunctions.size > 1) {\n warning(false, \"A router only supports one blocker at a time\");\n }\n\n let entries = Array.from(blockerFunctions.entries());\n let [blockerKey, blockerFunction] = entries[entries.length - 1];\n let blocker = state.blockers.get(blockerKey);\n\n if (blocker && blocker.state === \"proceeding\") {\n // If the blocker is currently proceeding, we don't need to re-check\n // it and can let this navigation continue\n return;\n } // At this point, we know we're unblocked/blocked so we need to check the\n // user-provided blocker function\n\n\n if (blockerFunction({\n currentLocation,\n nextLocation,\n historyAction\n })) {\n return blockerKey;\n }\n }\n\n function cancelActiveDeferreds(predicate) {\n let cancelledRouteIds = [];\n activeDeferreds.forEach((dfd, routeId) => {\n if (!predicate || predicate(routeId)) {\n // Cancel the deferred - but do not remove from activeDeferreds here -\n // we rely on the subscribers to do that so our tests can assert proper\n // cleanup via _internalActiveDeferreds\n dfd.cancel();\n cancelledRouteIds.push(routeId);\n activeDeferreds.delete(routeId);\n }\n });\n return cancelledRouteIds;\n } // Opt in to capturing and reporting scroll positions during navigations,\n // used by the component\n\n\n function enableScrollRestoration(positions, getPosition, getKey) {\n savedScrollPositions = positions;\n getScrollPosition = getPosition;\n\n getScrollRestorationKey = getKey || (location => location.key); // Perform initial hydration scroll restoration, since we miss the boat on\n // the initial updateState() because we've not yet rendered \n // and therefore have no savedScrollPositions available\n\n\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n\n if (y != null) {\n updateState({\n restoreScrollPosition: y\n });\n }\n }\n\n return () => {\n savedScrollPositions = null;\n getScrollPosition = null;\n getScrollRestorationKey = null;\n };\n }\n\n function saveScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map(m => createUseMatchesMatch(m, state.loaderData));\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n savedScrollPositions[key] = getScrollPosition();\n }\n }\n\n function getSavedScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map(m => createUseMatchesMatch(m, state.loaderData));\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n let y = savedScrollPositions[key];\n\n if (typeof y === \"number\") {\n return y;\n }\n }\n\n return null;\n }\n\n router = {\n get basename() {\n return init.basename;\n },\n\n get state() {\n return state;\n },\n\n get routes() {\n return dataRoutes;\n },\n\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: to => init.history.createHref(to),\n encodeLocation: to => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher,\n dispose,\n getBlocker,\n deleteBlocker,\n _internalFetchControllers: fetchControllers,\n _internalActiveDeferreds: activeDeferreds\n };\n return router;\n} //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\n\nconst UNSAFE_DEFERRED_SYMBOL = Symbol(\"deferred\");\nfunction createStaticHandler(routes, opts) {\n invariant(routes.length > 0, \"You must provide a non-empty routes array to createStaticHandler\");\n let dataRoutes = convertRoutesToDataRoutes(routes);\n let basename = (opts ? opts.basename : null) || \"/\";\n /**\n * The query() method is intended for document requests, in which we want to\n * call an optional action and potentially multiple loaders for all nested\n * routes. It returns a StaticHandlerContext object, which is very similar\n * to the router state (location, loaderData, actionData, errors, etc.) and\n * also adds SSR-specific information such as the statusCode and headers\n * from action/loaders Responses.\n *\n * It _should_ never throw and should report all errors through the\n * returned context.errors object, properly associating errors to their error\n * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be\n * used to emulate React error boundaries during SSr by performing a second\n * pass only down to the boundaryId.\n *\n * The one exception where we do not return a StaticHandlerContext is when a\n * redirect response is returned or thrown from any action/loader. We\n * propagate that out and return the raw Response so the HTTP server can\n * return it directly.\n */\n\n async function query(request, _temp2) {\n let {\n requestContext\n } = _temp2 === void 0 ? {} : _temp2;\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't\n\n if (!isValidMethod(method) && method !== \"head\") {\n let error = getInternalRouterError(405, {\n method\n });\n let {\n matches: methodNotAllowedMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n } else if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n\n let result = await queryImpl(request, location, matches, requestContext);\n\n if (isResponse(result)) {\n return result;\n } // When returning StaticHandlerContext, we patch back in the location here\n // since we need it for React Context. But this helps keep our submit and\n // loadRouteData operating on a Request instead of a Location\n\n\n return _extends({\n location,\n basename\n }, result);\n }\n /**\n * The queryRoute() method is intended for targeted route requests, either\n * for fetch ?_data requests or resource route requests. In this case, we\n * are only ever calling a single action or loader, and we are returning the\n * returned value directly. In most cases, this will be a Response returned\n * from the action/loader, but it may be a primitive or other value as well -\n * and in such cases the calling context should handle that accordingly.\n *\n * We do respect the throw/return differentiation, so if an action/loader\n * throws, then this method will throw the value. This is important so we\n * can do proper boundary identification in Remix where a thrown Response\n * must go to the Catch Boundary but a returned Response is happy-path.\n *\n * One thing to note is that any Router-initiated Errors that make sense\n * to associate with a status code will be thrown as an ErrorResponse\n * instance which include the raw Error, such that the calling context can\n * serialize the error as they see fit while including the proper response\n * code. Examples here are 404 and 405 errors that occur prior to reaching\n * any user-defined loaders.\n */\n\n\n async function queryRoute(request, _temp3) {\n let {\n routeId,\n requestContext\n } = _temp3 === void 0 ? {} : _temp3;\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't\n\n if (!isValidMethod(method) && method !== \"head\" && method !== \"options\") {\n throw getInternalRouterError(405, {\n method\n });\n } else if (!matches) {\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n\n let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location);\n\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId\n });\n } else if (!match) {\n // This should never hit I don't think?\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n\n let result = await queryImpl(request, location, matches, requestContext, match);\n\n if (isResponse(result)) {\n return result;\n }\n\n let error = result.errors ? Object.values(result.errors)[0] : undefined;\n\n if (error !== undefined) {\n // If we got back result.errors, that means the loader/action threw\n // _something_ that wasn't a Response, but it's not guaranteed/required\n // to be an `instanceof Error` either, so we have to use throw here to\n // preserve the \"error\" state outside of queryImpl.\n throw error;\n } // Pick off the right state value to return\n\n\n if (result.actionData) {\n return Object.values(result.actionData)[0];\n }\n\n if (result.loaderData) {\n var _result$activeDeferre;\n\n let data = Object.values(result.loaderData)[0];\n\n if ((_result$activeDeferre = result.activeDeferreds) != null && _result$activeDeferre[match.route.id]) {\n data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id];\n }\n\n return data;\n }\n\n return undefined;\n }\n\n async function queryImpl(request, location, matches, requestContext, routeMatch) {\n invariant(request.signal, \"query()/queryRoute() requests must contain an AbortController signal\");\n\n try {\n if (isMutationMethod(request.method.toLowerCase())) {\n let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, routeMatch != null);\n return result;\n }\n\n let result = await loadRouteData(request, matches, requestContext, routeMatch);\n return isResponse(result) ? result : _extends({}, result, {\n actionData: null,\n actionHeaders: {}\n });\n } catch (e) {\n // If the user threw/returned a Response in callLoaderOrAction, we throw\n // it to bail out and then return or throw here based on whether the user\n // returned or threw\n if (isQueryRouteResponse(e)) {\n if (e.type === ResultType.error && !isRedirectResponse(e.response)) {\n throw e.response;\n }\n\n return e.response;\n } // Redirects are always returned since they don't propagate to catch\n // boundaries\n\n\n if (isRedirectResponse(e)) {\n return e;\n }\n\n throw e;\n }\n }\n\n async function submit(request, matches, actionMatch, requestContext, isRouteRequest) {\n let result;\n\n if (!actionMatch.route.action) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id\n });\n\n if (isRouteRequest) {\n throw error;\n }\n\n result = {\n type: ResultType.error,\n error\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, basename, true, isRouteRequest, requestContext);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted\");\n }\n }\n\n if (isRedirectResult(result)) {\n // Uhhhh - this should never happen, we should always throw these from\n // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n // can get back on the \"throw all redirect responses\" train here should\n // this ever happen :/\n throw new Response(null, {\n status: result.status,\n headers: {\n Location: result.location\n }\n });\n }\n\n if (isDeferredResult(result)) {\n let error = getInternalRouterError(400, {\n type: \"defer-action\"\n });\n\n if (isRouteRequest) {\n throw error;\n }\n\n result = {\n type: ResultType.error,\n error\n };\n }\n\n if (isRouteRequest) {\n // Note: This should only be non-Response values if we get here, since\n // isRouteRequest should throw any Response received in callLoaderOrAction\n if (isErrorResult(result)) {\n throw result.error;\n }\n\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: {\n [actionMatch.route.id]: result.data\n },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n let context = await loadRouteData(request, matches, requestContext, undefined, {\n [boundaryMatch.route.id]: result.error\n }); // action status codes take precedence over loader status codes\n\n return _extends({}, context, {\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : 500,\n actionData: null,\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n } // Create a GET request for the loaders\n\n\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal\n });\n let context = await loadRouteData(loaderRequest, matches, requestContext);\n return _extends({}, context, result.statusCode ? {\n statusCode: result.statusCode\n } : {}, {\n actionData: {\n [actionMatch.route.id]: result.data\n },\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n }\n\n async function loadRouteData(request, matches, requestContext, routeMatch, pendingActionError) {\n let isRouteRequest = routeMatch != null; // Short circuit if we have no loaders to run (queryRoute())\n\n if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader)) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch == null ? void 0 : routeMatch.route.id\n });\n }\n\n let requestMatches = routeMatch ? [routeMatch] : getLoaderMatchesUntilBoundary(matches, Object.keys(pendingActionError || {})[0]);\n let matchesToLoad = requestMatches.filter(m => m.route.loader); // Short circuit if we have no loaders to run (query())\n\n if (matchesToLoad.length === 0) {\n return {\n matches,\n // Add a null for all matched routes for proper revalidation on the client\n loaderData: matches.reduce((acc, m) => Object.assign(acc, {\n [m.route.id]: null\n }), {}),\n errors: pendingActionError || null,\n statusCode: 200,\n loaderHeaders: {},\n activeDeferreds: null\n };\n }\n\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, basename, true, isRouteRequest, requestContext))]);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted\");\n } // Process and commit output from loaders\n\n\n let activeDeferreds = new Map();\n let context = processRouteLoaderData(matches, matchesToLoad, results, pendingActionError, activeDeferreds); // Add a null for any non-loader matches for proper revalidation on the client\n\n let executedLoaders = new Set(matchesToLoad.map(match => match.route.id));\n matches.forEach(match => {\n if (!executedLoaders.has(match.route.id)) {\n context.loaderData[match.route.id] = null;\n }\n });\n return _extends({}, context, {\n matches,\n activeDeferreds: activeDeferreds.size > 0 ? Object.fromEntries(activeDeferreds.entries()) : null\n });\n }\n\n return {\n dataRoutes,\n query,\n queryRoute\n };\n} //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\n\nfunction getStaticContextFromError(routes, context, error) {\n let newContext = _extends({}, context, {\n statusCode: 500,\n errors: {\n [context._deepestRenderedBoundaryId || routes[0].id]: error\n }\n });\n\n return newContext;\n}\n\nfunction isSubmissionNavigation(opts) {\n return opts != null && \"formData\" in opts;\n} // Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\n\n\nfunction normalizeNavigateOptions(to, opts, isFetcher) {\n if (isFetcher === void 0) {\n isFetcher = false;\n }\n\n let path = typeof to === \"string\" ? to : createPath(to); // Return location verbatim on non-submission navigations\n\n if (!opts || !isSubmissionNavigation(opts)) {\n return {\n path\n };\n }\n\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, {\n method: opts.formMethod\n })\n };\n } // Create a Submission on non-GET navigations\n\n\n let submission;\n\n if (opts.formData) {\n submission = {\n formMethod: opts.formMethod || \"get\",\n formAction: stripHashFromPath(path),\n formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n formData: opts.formData\n };\n\n if (isMutationMethod(submission.formMethod)) {\n return {\n path,\n submission\n };\n }\n } // Flatten submission onto URLSearchParams for GET submissions\n\n\n let parsedPath = parsePath(path);\n let searchParams = convertFormDataToSearchParams(opts.formData); // Since fetcher GET submissions only run a single loader (as opposed to\n // navigation GET submissions which run all loaders), we need to preserve\n // any incoming ?index params\n\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n\n parsedPath.search = \"?\" + searchParams;\n return {\n path: createPath(parsedPath),\n submission\n };\n} // Filter out all routes below any caught error as they aren't going to\n// render so we don't need to load them\n\n\nfunction getLoaderMatchesUntilBoundary(matches, boundaryId) {\n let boundaryMatches = matches;\n\n if (boundaryId) {\n let index = matches.findIndex(m => m.route.id === boundaryId);\n\n if (index >= 0) {\n boundaryMatches = matches.slice(0, index);\n }\n }\n\n return boundaryMatches;\n}\n\nfunction getMatchesToLoad(history, state, matches, submission, location, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, pendingActionData, pendingError, fetchLoadMatches) {\n let actionResult = pendingError ? Object.values(pendingError)[0] : pendingActionData ? Object.values(pendingActionData)[0] : undefined;\n let currentUrl = history.createURL(state.location);\n let nextUrl = history.createURL(location);\n let defaultShouldRevalidate = // Forced revalidation due to submission, useRevalidate, or X-Remix-Revalidate\n isRevalidationRequired || // Clicked the same link, resubmitted a GET form\n currentUrl.toString() === nextUrl.toString() || // Search params affect all loaders\n currentUrl.search !== nextUrl.search; // Pick navigation matches that are net-new or qualify for revalidation\n\n let boundaryId = pendingError ? Object.keys(pendingError)[0] : undefined;\n let boundaryMatches = getLoaderMatchesUntilBoundary(matches, boundaryId);\n let navigationMatches = boundaryMatches.filter((match, index) => {\n if (match.route.loader == null) {\n return false;\n } // Always call the loader on new route instances and pending defer cancellations\n\n\n if (isNewLoader(state.loaderData, state.matches[index], match) || cancelledDeferredRoutes.some(id => id === match.route.id)) {\n return true;\n } // This is the default implementation for when we revalidate. If the route\n // provides it's own implementation, then we give them full control but\n // provide this value so they can leverage it if needed after they check\n // their own specific use cases\n\n\n let currentRouteMatch = state.matches[index];\n let nextRouteMatch = match;\n return shouldRevalidateLoader(match, _extends({\n currentUrl,\n currentParams: currentRouteMatch.params,\n nextUrl,\n nextParams: nextRouteMatch.params\n }, submission, {\n actionResult,\n defaultShouldRevalidate: defaultShouldRevalidate || isNewRouteInstance(currentRouteMatch, nextRouteMatch)\n }));\n }); // Pick fetcher.loads that need to be revalidated\n\n let revalidatingFetchers = [];\n fetchLoadMatches && fetchLoadMatches.forEach((f, key) => {\n if (!matches.some(m => m.route.id === f.routeId)) {\n // This fetcher is not going to be present in the subsequent render so\n // there's no need to revalidate it\n return;\n } else if (cancelledFetcherLoads.includes(key)) {\n // This fetcher was cancelled from a prior action submission - force reload\n revalidatingFetchers.push(_extends({\n key\n }, f));\n } else {\n // Revalidating fetchers are decoupled from the route matches since they\n // hit a static href, so they _always_ check shouldRevalidate and the\n // default is strictly if a revalidation is explicitly required (action\n // submissions, useRevalidator, X-Remix-Revalidate).\n let shouldRevalidate = shouldRevalidateLoader(f.match, _extends({\n currentUrl,\n currentParams: state.matches[state.matches.length - 1].params,\n nextUrl,\n nextParams: matches[matches.length - 1].params\n }, submission, {\n actionResult,\n defaultShouldRevalidate\n }));\n\n if (shouldRevalidate) {\n revalidatingFetchers.push(_extends({\n key\n }, f));\n }\n }\n });\n return [navigationMatches, revalidatingFetchers];\n}\n\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n let isNew = // [a] -> [a, b]\n !currentMatch || // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id; // Handle the case that we don't have data for a re-used route, potentially\n // from a prior error or from a cancelled pending deferred\n\n let isMissingData = currentLoaderData[match.route.id] === undefined; // Always load if this is a net-new route or we don't yet have data\n\n return isNew || isMissingData;\n}\n\nfunction isNewRouteInstance(currentMatch, match) {\n let currentPath = currentMatch.route.path;\n return (// param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname || // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentPath != null && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n );\n}\n\nfunction shouldRevalidateLoader(loaderMatch, arg) {\n if (loaderMatch.route.shouldRevalidate) {\n let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n\n return arg.defaultShouldRevalidate;\n}\n\nasync function callLoaderOrAction(type, request, match, matches, basename, isStaticRequest, isRouteRequest, requestContext) {\n if (basename === void 0) {\n basename = \"/\";\n }\n\n if (isStaticRequest === void 0) {\n isStaticRequest = false;\n }\n\n if (isRouteRequest === void 0) {\n isRouteRequest = false;\n }\n\n let resultType;\n let result; // Setup a promise we can race against so that abort signals short circuit\n\n let reject;\n let abortPromise = new Promise((_, r) => reject = r);\n\n let onReject = () => reject();\n\n request.signal.addEventListener(\"abort\", onReject);\n\n try {\n let handler = match.route[type];\n invariant(handler, \"Could not find the \" + type + \" to run on the \\\"\" + match.route.id + \"\\\" route\");\n result = await Promise.race([handler({\n request,\n params: match.params,\n context: requestContext\n }), abortPromise]);\n invariant(result !== undefined, \"You defined \" + (type === \"action\" ? \"an action\" : \"a loader\") + \" for route \" + (\"\\\"\" + match.route.id + \"\\\" but didn't return anything from your `\" + type + \"` \") + \"function. Please return a value or `null`.\");\n } catch (e) {\n resultType = ResultType.error;\n result = e;\n } finally {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n\n if (isResponse(result)) {\n let status = result.status; // Process redirects\n\n if (redirectStatusCodes.has(status)) {\n let location = result.headers.get(\"Location\");\n invariant(location, \"Redirects returned/thrown from loaders/actions must have a Location header\"); // Support relative routing in internal redirects\n\n if (!ABSOLUTE_URL_REGEX.test(location)) {\n let activeMatches = matches.slice(0, matches.indexOf(match) + 1);\n let routePathnames = getPathContributingMatches(activeMatches).map(match => match.pathnameBase);\n let resolvedLocation = resolveTo(location, routePathnames, new URL(request.url).pathname);\n invariant(createPath(resolvedLocation), \"Unable to resolve redirect location: \" + location); // Prepend the basename to the redirect location if we have one\n\n if (basename) {\n let path = resolvedLocation.pathname;\n resolvedLocation.pathname = path === \"/\" ? basename : joinPaths([basename, path]);\n }\n\n location = createPath(resolvedLocation);\n } else if (!isStaticRequest) {\n // Strip off the protocol+origin for same-origin absolute redirects.\n // If this is a static reques, we can let it go back to the browser\n // as-is\n let currentUrl = new URL(request.url);\n let url = location.startsWith(\"//\") ? new URL(currentUrl.protocol + location) : new URL(location);\n\n if (url.origin === currentUrl.origin) {\n location = url.pathname + url.search + url.hash;\n }\n } // Don't process redirects in the router during static requests requests.\n // Instead, throw the Response and let the server handle it with an HTTP\n // redirect. We also update the Location header in place in this flow so\n // basename and relative routing is taken into account\n\n\n if (isStaticRequest) {\n result.headers.set(\"Location\", location);\n throw result;\n }\n\n return {\n type: ResultType.redirect,\n status,\n location,\n revalidate: result.headers.get(\"X-Remix-Revalidate\") !== null\n };\n } // For SSR single-route requests, we want to hand Responses back directly\n // without unwrapping. We do this with the QueryRouteResponse wrapper\n // interface so we can know whether it was returned or thrown\n\n\n if (isRouteRequest) {\n // eslint-disable-next-line no-throw-literal\n throw {\n type: resultType || ResultType.data,\n response: result\n };\n }\n\n let data;\n let contentType = result.headers.get(\"Content-Type\"); // Check between word boundaries instead of startsWith() due to the last\n // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n data = await result.json();\n } else {\n data = await result.text();\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: new ErrorResponse(status, result.statusText, data),\n headers: result.headers\n };\n }\n\n return {\n type: ResultType.data,\n data,\n statusCode: result.status,\n headers: result.headers\n };\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: result\n };\n }\n\n if (result instanceof DeferredData) {\n return {\n type: ResultType.deferred,\n deferredData: result\n };\n }\n\n return {\n type: ResultType.data,\n data: result\n };\n} // Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches. During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\n\n\nfunction createClientSideRequest(history, location, signal, submission) {\n let url = history.createURL(stripHashFromPath(location)).toString();\n let init = {\n signal\n };\n\n if (submission && isMutationMethod(submission.formMethod)) {\n let {\n formMethod,\n formEncType,\n formData\n } = submission;\n init.method = formMethod.toUpperCase();\n init.body = formEncType === \"application/x-www-form-urlencoded\" ? convertFormDataToSearchParams(formData) : formData;\n } // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n\n\n return new Request(url, init);\n}\n\nfunction convertFormDataToSearchParams(formData) {\n let searchParams = new URLSearchParams();\n\n for (let [key, value] of formData.entries()) {\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n searchParams.append(key, value instanceof File ? value.name : value);\n }\n\n return searchParams;\n}\n\nfunction processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds) {\n // Fill in loaderData/errors from our loaders\n let loaderData = {};\n let errors = null;\n let statusCode;\n let foundError = false;\n let loaderHeaders = {}; // Process loader results into state.loaderData/state.errors\n\n results.forEach((result, index) => {\n let id = matchesToLoad[index].route.id;\n invariant(!isRedirectResult(result), \"Cannot handle redirect results in processLoaderData\");\n\n if (isErrorResult(result)) {\n // Look upwards from the matched route for the closest ancestor\n // error boundary, defaulting to the root match\n let boundaryMatch = findNearestBoundary(matches, id);\n let error = result.error; // If we have a pending action error, we report it at the highest-route\n // that throws a loader error, and then clear it out to indicate that\n // it was consumed\n\n if (pendingError) {\n error = Object.values(pendingError)[0];\n pendingError = undefined;\n }\n\n errors = errors || {}; // Prefer higher error values if lower errors bubble to the same boundary\n\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n } // Clear our any prior loaderData for the throwing route\n\n\n loaderData[id] = undefined; // Once we find our first (highest) error, we set the status code and\n // prevent deeper status codes from overriding\n\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n }\n\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n if (isDeferredResult(result)) {\n activeDeferreds.set(id, result.deferredData);\n loaderData[id] = result.deferredData.data;\n } else {\n loaderData[id] = result.data;\n } // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n\n\n if (result.statusCode != null && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n }); // If we didn't consume the pending action error (i.e., all loaders\n // resolved), then consume it here. Also clear out any loaderData for the\n // throwing route\n\n if (pendingError) {\n errors = pendingError;\n loaderData[Object.keys(pendingError)[0]] = undefined;\n }\n\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders\n };\n}\n\nfunction processLoaderData(state, matches, matchesToLoad, results, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds) {\n let {\n loaderData,\n errors\n } = processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds); // Process results from our revalidating fetchers\n\n for (let index = 0; index < revalidatingFetchers.length; index++) {\n let {\n key,\n match\n } = revalidatingFetchers[index];\n invariant(fetcherResults !== undefined && fetcherResults[index] !== undefined, \"Did not find corresponding fetcher result\");\n let result = fetcherResults[index]; // Process fetcher non-redirect errors\n\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match.route.id);\n\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = _extends({}, errors, {\n [boundaryMatch.route.id]: result.error\n });\n }\n\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n // Should never get here, redirects should get processed above, but we\n // keep this to type narrow to a success result in the else\n invariant(false, \"Unhandled fetcher revalidation redirect\");\n } else if (isDeferredResult(result)) {\n // Should never get here, deferred data should be awaited for fetchers\n // in resolveDeferredResults\n invariant(false, \"Unhandled fetcher deferred data\");\n } else {\n let doneFetcher = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n return {\n loaderData,\n errors\n };\n}\n\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n let mergedLoaderData = _extends({}, newLoaderData);\n\n for (let match of matches) {\n let id = match.route.id;\n\n if (newLoaderData.hasOwnProperty(id)) {\n if (newLoaderData[id] !== undefined) {\n mergedLoaderData[id] = newLoaderData[id];\n }\n } else if (loaderData[id] !== undefined) {\n mergedLoaderData[id] = loaderData[id];\n }\n\n if (errors && errors.hasOwnProperty(id)) {\n // Don't keep any loader data below the boundary\n break;\n }\n }\n\n return mergedLoaderData;\n} // Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\n\n\nfunction findNearestBoundary(matches, routeId) {\n let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches];\n return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0];\n}\n\nfunction getShortCircuitMatches(routes) {\n // Prefer a root layout route if present, otherwise shim in a route object\n let route = routes.find(r => r.index || !r.path || r.path === \"/\") || {\n id: \"__shim-error-route__\"\n };\n return {\n matches: [{\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route\n }],\n route\n };\n}\n\nfunction getInternalRouterError(status, _temp4) {\n let {\n pathname,\n routeId,\n method,\n type\n } = _temp4 === void 0 ? {} : _temp4;\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n\n if (status === 400) {\n statusText = \"Bad Request\";\n\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide a `loader` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (type === \"defer-action\") {\n errorMessage = \"defer() is not supported in actions\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = \"Route \\\"\" + routeId + \"\\\" does not match URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = \"No route matches URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method.toUpperCase() + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide an `action` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (method) {\n errorMessage = \"Invalid request method \\\"\" + method.toUpperCase() + \"\\\"\";\n }\n }\n\n return new ErrorResponse(status || 500, statusText, new Error(errorMessage), true);\n} // Find any returned redirect errors, starting from the lowest match\n\n\nfunction findRedirect(results) {\n for (let i = results.length - 1; i >= 0; i--) {\n let result = results[i];\n\n if (isRedirectResult(result)) {\n return result;\n }\n }\n}\n\nfunction stripHashFromPath(path) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath(_extends({}, parsedPath, {\n hash: \"\"\n }));\n}\n\nfunction isHashChangeOnly(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash !== b.hash;\n}\n\nfunction isDeferredResult(result) {\n return result.type === ResultType.deferred;\n}\n\nfunction isErrorResult(result) {\n return result.type === ResultType.error;\n}\n\nfunction isRedirectResult(result) {\n return (result && result.type) === ResultType.redirect;\n}\n\nfunction isResponse(value) {\n return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\n\nfunction isRedirectResponse(result) {\n if (!isResponse(result)) {\n return false;\n }\n\n let status = result.status;\n let location = result.headers.get(\"Location\");\n return status >= 300 && status <= 399 && location != null;\n}\n\nfunction isQueryRouteResponse(obj) {\n return obj && isResponse(obj.response) && (obj.type === ResultType.data || ResultType.error);\n}\n\nfunction isValidMethod(method) {\n return validRequestMethods.has(method);\n}\n\nfunction isMutationMethod(method) {\n return validMutationMethods.has(method);\n}\n\nasync function resolveDeferredResults(currentMatches, matchesToLoad, results, signal, isFetcher, currentLoaderData) {\n for (let index = 0; index < results.length; index++) {\n let result = results[index];\n let match = matchesToLoad[index];\n let currentMatch = currentMatches.find(m => m.route.id === match.route.id);\n let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n\n if (isDeferredResult(result) && (isFetcher || isRevalidatingLoader)) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n await resolveDeferredData(result, signal, isFetcher).then(result => {\n if (result) {\n results[index] = result || results[index];\n }\n });\n }\n }\n}\n\nasync function resolveDeferredData(result, signal, unwrap) {\n if (unwrap === void 0) {\n unwrap = false;\n }\n\n let aborted = await result.deferredData.resolveData(signal);\n\n if (aborted) {\n return;\n }\n\n if (unwrap) {\n try {\n return {\n type: ResultType.data,\n data: result.deferredData.unwrappedData\n };\n } catch (e) {\n // Handle any TrackedPromise._error values encountered while unwrapping\n return {\n type: ResultType.error,\n error: e\n };\n }\n }\n\n return {\n type: ResultType.data,\n data: result.deferredData.data\n };\n}\n\nfunction hasNakedIndexQuery(search) {\n return new URLSearchParams(search).getAll(\"index\").some(v => v === \"\");\n} // Note: This should match the format exported by useMatches, so if you change\n// this please also change that :) Eventually we'll DRY this up\n\n\nfunction createUseMatchesMatch(match, loaderData) {\n let {\n route,\n pathname,\n params\n } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id],\n handle: route.handle\n };\n}\n\nfunction getTargetMatch(matches, location) {\n let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n\n if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n // Return the leaf index route when index is present\n return matches[matches.length - 1];\n } // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n // pathless layout routes)\n\n\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n} //#endregion\n\nexport { AbortedDeferredError, Action, ErrorResponse, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, UNSAFE_DEFERRED_SYMBOL, DeferredData as UNSAFE_DeferredData, convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, getPathContributingMatches as UNSAFE_getPathContributingMatches, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, createRouter, createStaticHandler, defer, generatePath, getStaticContextFromError, getToPathname, invariant, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, parsePath, redirect, resolvePath, resolveTo, stripBasename, warning };\n//# sourceMappingURL=router.js.map\n","/**\n * React Router v6.8.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { invariant, joinPaths, matchPath, UNSAFE_getPathContributingMatches, warning, resolveTo, parsePath, matchRoutes, Action, isRouteErrorResponse, createMemoryHistory, stripBasename, AbortedDeferredError, createRouter } from '@remix-run/router';\nexport { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, resolvePath } from '@remix-run/router';\nimport * as React from 'react';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n\nfunction isPolyfill(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nconst is = typeof Object.is === \"function\" ? Object.is : isPolyfill; // Intentionally not using named imports because Rollup uses dynamic\n// dispatch for CommonJS interop named imports.\n\nconst {\n useState,\n useEffect,\n useLayoutEffect,\n useDebugValue\n} = React;\nlet didWarnOld18Alpha = false;\nlet didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works\n// because of a very particular set of implementation details and assumptions\n// -- change any one of them and it will break. The most important assumption\n// is that updates are always synchronous, because concurrent rendering is\n// only available in versions of React that also have a built-in\n// useSyncExternalStore API. And we only use this shim when the built-in API\n// does not exist.\n//\n// Do not assume that the clever hacks used by this hook also work in general.\n// The point of this shim is to replace the need for hacks by other libraries.\n\nfunction useSyncExternalStore$2(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n// React do not expose a way to check if we're hydrating. So users of the shim\n// will need to track that themselves and return the correct value\n// from `getSnapshot`.\ngetServerSnapshot) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnOld18Alpha) {\n if (\"startTransition\" in React) {\n didWarnOld18Alpha = true;\n console.error(\"You are using an outdated, pre-release alpha of React 18 that \" + \"does not support useSyncExternalStore. The \" + \"use-sync-external-store shim will not work correctly. Upgrade \" + \"to a newer pre-release.\");\n }\n }\n } // Read the current snapshot from the store on every render. Again, this\n // breaks the rules of React, and only works here because of specific\n // implementation details, most importantly that updates are\n // always synchronous.\n\n\n const value = getSnapshot();\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnUncachedGetSnapshot) {\n const cachedValue = getSnapshot();\n\n if (!is(value, cachedValue)) {\n console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\");\n didWarnUncachedGetSnapshot = true;\n }\n }\n } // Because updates are synchronous, we don't queue them. Instead we force a\n // re-render whenever the subscribed state changes by updating an some\n // arbitrary useState hook. Then, during render, we call getSnapshot to read\n // the current value.\n //\n // Because we don't actually use the state returned by the useState hook, we\n // can save a bit of memory by storing other stuff in that slot.\n //\n // To implement the early bailout, we need to track some things on a mutable\n // object. Usually, we would put that in a useRef hook, but we can stash it in\n // our useState hook instead.\n //\n // To force a re-render, we call forceUpdate({inst}). That works because the\n // new object always fails an equality check.\n\n\n const [{\n inst\n }, forceUpdate] = useState({\n inst: {\n value,\n getSnapshot\n }\n }); // Track the latest getSnapshot function with a ref. This needs to be updated\n // in the layout phase so we can access it during the tearing check that\n // happens on subscribe.\n\n useLayoutEffect(() => {\n inst.value = value;\n inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the\n // commit phase if there was an interleaved mutation. In concurrent mode\n // this can happen all the time, but even in synchronous mode, an earlier\n // effect may have mutated the store.\n\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, [subscribe, value, getSnapshot]);\n useEffect(() => {\n // Check for changes right before subscribing. Subsequent changes will be\n // detected in the subscription handler.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n }\n\n const handleStoreChange = () => {\n // TODO: Because there is no cross-renderer API for batching updates, it's\n // up to the consumer of this library to wrap their subscription event\n // with unstable_batchedUpdates. Should we try to detect when this isn't\n // the case and print a warning in development?\n // The store changed. Check if the snapshot changed since the last time we\n // read from the store.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n }\n }; // Subscribe to the store and return a clean-up function.\n\n\n return subscribe(handleStoreChange); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [subscribe]);\n useDebugValue(value);\n return value;\n}\n\nfunction checkIfSnapshotChanged(inst) {\n const latestGetSnapshot = inst.getSnapshot;\n const prevValue = inst.value;\n\n try {\n const nextValue = latestGetSnapshot();\n return !is(prevValue, nextValue);\n } catch (error) {\n return true;\n }\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\nfunction useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {\n // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n // React do not expose a way to check if we're hydrating. So users of the shim\n // will need to track that themselves and return the correct value\n // from `getSnapshot`.\n return getSnapshot();\n}\n\n/**\n * Inlined into the react-router repo since use-sync-external-store does not\n * provide a UMD-compatible package, so we need this to be able to distribute\n * UMD react-router bundles\n */\nconst canUseDOM = !!(typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\");\nconst isServerEnvironment = !canUseDOM;\nconst shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore$2;\nconst useSyncExternalStore = \"useSyncExternalStore\" in React ? (module => module.useSyncExternalStore)(React) : shim;\n\nconst DataRouterContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterContext.displayName = \"DataRouter\";\n}\n\nconst DataRouterStateContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterStateContext.displayName = \"DataRouterState\";\n}\n\nconst AwaitContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n AwaitContext.displayName = \"Await\";\n}\n\nconst NavigationContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n NavigationContext.displayName = \"Navigation\";\n}\n\nconst LocationContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n LocationContext.displayName = \"Location\";\n}\n\nconst RouteContext = /*#__PURE__*/React.createContext({\n outlet: null,\n matches: []\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n RouteContext.displayName = \"Route\";\n}\n\nconst RouteErrorContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n RouteErrorContext.displayName = \"RouteError\";\n}\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/hooks/use-href\n */\n\nfunction useHref(to, _temp) {\n let {\n relative\n } = _temp === void 0 ? {} : _temp;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useHref() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n hash,\n pathname,\n search\n } = useResolvedPath(to, {\n relative\n });\n let joinedPathname = pathname; // If we're operating within a basename, prepend it to the pathname prior\n // to creating the href. If this is a root navigation, then just use the raw\n // basename which allows the basename to have full control over the presence\n // of a trailing slash on root links\n\n if (basename !== \"/\") {\n joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n\n return navigator.createHref({\n pathname: joinedPathname,\n search,\n hash\n });\n}\n/**\n * Returns true if this component is a descendant of a .\n *\n * @see https://reactrouter.com/hooks/use-in-router-context\n */\n\nfunction useInRouterContext() {\n return React.useContext(LocationContext) != null;\n}\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/hooks/use-location\n */\n\nfunction useLocation() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useLocation() may be used only in the context of a component.\") : invariant(false) : void 0;\n return React.useContext(LocationContext).location;\n}\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/hooks/use-navigation-type\n */\n\nfunction useNavigationType() {\n return React.useContext(LocationContext).navigationType;\n}\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * .\n *\n * @see https://reactrouter.com/hooks/use-match\n */\n\nfunction useMatch(pattern) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useMatch() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n pathname\n } = useLocation();\n return React.useMemo(() => matchPath(pattern, pathname), [pathname, pattern]);\n}\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\n\n/**\n * Returns an imperative method for changing the location. Used by s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/hooks/use-navigate\n */\nfunction useNavigate() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useNavigate() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getPathContributingMatches(matches).map(match => match.pathnameBase));\n let activeRef = React.useRef(false);\n React.useEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(activeRef.current, \"You should call navigate() in a React.useEffect(), not when \" + \"your component is first rendered.\") : void 0;\n if (!activeRef.current) return;\n\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n\n let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === \"path\"); // If we're operating within a basename, prepend it to the pathname prior\n // to handing off to history. If this is a root navigation, then we\n // navigate to the raw basename which allows the basename to have full\n // control over the presence of a trailing slash on root links\n\n if (basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n\n (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);\n }, [basename, navigator, routePathnamesJson, locationPathname]);\n return navigate;\n}\nconst OutletContext = /*#__PURE__*/React.createContext(null);\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/hooks/use-outlet-context\n */\n\nfunction useOutletContext() {\n return React.useContext(OutletContext);\n}\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by to render child routes.\n *\n * @see https://reactrouter.com/hooks/use-outlet\n */\n\nfunction useOutlet(context) {\n let outlet = React.useContext(RouteContext).outlet;\n\n if (outlet) {\n return /*#__PURE__*/React.createElement(OutletContext.Provider, {\n value: context\n }, outlet);\n }\n\n return outlet;\n}\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/hooks/use-params\n */\n\nfunction useParams() {\n let {\n matches\n } = React.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? routeMatch.params : {};\n}\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/hooks/use-resolved-path\n */\n\nfunction useResolvedPath(to, _temp2) {\n let {\n relative\n } = _temp2 === void 0 ? {} : _temp2;\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getPathContributingMatches(matches).map(match => match.pathnameBase));\n return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === \"path\"), [to, routePathnamesJson, locationPathname, relative]);\n}\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an to render their child route's\n * element.\n *\n * @see https://reactrouter.com/hooks/use-routes\n */\n\nfunction useRoutes(routes, locationArg) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useRoutes() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n navigator\n } = React.useContext(NavigationContext);\n let dataRouterStateContext = React.useContext(DataRouterStateContext);\n let {\n matches: parentMatches\n } = React.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n\n if (process.env.NODE_ENV !== \"production\") {\n // You won't get a warning about 2 different under a \n // without a trailing *, but this is a best-effort warning anyway since we\n // cannot even give the warning unless they land at the parent route.\n //\n // Example:\n //\n // \n // {/* This route path MUST end with /* because otherwise\n // it will never match /blog/post/123 */}\n // } />\n // } />\n // \n //\n // function Blog() {\n // return (\n // \n // } />\n // \n // );\n // }\n let parentPath = parentRoute && parentRoute.path || \"\";\n warningOnce(parentPathname, !parentRoute || parentPath.endsWith(\"*\"), \"You rendered descendant (or called `useRoutes()`) at \" + (\"\\\"\" + parentPathname + \"\\\" (under ) but the \") + \"parent route path has no trailing \\\"*\\\". This means if you navigate \" + \"deeper, the parent won't match anymore and therefore the child \" + \"routes will never render.\\n\\n\" + (\"Please change the parent to .\"));\n }\n\n let locationFromContext = useLocation();\n let location;\n\n if (locationArg) {\n var _parsedLocationArg$pa;\n\n let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n !(parentPathnameBase === \"/\" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"When overriding the location using `` or `useRoutes(routes, location)`, \" + \"the location pathname must begin with the portion of the URL pathname that was \" + (\"matched by all parent routes. The current pathname base is \\\"\" + parentPathnameBase + \"\\\" \") + (\"but pathname \\\"\" + parsedLocationArg.pathname + \"\\\" was given in the `location` prop.\")) : invariant(false) : void 0;\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n\n let pathname = location.pathname || \"/\";\n let remainingPathname = parentPathnameBase === \"/\" ? pathname : pathname.slice(parentPathnameBase.length) || \"/\";\n let matches = matchRoutes(routes, {\n pathname: remainingPathname\n });\n\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(parentRoute || matches != null, \"No routes matched location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \") : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(matches == null || matches[matches.length - 1].route.element !== undefined, \"Matched leaf route at location \\\"\" + location.pathname + location.search + location.hash + \"\\\" does not have an element. \" + \"This means it will render an with a null value by default resulting in an \\\"empty\\\" page.\") : void 0;\n }\n\n let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]),\n pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase])\n })), parentMatches, dataRouterStateContext || undefined); // When a user passes in a `locationArg`, the associated routes need to\n // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n // to use the scoped location instead of the global location.\n\n\n if (locationArg && renderedMatches) {\n return /*#__PURE__*/React.createElement(LocationContext.Provider, {\n value: {\n location: _extends({\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\"\n }, location),\n navigationType: Action.Pop\n }\n }, renderedMatches);\n }\n\n return renderedMatches;\n}\n\nfunction DefaultErrorElement() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error) ? error.status + \" \" + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = {\n padding: \"0.5rem\",\n backgroundColor: lightgrey\n };\n let codeStyles = {\n padding: \"2px 4px\",\n backgroundColor: lightgrey\n };\n let devInfo = null;\n\n if (process.env.NODE_ENV !== \"production\") {\n devInfo = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", null, \"\\uD83D\\uDCBF Hey developer \\uD83D\\uDC4B\"), /*#__PURE__*/React.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own\\xA0\", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"errorElement\"), \" props on\\xA0\", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"\")));\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h2\", null, \"Unexpected Application Error!\"), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n fontStyle: \"italic\"\n }\n }, message), stack ? /*#__PURE__*/React.createElement(\"pre\", {\n style: preStyles\n }, stack) : null, devInfo);\n}\n\nclass RenderErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n location: props.location,\n error: props.error\n };\n }\n\n static getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n\n static getDerivedStateFromProps(props, state) {\n // When we get into an error state, the user will likely click \"back\" to the\n // previous page that didn't have an error. Because this wraps the entire\n // application, that will have no effect--the error page continues to display.\n // This gives us a mechanism to recover from the error when the location changes.\n //\n // Whether we're in an error state or not, we update the location in state\n // so that when we are in an error state, it gets reset when a new location\n // comes in and the user recovers from the error.\n if (state.location !== props.location) {\n return {\n error: props.error,\n location: props.location\n };\n } // If we're not changing locations, preserve the location but still surface\n // any new errors that may come through. We retain the existing error, we do\n // this because the error provided from the app state may be cleared without\n // the location changing.\n\n\n return {\n error: props.error || state.error,\n location: state.location\n };\n }\n\n componentDidCatch(error, errorInfo) {\n console.error(\"React Router caught the following error during render\", error, errorInfo);\n }\n\n render() {\n return this.state.error ? /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: this.props.routeContext\n }, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {\n value: this.state.error,\n children: this.props.component\n })) : this.props.children;\n }\n\n}\n\nfunction RenderedRoute(_ref) {\n let {\n routeContext,\n match,\n children\n } = _ref;\n let dataRouterContext = React.useContext(DataRouterContext); // Track how deep we got in our render pass to emulate SSR componentDidCatch\n // in a DataStaticRouter\n\n if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && match.route.errorElement) {\n dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n }\n\n return /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: routeContext\n }, children);\n}\n\nfunction _renderMatches(matches, parentMatches, dataRouterState) {\n if (parentMatches === void 0) {\n parentMatches = [];\n }\n\n if (matches == null) {\n if (dataRouterState != null && dataRouterState.errors) {\n // Don't bail if we have data router errors so we can render them in the\n // boundary. Use the pre-matched (or shimmed) matches\n matches = dataRouterState.matches;\n } else {\n return null;\n }\n }\n\n let renderedMatches = matches; // If we have data errors, trim matches to the highest error boundary\n\n let errors = dataRouterState == null ? void 0 : dataRouterState.errors;\n\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]));\n !(errorIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Could not find a matching route for the current errors: \" + errors) : invariant(false) : void 0;\n renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));\n }\n\n return renderedMatches.reduceRight((outlet, match, index) => {\n let error = match.route.id ? errors == null ? void 0 : errors[match.route.id] : null; // Only data routers handle errors\n\n let errorElement = dataRouterState ? match.route.errorElement || /*#__PURE__*/React.createElement(DefaultErrorElement, null) : null;\n let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n\n let getChildren = () => /*#__PURE__*/React.createElement(RenderedRoute, {\n match: match,\n routeContext: {\n outlet,\n matches\n }\n }, error ? errorElement : match.route.element !== undefined ? match.route.element : outlet); // Only wrap in an error boundary within data router usages when we have an\n // errorElement on this route. Otherwise let it bubble up to an ancestor\n // errorElement\n\n\n return dataRouterState && (match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {\n location: dataRouterState.location,\n component: errorElement,\n error: error,\n children: getChildren(),\n routeContext: {\n outlet: null,\n matches\n }\n }) : getChildren();\n }, null);\n}\nvar DataRouterHook;\n\n(function (DataRouterHook) {\n DataRouterHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterHook[\"UseRevalidator\"] = \"useRevalidator\";\n})(DataRouterHook || (DataRouterHook = {}));\n\nvar DataRouterStateHook;\n\n(function (DataRouterStateHook) {\n DataRouterStateHook[\"UseLoaderData\"] = \"useLoaderData\";\n DataRouterStateHook[\"UseActionData\"] = \"useActionData\";\n DataRouterStateHook[\"UseRouteError\"] = \"useRouteError\";\n DataRouterStateHook[\"UseNavigation\"] = \"useNavigation\";\n DataRouterStateHook[\"UseRouteLoaderData\"] = \"useRouteLoaderData\";\n DataRouterStateHook[\"UseMatches\"] = \"useMatches\";\n DataRouterStateHook[\"UseRevalidator\"] = \"useRevalidator\";\n})(DataRouterStateHook || (DataRouterStateHook = {}));\n\nfunction getDataRouterConsoleError(hookName) {\n return hookName + \" must be used within a data router. See https://reactrouter.com/routers/picking-a-router.\";\n}\n\nfunction useDataRouterContext(hookName) {\n let ctx = React.useContext(DataRouterContext);\n !ctx ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return ctx;\n}\n\nfunction useDataRouterState(hookName) {\n let state = React.useContext(DataRouterStateContext);\n !state ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return state;\n}\n\nfunction useRouteContext(hookName) {\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return route;\n}\n\nfunction useCurrentRouteId(hookName) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n !thisRoute.route.id ? process.env.NODE_ENV !== \"production\" ? invariant(false, hookName + \" can only be used on routes that contain a unique \\\"id\\\"\") : invariant(false) : void 0;\n return thisRoute.route.id;\n}\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\n\n\nfunction useNavigation() {\n let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n return state.navigation;\n}\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\n\nfunction useRevalidator() {\n let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n return {\n revalidate: dataRouterContext.router.revalidate,\n state: state.revalidation\n };\n}\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\n\nfunction useMatches() {\n let {\n matches,\n loaderData\n } = useDataRouterState(DataRouterStateHook.UseMatches);\n return React.useMemo(() => matches.map(match => {\n let {\n pathname,\n params\n } = match; // Note: This structure matches that created by createUseMatchesMatch\n // in the @remix-run/router , so if you change this please also change\n // that :) Eventually we'll DRY this up\n\n return {\n id: match.route.id,\n pathname,\n params,\n data: loaderData[match.route.id],\n handle: match.route.handle\n };\n }), [matches, loaderData]);\n}\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\n\nfunction useLoaderData() {\n let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n\n if (state.errors && state.errors[routeId] != null) {\n console.error(\"You cannot `useLoaderData` in an errorElement (routeId: \" + routeId + \")\");\n return undefined;\n }\n\n return state.loaderData[routeId];\n}\n/**\n * Returns the loaderData for the given routeId\n */\n\nfunction useRouteLoaderData(routeId) {\n let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n return state.loaderData[routeId];\n}\n/**\n * Returns the action data for the nearest ancestor Route action\n */\n\nfunction useActionData() {\n let state = useDataRouterState(DataRouterStateHook.UseActionData);\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"useActionData must be used inside a RouteContext\") : invariant(false) : void 0;\n return Object.values((state == null ? void 0 : state.actionData) || {})[0];\n}\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error. This is intended to be called from your\n * errorElement to display a proper error message.\n */\n\nfunction useRouteError() {\n var _state$errors;\n\n let error = React.useContext(RouteErrorContext);\n let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError); // If this was a render error, we put it in a RouteError context inside\n // of RenderErrorBoundary\n\n if (error) {\n return error;\n } // Otherwise look for errors from our data router state\n\n\n return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId];\n}\n/**\n * Returns the happy-path data from the nearest ancestor value\n */\n\nfunction useAsyncValue() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._data;\n}\n/**\n * Returns the error from the nearest ancestor value\n */\n\nfunction useAsyncError() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._error;\n}\nlet blockerId = 0;\n/**\n * Allow the application to block navigations within the SPA and present the\n * user a confirmation dialog to confirm the navigation. Mostly used to avoid\n * using half-filled form data. This does not handle hard-reloads or\n * cross-origin navigations.\n */\n\nfunction useBlocker(shouldBlock) {\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseBlocker);\n let [blockerKey] = React.useState(() => String(++blockerId));\n let blockerFunction = React.useCallback(args => {\n return typeof shouldBlock === \"function\" ? !!shouldBlock(args) : !!shouldBlock;\n }, [shouldBlock]);\n let blocker = router.getBlocker(blockerKey, blockerFunction); // Cleanup on unmount\n\n React.useEffect(() => () => router.deleteBlocker(blockerKey), [router, blockerKey]);\n return blocker;\n}\nconst alreadyWarned = {};\n\nfunction warningOnce(key, cond, message) {\n if (!cond && !alreadyWarned[key]) {\n alreadyWarned[key] = true;\n process.env.NODE_ENV !== \"production\" ? warning(false, message) : void 0;\n }\n}\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n let {\n fallbackElement,\n router\n } = _ref;\n // Sync router state to our component state to force re-renders\n let state = useSyncExternalStore(router.subscribe, () => router.state, // We have to provide this so React@18 doesn't complain during hydration,\n // but we pass our serialized hydration data into the router so state here\n // is already synced with what the server saw\n () => router.state);\n let navigator = React.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: n => router.navigate(n),\n push: (to, state, opts) => router.navigate(to, {\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n }),\n replace: (to, state, opts) => router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\"; // The fragment and {null} here are important! We need them to keep React 18's\n // useId happy when we are server-rendering since we may have a +