Public Access
Refactor code structure for improved readability and maintainability
This commit is contained in:
1 parent
dfa4010406
commit
96f76e21a7
101 files changed
+214280
-1189
No files matched your search
Vendored
+1
@@ -0,0 +1 @@
|
||||
*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;overflow:hidden}body{font-family:Segoe UI Variable,Segoe UI,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background:#80808059;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#8080808c}
|
||||
Vendored
-138
@@ -1,138 +0,0 @@
|
||||
function dm(n,r){for(var l=0;l<r.length;l++){const i=r[l];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const f=Object.getOwnPropertyDescriptor(i,s);f&&Object.defineProperty(n,s,f.get?f:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const v of f.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&i(v)}).observe(document,{childList:!0,subtree:!0});function l(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function i(s){if(s.ep)return;s.ep=!0;const f=l(s);fetch(s.href,f)}})();function xs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fc={exports:{}},yr={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pv;function pp(){if(Pv)return yr;Pv=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(i,s,f){var v=null;if(f!==void 0&&(v=""+f),s.key!==void 0&&(v=""+s.key),"key"in s){f={};for(var m in s)m!=="key"&&(f[m]=s[m])}else f=s;return s=f.ref,{$$typeof:n,type:i,key:v,ref:s!==void 0?s:null,props:f}}return yr.Fragment=r,yr.jsx=l,yr.jsxs=l,yr}var Zv;function yp(){return Zv||(Zv=1,Fc.exports=pp()),Fc.exports}var H=yp();const xp=xs(H),Sp=dm({__proto__:null,default:xp},[H]);var Uc={exports:{}},ie={};/**
|
||||
* @license React
|
||||
* react.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Xv;function _p(){if(Xv)return ie;Xv=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),v=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),x=Symbol.iterator;function _(B){return B===null||typeof B!="object"?null:(B=x&&B[x]||B["@@iterator"],typeof B=="function"?B:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,O={};function D(B,P,K){this.props=B,this.context=P,this.refs=O,this.updater=K||z}D.prototype.isReactComponent={},D.prototype.setState=function(B,P){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,P,"setState")},D.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function U(){}U.prototype=D.prototype;function R(B,P,K){this.props=B,this.context=P,this.refs=O,this.updater=K||z}var V=R.prototype=new U;V.constructor=R,k(V,D.prototype),V.isPureReactComponent=!0;var X=Array.isArray;function Y(){}var G={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function Xe(B,P,K){var $=K.ref;return{$$typeof:n,type:B,key:P,ref:$!==void 0?$:null,props:K}}function Ue(B,P){return Xe(B.type,P,B.props)}function et(B){return typeof B=="object"&&B!==null&&B.$$typeof===n}function W(B){var P={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(K){return P[K]})}var pe=/\/+/g;function at(B,P){return typeof B=="object"&&B!==null&&B.key!=null?W(""+B.key):P.toString(36)}function vt(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(Y,Y):(B.status="pending",B.then(function(P){B.status==="pending"&&(B.status="fulfilled",B.value=P)},function(P){B.status==="pending"&&(B.status="rejected",B.reason=P)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function M(B,P,K,$,ue){var fe=typeof B;(fe==="undefined"||fe==="boolean")&&(B=null);var ze=!1;if(B===null)ze=!0;else switch(fe){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(B.$$typeof){case n:case r:ze=!0;break;case y:return ze=B._init,M(ze(B._payload),P,K,$,ue)}}if(ze)return ue=ue(B),ze=$===""?"."+at(B,0):$,X(ue)?(K="",ze!=null&&(K=ze.replace(pe,"$&/")+"/"),M(ue,P,K,"",function(Ba){return Ba})):ue!=null&&(et(ue)&&(ue=Ue(ue,K+(ue.key==null||B&&B.key===ue.key?"":(""+ue.key).replace(pe,"$&/")+"/")+ze)),P.push(ue)),1;ze=0;var ht=$===""?".":$+":";if(X(B))for(var Le=0;Le<B.length;Le++)$=B[Le],fe=ht+at($,Le),ze+=M($,P,K,fe,ue);else if(Le=_(B),typeof Le=="function")for(B=Le.call(B),Le=0;!($=B.next()).done;)$=$.value,fe=ht+at($,Le++),ze+=M($,P,K,fe,ue);else if(fe==="object"){if(typeof B.then=="function")return M(vt(B),P,K,$,ue);throw P=String(B),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Q(B,P,K){if(B==null)return B;var $=[],ue=0;return M(B,$,"","",function(fe){return P.call(K,fe,ue++)}),$}function oe(B){if(B._status===-1){var P=B._result;P=P(),P.then(function(K){(B._status===0||B._status===-1)&&(B._status=1,B._result=K)},function(K){(B._status===0||B._status===-1)&&(B._status=2,B._result=K)}),B._status===-1&&(B._status=0,B._result=P)}if(B._status===1)return B._result.default;throw B._result}var Se=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},Be={map:Q,forEach:function(B,P,K){Q(B,function(){P.apply(this,arguments)},K)},count:function(B){var P=0;return Q(B,function(){P++}),P},toArray:function(B){return Q(B,function(P){return P})||[]},only:function(B){if(!et(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return ie.Activity=p,ie.Children=Be,ie.Component=D,ie.Fragment=l,ie.Profiler=s,ie.PureComponent=R,ie.StrictMode=i,ie.Suspense=g,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,ie.__COMPILER_RUNTIME={__proto__:null,c:function(B){return G.H.useMemoCache(B)}},ie.cache=function(B){return function(){return B.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(B,P,K){if(B==null)throw ErroLine truncated
|
||||
* @license React
|
||||
* scheduler.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Yv;function wp(){return Yv||(Yv=1,(function(n){function r(M,Q){var oe=M.length;M.push(Q);e:for(;0<oe;){var Se=oe-1>>>1,Be=M[Se];if(0<s(Be,Q))M[Se]=Q,M[oe]=Be,oe=Se;else break e}}function l(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var Q=M[0],oe=M.pop();if(oe!==Q){M[0]=oe;e:for(var Se=0,Be=M.length,B=Be>>>1;Se<B;){var P=2*(Se+1)-1,K=M[P],$=P+1,ue=M[$];if(0>s(K,oe))$<Be&&0>s(ue,K)?(M[Se]=ue,M[$]=oe,Se=$):(M[Se]=K,M[P]=oe,Se=P);else if($<Be&&0>s(ue,oe))M[Se]=ue,M[$]=oe,Se=$;else break e}}return Q}function s(M,Q){var oe=M.sortIndex-Q.sortIndex;return oe!==0?oe:M.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var v=Date,m=v.now();n.unstable_now=function(){return v.now()-m}}var g=[],h=[],y=1,p=null,x=3,_=!1,z=!1,k=!1,O=!1,D=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function V(M){for(var Q=l(h);Q!==null;){if(Q.callback===null)i(h);else if(Q.startTime<=M)i(h),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=l(h)}}function X(M){if(k=!1,V(M),!z)if(l(g)!==null)z=!0,Y||(Y=!0,W());else{var Q=l(h);Q!==null&&vt(X,Q.startTime-M)}}var Y=!1,G=-1,le=5,Xe=-1;function Ue(){return O?!0:!(n.unstable_now()-Xe<le)}function et(){if(O=!1,Y){var M=n.unstable_now();Xe=M;var Q=!0;try{e:{z=!1,k&&(k=!1,U(G),G=-1),_=!0;var oe=x;try{t:{for(V(M),p=l(g);p!==null&&!(p.expirationTime>M&&Ue());){var Se=p.callback;if(typeof Se=="function"){p.callback=null,x=p.priorityLevel;var Be=Se(p.expirationTime<=M);if(M=n.unstable_now(),typeof Be=="function"){p.callback=Be,V(M),Q=!0;break t}p===l(g)&&i(g),V(M)}else i(g);p=l(g)}if(p!==null)Q=!0;else{var B=l(h);B!==null&&vt(X,B.startTime-M),Q=!1}}break e}finally{p=null,x=oe,_=!1}Q=void 0}}finally{Q?W():Y=!1}}}var W;if(typeof R=="function")W=function(){R(et)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,at=pe.port2;pe.port1.onmessage=et,W=function(){at.postMessage(null)}}else W=function(){D(et,0)};function vt(M,Q){G=D(function(){M(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(M){switch(x){case 1:case 2:case 3:var Q=3;break;default:Q=x}var oe=x;x=Q;try{return M()}finally{x=oe}},n.unstable_requestPaint=function(){O=!0},n.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var oe=x;x=M;try{return Q()}finally{x=oe}},n.unstable_scheduleCallback=function(M,Q,oe){var Se=n.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?Se+oe:Se):oe=Se,M){case 1:var Be=-1;break;case 2:Be=250;break;case 5:Be=1073741823;break;case 4:Be=1e4;break;default:Be=5e3}return Be=oe+Be,M={id:y++,callback:Q,priorityLevel:M,startTime:oe,expirationTime:Be,sortIndex:-1},oe>Se?(M.sortIndex=oe,r(h,M),l(g)===null&&M===l(h)&&(k?(U(G),G=-1):k=!0,vt(X,oe-Se))):(M.sortIndex=Be,r(g,M),z||_||(z=!0,Y||(Y=!0,W()))),M},n.unstable_shouldYield=Ue,n.unstable_wrapCallback=function(M){var Q=x;return function(){var oe=x;x=Q;try{return M.apply(this,arguments)}finally{x=oe}}}})(Pc)),Pc}var Qv;function vm(){return Qv||(Qv=1,Gc.exports=wp()),Gc.exports}var Zc={exports:{}},ft={};/**
|
||||
* @license React
|
||||
* react-dom.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Kv;function zp(){if(Kv)return ft;Kv=1;var n=Ss();function r(g){var h="https://react.dev/errors/"+g;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(g,h,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:g,containerInfo:h,implementation:y}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,h){if(g==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,ft.createPortal=function(g,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return f(g,h,null,y)},ft.flushSync=function(g){var h=v.T,y=i.p;try{if(v.T=null,i.p=2,g)return g()}finally{v.T=h,i.p=y,i.d.f()}},ft.preconnect=function(g,h){typeof g=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(g,h))},ft.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},ft.preinit=function(g,h){if(typeof g=="string"&&h&&typeof h.as=="string"){var y=h.as,p=m(y,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?i.d.S(g,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:x,fetchPriority:_}):y==="script"&&i.d.X(g,{crossOrigin:p,integrity:x,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ft.preinitModule=function(g,h){if(typeof g=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=m(h.as,h.crossOrigin);i.d.M(g,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(g)},ft.preload=function(g,h){if(typeof g=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,p=m(y,h.crossOrigin);i.d.L(g,y,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ft.preloadModule=function(g,h){if(typeof g=="string")if(h){var y=m(h.as,h.crossOrigin);i.d.m(g,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(g)},ft.requestFormReset=function(g){i.d.r(g)},ft.unstable_batchedUpdates=function(g,h){return g(h)},ft.useFormState=function(g,h,y){return v.H.useFormState(g,h,y)},ft.useFormStatus=function(){return v.H.useHostTransitionStatus()},ft.version="19.2.5",ft}var Wv;function hm(){if(Wv)return Zc.exports;Wv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Zc.exports=zp(),Zc.exports}/**
|
||||
* @license React
|
||||
* react-dom-client.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Iv;function kp(){if(Iv)return xr;Iv=1;var n=vm(),r=Ss(),l=hm();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(i(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var o=e,a=t;;){var u=o.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){o=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===o)return g(u),e;if(c===a)return g(u),t;c=c.sibling}throw Error(i(188))}if(o.return!==a.return)o=u,a=c;else{for(var d=!1,b=u.child;b;){if(b===o){d=!0,o=u,a=c;break}if(b===a){d=!0,a=u,o=c;break}b=b.sibling}if(!d){for(b=c.child;b;){if(b===o){d=!0,o=c,a=u;break}if(b===a){d=!0,a=c,o=u;break}b=b.sibling}if(!d)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,x=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),R=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),Xe=Symbol.for("react.activity"),Ue=Symbol.for("react.memo_cache_sentinel"),et=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=et&&e[et]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function at(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case D:return"Profiler";case O:return"StrictMode";case X:return"Suspense";case Y:return"SuspenseList";case Xe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case R:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:at(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return at(e(t))}catch{}}return null}var vt=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},Se=[],Be=-1;function B(e){return{current:e}}function P(e){0>Be||(e.current=Se[Be],Se[Be]=null,Be--)}function K(e,t){Be++,Se[Be]=e.current,e.current=t}var $=B(null),ue=B(null),fe=B(null),ze=B(null);function ht(e,t){switch(K(fe,t),K(ue,e),K($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dv(t),e=vv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P($),K($,e)}function Le(){P($),P(ue),P(fe)}function Ba(e){e.memoizedState!==null&&K(ze,e);var t=$.current,o=vv(t,e.type);t!==o&&(K(ue,e),K($,o))}function Ar(e){ue.current===e&&(P($),P(ue)),ze.current===e&&(P(ze),mr._currentValue=oe)}var Si,Ls;function ln(e){if(Si===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);Si=t&&t[1]||"",Ls=-1<o.stack.indexOf(`
|
||||
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||
`+Si+e+Ls}var _i=!1;function wi(e,t){if(!e||_i)return"";_i=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(N){var C=N}Reflect.construct(e,[],L)}else{try{L.call()}catch(N){C=N}e.call(L.prototype)}}else{try{throw Error()}catch(N){C=N}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(N){if(N&&C&&typeof N.stack=="string")return[N.stack,C.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),d=c[0],b=c[1];if(d&&b){var S=d.split(`
|
||||
`),j=b.split(`
|
||||
`);for(u=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;if(a===S.length||u===j.length)for(a=S.length-1,u=j.length-1;1<=a&&0<=u&&S[a]!==j[u];)u--;for(;1<=a&&0<=u;a--,u--)if(S[a]!==j[u]){if(a!==1||u!==1)do if(a--,u--,0>u||S[a]!==j[u]){var q=`
|
||||
`+S[a].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=a&&0<=u);break}}}finally{_i=!1,Error.prepareStackTrace=o}return(o=e?e.displayName||e.name:"")?ln(o):""}function K1(e,t){switch(e.tag){case 26:case 27:case 5:return ln(e.type);case 16:return ln("Lazy");case 13:return e.child!==t&&t!==null?ln("Suspense Fallback"):ln("Suspense");case 19:return ln("SuspenseList");case 0:case 15:return wi(e.type,!1);case 11:return wi(e.type.render,!1);case 1:return wi(e.type,!0);case 31:return ln("Activity");default:return""}}function Gs(e){try{var t="",o=null;do t+=K1(e,o),o=e,e=e.return;while(e);return t}catch(a){return`
|
||||
Error generating stack: `+a.message+`
|
||||
`+a.stack}}var zi=Object.prototype.hasOwnProperty,ki=n.unstable_scheduleCallback,Bi=n.unstable_cancelCallback,W1=n.unstable_shouldYield,I1=n.unstable_requestPaint,Bt=n.unstable_now,J1=n.unstable_getCurrentPriorityLevel,Ps=n.unstable_ImmediatePriority,Zs=n.unstable_UserBlockingPriority,Cr=n.unstable_NormalPriority,$1=n.unstable_LowPriority,Xs=n.unstable_IdlePriority,eg=n.log,tg=n.unstable_setDisableYieldValue,Ta=null,Tt=null;function Ao(e){if(typeof eg=="function"&&tg(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(Ta,e)}catch{}}var Et=Math.clz32?Math.clz32:ag,og=Math.log,ng=Math.LN2;function ag(e){return e>>>=0,e===0?32:31-(og(e)/ng|0)|0}var Nr=256,Dr=262144,Rr=4194304;function un(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qr(e,t,o){var a=e.pendingLanes;if(a===0)return 0;var u=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?u=un(a):(d&=b,d!==0?u=un(d):o||(o=b&~e,o!==0&&(u=un(o))))):(b=a&~c,b!==0?u=un(b):d!==0?u=un(d):o||(o=a&~e,o!==0&&(u=un(o)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,o=t&-t,c>=o||c===32&&(o&4194048)!==0)?t:u}function Ea(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vs(){var e=Rr;return Rr<<=1,(Rr&62914560)===0&&(Rr=4194304),e}function Ti(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lg(e,t,o,a,u,c){var d=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,j=e.hiddenUpdates;for(o=d&~o;0<o;){var q=31-Et(o),L=1<<q;b[q]=0,S[q]=-1;var C=j[q];if(C!==null)for(j[q]=null,q=0;q<C.length;q++){var N=C[q];N!==null&&(N.lane&=-536870913)}o&=~L}a!==0&&Ys(e,a,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function Ys(e,t,o){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|o&261930}function Qs(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var a=31-Et(o),u=1<<a;u&t|e[a]&t&&(e[a]|=t),o&=~u}}function Ks(e,t){var o=t&-t;return o=(o&42)!==0?1:Ei(o),(o&(e.suspendedLanes|t))!==0?0:o}function Ei(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ji(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ws(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Mv(e.type))}function Is(e,t){var o=Q.p;try{return Q.p=e,t()}finally{Q.p=o}}var Co=Math.random().toString(36).slice(2),rt="__reactFiber$"+Co,bt="__reactProps$"+Co,Nn="__reactContainer$"+Co,Ai="__reactEvents$"+Co,ig="__reactListeners$"+Co,ug="__reactHandles$"+Co,Js="__reactResources$"+Co,Aa="__reactMarker$"+Co;function Ci(e){delete e[rt],delete e[bt],delete e[Ai],delete e[ig],delete e[ug]}function Dn(e){var t=e[rt];if(t)return t;for(var o=e.parentNode;o;){if(t=o[Nn]||o[rt]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=xv(e);e!==null;){if(o=e[rt])return o;e=xv(e)}return t}e=o,o=e.parentNode}return null}function Rn(e){if(e=e[rt]||e[Nn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ca(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function qn(e){var t=e[Js];return t||(t=e[Js]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tt(e){e[Aa]=!0}var $s=new Set,ef={};function cn(e,t){Mn(e,t),Mn(e+"Capture",t)}function Mn(e,t){for(ef[e]=t,e=0;e<t.length;e++)$s.add(t[e])}var cg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u21
Line truncated
|
||||
`).replace(Ub,"")}function sv(e,t){return t=cv(t),cv(e)===t}function Ae(e,t,o,a,u,c){switch(o){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Hn(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Hn(e,""+a);break;case"className":Or(e,"class",a);break;case"tabIndex":Or(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Or(e,o,a);break;case"style":sf(e,a,c);break;case"data":if(t!=="object"){Or(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||o!=="href")){e.removeAttribute(o);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(o);break}a=Fr(""+a),e.setAttribute(o,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(o==="formAction"?(t!=="input"&&Ae(e,t,"name",u.name,u,null),Ae(e,t,"formEncType",u.formEncType,u,null),Ae(e,t,"formMethod",u.formMethod,u,null),Ae(e,t,"formTarget",u.formTarget,u,null)):(Ae(e,t,"encType",u.encType,u,null),Ae(e,t,"method",u.method,u,null),Ae(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(o);break}a=Fr(""+a),e.setAttribute(o,a);break;case"onClick":a!=null&&(e.onclick=so);break;case"onScroll":a!=null&&ve("scroll",e);break;case"onScrollEnd":a!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(o=a.__html,o!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=o}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}o=Fr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(o,""+a):e.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":a===!0?e.setAttribute(o,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(o,a):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(o,a):e.removeAttribute(o);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(o):e.setAttribute(o,a);break;case"popover":ve("beforetoggle",e),ve("toggle",e),Mr(e,"popover",a);break;case"xlinkActuate":co(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":co(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":co(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":co(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":co(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":co(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":co(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":co(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":co(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Mr(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=hg.get(o)||o,Mr(e,o,a))}}function Sc(e,t,o,a,u,c){switch(o){case"style":sf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(o=a.__html,o!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=o}}break;case"children":typeof a=="string"?Hn(e,a):(typeof a=="number"||typeof a=="bigint")&&Hn(e,""+a);break;case"onScroll":a!=null&&ve("scroll",e);break;case"onScrollEnd":a!=null&&ve("scrollend",e);break;case"onClick":a!=null&&(e.onclick=so);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*//*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/const nn="data-tabster",r5="data-tabster-dummy",r1=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,ba={EscapeGroupper:1,Restorer:2,Deloser:3},za={Source:0,Target:1},l5={Outside:2};/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/function Wt(n,r){var l;return(l=n.storageEntry(r))===null||l===void 0?void 0:l.tabster}function l1(n,r,l){var i,s,f;const v=l||n._noop?void 0:r.getAttribute(nn);let m=n.storageEntry(r),g;if(v)if(v!==((i=m==null?void 0:m.attr)===null||i===void 0?void 0:i.string))try{const x=JSON.parse(v);if(typeof x!="object")throw new Error(`Value is not a JSON object, got '${v}'.`);g={string:v,object:x}}catch{}else return;else if(!m)return;m||(m=n.storageEntry(r,!0)),m.tabster||(m.tabster={});const h=m.tabster||{},y=((s=m.attr)===null||s===void 0?void 0:s.object)||{},p=(g==null?void 0:g.object)||{};for(const x of Object.keys(y))if(!p[x]){if(x==="root"){const _=h[x];_&&n.root.onRoot(_,!0)}switch(x){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const _=h[x];_&&(_.dispose(),delete h[x]);break;case"observed":delete h[x],n.observedElement&&n.observedElement.onObservedElementUpdate(r);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete h[x];break}}for(const x of Object.keys(p)){const _=p.sys;switch(x){case"deloser":h.deloser?h.deloser.setProps(p.deloser):n.deloser&&(h.deloser=n.deloser.createDeloser(r,p.deloser));break;case"root":h.root?h.root.setProps(p.root):h.root=n.root.createRoot(r,p.root,_),n.root.onRoot(h.root);break;case"modalizer":{let z;const k=n.modalizer;if(h.modalizer){const O=p.modalizer,D=O.id;D&&((f=y==null?void 0:y.modalizer)===null||f===void 0?void 0:f.id)!==D?(h.modalizer.dispose(),z=O):h.modalizer.setProps(O)}else k&&(z=p.modalizer);k&&z&&(h.modalizer=k.createModalizer(r,z,_))}break;case"restorer":h.restorer?h.restorer.setProps(p.restorer):n.restorer&&p.restorer&&(h.restorer=n.restorer.createRestorer(r,p.restorer));break;case"focusable":h.focusable=p.focusable;break;case"groupper":h.groupper?h.groupper.setProps(p.groupper):n.groupper&&(h.groupper=n.groupper.createGroupper(r,p.groupper,_));break;case"mover":h.mover?h.mover.setProps(p.mover):n.mover&&(h.mover=n.mover.createMover(r,p.mover,_));break;case"observed":n.observedElement&&(h.observed=p.observed,n.observedElement.onObservedElementUpdate(r));break;case"uncontrolled":h.uncontrolled=p.uncontrolled;break;case"outline":n.outline&&(h.outline=p.outline);break;case"sys":h.sys=p.sys;break;default:console.error(`Unknown key '${x}' in data-tabster attribute value.`)}}g?m.attr=g:(Object.keys(h).length===0&&(delete m.tabster,delete m.attr),n.storageEntry(r,!1))}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/const i5="tabster:focusin",u5="tabster:focusout",c5="tabster:movefocus",s5="tabster:modalizer:active",f5="tabster:modalizer:inactive",ms="tabster:restorer:restore-focus",d5="tabster:root:focus",v5="tabster:root:blur",h5=typeof CustomEvent<"u"?CustomEvent:function(){};class rn extends h5{constructor(r,l){super(r,{bubbles:!0,cancelable:!0,composed:!0,detail:l}),this.details=l}}class m5 extends rn{constructor(r){super(i5,r)}}class g5 extends rn{constructor(r){super(u5,r)}}class kr extends rn{constructor(r){super(c5,r)}}class b5 extends rn{constructor(r){super(s5,r)}}class p5 extends rn{constructor(r){super(f5,r)}}class Sh extends rn{constructor(){super(ms)}}class y5 extends rn{constructor(r){super(d5,r)}}class x5 extends rn{constructor(r){super(v5,r)}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/const S5=n=>new MutationObserver(n),_5=(n,r,l,i)=>n.createTreeWalker(r,l,i),w5=n=>n?n.parentNode:null,z5=n=>n?n.parentElement:null,k5=(n,r)=>!!(r&&(n!=null&&n.contains(r))),B5=n=>n.activeElement,T5=(n,r)=>n.querySelector(r),E5=(n,r)=>Array.prototype.slice.call(n.querySelectorAll(r),0),j5=(n,r)=>n.getElementById(r),A5=n=>(n==null?void 0:n.firstChild)||null,C5=n=>(n==null?void 0:n.lastChild)||null,N5=n=>(n==null?void 0:n.nextSibling)||null,D5=n=>(n==null?void 0:n.previousSibling)||null,R5=n=>(n==null?void 0:n.firstElementChild)||null,q5=n=>(n==null?void 0:n.lastElementChild)||null,M5=n=>(n==null?void 0:n.nextElementSibling)||null,O5=n=>(n==null?void 0:n.previousElementSibling)||null,H5=(n,r)=>n.appendChild(r),F5=(n,r,l)=>n.insertBefore(r,l),U5=n=>{var r;return((r=n.ownerDocument)===null||r===void 0?void 0:r.getSelection())||null},L5=(n,r)=>n.ownerDocument.getElementsByName(r),I={createMutationObserver:S5,createTreeWalker:_5,getParentNode:w5,getParentElement:z5,nodeContains:k5,getActiveElement:B5,querySelector:T5,querySelectorAll:E5,getElementById:j5,getFirstChild:A5,getLastChild:C5,getNextSibling:N5,getPreviousSibling:D5,getFirstElementChild:R5,getLastElementChild:q5,getNextElementSibling:M5,getPreviousElementSibling:O5,appendChild:H5,insertBefore:F5,getSelection:U5,getElementsByName:L5};function G5(n){for(const r of Object.keys(n))I[r]=n[r]}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/let gs,P5=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),gs=!1}catch{gs=!0}const es=100;function Cn(n){const r=n();let l=r.__tabsterInstanceContext;return l||(l={elementByUId:{},basics:{Promise:r.Promise||void 0,WeakRef:r.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},r.__tabsterInstanceContext=l),l}function Z5(n){const r=n.__tabsterInstanceContext;r&&(r.elementByUId={},delete r.WeakRef,r.containerBoundingRectCache={},r.containerBoundingRectCacheTimer&&n.clearTimeout(r.containerBoundingRectCacheTimer),r.fakeWeakRefsTimer&&n.clearTimeout(r.fakeWeakRefsTimer),r.fakeWeakRefs=[],delete n.__tabsterInstanceContext)}function X5(n){const r=n.__tabsterInstanceContext;return new((r==null?void 0:r.basics.WeakMap)||WeakMap)}function V5(n){return!!n.querySelector(r1)}class i1{constructor(r){this._target=r}deref(){return this._target}static cleanup(r,l){return r._target?l||!Cs(r._target.ownerDocument,r._target)?(delete r._target,!0):!1:!0}}class oo{constructor(r,l,i){const s=Cn(r);let f;s.WeakRef?f=new s.WeakRef(l):(f=new i1(l),s.fakeWeakRefs.push(f)),this._ref=f,this._data=i}get(){const r=this._ref;let l;return r&&(l=r.deref(),l||delete this._ref),l}getData(){return this._data}}function u1(n,r){const l=Cn(n);l.fakeWeakRefs=l.fakeWeakRefs.filter(i=>!i1.cleanup(i,r))}function c1(n){const r=Cn(n);r.fakeWeakRefsStarted||(r.fakeWeakRefsStarted=!0,r.WeakRef=J5(r)),r.fakeWeakRefsTimer||(r.fakeWeakRefsTimer=n().setTimeout(()=>{r.fakeWeakRefsTimer=void 0,u1(n),c1(n)},120*1e3))}function Y5(n){const r=Cn(n);r.fakeWeakRefsStarted=!1,r.fakeWeakRefsTimer&&(n().clearTimeout(r.fakeWeakRefsTimer),r.fakeWeakRefsTimer=void 0,r.fakeWeakRefs=[])}function s1(n,r,l){if(r.nodeType!==Node.ELEMENT_NODE)return;const i=gs?l:{acceptNode:l};return I.createTreeWalker(n,r,NodeFilter.SHOW_ELEMENT,i,!1)}function Q5(n){n.__shouldIgnoreFocus=!0}function f1(n){return!!n.__shouldIgnoreFocus}function K5(n){const r=new Uint32Array(4);if(n.crypto&&n.crypto.getRandomValues)n.crypto.getRandomValues(r);else if(n.msCrypto&&n.msCrypto.getRandomValues)n.msCrypto.getRandomValues(r);else for(let i=0;i<r.length;i++)r[i]=4294967295*Math.random();const l=[];for(let i=0;i<r.length;i++)l.push(r[i].toString(36));return l.push("|"),l.push((++P5).toString(36)),l.push("|"),l.push(Date.now().toString(36)),l.join("")}function W5(n,r){const l=Cn(n);let i=r.__tabsterElementUID;return i||(i=r.__tabsterElementUID=K5(n())),!l.elementByUId[i]&&Cs(r.ownerDocument,r)&&(l.elementByUId[i]=new oo(n,r)),i}function _h(n,r){const l=Cn(n);for(const i of Object.keys(l.elementByUId)){const s=l.elementByUId[i],f=s&&s.get();f&&r&&!I.nodeContains(r,f)||delete l.elementByUId[i]}}function Cs(n,r){return I.nodeContains(n==null?void 0:n.body,r)}function I5(n,r){const l=n.matches||n.matchesSelector||n.msMatchesSelector||n.webkitMatchesSelector;return l&&l.call(n,r)}function J5(n){return n.basics.WeakRef}let $5=0;class Ns{constructor(r,l,i){const s=r.getWindow;this._tabster=r,this._element=new oo(s,l),this._props={...i},this.id="i"+ ++$5}getElement(){return this._element.get()}getProps(){return this._props}setProps(r){this._props={...r}}}class fi{constructor(r,l,i,s,f){var v;this._focusIn=y=>{if(this._fixedTarget){const x=this._fixedTarget.get();x&&jn(x);return}const p=this.input;if(this.onFocusIn&&p){const x=y.relatedTarget;this.onFocusIn(this,this._isBackward(!0,p,x),x)}},this._focusOut=y=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const p=this.input;if(this.onFocusOut&&p){const x=y.relatedTarget;this.onFocusOut(this,this._isBackward(!1,p,x),x)}};const m=r(),g=m.document.createElement("i");g.tabIndex=0,g.setAttribute("role","none"),g.setAttribute(r5,""),g.setAttribute("aria-hidden","true");const h=g.style;h.position="fixed",h.width=h.height="1px",h.opacity="0.001",h.zIndex="-1",h.setProperty("content-visibility","hidden"),Q5(g),this.input=g,this.isFirst=i.isFirst,this.isOutside=l,this._isPhantom=(v=i.isPhantom)!==null&&v!==void 0?v:!1,this._fixedTarget=f,g.addEventListener("focusin",this._focusIn),g.addEventListener("focusout",this._focusOut),g.__tabsterDummyContainer=s,this._isPhantom&&(this._disposeTimer=m.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(m.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var r;this._clearDisposeTimeout&&this._clearDisposeTimeout();const l=this.input;l&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,l.removeEventListener("focusin",this._focusIn),l.removeEventListener("focusout",this._focusOut),delete l.__tabsterDummyContainer,(r=I.getParentNode(l))===null||r===void 0||r.removeChild(l))}setTopLeft(r,l){var i;const s=(i=this.input)===null||i===void 0?void 0:i.style;s&&(s.top=`${r}px`,s.left=`${l}px`)}_isBackward(r,l,i){return r&&!i?!this.isFirst:!!(i&&l.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FLine truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/function h1(n,r){return JSON.stringify(n)}function ax(n,r){for(const l of Object.keys(r)){const i=r[l];i?n[l]=i:delete n[l]}}function rx(n,r,l){let i;{const s=n.getAttribute(nn);if(s)try{i=JSON.parse(s)}catch{}}i||(i={}),ax(i,r),Object.keys(i).length>0?n.setAttribute(nn,h1(i)):n.removeAttribute(nn)}class wh extends di{constructor(r,l,i,s){super(r,l,d1.Root,s,void 0,!0),this._onDummyInputFocus=f=>{var v;if(f.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const m=this._element.get();if(m){this._setFocused(!0);const g=this._tabster.focusedElement.getFirstOrLastTabbable(f.isFirst,{container:m,ignoreAccessibility:!0});if(g){jn(g);return}}(v=f.input)===null||v===void 0||v.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=r,this._setFocused=i}}class lx extends Ns{constructor(r,l,i,s,f){super(r,l,s),this._isFocused=!1,this._setFocused=h=>{var y;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===h)return;const p=this._element.get();p&&(h?(this._isFocused=!0,(y=this._dummyManager)===null||y===void 0||y.setTabbable(!1),p.dispatchEvent(new y5({element:p}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var x;delete this._setFocusedTimer,this._isFocused=!1,(x=this._dummyManager)===null||x===void 0||x.setTabbable(!0),p.dispatchEvent(new x5({element:p}))},0))},this._onFocusIn=h=>{const y=this._tabster.getParent,p=this._element.get();let x=h.composedPath()[0];do{if(x===p){this._setFocused(!0);return}x=x&&y(x)}while(x)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=i;const v=r.getWindow;this.uid=W5(v,l),this._sys=f,(r.controlTab||r.rootDummyInputs)&&this.addDummyInputs();const g=v().document;g.addEventListener(jo,this._onFocusIn),g.addEventListener(Tr,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new wh(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var r;this._onDispose(this);const l=this._tabster.getWindow(),i=l.document;i.removeEventListener(jo,this._onFocusIn),i.removeEventListener(Tr,this._onFocusOut),this._setFocusedTimer&&(l.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(r=this._dummyManager)===null||r===void 0||r.dispose(),this._remove()}moveOutWithDefaultAction(r,l){const i=this._dummyManager;if(i)i.moveOutWithDefaultAction(r,l);else{const s=this.getElement();s&&wh.moveWithPhantomDummy(this._tabster,s,!0,r,l)}}_add(){}_remove(){}}class We{constructor(r,l){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var i;const s=this._win().document,f=s.body;if(f){this._autoRootUnwait(s);const v=this._autoRoot;if(v)return rx(f,{root:v}),l1(this._tabster,f),(i=Wt(this._tabster,f))===null||i===void 0?void 0:i.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,s.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=i=>{delete this._roots[i.id]},this._tabster=r,this._win=r.getWindow,this._autoRoot=l,r.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(r){r.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const r=this._win();this._autoRootUnwait(r.document),delete this._autoRoot,Object.keys(this._roots).forEach(l=>{this._roots[l]&&(this._roots[l].dispose(),delete this._roots[l])}),this.rootById={}}createRoot(r,l,i){const s=new lx(this._tabster,r,this._onRootDispose,l,i);return this._roots[s.id]=s,this._forceDummy&&s.addDummyInputs(),s}addDummyInputs(){this._forceDummy=!0;const r=this._roots;for(const l of Object.keys(r))r[l].addDummyInputs()}static getRootByUId(r,l){const i=r().__tabsterInstance;return i&&i.root.rootById[l]}static getTabsterContext(r,l,i={}){var s,f,v,m;if(!l.ownerDocument)return;const{checkRtl:g,referenceElement:h}=i,y=r.getParent;r.drainInitQueue();let p,x,_,z,k=!1,O,D,U,R,V=h||l;const X={};for(;V&&(!p||g);){const G=Wt(r,V);if(g&&U===void 0){const W=V.dir;W&&(U=W.toLowerCase()==="rtl")}if(!G){V=y(V);continue}const le=V.tagName;(G.uncontrolled||le==="IFRAME"||le==="WEBVIEW")&&r.focusable.isVisible(V)&&(R=V),!z&&(!((s=G.focusable)===null||s===void 0)&&s.excludeFromMover)&&!_&&(k=!0);const Xe=G.modalizer,Ue=G.groupper,et=G.mover;!x&&Xe&&(x=Xe),!_&&Ue&&(!x||Xe)&&(x?(!Ue.isActive()&&Ue.getProps().tabbability&&x.userId!==((f=r.modalizer)===null||f===void 0?void 0:f.activeId)&&(x=void 0,_=Ue),D=Ue):_=Ue),!z&&et&&(!x||Xe)&&(!Ue||V!==l)&&V.contains(l)&&(z=et,O=!!_&&_!==Ue),G.root&&(p=G.root),!((v=G.focusable)===null||v===void 0)&&v.ignoreKeydown&&Object.assign(X,G.focusable.ignoreKeydown),V=y(V)}if(!p){const G=r.root;G._autoRoot&&!((m=l.ownerDocument)===null||m===void 0)&&m.body&&(p=G._autoRootCreate())}return _&&!z&&(O=!0),p?{root:p,modalizer:x,groupper:_,mover:z,groupperBeforeMover:O,modalizerInGroupper:D,rtl:g?!!U:void 0,uncontrolled:R,excludedFromMover:k,ignoreKeydown:G=>!!X[G.key]}:void 0}stLine truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class m1{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(r){const l=this._callbacks;l.indexOf(r)<0&&l.push(r)}subscribeFirst(r){const l=this._callbacks,i=l.indexOf(r);i>=0&&l.splice(i,1),l.unshift(r)}unsubscribe(r){const l=this._callbacks.indexOf(r);l>=0&&this._callbacks.splice(l,1)}setVal(r,l){this._val!==r&&(this._val=r,this._callCallbacks(r,l))}getVal(){return this._val}trigger(r,l){this._callCallbacks(r,l)}_callCallbacks(r,l){this._callbacks.forEach(i=>i(r,l))}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class ix{constructor(r){this._tabster=r}dispose(){}getProps(r){const l=Wt(this._tabster,r);return l&&l.focusable||{}}isFocusable(r,l,i,s){return I5(r,r1)&&(l||r.tabIndex!==-1)?(i||this.isVisible(r))&&(s||this.isAccessible(r)):!1}isVisible(r){if(!r.ownerDocument||r.nodeType!==Node.ELEMENT_NODE||ox(r))return!1;const l=r.ownerDocument.body.getBoundingClientRect();return!(l.width===0&&l.height===0)}isAccessible(r){var l;for(let i=r;i;i=I.getParentElement(i)){const s=Wt(this._tabster,i);if(this._isHidden(i)||!((l=s==null?void 0:s.focusable)===null||l===void 0?void 0:l.ignoreAriaDisabled)&&this._isDisabled(i))return!1}return!0}_isDisabled(r){return r.hasAttribute("disabled")}_isHidden(r){var l;const i=r.getAttribute("aria-hidden");return!!(i&&i.toLowerCase()==="true"&&!(!((l=this._tabster.modalizer)===null||l===void 0)&&l.isAugmented(r)))}findFirst(r,l){return this.findElement({...r},l)}findLast(r,l){return this.findElement({isBackward:!0,...r},l)}findNext(r,l){return this.findElement({...r},l)}findPrev(r,l){return this.findElement({...r,isBackward:!0},l)}findDefault(r,l){return this.findElement({...r,acceptCondition:i=>this.isFocusable(i,r.includeProgrammaticallyFocusable)&&!!this.getProps(i).isDefault},l)||null}findAll(r){return this._findElements(!0,r)||[]}findElement(r,l){const i=this._findElements(!1,r,l);return i&&i[0]}_findElements(r,l,i){var s,f,v;const{container:m,currentElement:g=null,includeProgrammaticallyFocusable:h,useActiveModalizer:y,ignoreAccessibility:p,modalizerId:x,isBackward:_,onElement:z}=l;i||(i={});const k=[];let{acceptCondition:O}=l;const D=!!O;if(!m)return null;O||(O=X=>this.isFocusable(X,h,!1,p));const U={container:m,modalizerUserId:x===void 0&&y?(s=this._tabster.modalizer)===null||s===void 0?void 0:s.activeId:x||((v=(f=We.getTabsterContext(this._tabster,m))===null||f===void 0?void 0:f.modalizer)===null||v===void 0?void 0:v.userId),from:g||m,isBackward:_,isFindAll:r,acceptCondition:O,hasCustomCondition:D,includeProgrammaticallyFocusable:h,ignoreAccessibility:p,cachedGrouppers:{},cachedRadioGroups:{}},R=s1(m.ownerDocument,m,X=>this._acceptElement(X,U));if(!R)return null;const V=X=>{var Y,G;const le=(Y=U.foundElement)!==null&&Y!==void 0?Y:U.foundBackward;return le&&k.push(le),r?le&&(U.found=!1,delete U.foundElement,delete U.foundBackward,delete U.fromCtx,U.from=le,z&&!z(le))?!1:!!(le||X):(le&&i&&(i.uncontrolled=(G=We.getTabsterContext(this._tabster,le))===null||G===void 0?void 0:G.uncontrolled),!!(X&&!le))};if(g||(i.outOfDOMOrder=!0),g&&I.nodeContains(m,g))R.currentNode=g;else if(_){const X=v1(m);if(!X)return null;if(this._acceptElement(X,U)===NodeFilter.FILTER_ACCEPT&&!V(!0))return U.skippedFocusable&&(i.outOfDOMOrder=!0),k;R.currentNode=X}do _?R.previousNode():R.nextNode();while(V());return U.skippedFocusable&&(i.outOfDOMOrder=!0),k.length?k:null}_acceptElement(r,l){var i,s,f;if(l.found)return NodeFilter.FILTER_ACCEPT;const v=l.foundBackward;if(v&&(r===v||!I.nodeContains(v,r)))return l.found=!0,l.foundElement=v,NodeFilter.FILTER_ACCEPT;const m=l.container;if(r===m)return NodeFilter.FILTER_SKIP;if(!I.nodeContains(m,r)||Ds(r)||I.nodeContains(l.rejectElementsFrom,r))return NodeFilter.FILTER_REJECT;const g=l.currentCtx=We.getTabsterContext(this._tabster,r);if(!g)return NodeFilter.FILTER_SKIP;if(f1(r))return this.isFocusable(r,void 0,!0,!0)&&(l.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!l.hasCustomCondition&&(r.tagName==="IFRAME"||r.tagName==="WEBVIEW"))return this.isVisible(r)&&((i=g.modalizer)===null||i===void 0?void 0:i.userId)===((s=this._tabster.modalizer)===null||s===void 0?void 0:s.activeId)?(l.found=!0,l.rejectElementsFrom=l.foundElement=r,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!l.ignoreAccessibility&&!this.isAccessible(r))return this.isFocusable(r,!1,!0,!0)&&(l.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let h,y=l.fromCtx;y||(y=l.fromCtx=We.getTabsterContext(this._tabster,l.from));const p=y==null?void 0:y.mover;let x=g.groupper,_=g.mover;if(h=(f=this._tabster.modalizer)===null||f===void 0?void 0:f.acceptElement(r,l),h!==void 0&&(l.skippedFocusable=!0),h===void 0&&(x||_||p)){const z=x==null?void 0:x.getElement(),k=p==null?void 0:p.getElement();let O=_==null?void 0:_.getElement();if(O&&I.nodeContains(k,O)&&I.nodeContains(m,k)&&(!z||!_||I.nodeContains(k,z))&&(_=p,O=k),z){if(z===m||!I.nodeContains(m,z))x=void 0;else if(!I.nodeContains(z,r))return NodeFilter.FILTER_REJECT}if(O){if(!I.nodeContains(m,O))_=void 0;else if(!I.nodeContains(O,r))return NodeFilter.FILTER_REJECT}x&&_&&(O&&z&&!I.nodeContains(z,O)?_=void 0:x=void 0),x&&(h=x.acceptElement(r,l)),_&&(h=_.acceptElement(r,l))}if(h===void 0&&(h=l.acceptCondition(r)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,h===NodeFilter.FILTER_SKIP&&this.isFocusable(r,!1,!0,!0)&&(l.skippedFocusable=!0)),h===NodeFilter.FILTER_ACCEPT&&!l.found){if(!l.isFindAll&&bs(r)&&!r.checked){const z=r.name;let k=l.cachedRadioGroups[z];if(k||(k=nx(r),k&&(l.cachedRadioGroups[z]=k)),k!=null&&k.checked&&k.checked!==r)return NodeFilter.FILTLine truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/const g1={Tab:"Tab",Escape:"Escape"};/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/function ux(n,r){var l;const i=n.getParent;let s=r;do{const f=(l=Wt(n,s))===null||l===void 0?void 0:l.uncontrolled;if(f&&n.uncontrolled.isUncontrolledCompletely(s,!!f.completely))return s;s=i(s)}while(s)}const zh={[ba.Restorer]:0,[ba.Deloser]:1,[ba.EscapeGroupper]:2};class $e extends m1{constructor(r,l){super(),this._init=()=>{const i=this._win(),s=i.document;s.addEventListener(jo,this._onFocusIn,!0),s.addEventListener(Tr,this._onFocusOut,!0),i.addEventListener("keydown",this._onKeyDown,!0);const f=I.getActiveElement(s);f&&f!==s.body&&this._setFocusedElement(f),this.subscribe(this._onChanged)},this._onFocusIn=i=>{const s=i.composedPath()[0];s&&this._setFocusedElement(s,i.detail.relatedTarget,i.detail.isFocusedProgrammatically)},this._onFocusOut=i=>{var s;this._setFocusedElement(void 0,(s=i.detail)===null||s===void 0?void 0:s.originalEvent.relatedTarget)},this._validateFocusedElement=i=>{},this._onKeyDown=i=>{if(i.key!==g1.Tab||i.ctrlKey)return;const s=this.getVal();if(!s||!s.ownerDocument||s.contentEditable==="true")return;const f=this._tabster,v=f.controlTab,m=We.getTabsterContext(f,s);if(!m||m.ignoreKeydown(i))return;const g=i.shiftKey,h=$e.findNextTabbable(f,m,void 0,s,void 0,g,!0),y=m.root.getElement();if(!y)return;const p=h==null?void 0:h.element,x=ux(f,s);if(p){const _=h.uncontrolled;if(m.uncontrolled||I.nodeContains(_,s)){if(!h.outOfDOMOrder&&_===m.uncontrolled||x&&!I.nodeContains(x,p))return;di.addPhantomDummyWithTarget(f,s,g,p);return}if(_&&f.focusable.isVisible(_)||p.tagName==="IFRAME"&&f.focusable.isVisible(p)){y.dispatchEvent(new kr({by:"root",owner:y,next:p,relatedEvent:i}))&&di.moveWithPhantomDummy(f,_??p,!1,g,i);return}(v||h!=null&&h.outOfDOMOrder)&&y.dispatchEvent(new kr({by:"root",owner:y,next:p,relatedEvent:i}))&&(i.preventDefault(),i.stopImmediatePropagation(),jn(p))}else!x&&y.dispatchEvent(new kr({by:"root",owner:y,next:null,relatedEvent:i}))&&m.root.moveOutWithDefaultAction(g,i)},this._onChanged=(i,s)=>{var f,v;if(i)i.dispatchEvent(new m5(s));else{const m=(f=this._lastVal)===null||f===void 0?void 0:f.get();if(m){const g={...s},h=We.getTabsterContext(this._tabster,m),y=(v=h==null?void 0:h.modalizer)===null||v===void 0?void 0:v.userId;y&&(g.modalizerId=y),m.dispatchEvent(new g5(g))}}},this._tabster=r,this._win=l,r.queueInit(this._init)}dispose(){super.dispose();const r=this._win(),l=r.document;l.removeEventListener(jo,this._onFocusIn,!0),l.removeEventListener(Tr,this._onFocusOut,!0),r.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const i=this._asyncFocus;i&&(r.clearTimeout(i.timeout),delete this._asyncFocus),delete $e._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(r,l){var i,s;let f=$e._lastResetElement,v=f&&f.get();v&&I.nodeContains(l,v)&&delete $e._lastResetElement,v=(s=(i=r._nextVal)===null||i===void 0?void 0:i.element)===null||s===void 0?void 0:s.get(),v&&I.nodeContains(l,v)&&delete r._nextVal,f=r._lastVal,v=f&&f.get(),v&&I.nodeContains(l,v)&&delete r._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var r;let l=(r=this._lastVal)===null||r===void 0?void 0:r.get();return(!l||l&&!Cs(l.ownerDocument,l))&&(this._lastVal=l=void 0),l}focus(r,l,i,s){return this._tabster.focusable.isFocusable(r,l,!1,i)?(r.focus({preventScroll:s}),!0):!1}focusDefault(r){const l=this._tabster.focusable.findDefault({container:r});return l?(this._tabster.focusedElement.focus(l),!0):!1}getFirstOrLastTabbable(r,l){var i;const{container:s,ignoreAccessibility:f}=l;let v;if(s){const m=We.getTabsterContext(this._tabster,s);m&&(v=(i=$e.findNextTabbable(this._tabster,m,s,void 0,void 0,!r,f))===null||i===void 0?void 0:i.element)}return v&&!I.nodeContains(s,v)&&(v=void 0),v||void 0}_focusFirstOrLast(r,l){const i=this.getFirstOrLastTabbable(r,l);return i?(this.focus(i,!1,!0),!0):!1}focusFirst(r){return this._focusFirstOrLast(!0,r)}focusLast(r){return this._focusFirstOrLast(!1,r)}resetFocus(r){if(!this._tabster.focusable.isVisible(r))return!1;if(this._tabster.focusable.isFocusable(r,!0,!0,!0))this.focus(r);else{const l=r.getAttribute("tabindex"),i=r.getAttribute("aria-hidden");r.tabIndex=-1,r.setAttribute("aria-hidden","true"),$e._lastResetElement=new oo(this._win,r),this.focus(r,!0,!0),this._setOrRemoveAttribute(r,"tabindex",l),this._setOrRemoveAttribute(r,"aria-hidden",i)}return!0}requestAsyncFocus(r,l,i){const s=this._tabster.getWindow(),f=this._asyncFocus;if(f){if(zh[r]>zh[f.source])return;s.clearTimeout(f.timeout)}this._asyncFocus={source:r,callback:l,timeout:s.setTimeout(()=>{this._asyncFocus=void 0,l()},i)}}cancelAsyncFocus(r){const l=this._asyncFocus;(l==null?void 0:l.source)===r&&(this._tabster.getWindow().clearTimeout(l.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(r,l,i){i===null?r.removeAttribute(l):r.setAttribute(l,i)}_setFocusedElement(r,l,i){var s,f;if(this._tabster._noop)return;const v={relatedTarget:l};if(r){const g=(s=$e._lastResetElement)===null||s===void 0?void 0:s.get();if($e._lastResetElement=Line truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class cx extends m1{constructor(r){super(),this._onChange=l=>{this.setVal(l,void 0)},this._keyborg=n1(r()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),a1(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(r){var l;(l=this._keyborg)===null||l===void 0||l.setVal(r)}isNavigatingWithKeyboard(){var r;return!!(!((r=this._keyborg)===null||r===void 0)&&r.isNavigatingWithKeyboard())}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/let sx=0;const os="aria-hidden";class fx extends di{constructor(r,l,i){super(l,r,d1.Modalizer,i),this._setHandlers((s,f)=>{var v,m;const g=r.get(),h=g&&((v=We.getRoot(l,g))===null||v===void 0?void 0:v.getElement()),y=s.input;let p;if(h&&y){const x=Ds(y),_=We.getTabsterContext(l,x||y);_&&(p=(m=$e.findNextTabbable(l,_,h,y,void 0,f,!0))===null||m===void 0?void 0:m.element),p&&jn(p)}})}}class dx extends Ns{constructor(r,l,i,s,f,v){super(r,l,s),this._wasFocused=0,this.userId=s.id,this._onDispose=i,this._activeElements=v,r.controlTab||(this.dummyManager=new fx(this._element,r,f))}makeActive(r){if(this._isActive!==r){this._isActive=r;const l=this.getElement();if(l){const i=this._activeElements,s=i.map(f=>f.get()).indexOf(l);r?s<0&&i.push(new oo(this._tabster.getWindow,l)):s>=0&&i.splice(s,1)}this._dispatchEvent(r)}}focused(r){return r||(this._wasFocused=++sx),this._wasFocused}setProps(r){r.id&&(this.userId=r.id),this._props={...r}}dispose(){var r;this.makeActive(!1),this._onDispose(this),(r=this.dummyManager)===null||r===void 0||r.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(r){return I.nodeContains(this.getElement(),r)}findNextTabbable(r,l,i,s){var f,v;if(!this.getElement())return null;const g=this._tabster;let h=null,y=!1,p;const x=r&&((f=We.getRoot(g,r))===null||f===void 0?void 0:f.getElement());if(x){const _={container:x,currentElement:r,referenceElement:l,ignoreAccessibility:s,useActiveModalizer:!0},z={};h=g.focusable[i?"findPrev":"findNext"](_,z),!h&&this._props.isTrapped&&(!((v=g.modalizer)===null||v===void 0)&&v.activeId)?(h=g.focusable[i?"findLast":"findFirst"]({container:x,ignoreAccessibility:s,useActiveModalizer:!0},z),h===null&&(h=r),y=!0):y=!!z.outOfDOMOrder,p=z.uncontrolled}return{element:h,uncontrolled:p,outOfDOMOrder:y}}_dispatchEvent(r,l){const i=this.getElement();let s=!1;if(i){const f=l?this._activeElements.map(v=>v.get()):[i];for(const v of f)if(v){const m={id:this.userId,element:i},g=r?new b5(m):new p5(m);v.dispatchEvent(g),g.defaultPrevented&&(s=!0)}}return s}_remove(){}}class vx{constructor(r,l,i){this._onModalizerDispose=f=>{const v=f.id,m=f.userId,g=this._parts[m];if(delete this._modalizers[v],g&&(delete g[v],Object.keys(g).length===0)){delete this._parts[m];const h=this._activationHistory,y=[];let p;for(let x=h.length;x--;){const _=h[x];_!==m&&_!==p&&(p=_,(_||y.length>0)&&y.unshift(_))}if(this._activationHistory=y,this.activeId===m){const x=y[0],_=x?Object.values(this._parts[x])[0]:void 0;this.setActive(_)}}},this._onKeyDown=f=>{var v;if(f.key!==g1.Escape)return;const m=this._tabster,g=m.focusedElement.getFocusedElement();if(g){const h=We.getTabsterContext(m,g),y=h==null?void 0:h.modalizer;if(h&&!h.groupper&&(y!=null&&y.isActive())&&!h.ignoreKeydown(f)){const p=y.userId;if(p){const x=this._parts[p];if(x){const _=Object.keys(x).map(z=>{var k;const O=x[z],D=O.getElement();let U;return D&&(U=(k=Wt(m,D))===null||k===void 0?void 0:k.groupper),O&&D&&U?{el:D,focusedSince:O.focused(!0)}:{focusedSince:0}}).filter(z=>z.focusedSince>0).sort((z,k)=>z.focusedSince>k.focusedSince?-1:z.focusedSince<k.focusedSince?1:0);if(_.length){const z=_[0].el;z&&((v=m.groupper)===null||v===void 0||v.handleKeyPress(z,f,!0))}}}}}},this._onFocus=(f,v)=>{var m;const g=this._tabster,h=f&&We.getTabsterContext(g,f);if(!h||!f)return;const y=this._augMap;for(let z=f;z;z=I.getParentElement(z))y.has(z)&&(y.delete(z),ts(g,z,os));let p=h.modalizer;const x=Wt(g,f),_=x==null?void 0:x.modalizer;if(_&&(_.focused(),_.userId===this.activeId&&x.groupper)){const z=g.getParent(f),k=z&&((m=We.getTabsterContext(g,z))===null||m===void 0?void 0:m.modalizer);if(k)p=k;else{this.setActive(void 0);return}}if(p==null||p.focused(),(p==null?void 0:p.userId)===this.activeId){this.currentIsOthersAccessible=p==null?void 0:p.getProps().isOthersAccessible;return}if(v.isFocusedProgrammatically||this.currentIsOthersAccessible||p!=null&&p.getProps().isAlwaysAccessible)this.setActive(p);else{const z=this._win();z.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=z.setTimeout(()=>this._restoreModalizerFocus(f),100)}},this._tabster=r,this._win=r.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=l,this._accessibleCheck=i,this._activationHistory=[],this.activeElements=[],r.controlTab||r.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),r.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const r=this._win();r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(l=>{this._modalizers[l]&&(this._modalizers[l].dispose(),delete this._modalizers[l])}),r.clearTimeout(this._restoreModalizerFocusTimer),r.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(rLine truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/function hx(n,r,l,i){if(typeof MutationObserver>"u")return()=>{};const s=r.getWindow;let f;const v=y=>{var p,x,_,z,k;const O=new Set;for(const D of y){const U=D.target,R=D.removedNodes,V=D.addedNodes;if(D.type==="attributes")D.attributeName===nn&&(O.has(U)||l(r,U));else{for(let X=0;X<R.length;X++){const Y=R[X];O.add(Y),m(Y,!0),(x=(p=r._dummyObserver).domChanged)===null||x===void 0||x.call(p,U)}for(let X=0;X<V.length;X++)m(V[X]),(z=(_=r._dummyObserver).domChanged)===null||z===void 0||z.call(_,U)}}O.clear(),(k=r.modalizer)===null||k===void 0||k.hiddenUpdate()};function m(y,p){f||(f=Cn(s).elementByUId),g(y,p);const x=s1(n,y,_=>g(_,p));if(x)for(;x.nextNode(););}function g(y,p){var x;if(!y.getAttribute)return NodeFilter.FILTER_SKIP;const _=y.__tabsterElementUID;return _&&f&&(p?delete f[_]:(x=f[_])!==null&&x!==void 0||(f[_]=new oo(s,y))),(Wt(r,y)||y.hasAttribute(nn))&&l(r,y,p),NodeFilter.FILTER_SKIP}const h=I.createMutationObserver(v);return i&&m(s().document.body),h.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[nn]}),()=>{h.disconnect()}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class mx{constructor(r){this._isUncontrolledCompletely=r}isUncontrolledCompletely(r,l){var i;const s=(i=this._isUncontrolledCompletely)===null||i===void 0?void 0:i.call(this,r,l);return s===void 0?l:s}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class gx extends Ns{constructor(r,l,i){var s;if(super(r,l,i),this._hasFocus=!1,this._onFocusOut=f=>{var v;const m=(v=this._element)===null||v===void 0?void 0:v.get();m&&f.relatedTarget===null&&m.dispatchEvent(new Sh),m&&!I.nodeContains(m,f.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===za.Source){const f=(s=this._element)===null||s===void 0?void 0:s.get();f==null||f.addEventListener("focusout",this._onFocusOut),f==null||f.addEventListener("focusin",this._onFocusIn),this._hasFocus=I.nodeContains(f,f&&I.getActiveElement(f.ownerDocument))}}dispose(){var r;if(this._props.type===za.Source){const l=(r=this._element)===null||r===void 0?void 0:r.get();l==null||l.removeEventListener("focusout",this._onFocusOut),l==null||l.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new Sh)}}}class xi{constructor(r){this._stack=[],this._getWindow=r}push(r){var l;((l=this._stack[this._stack.length-1])===null||l===void 0?void 0:l.get())!==r&&(this._stack.length>xi.DEPTH&&this._stack.shift(),this._stack.push(new oo(this._getWindow,r)))}pop(r=()=>!0){var l;const i=this._getWindow().document;for(let s=this._stack.length-1;s>=0;s--){const f=(l=this._stack.pop())===null||l===void 0?void 0:l.get();if(f&&I.nodeContains(i.body,I.getParentElement(f))&&r(f))return f}}}xi.DEPTH=10;class bx{constructor(r){this._onRestoreFocus=l=>{var i,s;this._focusedElementState.cancelAsyncFocus(ba.Restorer);const f=l.composedPath()[0];if(f){const v=(s=(i=Wt(this._tabster,f))===null||i===void 0?void 0:i.restorer)===null||s===void 0?void 0:s.getProps().id;this._focusedElementState.requestAsyncFocus(ba.Restorer,()=>this._restoreFocus(f,v),0)}},this._onFocusIn=l=>{var i;if(!l)return;const s=Wt(this._tabster,l);((i=s==null?void 0:s.restorer)===null||i===void 0?void 0:i.getProps().type)===za.Target&&this._history.push(l)},this._restoreFocus=(l,i)=>{var s;const f=this._getWindow().document;if(I.getActiveElement(f)!==f.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&I.nodeContains(f.body,l))return;const v=m=>{var g,h;const y=(h=(g=Wt(this._tabster,m))===null||g===void 0?void 0:g.restorer)===null||h===void 0?void 0:h.getProps();return y?y.id:null};(s=this._history.pop(m=>i===v(m)))===null||s===void 0||s.focus()},this._tabster=r,this._getWindow=r.getWindow,this._getWindow().addEventListener(ms,this._onRestoreFocus),this._history=new xi(this._getWindow),this._keyboardNavState=r.keyboardNavigation,this._focusedElementState=r.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const r=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(ba.Restorer),r.removeEventListener(ms,this._onRestoreFocus)}createRestorer(r,l){const i=new gx(this._tabster,r,l);return l.type===za.Target&&I.getActiveElement(r.ownerDocument)===r&&this._history.push(r),i}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class px{constructor(r){this.keyboardNavigation=r.keyboardNavigation,this.focusedElement=r.focusedElement,this.focusable=r.focusable,this.root=r.root,this.uncontrolled=r.uncontrolled,this.core=r}}class yx{constructor(r,l){var i,s;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.7.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=X5(r),this._win=r;const f=this.getWindow;l!=null&&l.DOMAPI&&G5({...l.DOMAPI}),this.keyboardNavigation=new cx(f),this.focusedElement=new $e(this,f),this.focusable=new ix(this),this.root=new We(this,l==null?void 0:l.autoRoot),this.uncontrolled=new mx((l==null?void 0:l.checkUncontrolledCompletely)||(l==null?void 0:l.checkUncontrolledTrappingFocus)),this.controlTab=(i=l==null?void 0:l.controlTab)!==null&&i!==void 0?i:!0,this.rootDummyInputs=!!(l!=null&&l.rootDummyInputs),this._dummyObserver=new ex(f),this.getParent=(s=l==null?void 0:l.getParent)!==null&&s!==void 0?s:I.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:v=>{if(!this._unobserve){const m=f().document;this._unobserve=hx(m,this,l1,v)}}},c1(f),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(r){var l;r&&(this.getParent=(l=r.getParent)!==null&&l!==void 0?l:this.getParent)}createTabster(r,l){const i=new px(this);return r||this._wrappers.add(i),this._mergeProps(l),i}disposeTabster(r,l){l?this._wrappers.clear():this._wrappers.delete(r),this._wrappers.size===0&&this.dispose()}dispose(){var r,l,i,s,f,v,m,g;this.internal.stopObserver();const h=this._win;h==null||h.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],h&&this._forgetMemorizedTimer&&(h.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(r=this.outline)===null||r===void 0||r.dispose(),(l=this.crossOrigin)===null||l===void 0||l.dispose(),(i=this.deloser)===null||i===void 0||i.dispose(),(s=this.groupper)===null||s===void 0||s.dispose(),(f=this.mover)===null||f===void 0||f.dispose(),(v=this.modalizer)===null||v===void 0||v.dispose(),(m=this.observedElement)===null||m===void 0||m.dispose(),(g=this.restorer)===null||g===void 0||g.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),Y5(this.getWindow),_h(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),h&&(Z5(h),delete h.__tabsterInstance,delete this._win)}storageEntry(r,l){const i=this._storage;let s=i.get(r);return s?l===!1&&Object.keys(s).length===0&&i.delete(r):l===!0&&(s={},i.set(r,s)),s}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let r=this._forgetMemorizedElements.shift();r;r=this._forgetMemorizedElements.shift())_h(this.getWindow,r),$e.forgetMemorized(this.focusedElement,r)},0),u1(this.getWindow,!0)))}queueInit(r){var l;this._win&&(this._initQueue.push(r),this._initTimer||(this._initTimer=(l=this._win)===null||l===void 0?void 0:l.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const r=this._initQueue;this._initQueue=[],r.forEach(l=>l())}}function xx(n,r){let l=zx(n);return l?l.createTabster(!1,r):(l=new yx(n,r),n.__tabsterInstance=l,l.createTabster())}function Sx(n,r,l){const i=n.core;return i.modalizer||(i.modalizer=new vx(i,r,l)),i.modalizer}function _x(n){const r=n.core;return r.restorer||(r.restorer=new bx(r)),r.restorer}function wx(n,r){n.core.disposeTabster(n,r)}function zx(n){return n.__tabsterInstance}const kx=n=>n;function Bx(n){const r=(n==null?void 0:n.defaultView)||void 0,l=r==null?void 0:r.__tabsterShadowDOMAPI;if(r)return xx(r,{autoRoot:{},controlTab:!1,getParent:Y2,checkUncontrolledCompletely:i=>{var s;return((s=i.firstElementChild)===null||s===void 0?void 0:s.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:l})}function Rs(n=kx){const{targetDocument:r}=no(),l=A.useRef(null);return uo(()=>{const i=Bx(r);if(i)return l.current=n(i),()=>{wx(i),l.current=null}},[r,n]),l}const kh=n=>{Rs();const r=h1(n);return A.useMemo(()=>({[nn]:r}),[r])},Tx=()=>{const n=Rs(),{targetDocument:r}=no(),l=A.useCallback((m,g)=>{var h;return m&&((h=n.current)===null||h===void 0?void 0:h.focusable.findAll({container:m,acceptCondition:g}))||[]},[n]),i=A.useCallback(m=>{var g;return m&&((g=n.current)===null||g===void 0?void 0:g.focusable.findFirst({container:m}))},[n]),s=A.useCallback(m=>{var g;return m&&((g=n.current)===null||g===void 0?void 0:g.focusable.findLast({container:m}))},[n]),f=A.useCallback((m,g={})=>{if(!n.current||!r||!m)return null;const{container:h=r.body}=g;return n.current.focusable.findNext({currentElement:m,container:h})},[n,r]),v=A.useCallback((m,g={})=>{if(!n.current||!r||!m)returnLine truncated
|
||||
`,"Motion factories require a single child element to be passed. ","That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."].join("");function S1(n,r=!0){const l=A.useRef(null);A.useEffect(()=>{},[r]);try{const i=A.Children.only(n);if(A.isValidElement(i))return[A.cloneElement(i,{ref:Im(l,Z2(i))}),l]}catch{}throw new Error(z3)}const _1=A.createContext(void 0);_1.Provider;const w1=()=>{var n;return(n=A.useContext(_1))!==null&&n!==void 0?n:"default"},k3=Symbol("MOTION_DEFINITION");function Kh(n){return Object.assign(l=>{"use no memo";const{children:i,imperativeRef:s,onMotionFinish:f,onMotionStart:v,onMotionCancel:m,...g}=l,h=g,[y,p]=S1(i),x=y1(s),_=w1()==="skip",z=A.useRef({skipMotions:_,params:h}),k=p1(),O=x1(),D=gt(()=>{v==null||v(null)}),U=gt(()=>{f==null||f(null)}),R=gt(()=>{m==null||m(null)});return uo(()=>{z.current={skipMotions:_,params:h}}),uo(()=>{const V=p.current;if(V){const X=typeof n=="function"?n({element:V,...z.current.params}):n;D();const Y=k(V,X,{isReducedMotion:O()});return x.current=Y,Y.setMotionEndCallbacks(U,R),z.current.skipMotions&&Y.finish(),()=>{Y.cancel()}}},[k,p,x,O,U,D,R]),y},{[k3]:typeof n=="function"?n:()=>n})}const z1=A.createContext(void 0);z1.Provider;function B3(n=!1,r=!1){const l=A.useRef(r?n:!0),i=H2(),s=A.useCallback(f=>{l.current!==f&&(l.current=f,i())},[i]);return A.useEffect(()=>{n&&(l.current=n)}),[n||l.current,s]}const k1=Symbol("PRESENCE_MOTION_DEFINITION"),T3=Symbol.for("interruptablePresence");function qs(n){return Object.assign(r=>{"use no memo";const i={...A.useContext(z1),...r},s=w1()==="skip",{appear:f,children:v,imperativeRef:m,onExit:g,onMotionFinish:h,onMotionStart:y,onMotionCancel:p,visible:x,unmountOnExit:_,...z}=i,k=z,[O,D]=B3(x,_),[U,R]=S1(v,O),V=y1(m),X=A.useRef({appear:f,params:k,skipMotions:s}),Y=p1(),G=O2(),le=x1(),Xe=gt(W=>{y==null||y(null,{direction:W})}),Ue=gt(W=>{h==null||h(null,{direction:W}),W==="exit"&&_&&(D(!1),g==null||g())}),et=gt(W=>{p==null||p(null,{direction:W})});return uo(()=>{X.current={appear:f,params:k,skipMotions:s}}),uo(()=>{const W=R.current;if(!W)return;let pe;function at(){pe&&(M&&pe.isRunning()||(pe.cancel(),V.current=void 0))}const vt=typeof n=="function"?n({element:W,...X.current.params}):n,M=vt[T3];if(M&&(pe=V.current,pe&&pe.isRunning()))return pe.reverse(),at;const Q=x?vt.enter:vt.exit,oe=x?"enter":"exit",Se=!X.current.appear&&G,Be=X.current.skipMotions;return Se||Xe(oe),pe=Y(W,Q,{isReducedMotion:le()}),Se?(pe.finish(),at):(V.current=pe,pe.setMotionEndCallbacks(()=>Ue(oe),()=>et(oe)),Be&&pe.finish(),at)},[Y,R,V,le,Ue,Xe,et,x]),A.useEffect(()=>{if(_&&!O){var W;(W=V.current)===null||W===void 0||W.dispose()}},[V,_,O]),O?U:null},{[k1]:typeof n=="function"?n:()=>n},{In:Kh(typeof n=="function"?(...r)=>n(...r).enter:n.enter),Out:Kh(typeof n=="function"?(...r)=>n(...r).exit:n.exit)})}function E3(n,r){return i=>n({...r,...i})}function jr(n,r){const l=n[k1],i=E3(l,r);return qs(i)}const Ms=A.createContext(void 0);function j3(){return A.useContext(Ms)}const B1=A.forwardRef((n,r)=>A.createElement(Ms.Provider,{value:r},n.children));B1.displayName="MotionRefForwarder";const T1=n=>A.createElement(Ms.Provider,{value:void 0},n.children);T1.displayName="MotionRefForwarderReset";function E1(n,r){const{as:l,children:i,...s}=n??{};if(n===null){const v=!r.defaultProps.visible&&r.defaultProps.unmountOnExit,m=(g,h)=>v?null:A.createElement(A.Fragment,null,h.children);return{[si]:m,[wa]:r.elementType}}const f={...r.defaultProps,...s,[wa]:r.elementType};return typeof i=="function"&&(f[si]=i),f}const vi=({direction:n,duration:r,easing:l=nt.curveLinear,delay:i=0,outOpacity:s=0,inOpacity:f=1})=>{const v=[{opacity:s},{opacity:f}];return n==="exit"&&v.reverse(),{keyframes:v,duration:r,easing:l,delay:i,fill:"both"}},A3=({duration:n=nt.durationNormal,easing:r=nt.curveEasyEase,delay:l=0,exitDuration:i=n,exitEasing:s=r,exitDelay:f=l,outOpacity:v=0,inOpacity:m=1})=>({enter:vi({direction:"enter",duration:n,easing:r,delay:l,outOpacity:v,inOpacity:m}),exit:vi({direction:"exit",duration:i,easing:s,delay:f,outOpacity:v,inOpacity:m})}),j1=qs(A3);jr(j1,{duration:nt.durationFast});const C3=jr(j1,{duration:nt.durationGentle}),Wh=({direction:n,duration:r,easing:l=nt.curveLinear,delay:i=0,outScale:s=.9,inScale:f=1})=>{const v=[{scale:s},{scale:f}];return n==="exit"&&v.reverse(),{keyframes:v,duration:r,easing:l,delay:i}},N3=({duration:n=nt.durationGentle,easing:r=nt.curveDecelerateMax,delay:l=0,exitDuration:i=nt.durationNormal,exitEasing:s=nt.curveAccelerateMax,exitDelay:f=l,outScale:v=.9,inScale:m=1,animateOpacity:g=!0})=>{const h=[Wh({direction:"enter",duration:n,easing:r,delay:l,outScale:v,inScale:m})],y=[Wh({direction:"exit",duration:i,easing:s,delay:f,outScale:v,inScale:m})];return g&&(h.push(vi({direction:"enter",duration:n,easing:r,delay:l})),y.push(vi({direction:"exit",duration:i,easing:s,delay:f}))),{enter:h,exit:y}},Os=qs(N3);jr(Os,{duration:nt.durationNormal,exitDu
Line truncated
|
||||
|
||||
Vamos a planificar el sprint del mes que viene el jueves a las 10:00. Necesito que reviseis los temas pendientes del backlog.
|
||||
|
||||
Un saludo`,receivedAt:new Date(Date.now()-1e3*60*30).toISOString(),isRead:!1,folder:"inbox"},{id:"2",from:"[email protected]",fromName:"María García",to:"[email protected]",subject:"RE: Presupuesto proyecto digital 2026",body:`Hola Lago,
|
||||
|
||||
Gracias por la información. He revisado el presupuesto y parece correcto. Adjunto la propuesta final.
|
||||
|
||||
¿Podemos hablar mañana por teléfono?
|
||||
|
||||
Saludos`,receivedAt:new Date(Date.now()-1e3*60*60*2).toISOString(),isRead:!1,folder:"inbox"},{id:"3",from:"[email protected]",fromName:"DevOps Team",to:"[email protected]",subject:"[Alert] Production deployment failed — pipeline #4821",body:`Pipeline #4821 failed at stage: build
|
||||
|
||||
Error: npm ERR! code ETARGET
|
||||
npm ERR! notarget No valid target for react@19.0.1
|
||||
|
||||
View logs: https://devops.company.com/pipelines/4821`,receivedAt:new Date(Date.now()-1e3*60*60*5).toISOString(),isRead:!0,folder:"inbox"},{id:"4",from:"[email protected]",fromName:"Lago",to:"[email protected]",subject:"Resumen semanal — Power Platform",body:`Equipo,
|
||||
|
||||
Aquí va el resumen de lo hecho esta semana:
|
||||
|
||||
• Demo de code apps publicada en el blog
|
||||
• Connector de Outlook integrado
|
||||
• Migración del backlog a Dataverse completada
|
||||
|
||||
Para la semana que viene:
|
||||
• Terminar la integración con Teams
|
||||
• Revisar los permisos de producción
|
||||
|
||||
Saludos`,receivedAt:new Date(Date.now()-1e3*60*60*24).toISOString(),isRead:!0,folder:"sent"},{id:"5",from:"[email protected]",fromName:"Tech Weekly",to:"[email protected]",subject:"This Week in AI & Power Platform — Issue #47",body:`Top stories this week:
|
||||
|
||||
1. Microsoft announces GPT-5 integration for Copilot Studio
|
||||
2. Power Apps code apps reach 1,400+ connectors milestone
|
||||
3. Dataverse 2026 Wave 1 features now generally available
|
||||
|
||||
Read more inside...`,receivedAt:new Date(Date.now()-1e3*60*60*48).toISOString(),isRead:!0,folder:"inbox"},{id:"6",from:"[email protected]",fromName:"LinkedIn",to:"[email protected]",subject:"5 people viewed your profile this week",body:`Your profile got noticed!
|
||||
|
||||
5 people in Austria viewed your profile in the past week, including recruiters and hiring managers.
|
||||
|
||||
View who they are →`,receivedAt:new Date(Date.now()-1e3*60*60*72).toISOString(),isRead:!0,folder:"inbox"},{id:"7",from:"[email protected]",fromName:"Lago",to:"draft",subject:"Borrador: Propuesta reunión trimestral",body:"Borrador de la propuesta para la reunión trimestral con dirección...",receivedAt:new Date(Date.now()-1e3*60*60*6).toISOString(),isRead:!0,folder:"drafts"}];class gw{delay(r){return new Promise(l=>setTimeout(l,r))}async getProfile(){return await this.delay(300),ls}async getMessages(r="inbox"){return await this.delay(600),ti.filter(l=>l.folder===r)}async getMessage(r){return await this.delay(200),ti.find(l=>l.id===r)}async sendMessage(r){await this.delay(800);const l={id:Date.now().toString(),from:ls.email,fromName:ls.displayName,to:r.to||"",subject:r.subject||"(Sin asunto)",body:r.body||"",receivedAt:new Date().toISOString(),isRead:!0,folder:"sent"};return ti.push(l),l}async markAsRead(r){await this.delay(100);const l=ti.find(i=>i.id===r);l&&(l.isRead=!0)}}const is=new gw,Q1=Qy({appShell:{display:"flex",height:"100vh",width:"100vw",overflow:"hidden"},navRail:{width:"64px",backgroundColor:ae.colorNeutralBackground2,display:"flex",flexDirection:"column",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",gap:"8px",borderRight:`1px solid ${ae.colorNeutralStroke2}`,flexShrink:0},navIcon:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",color:ae.colorNeutralForeground2,transition:"all 150ms ease",border:"none",background:"transparent",fontSize:"0"},navIconActive:{backgroundColor:ae.colorBrandBackground,color:ae.colorNeutralForegroundInverted},toolbar:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderBottom:`1px solid ${ae.colorNeutralStroke2}`,backgroundColor:ae.colorNeutralBackground2,flexShrink:0},toolbarSpacer:{flex:1},contentArea:{flex:1,display:"flex",overflow:"hidden"},folderPanel:{width:"220px",borderRight:`1px solid ${ae.colorNeutralStroke2}`,backgroundColor:ae.colorNeutralBackground2,overflowY:"auto",padding:"8px 0",flexShrink:0},folderItem:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 16px",cursor:"pointer",fontSize:"14px",color:ae.colorNeutralForeground2,transition:"all 100ms",border:"none",background:"transparent",width:"100%",textAlign:"left",borderRadius:"0"},folderItemActive:{backgroundColor:ae.colorBrandBackground2,color:ae.colorBrandForeground1,borderRight:`3px solid ${ae.colorBrandForeground1}`},folderBadge:{marginLeft:"auto"},emailListPanel:{width:"340px",borderRight:`1px solid ${ae.colorNeutralStroke2}`,overflowY:"auto",flexShrink:0,backgroundColor:ae.colorNeutralBackground1},emailItem:{padding:"12px 16px",borderBottom:`1px solid ${ae.colorNeutralStroke2}`,cursor:"pointer",transition:"background 100ms",backgroundColor:ae.colorNeutralBackground1},emailItemUnread:{borderLeft:`3px solid ${ae.colorBrandForeground1}`},emailItemSelected:{backgroundColor:ae.colorBrandBackground2},emailFrom:{fontSize:"14px",fontWeight:"600",color:ae.colorNeutralForeground1,display:"flex",alignItems:"center",gap:"6px"},emailSubject:{fontSize:"13px",color:ae.colorNeutralForeground1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"2px"},emailPreview:{fontSize:"12px",color:ae.colorNeutralForeground3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"2px"},emailTime:{fontSize:"11px",color:ae.colorNeutralForeground3,marginLeft:"auto",flexShrink:0},detailPanel:{flex:1,overflowY:"auto",padding:"24px 32px",backgroundColor:ae.colorNeutralBackground1},detailHeader:{display:"flex",gap:"14px",alignItems:"flex-start",marginBottom:"20px"},detailMeta:{flex:1},detailSubject:{fontSize:"18px",fontWeight:"700",color:ae.colorNeutralForeground1,marginTop:"4px"},detailBody:{fontSize:"14px",lineHeight:"1.7",color:ae.colorNeutralForeground1,whiteSpace:"pre-wrap",marginTop:"16px"},detailActions:{display:"flex",gap:"8px",marginTop:"24px"},emptyState:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"12px",color:ae.colorNeutralForeground3,backgroundColor:ae.colorNeutralBackground1},composeField:{display:"flex",flexDirection:"column",gap:"4px",padding:"8px 0"},composeFooter:{display:"flex",gap:"8px",paddingTop:"16px"},connectionsPanel:{flex:1,overflowY:"auto",padding:"32px",backgroundColor:ae.colorNeutralBackground1},connCard:{backgroundColor:ae.colorNeutralBackground2,border:`1px solid ${ae.colorNeutralStroke2}`,borderRadius:"8px",padding:"16px",transition:"all 150ms"},connCode:{background:"#1a1a2e",borderRadius:"6px",padding:"16px 20px",fontFamily:"monospace",fontSize:"13px",color:"#a0a0b0",lineHeight:1.8}}),cm=[{id:"inbox",name:"Bandeja de entrada",icon:"📥",unreadCount:4},{id:"sent",name:"Enviados",icon:"📤",unreadCount:0},{id:"drafts",name:"Borradores",icon:"📝",unreadCount:1},{id:"trash",name:"Papelera",icon:"🗑️",unreadCount:0}];function bw(n){const r=new Date(n),i=new Date().getTime()-r.getTime(),s=Math.fl
Line truncated
|
||||
Vendored
+145
@@ -0,0 +1,145 @@
|
||||
function nv(o,n){for(var a=0;a<n.length;a++){const l=n[a];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in o)){const f=Object.getOwnPropertyDescriptor(l,s);f&&Object.defineProperty(o,s,f.get?f:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function a(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(s){if(s.ep)return;s.ep=!0;const f=a(s);fetch(s.href,f)}})();function Rf(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Hu={exports:{}},Ja={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var m1;function d5(){if(m1)return Ja;m1=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(l,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var g in s)g!=="key"&&(f[g]=s[g])}else f=s;return s=f.ref,{$$typeof:o,type:l,key:d,ref:s!==void 0?s:null,props:f}}return Ja.Fragment=n,Ja.jsx=a,Ja.jsxs=a,Ja}var v1;function g5(){return v1||(v1=1,Hu.exports=d5()),Hu.exports}var P=g5();const h5=Rf(P),m5=nv({__proto__:null,default:h5},[P]);var Lu={exports:{}},he={};/**
|
||||
* @license React
|
||||
* react.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var p1;function v5(){if(p1)return he;p1=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),x=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,A={};function N(T,G,K){this.props=T,this.context=G,this.refs=A,this.updater=K||w}N.prototype.isReactComponent={},N.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function D(){}D.prototype=N.prototype;function j(T,G,K){this.props=T,this.context=G,this.refs=A,this.updater=K||w}var L=j.prototype=new D;L.constructor=j,B(L,N.prototype),L.isPureReactComponent=!0;var Z=Array.isArray;function H(){}var U={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function Be(T,G,K){var J=K.ref;return{$$typeof:o,type:T,key:G,ref:J!==void 0?J:null,props:K}}function be(T,G){return Be(T.type,G,T.props)}function ye(T){return typeof T=="object"&&T!==null&&T.$$typeof===o}function ce(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K){return G[K]})}var pe=/\/+/g;function Q(T,G){return typeof T=="object"&&T!==null&&T.key!=null?ce(""+T.key):G.toString(36)}function Ee(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(H,H):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function q(T,G,K,J,se){var xe=typeof T;(xe==="undefined"||xe==="boolean")&&(T=null);var Oe=!1;if(T===null)Oe=!0;else switch(xe){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(T.$$typeof){case o:case n:Oe=!0;break;case b:return Oe=T._init,q(Oe(T._payload),G,K,J,se)}}if(Oe)return se=se(T),Oe=J===""?"."+Q(T,0):J,Z(se)?(K="",Oe!=null&&(K=Oe.replace(pe,"$&/")+"/"),q(se,G,K,"",function(aa){return aa})):se!=null&&(ye(se)&&(se=be(se,K+(se.key==null||T&&T.key===se.key?"":(""+se.key).replace(pe,"$&/")+"/")+Oe)),G.push(se)),1;Oe=0;var kt=J===""?".":J+":";if(Z(T))for(var Je=0;Je<T.length;Je++)J=T[Je],xe=kt+Q(J,Je),Oe+=q(J,G,K,xe,se);else if(Je=S(T),typeof Je=="function")for(T=Je.call(T),Je=0;!(J=T.next()).done;)J=J.value,xe=kt+Q(J,Je++),Oe+=q(J,G,K,xe,se);else if(xe==="object"){if(typeof T.then=="function")return q(Ee(T),G,K,J,se);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function W(T,G,K){if(T==null)return T;var J=[],se=0;return q(T,J,"","",function(xe){return G.call(K,xe,se++)}),J}function ee(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(K){(T._status===0||T._status===-1)&&(T._status=1,T._result=K)},function(K){(T._status===0||T._status===-1)&&(T._status=2,T._result=K)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var oe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ke={map:W,forEach:function(T,G,K){W(T,function(){G.apply(this,arguments)},K)},count:function(T){var G=0;return W(T,function(){G++}),G},toArray:function(T){return W(T,function(G){return G})||[]},only:function(T){if(!ye(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return he.Activity=p,he.Children=ke,he.Component=N,he.Fragment=a,he.Profiler=s,he.PureComponent=j,he.StrictMode=l,he.Suspense=v,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,he.__COMPILER_RUNTIME={__proto__:null,c:function(T){return U.H.useMemoCache(T)}},he.cache=function(T){return function(){return T.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(T,G,K){if(T==null)throw Error(Line truncated
|
||||
* @license React
|
||||
* scheduler.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var y1;function p5(){return y1||(y1=1,(function(o){function n(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var oe=ee-1>>>1,ke=q[oe];if(0<s(ke,W))q[oe]=W,q[ee]=ke,ee=oe;else break e}}function a(q){return q.length===0?null:q[0]}function l(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var oe=0,ke=q.length,T=ke>>>1;oe<T;){var G=2*(oe+1)-1,K=q[G],J=G+1,se=q[J];if(0>s(K,ee))J<ke&&0>s(se,K)?(q[oe]=se,q[J]=ee,oe=J):(q[oe]=K,q[G]=ee,oe=G);else if(J<ke&&0>s(se,ee))q[oe]=se,q[J]=ee,oe=J;else break e}}return W}function s(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;o.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();o.unstable_now=function(){return d.now()-g}}var v=[],h=[],b=1,p=null,x=3,S=!1,w=!1,B=!1,A=!1,N=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function L(q){for(var W=a(h);W!==null;){if(W.callback===null)l(h);else if(W.startTime<=q)l(h),W.sortIndex=W.expirationTime,n(v,W);else break;W=a(h)}}function Z(q){if(B=!1,L(q),!w)if(a(v)!==null)w=!0,H||(H=!0,ce());else{var W=a(h);W!==null&&Ee(Z,W.startTime-q)}}var H=!1,U=-1,ie=5,Be=-1;function be(){return A?!0:!(o.unstable_now()-Be<ie)}function ye(){if(A=!1,H){var q=o.unstable_now();Be=q;var W=!0;try{e:{w=!1,B&&(B=!1,D(U),U=-1),S=!0;var ee=x;try{t:{for(L(q),p=a(v);p!==null&&!(p.expirationTime>q&&be());){var oe=p.callback;if(typeof oe=="function"){p.callback=null,x=p.priorityLevel;var ke=oe(p.expirationTime<=q);if(q=o.unstable_now(),typeof ke=="function"){p.callback=ke,L(q),W=!0;break t}p===a(v)&&l(v),L(q)}else l(v);p=a(v)}if(p!==null)W=!0;else{var T=a(h);T!==null&&Ee(Z,T.startTime-q),W=!1}}break e}finally{p=null,x=ee,S=!1}W=void 0}}finally{W?ce():H=!1}}}var ce;if(typeof j=="function")ce=function(){j(ye)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,Q=pe.port2;pe.port1.onmessage=ye,ce=function(){Q.postMessage(null)}}else ce=function(){N(ye,0)};function Ee(q,W){U=N(function(){q(o.unstable_now())},W)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(q){q.callback=null},o.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<q?Math.floor(1e3/q):5},o.unstable_getCurrentPriorityLevel=function(){return x},o.unstable_next=function(q){switch(x){case 1:case 2:case 3:var W=3;break;default:W=x}var ee=x;x=W;try{return q()}finally{x=ee}},o.unstable_requestPaint=function(){A=!0},o.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=x;x=q;try{return W()}finally{x=ee}},o.unstable_scheduleCallback=function(q,W,ee){var oe=o.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?oe+ee:oe):ee=oe,q){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=ee+ke,q={id:b++,callback:W,priorityLevel:q,startTime:ee,expirationTime:ke,sortIndex:-1},ee>oe?(q.sortIndex=ee,n(h,q),a(v)===null&&q===a(h)&&(B?(D(U),U=-1):B=!0,Ee(Z,ee-oe))):(q.sortIndex=ke,n(v,q),w||S||(w=!0,H||(H=!0,ce()))),q},o.unstable_shouldYield=be,o.unstable_wrapCallback=function(q){var W=x;return function(){var ee=x;x=W;try{return q.apply(this,arguments)}finally{x=ee}}}})(Gu)),Gu}var x1;function av(){return x1||(x1=1,Uu.exports=p5()),Uu.exports}var Vu={exports:{}},xt={};/**
|
||||
* @license React
|
||||
* react-dom.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var S1;function b5(){if(S1)return xt;S1=1;var o=Df();function n(v){var h="https://react.dev/errors/"+v;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(v,h,b){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:v,containerInfo:h,implementation:b}}var d=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,h){if(v==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,xt.createPortal=function(v,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return f(v,h,null,b)},xt.flushSync=function(v){var h=d.T,b=l.p;try{if(d.T=null,l.p=2,v)return v()}finally{d.T=h,l.p=b,l.d.f()}},xt.preconnect=function(v,h){typeof v=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(v,h))},xt.prefetchDNS=function(v){typeof v=="string"&&l.d.D(v)},xt.preinit=function(v,h){if(typeof v=="string"&&h&&typeof h.as=="string"){var b=h.as,p=g(b,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?l.d.S(v,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:x,fetchPriority:S}):b==="script"&&l.d.X(v,{crossOrigin:p,integrity:x,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},xt.preinitModule=function(v,h){if(typeof v=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=g(h.as,h.crossOrigin);l.d.M(v,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(v)},xt.preload=function(v,h){if(typeof v=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,p=g(b,h.crossOrigin);l.d.L(v,b,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},xt.preloadModule=function(v,h){if(typeof v=="string")if(h){var b=g(h.as,h.crossOrigin);l.d.m(v,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(v)},xt.requestFormReset=function(v){l.d.r(v)},xt.unstable_batchedUpdates=function(v,h){return v(h)},xt.useFormState=function(v,h,b){return d.H.useFormState(v,h,b)},xt.useFormStatus=function(){return d.H.useHostTransitionStatus()},xt.version="19.2.5",xt}var w1;function iv(){if(w1)return Vu.exports;w1=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),Vu.exports=b5(),Vu.exports}/**
|
||||
* @license React
|
||||
* react-dom-client.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var B1;function y5(){if(B1)return $a;B1=1;var o=av(),n=Df(),a=iv();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(l(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var r=e,i=t;;){var c=r.return;if(c===null)break;var u=c.alternate;if(u===null){if(i=c.return,i!==null){r=i;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===r)return v(c),e;if(u===i)return v(c),t;u=u.sibling}throw Error(l(188))}if(r.return!==i.return)r=c,i=u;else{for(var m=!1,y=c.child;y;){if(y===r){m=!0,r=c,i=u;break}if(y===i){m=!0,i=c,r=u;break}y=y.sibling}if(!m){for(y=u.child;y;){if(y===r){m=!0,r=u,i=c;break}if(y===i){m=!0,i=u,r=c;break}y=y.sibling}if(!m)throw Error(l(189))}}if(r.alternate!==i)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),j=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),be=Symbol.for("react.memo_cache_sentinel"),ye=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ye&&e[ye]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case Z:return"Suspense";case H:return"SuspenseList";case Be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case j:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case ie:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var Ee=Array.isArray,q=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},oe=[],ke=-1;function T(e){return{current:e}}function G(e){0>ke||(e.current=oe[ke],oe[ke]=null,ke--)}function K(e,t){ke++,oe[ke]=e.current,e.current=t}var J=T(null),se=T(null),xe=T(null),Oe=T(null);function kt(e,t){switch(K(xe,t),K(se,e),K(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fh(t),e=Hh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(J),K(J,e)}function Je(){G(J),G(se),G(xe)}function aa(e){e.memoizedState!==null&&K(Oe,e);var t=J.current,r=Hh(t,e.type);t!==r&&(K(se,e),K(J,r))}function pi(e){se.current===e&&(G(J),G(se)),Oe.current===e&&(G(Oe),Ya._currentValue=ee)}var Sc,hd;function Cr(e){if(Sc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Sc=t&&t[1]||"",hd=-1<r.stack.indexOf(`
|
||||
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||
`+Sc+e+hd}var wc=!1;function Bc(e,t){if(!e||wc)return"";wc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(F){var O=F}Reflect.construct(e,[],I)}else{try{I.call()}catch(F){O=F}e.call(I.prototype)}}else{try{throw Error()}catch(F){O=F}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(F){if(F&&O&&typeof F.stack=="string")return[F.stack,O.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),m=u[0],y=u[1];if(m&&y){var k=m.split(`
|
||||
`),R=y.split(`
|
||||
`);for(c=i=0;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;for(;c<R.length&&!R[c].includes("DetermineComponentFrameRoot");)c++;if(i===k.length||c===R.length)for(i=k.length-1,c=R.length-1;1<=i&&0<=c&&k[i]!==R[c];)c--;for(;1<=i&&0<=c;i--,c--)if(k[i]!==R[c]){if(i!==1||c!==1)do if(i--,c--,0>c||k[i]!==R[c]){var V=`
|
||||
`+k[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=i&&0<=c);break}}}finally{wc=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Cr(r):""}function Gb(e,t){switch(e.tag){case 26:case 27:case 5:return Cr(e.type);case 16:return Cr("Lazy");case 13:return e.child!==t&&t!==null?Cr("Suspense Fallback"):Cr("Suspense");case 19:return Cr("SuspenseList");case 0:case 15:return Bc(e.type,!1);case 11:return Bc(e.type.render,!1);case 1:return Bc(e.type,!0);case 31:return Cr("Activity");default:return""}}function md(e){try{var t="",r=null;do t+=Gb(e,r),r=e,e=e.return;while(e);return t}catch(i){return`
|
||||
Error generating stack: `+i.message+`
|
||||
`+i.stack}}var kc=Object.prototype.hasOwnProperty,_c=o.unstable_scheduleCallback,zc=o.unstable_cancelCallback,Vb=o.unstable_shouldYield,Zb=o.unstable_requestPaint,Ft=o.unstable_now,Xb=o.unstable_getCurrentPriorityLevel,vd=o.unstable_ImmediatePriority,pd=o.unstable_UserBlockingPriority,bi=o.unstable_NormalPriority,Ib=o.unstable_LowPriority,bd=o.unstable_IdlePriority,Yb=o.log,Wb=o.unstable_setDisableYieldValue,ia=null,Ht=null;function er(e){if(typeof Yb=="function"&&Wb(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(ia,e)}catch{}}var Lt=Math.clz32?Math.clz32:Jb,Kb=Math.log,Qb=Math.LN2;function Jb(e){return e>>>=0,e===0?32:31-(Kb(e)/Qb|0)|0}var yi=256,xi=262144,Si=4194304;function Rr(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function wi(e,t,r){var i=e.pendingLanes;if(i===0)return 0;var c=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~u,i!==0?c=Rr(i):(m&=y,m!==0?c=Rr(m):r||(r=y&~e,r!==0&&(c=Rr(r))))):(y=i&~u,y!==0?c=Rr(y):m!==0?c=Rr(m):r||(r=i&~e,r!==0&&(c=Rr(r)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,r=t&-t,u>=r||u===32&&(r&4194048)!==0)?t:c}function la(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $b(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yd(){var e=Si;return Si<<=1,(Si&62914560)===0&&(Si=4194304),e}function Tc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ca(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ey(e,t,r,i,c,u){var m=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var y=e.entanglements,k=e.expirationTimes,R=e.hiddenUpdates;for(r=m&~r;0<r;){var V=31-Lt(r),I=1<<V;y[V]=0,k[V]=-1;var O=R[V];if(O!==null)for(R[V]=null,V=0;V<O.length;V++){var F=O[V];F!==null&&(F.lane&=-536870913)}r&=~I}i!==0&&xd(e,i,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function xd(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Lt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|r&261930}function Sd(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-Lt(r),c=1<<i;c&t|e[i]&t&&(e[i]|=t),r&=~c}}function wd(e,t){var r=t&-t;return r=(r&42)!==0?1:Nc(r),(r&(e.suspendedLanes|t))!==0?0:r}function Nc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ec(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bd(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:c1(e.type))}function kd(e,t){var r=W.p;try{return W.p=e,t()}finally{W.p=r}}var tr=Math.random().toString(36).slice(2),mt="__reactFiber$"+tr,Nt="__reactProps$"+tr,nn="__reactContainer$"+tr,Ac="__reactEvents$"+tr,ty="__reactListeners$"+tr,oy="__reactHandles$"+tr,_d="__reactResources$"+tr,sa="__reactMarker$"+tr;function jc(e){delete e[mt],delete e[Nt],delete e[Ac],delete e[ty],delete e[oy]}function an(e){var t=e[mt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[nn]||r[mt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Xh(e);e!==null;){if(r=e[mt])return r;e=Xh(e)}return t}e=r,r=e.parentNode}return null}function ln(e){if(e=e[mt]||e[nn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ua(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function cn(e){var t=e[_d];return t||(t=e[_d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[sa]=!0}var zd=new Set,Td={};function Dr(e,t){sn(e,t),sn(e+"Capture",t)}function sn(e,t){for(Td[e]=t,e=0;e<t.length;e++)zd.add(t[e])}var ry=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u21
Line truncated
|
||||
`).replace(D2,"")}function Mh(e,t){return t=Oh(t),Oh(e)===t}function He(e,t,r,i,c,u){switch(r){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||fn(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&fn(e,""+i);break;case"className":ki(e,"class",i);break;case"tabIndex":ki(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ki(e,r,i);break;case"style":Md(e,i,u);break;case"data":if(t!=="object"){ki(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=zi(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(r==="formAction"?(t!=="input"&&He(e,t,"name",c.name,c,null),He(e,t,"formEncType",c.formEncType,c,null),He(e,t,"formMethod",c.formMethod,c,null),He(e,t,"formTarget",c.formTarget,c,null)):(He(e,t,"encType",c.encType,c,null),He(e,t,"method",c.method,c,null),He(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=zi(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(e.onclick=Co);break;case"onScroll":i!=null&&we("scroll",e);break;case"onScrollEnd":i!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}r=zi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""+i):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":i===!0?e.setAttribute(r,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,i):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(r,i):e.removeAttribute(r);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(r):e.setAttribute(r,i);break;case"popover":we("beforetoggle",e),we("toggle",e),Bi(e,"popover",i);break;case"xlinkActuate":jo(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":jo(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":jo(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":jo(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":jo(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":jo(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":jo(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":jo(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":jo(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Bi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=cy.get(r)||r,Bi(e,r,i))}}function Su(e,t,r,i,c,u){switch(r){case"style":Md(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof i=="string"?fn(e,i):(typeof i=="number"||typeof i=="bigint")&&fn(e,""+i);break;case"onScroll":i!=null&&we("scroll",e);break;case"onScrollEnd":i!=null&&we("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Co);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*//*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/const Tr="data-tabster",GS="data-tabster-dummy",tp=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,Zn={EscapeGroupper:1,Restorer:2,Deloser:3},$n={Source:0,Target:1},VS={Outside:2};/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/function so(o,n){var a;return(a=o.storageEntry(n))===null||a===void 0?void 0:a.tabster}function op(o,n,a){var l,s,f;const d=a||o._noop?void 0:n.getAttribute(Tr);let g=o.storageEntry(n),v;if(d)if(d!==((l=g==null?void 0:g.attr)===null||l===void 0?void 0:l.string))try{const x=JSON.parse(d);if(typeof x!="object")throw new Error(`Value is not a JSON object, got '${d}'.`);v={string:d,object:x}}catch{}else return;else if(!g)return;g||(g=o.storageEntry(n,!0)),g.tabster||(g.tabster={});const h=g.tabster||{},b=((s=g.attr)===null||s===void 0?void 0:s.object)||{},p=(v==null?void 0:v.object)||{};for(const x of Object.keys(b))if(!p[x]){if(x==="root"){const S=h[x];S&&o.root.onRoot(S,!0)}switch(x){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const S=h[x];S&&(S.dispose(),delete h[x]);break;case"observed":delete h[x],o.observedElement&&o.observedElement.onObservedElementUpdate(n);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete h[x];break}}for(const x of Object.keys(p)){const S=p.sys;switch(x){case"deloser":h.deloser?h.deloser.setProps(p.deloser):o.deloser&&(h.deloser=o.deloser.createDeloser(n,p.deloser));break;case"root":h.root?h.root.setProps(p.root):h.root=o.root.createRoot(n,p.root,S),o.root.onRoot(h.root);break;case"modalizer":{let w;const B=o.modalizer;if(h.modalizer){const A=p.modalizer,N=A.id;N&&((f=b==null?void 0:b.modalizer)===null||f===void 0?void 0:f.id)!==N?(h.modalizer.dispose(),w=A):h.modalizer.setProps(A)}else B&&(w=p.modalizer);B&&w&&(h.modalizer=B.createModalizer(n,w,S))}break;case"restorer":h.restorer?h.restorer.setProps(p.restorer):o.restorer&&p.restorer&&(h.restorer=o.restorer.createRestorer(n,p.restorer));break;case"focusable":h.focusable=p.focusable;break;case"groupper":h.groupper?h.groupper.setProps(p.groupper):o.groupper&&(h.groupper=o.groupper.createGroupper(n,p.groupper,S));break;case"mover":h.mover?h.mover.setProps(p.mover):o.mover&&(h.mover=o.mover.createMover(n,p.mover,S));break;case"observed":o.observedElement&&(h.observed=p.observed,o.observedElement.onObservedElementUpdate(n));break;case"uncontrolled":h.uncontrolled=p.uncontrolled;break;case"outline":o.outline&&(h.outline=p.outline);break;case"sys":h.sys=p.sys;break;default:console.error(`Unknown key '${x}' in data-tabster attribute value.`)}}v?g.attr=v:(Object.keys(h).length===0&&(delete g.tabster,delete g.attr),o.storageEntry(n,!1))}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/const ZS="tabster:focusin",XS="tabster:focusout",IS="tabster:movefocus",YS="tabster:modalizer:active",WS="tabster:modalizer:inactive",kf="tabster:restorer:restore-focus",KS="tabster:root:focus",QS="tabster:root:blur",JS=typeof CustomEvent<"u"?CustomEvent:function(){};class Ar extends JS{constructor(n,a){super(n,{bubbles:!0,cancelable:!0,composed:!0,detail:a}),this.details=a}}class $S extends Ar{constructor(n){super(ZS,n)}}class ew extends Ar{constructor(n){super(XS,n)}}class ni extends Ar{constructor(n){super(IS,n)}}class tw extends Ar{constructor(n){super(YS,n)}}class ow extends Ar{constructor(n){super(WS,n)}}class I1 extends Ar{constructor(){super(kf)}}class rw extends Ar{constructor(n){super(KS,n)}}class nw extends Ar{constructor(n){super(QS,n)}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/const aw=o=>new MutationObserver(o),iw=(o,n,a,l)=>o.createTreeWalker(n,a,l),lw=o=>o?o.parentNode:null,cw=o=>o?o.parentElement:null,sw=(o,n)=>!!(n&&(o!=null&&o.contains(n))),uw=o=>o.activeElement,fw=(o,n)=>o.querySelector(n),dw=(o,n)=>Array.prototype.slice.call(o.querySelectorAll(n),0),gw=(o,n)=>o.getElementById(n),hw=o=>(o==null?void 0:o.firstChild)||null,mw=o=>(o==null?void 0:o.lastChild)||null,vw=o=>(o==null?void 0:o.nextSibling)||null,pw=o=>(o==null?void 0:o.previousSibling)||null,bw=o=>(o==null?void 0:o.firstElementChild)||null,yw=o=>(o==null?void 0:o.lastElementChild)||null,xw=o=>(o==null?void 0:o.nextElementSibling)||null,Sw=o=>(o==null?void 0:o.previousElementSibling)||null,ww=(o,n)=>o.appendChild(n),Bw=(o,n,a)=>o.insertBefore(n,a),kw=o=>{var n;return((n=o.ownerDocument)===null||n===void 0?void 0:n.getSelection())||null},_w=(o,n)=>o.ownerDocument.getElementsByName(n),te={createMutationObserver:aw,createTreeWalker:iw,getParentNode:lw,getParentElement:cw,nodeContains:sw,getActiveElement:uw,querySelector:fw,querySelectorAll:dw,getElementById:gw,getFirstChild:hw,getLastChild:mw,getNextSibling:vw,getPreviousSibling:pw,getFirstElementChild:bw,getLastElementChild:yw,getNextElementSibling:xw,getPreviousElementSibling:Sw,appendChild:ww,insertBefore:Bw,getSelection:kw,getElementsByName:_w};function zw(o){for(const n of Object.keys(o))te[n]=o[n]}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/let _f,Tw=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),_f=!1}catch{_f=!0}const of=100;function rn(o){const n=o();let a=n.__tabsterInstanceContext;return a||(a={elementByUId:{},basics:{Promise:n.Promise||void 0,WeakRef:n.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},n.__tabsterInstanceContext=a),a}function Nw(o){const n=o.__tabsterInstanceContext;n&&(n.elementByUId={},delete n.WeakRef,n.containerBoundingRectCache={},n.containerBoundingRectCacheTimer&&o.clearTimeout(n.containerBoundingRectCacheTimer),n.fakeWeakRefsTimer&&o.clearTimeout(n.fakeWeakRefsTimer),n.fakeWeakRefs=[],delete o.__tabsterInstanceContext)}function Ew(o){const n=o.__tabsterInstanceContext;return new((n==null?void 0:n.basics.WeakMap)||WeakMap)}function Aw(o){return!!o.querySelector(tp)}class rp{constructor(n){this._target=n}deref(){return this._target}static cleanup(n,a){return n._target?a||!Yf(n._target.ownerDocument,n._target)?(delete n._target,!0):!1:!0}}class bo{constructor(n,a,l){const s=rn(n);let f;s.WeakRef?f=new s.WeakRef(a):(f=new rp(a),s.fakeWeakRefs.push(f)),this._ref=f,this._data=l}get(){const n=this._ref;let a;return n&&(a=n.deref(),a||delete this._ref),a}getData(){return this._data}}function np(o,n){const a=rn(o);a.fakeWeakRefs=a.fakeWeakRefs.filter(l=>!rp.cleanup(l,n))}function ap(o){const n=rn(o);n.fakeWeakRefsStarted||(n.fakeWeakRefsStarted=!0,n.WeakRef=Mw(n)),n.fakeWeakRefsTimer||(n.fakeWeakRefsTimer=o().setTimeout(()=>{n.fakeWeakRefsTimer=void 0,np(o),ap(o)},120*1e3))}function jw(o){const n=rn(o);n.fakeWeakRefsStarted=!1,n.fakeWeakRefsTimer&&(o().clearTimeout(n.fakeWeakRefsTimer),n.fakeWeakRefsTimer=void 0,n.fakeWeakRefs=[])}function ip(o,n,a){if(n.nodeType!==Node.ELEMENT_NODE)return;const l=_f?a:{acceptNode:a};return te.createTreeWalker(o,n,NodeFilter.SHOW_ELEMENT,l,!1)}function Cw(o){o.__shouldIgnoreFocus=!0}function lp(o){return!!o.__shouldIgnoreFocus}function Rw(o){const n=new Uint32Array(4);if(o.crypto&&o.crypto.getRandomValues)o.crypto.getRandomValues(n);else if(o.msCrypto&&o.msCrypto.getRandomValues)o.msCrypto.getRandomValues(n);else for(let l=0;l<n.length;l++)n[l]=4294967295*Math.random();const a=[];for(let l=0;l<n.length;l++)a.push(n[l].toString(36));return a.push("|"),a.push((++Tw).toString(36)),a.push("|"),a.push(Date.now().toString(36)),a.join("")}function Dw(o,n){const a=rn(o);let l=n.__tabsterElementUID;return l||(l=n.__tabsterElementUID=Rw(o())),!a.elementByUId[l]&&Yf(n.ownerDocument,n)&&(a.elementByUId[l]=new bo(o,n)),l}function Y1(o,n){const a=rn(o);for(const l of Object.keys(a.elementByUId)){const s=a.elementByUId[l],f=s&&s.get();f&&n&&!te.nodeContains(n,f)||delete a.elementByUId[l]}}function Yf(o,n){return te.nodeContains(o==null?void 0:o.body,n)}function Ow(o,n){const a=o.matches||o.matchesSelector||o.msMatchesSelector||o.webkitMatchesSelector;return a&&a.call(o,n)}function Mw(o){return o.basics.WeakRef}let qw=0;class Wf{constructor(n,a,l){const s=n.getWindow;this._tabster=n,this._element=new bo(s,a),this._props={...l},this.id="i"+ ++qw}getElement(){return this._element.get()}getProps(){return this._props}setProps(n){this._props={...n}}}class $l{constructor(n,a,l,s,f){var d;this._focusIn=b=>{if(this._fixedTarget){const x=this._fixedTarget.get();x&&en(x);return}const p=this.input;if(this.onFocusIn&&p){const x=b.relatedTarget;this.onFocusIn(this,this._isBackward(!0,p,x),x)}},this._focusOut=b=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const p=this.input;if(this.onFocusOut&&p){const x=b.relatedTarget;this.onFocusOut(this,this._isBackward(!1,p,x),x)}};const g=n(),v=g.document.createElement("i");v.tabIndex=0,v.setAttribute("role","none"),v.setAttribute(GS,""),v.setAttribute("aria-hidden","true");const h=v.style;h.position="fixed",h.width=h.height="1px",h.opacity="0.001",h.zIndex="-1",h.setProperty("content-visibility","hidden"),Cw(v),this.input=v,this.isFirst=l.isFirst,this.isOutside=a,this._isPhantom=(d=l.isPhantom)!==null&&d!==void 0?d:!1,this._fixedTarget=f,v.addEventListener("focusin",this._focusIn),v.addEventListener("focusout",this._focusOut),v.__tabsterDummyContainer=s,this._isPhantom&&(this._disposeTimer=g.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(g.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var n;this._clearDisposeTimeout&&this._clearDisposeTimeout();const a=this.input;a&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,a.removeEventListener("focusin",this._focusIn),a.removeEventListener("focusout",this._focusOut),delete a.__tabsterDummyContainer,(n=te.getParentNode(a))===null||n===void 0||n.removeChild(a))}setTopLeft(n,a){var l;const s=(l=this.input)===null||l===void 0?void 0:l.style;s&&(s.top=`${n}px`,s.left=`${a}px`)}_isBackward(n,a,l){return n&&!l?!this.isFirst:!!(l&&a.compareDocumentPosition(l)&Node.DOCUMENT_POSITILine truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/function up(o,n){return JSON.stringify(o)}function Uw(o,n){for(const a of Object.keys(n)){const l=n[a];l?o[a]=l:delete o[a]}}function Gw(o,n,a){let l;{const s=o.getAttribute(Tr);if(s)try{l=JSON.parse(s)}catch{}}l||(l={}),Uw(l,n),Object.keys(l).length>0?o.setAttribute(Tr,up(l)):o.removeAttribute(Tr)}class W1 extends ec{constructor(n,a,l,s){super(n,a,cp.Root,s,void 0,!0),this._onDummyInputFocus=f=>{var d;if(f.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const g=this._element.get();if(g){this._setFocused(!0);const v=this._tabster.focusedElement.getFirstOrLastTabbable(f.isFirst,{container:g,ignoreAccessibility:!0});if(v){en(v);return}}(d=f.input)===null||d===void 0||d.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=n,this._setFocused=l}}class Vw extends Wf{constructor(n,a,l,s,f){super(n,a,s),this._isFocused=!1,this._setFocused=h=>{var b;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===h)return;const p=this._element.get();p&&(h?(this._isFocused=!0,(b=this._dummyManager)===null||b===void 0||b.setTabbable(!1),p.dispatchEvent(new rw({element:p}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var x;delete this._setFocusedTimer,this._isFocused=!1,(x=this._dummyManager)===null||x===void 0||x.setTabbable(!0),p.dispatchEvent(new nw({element:p}))},0))},this._onFocusIn=h=>{const b=this._tabster.getParent,p=this._element.get();let x=h.composedPath()[0];do{if(x===p){this._setFocused(!0);return}x=x&&b(x)}while(x)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=l;const d=n.getWindow;this.uid=Dw(d,a),this._sys=f,(n.controlTab||n.rootDummyInputs)&&this.addDummyInputs();const v=d().document;v.addEventListener(yo,this._onFocusIn),v.addEventListener(si,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new W1(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var n;this._onDispose(this);const a=this._tabster.getWindow(),l=a.document;l.removeEventListener(yo,this._onFocusIn),l.removeEventListener(si,this._onFocusOut),this._setFocusedTimer&&(a.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(n=this._dummyManager)===null||n===void 0||n.dispose(),this._remove()}moveOutWithDefaultAction(n,a){const l=this._dummyManager;if(l)l.moveOutWithDefaultAction(n,a);else{const s=this.getElement();s&&W1.moveWithPhantomDummy(this._tabster,s,!0,n,a)}}_add(){}_remove(){}}class it{constructor(n,a){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var l;const s=this._win().document,f=s.body;if(f){this._autoRootUnwait(s);const d=this._autoRoot;if(d)return Gw(f,{root:d}),op(this._tabster,f),(l=so(this._tabster,f))===null||l===void 0?void 0:l.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,s.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=l=>{delete this._roots[l.id]},this._tabster=n,this._win=n.getWindow,this._autoRoot=a,n.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(n){n.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const n=this._win();this._autoRootUnwait(n.document),delete this._autoRoot,Object.keys(this._roots).forEach(a=>{this._roots[a]&&(this._roots[a].dispose(),delete this._roots[a])}),this.rootById={}}createRoot(n,a,l){const s=new Vw(this._tabster,n,this._onRootDispose,a,l);return this._roots[s.id]=s,this._forceDummy&&s.addDummyInputs(),s}addDummyInputs(){this._forceDummy=!0;const n=this._roots;for(const a of Object.keys(n))n[a].addDummyInputs()}static getRootByUId(n,a){const l=n().__tabsterInstance;return l&&l.root.rootById[a]}static getTabsterContext(n,a,l={}){var s,f,d,g;if(!a.ownerDocument)return;const{checkRtl:v,referenceElement:h}=l,b=n.getParent;n.drainInitQueue();let p,x,S,w,B=!1,A,N,D,j,L=h||a;const Z={};for(;L&&(!p||v);){const U=so(n,L);if(v&&D===void 0){const ce=L.dir;ce&&(D=ce.toLowerCase()==="rtl")}if(!U){L=b(L);continue}const ie=L.tagName;(U.uncontrolled||ie==="IFRAME"||ie==="WEBVIEW")&&n.focusable.isVisible(L)&&(j=L),!w&&(!((s=U.focusable)===null||s===void 0)&&s.excludeFromMover)&&!S&&(B=!0);const Be=U.modalizer,be=U.groupper,ye=U.mover;!x&&Be&&(x=Be),!S&&be&&(!x||Be)&&(x?(!be.isActive()&&be.getProps().tabbability&&x.userId!==((f=n.modalizer)===null||f===void 0?void 0:f.activeId)&&(x=void 0,S=be),N=be):S=be),!w&&ye&&(!x||Be)&&(!be||L!==a)&&L.contains(a)&&(w=ye,A=!!S&&S!==be),U.root&&(p=U.root),!((d=U.focusable)===null||d===void 0)&&d.ignoreKeydown&&Object.assign(Z,U.focusable.ignoreKeydown),L=b(L)}if(!p){const U=n.root;U._autoRoot&&!((g=a.ownerDocument)===null||g===void 0)&&g.body&&(p=U._autoRootCreate())}return S&&!w&&(A=!0),p?{root:p,modalizer:x,groupper:S,mover:w,groupperBeforeMover:A,modalizerInGroupper:N,rtl:v?!!D:void 0,uncontrolled:j,excludedFromMover:B,ignoreKeydown:U=>!!Z[U.key]}:void 0Line truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class fp{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(n){const a=this._callbacks;a.indexOf(n)<0&&a.push(n)}subscribeFirst(n){const a=this._callbacks,l=a.indexOf(n);l>=0&&a.splice(l,1),a.unshift(n)}unsubscribe(n){const a=this._callbacks.indexOf(n);a>=0&&this._callbacks.splice(a,1)}setVal(n,a){this._val!==n&&(this._val=n,this._callCallbacks(n,a))}getVal(){return this._val}trigger(n,a){this._callCallbacks(n,a)}_callCallbacks(n,a){this._callbacks.forEach(l=>l(n,a))}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class Zw{constructor(n){this._tabster=n}dispose(){}getProps(n){const a=so(this._tabster,n);return a&&a.focusable||{}}isFocusable(n,a,l,s){return Ow(n,tp)&&(a||n.tabIndex!==-1)?(l||this.isVisible(n))&&(s||this.isAccessible(n)):!1}isVisible(n){if(!n.ownerDocument||n.nodeType!==Node.ELEMENT_NODE||Lw(n))return!1;const a=n.ownerDocument.body.getBoundingClientRect();return!(a.width===0&&a.height===0)}isAccessible(n){var a;for(let l=n;l;l=te.getParentElement(l)){const s=so(this._tabster,l);if(this._isHidden(l)||!((a=s==null?void 0:s.focusable)===null||a===void 0?void 0:a.ignoreAriaDisabled)&&this._isDisabled(l))return!1}return!0}_isDisabled(n){return n.hasAttribute("disabled")}_isHidden(n){var a;const l=n.getAttribute("aria-hidden");return!!(l&&l.toLowerCase()==="true"&&!(!((a=this._tabster.modalizer)===null||a===void 0)&&a.isAugmented(n)))}findFirst(n,a){return this.findElement({...n},a)}findLast(n,a){return this.findElement({isBackward:!0,...n},a)}findNext(n,a){return this.findElement({...n},a)}findPrev(n,a){return this.findElement({...n,isBackward:!0},a)}findDefault(n,a){return this.findElement({...n,acceptCondition:l=>this.isFocusable(l,n.includeProgrammaticallyFocusable)&&!!this.getProps(l).isDefault},a)||null}findAll(n){return this._findElements(!0,n)||[]}findElement(n,a){const l=this._findElements(!1,n,a);return l&&l[0]}_findElements(n,a,l){var s,f,d;const{container:g,currentElement:v=null,includeProgrammaticallyFocusable:h,useActiveModalizer:b,ignoreAccessibility:p,modalizerId:x,isBackward:S,onElement:w}=a;l||(l={});const B=[];let{acceptCondition:A}=a;const N=!!A;if(!g)return null;A||(A=Z=>this.isFocusable(Z,h,!1,p));const D={container:g,modalizerUserId:x===void 0&&b?(s=this._tabster.modalizer)===null||s===void 0?void 0:s.activeId:x||((d=(f=it.getTabsterContext(this._tabster,g))===null||f===void 0?void 0:f.modalizer)===null||d===void 0?void 0:d.userId),from:v||g,isBackward:S,isFindAll:n,acceptCondition:A,hasCustomCondition:N,includeProgrammaticallyFocusable:h,ignoreAccessibility:p,cachedGrouppers:{},cachedRadioGroups:{}},j=ip(g.ownerDocument,g,Z=>this._acceptElement(Z,D));if(!j)return null;const L=Z=>{var H,U;const ie=(H=D.foundElement)!==null&&H!==void 0?H:D.foundBackward;return ie&&B.push(ie),n?ie&&(D.found=!1,delete D.foundElement,delete D.foundBackward,delete D.fromCtx,D.from=ie,w&&!w(ie))?!1:!!(ie||Z):(ie&&l&&(l.uncontrolled=(U=it.getTabsterContext(this._tabster,ie))===null||U===void 0?void 0:U.uncontrolled),!!(Z&&!ie))};if(v||(l.outOfDOMOrder=!0),v&&te.nodeContains(g,v))j.currentNode=v;else if(S){const Z=sp(g);if(!Z)return null;if(this._acceptElement(Z,D)===NodeFilter.FILTER_ACCEPT&&!L(!0))return D.skippedFocusable&&(l.outOfDOMOrder=!0),B;j.currentNode=Z}do S?j.previousNode():j.nextNode();while(L());return D.skippedFocusable&&(l.outOfDOMOrder=!0),B.length?B:null}_acceptElement(n,a){var l,s,f;if(a.found)return NodeFilter.FILTER_ACCEPT;const d=a.foundBackward;if(d&&(n===d||!te.nodeContains(d,n)))return a.found=!0,a.foundElement=d,NodeFilter.FILTER_ACCEPT;const g=a.container;if(n===g)return NodeFilter.FILTER_SKIP;if(!te.nodeContains(g,n)||Kf(n)||te.nodeContains(a.rejectElementsFrom,n))return NodeFilter.FILTER_REJECT;const v=a.currentCtx=it.getTabsterContext(this._tabster,n);if(!v)return NodeFilter.FILTER_SKIP;if(lp(n))return this.isFocusable(n,void 0,!0,!0)&&(a.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!a.hasCustomCondition&&(n.tagName==="IFRAME"||n.tagName==="WEBVIEW"))return this.isVisible(n)&&((l=v.modalizer)===null||l===void 0?void 0:l.userId)===((s=this._tabster.modalizer)===null||s===void 0?void 0:s.activeId)?(a.found=!0,a.rejectElementsFrom=a.foundElement=n,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!a.ignoreAccessibility&&!this.isAccessible(n))return this.isFocusable(n,!1,!0,!0)&&(a.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let h,b=a.fromCtx;b||(b=a.fromCtx=it.getTabsterContext(this._tabster,a.from));const p=b==null?void 0:b.mover;let x=v.groupper,S=v.mover;if(h=(f=this._tabster.modalizer)===null||f===void 0?void 0:f.acceptElement(n,a),h!==void 0&&(a.skippedFocusable=!0),h===void 0&&(x||S||p)){const w=x==null?void 0:x.getElement(),B=p==null?void 0:p.getElement();let A=S==null?void 0:S.getElement();if(A&&te.nodeContains(B,A)&&te.nodeContains(g,B)&&(!w||!S||te.nodeContains(B,w))&&(S=p,A=B),w){if(w===g||!te.nodeContains(g,w))x=void 0;else if(!te.nodeContains(w,n))return NodeFilter.FILTER_REJECT}if(A){if(!te.nodeContains(g,A))S=void 0;else if(!te.nodeContains(A,n))return NodeFilter.FILTER_REJECT}x&&S&&(A&&w&&!te.nodeContains(w,A)?S=void 0:x=void 0),x&&(h=x.acceptElement(n,a)),S&&(h=S.acceptElement(n,a))}if(h===void 0&&(h=a.acceptCondition(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,h===NodeFilter.FILTER_SKIP&&this.isFocusable(n,!1,!0,!0)&&(a.skippedFocusable=!0)),h===NodeFilter.FILTER_ACCEPT&&!a.found){if(!a.isFindAll&&zf(n)&&!n.checked){const w=n.name;let B=a.cachedRadioGroups[w];if(B||(B=Pw(n),B&&(a.cachedRadioGroups[w]=B)),B!=null&&B.checked&&B.checked!==n)return NoLine truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/const dp={Tab:"Tab",Escape:"Escape"};/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/function Xw(o,n){var a;const l=o.getParent;let s=n;do{const f=(a=so(o,s))===null||a===void 0?void 0:a.uncontrolled;if(f&&o.uncontrolled.isUncontrolledCompletely(s,!!f.completely))return s;s=l(s)}while(s)}const K1={[Zn.Restorer]:0,[Zn.Deloser]:1,[Zn.EscapeGroupper]:2};class ut extends fp{constructor(n,a){super(),this._init=()=>{const l=this._win(),s=l.document;s.addEventListener(yo,this._onFocusIn,!0),s.addEventListener(si,this._onFocusOut,!0),l.addEventListener("keydown",this._onKeyDown,!0);const f=te.getActiveElement(s);f&&f!==s.body&&this._setFocusedElement(f),this.subscribe(this._onChanged)},this._onFocusIn=l=>{const s=l.composedPath()[0];s&&this._setFocusedElement(s,l.detail.relatedTarget,l.detail.isFocusedProgrammatically)},this._onFocusOut=l=>{var s;this._setFocusedElement(void 0,(s=l.detail)===null||s===void 0?void 0:s.originalEvent.relatedTarget)},this._validateFocusedElement=l=>{},this._onKeyDown=l=>{if(l.key!==dp.Tab||l.ctrlKey)return;const s=this.getVal();if(!s||!s.ownerDocument||s.contentEditable==="true")return;const f=this._tabster,d=f.controlTab,g=it.getTabsterContext(f,s);if(!g||g.ignoreKeydown(l))return;const v=l.shiftKey,h=ut.findNextTabbable(f,g,void 0,s,void 0,v,!0),b=g.root.getElement();if(!b)return;const p=h==null?void 0:h.element,x=Xw(f,s);if(p){const S=h.uncontrolled;if(g.uncontrolled||te.nodeContains(S,s)){if(!h.outOfDOMOrder&&S===g.uncontrolled||x&&!te.nodeContains(x,p))return;ec.addPhantomDummyWithTarget(f,s,v,p);return}if(S&&f.focusable.isVisible(S)||p.tagName==="IFRAME"&&f.focusable.isVisible(p)){b.dispatchEvent(new ni({by:"root",owner:b,next:p,relatedEvent:l}))&&ec.moveWithPhantomDummy(f,S??p,!1,v,l);return}(d||h!=null&&h.outOfDOMOrder)&&b.dispatchEvent(new ni({by:"root",owner:b,next:p,relatedEvent:l}))&&(l.preventDefault(),l.stopImmediatePropagation(),en(p))}else!x&&b.dispatchEvent(new ni({by:"root",owner:b,next:null,relatedEvent:l}))&&g.root.moveOutWithDefaultAction(v,l)},this._onChanged=(l,s)=>{var f,d;if(l)l.dispatchEvent(new $S(s));else{const g=(f=this._lastVal)===null||f===void 0?void 0:f.get();if(g){const v={...s},h=it.getTabsterContext(this._tabster,g),b=(d=h==null?void 0:h.modalizer)===null||d===void 0?void 0:d.userId;b&&(v.modalizerId=b),g.dispatchEvent(new ew(v))}}},this._tabster=n,this._win=a,n.queueInit(this._init)}dispose(){super.dispose();const n=this._win(),a=n.document;a.removeEventListener(yo,this._onFocusIn,!0),a.removeEventListener(si,this._onFocusOut,!0),n.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const l=this._asyncFocus;l&&(n.clearTimeout(l.timeout),delete this._asyncFocus),delete ut._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(n,a){var l,s;let f=ut._lastResetElement,d=f&&f.get();d&&te.nodeContains(a,d)&&delete ut._lastResetElement,d=(s=(l=n._nextVal)===null||l===void 0?void 0:l.element)===null||s===void 0?void 0:s.get(),d&&te.nodeContains(a,d)&&delete n._nextVal,f=n._lastVal,d=f&&f.get(),d&&te.nodeContains(a,d)&&delete n._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var n;let a=(n=this._lastVal)===null||n===void 0?void 0:n.get();return(!a||a&&!Yf(a.ownerDocument,a))&&(this._lastVal=a=void 0),a}focus(n,a,l,s){return this._tabster.focusable.isFocusable(n,a,!1,l)?(n.focus({preventScroll:s}),!0):!1}focusDefault(n){const a=this._tabster.focusable.findDefault({container:n});return a?(this._tabster.focusedElement.focus(a),!0):!1}getFirstOrLastTabbable(n,a){var l;const{container:s,ignoreAccessibility:f}=a;let d;if(s){const g=it.getTabsterContext(this._tabster,s);g&&(d=(l=ut.findNextTabbable(this._tabster,g,s,void 0,void 0,!n,f))===null||l===void 0?void 0:l.element)}return d&&!te.nodeContains(s,d)&&(d=void 0),d||void 0}_focusFirstOrLast(n,a){const l=this.getFirstOrLastTabbable(n,a);return l?(this.focus(l,!1,!0),!0):!1}focusFirst(n){return this._focusFirstOrLast(!0,n)}focusLast(n){return this._focusFirstOrLast(!1,n)}resetFocus(n){if(!this._tabster.focusable.isVisible(n))return!1;if(this._tabster.focusable.isFocusable(n,!0,!0,!0))this.focus(n);else{const a=n.getAttribute("tabindex"),l=n.getAttribute("aria-hidden");n.tabIndex=-1,n.setAttribute("aria-hidden","true"),ut._lastResetElement=new bo(this._win,n),this.focus(n,!0,!0),this._setOrRemoveAttribute(n,"tabindex",a),this._setOrRemoveAttribute(n,"aria-hidden",l)}return!0}requestAsyncFocus(n,a,l){const s=this._tabster.getWindow(),f=this._asyncFocus;if(f){if(K1[n]>K1[f.source])return;s.clearTimeout(f.timeout)}this._asyncFocus={source:n,callback:a,timeout:s.setTimeout(()=>{this._asyncFocus=void 0,a()},l)}}cancelAsyncFocus(n){const a=this._asyncFocus;(a==null?void 0:a.source)===n&&(this._tabster.getWindow().clearTimeout(a.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(n,a,l){l===null?n.removeAttribute(a):n.setAttribute(a,l)}_setFocusedElement(n,a,l){var s,f;if(this._tabster._noop)return;const d={relatedTarget:a};if(n){const v=(s=ut._lastResetElement)===null||s===void 0?void 0:s.get();if(ut._lastResetELine truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class Iw extends fp{constructor(n){super(),this._onChange=a=>{this.setVal(a,void 0)},this._keyborg=Xf(n()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),If(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(n){var a;(a=this._keyborg)===null||a===void 0||a.setVal(n)}isNavigatingWithKeyboard(){var n;return!!(!((n=this._keyborg)===null||n===void 0)&&n.isNavigatingWithKeyboard())}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/let Yw=0;const nf="aria-hidden";class Ww extends ec{constructor(n,a,l){super(a,n,cp.Modalizer,l),this._setHandlers((s,f)=>{var d,g;const v=n.get(),h=v&&((d=it.getRoot(a,v))===null||d===void 0?void 0:d.getElement()),b=s.input;let p;if(h&&b){const x=Kf(b),S=it.getTabsterContext(a,x||b);S&&(p=(g=ut.findNextTabbable(a,S,h,b,void 0,f,!0))===null||g===void 0?void 0:g.element),p&&en(p)}})}}class Kw extends Wf{constructor(n,a,l,s,f,d){super(n,a,s),this._wasFocused=0,this.userId=s.id,this._onDispose=l,this._activeElements=d,n.controlTab||(this.dummyManager=new Ww(this._element,n,f))}makeActive(n){if(this._isActive!==n){this._isActive=n;const a=this.getElement();if(a){const l=this._activeElements,s=l.map(f=>f.get()).indexOf(a);n?s<0&&l.push(new bo(this._tabster.getWindow,a)):s>=0&&l.splice(s,1)}this._dispatchEvent(n)}}focused(n){return n||(this._wasFocused=++Yw),this._wasFocused}setProps(n){n.id&&(this.userId=n.id),this._props={...n}}dispose(){var n;this.makeActive(!1),this._onDispose(this),(n=this.dummyManager)===null||n===void 0||n.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(n){return te.nodeContains(this.getElement(),n)}findNextTabbable(n,a,l,s){var f,d;if(!this.getElement())return null;const v=this._tabster;let h=null,b=!1,p;const x=n&&((f=it.getRoot(v,n))===null||f===void 0?void 0:f.getElement());if(x){const S={container:x,currentElement:n,referenceElement:a,ignoreAccessibility:s,useActiveModalizer:!0},w={};h=v.focusable[l?"findPrev":"findNext"](S,w),!h&&this._props.isTrapped&&(!((d=v.modalizer)===null||d===void 0)&&d.activeId)?(h=v.focusable[l?"findLast":"findFirst"]({container:x,ignoreAccessibility:s,useActiveModalizer:!0},w),h===null&&(h=n),b=!0):b=!!w.outOfDOMOrder,p=w.uncontrolled}return{element:h,uncontrolled:p,outOfDOMOrder:b}}_dispatchEvent(n,a){const l=this.getElement();let s=!1;if(l){const f=a?this._activeElements.map(d=>d.get()):[l];for(const d of f)if(d){const g={id:this.userId,element:l},v=n?new tw(g):new ow(g);d.dispatchEvent(v),v.defaultPrevented&&(s=!0)}}return s}_remove(){}}class Qw{constructor(n,a,l){this._onModalizerDispose=f=>{const d=f.id,g=f.userId,v=this._parts[g];if(delete this._modalizers[d],v&&(delete v[d],Object.keys(v).length===0)){delete this._parts[g];const h=this._activationHistory,b=[];let p;for(let x=h.length;x--;){const S=h[x];S!==g&&S!==p&&(p=S,(S||b.length>0)&&b.unshift(S))}if(this._activationHistory=b,this.activeId===g){const x=b[0],S=x?Object.values(this._parts[x])[0]:void 0;this.setActive(S)}}},this._onKeyDown=f=>{var d;if(f.key!==dp.Escape)return;const g=this._tabster,v=g.focusedElement.getFocusedElement();if(v){const h=it.getTabsterContext(g,v),b=h==null?void 0:h.modalizer;if(h&&!h.groupper&&(b!=null&&b.isActive())&&!h.ignoreKeydown(f)){const p=b.userId;if(p){const x=this._parts[p];if(x){const S=Object.keys(x).map(w=>{var B;const A=x[w],N=A.getElement();let D;return N&&(D=(B=so(g,N))===null||B===void 0?void 0:B.groupper),A&&N&&D?{el:N,focusedSince:A.focused(!0)}:{focusedSince:0}}).filter(w=>w.focusedSince>0).sort((w,B)=>w.focusedSince>B.focusedSince?-1:w.focusedSince<B.focusedSince?1:0);if(S.length){const w=S[0].el;w&&((d=g.groupper)===null||d===void 0||d.handleKeyPress(w,f,!0))}}}}}},this._onFocus=(f,d)=>{var g;const v=this._tabster,h=f&&it.getTabsterContext(v,f);if(!h||!f)return;const b=this._augMap;for(let w=f;w;w=te.getParentElement(w))b.has(w)&&(b.delete(w),rf(v,w,nf));let p=h.modalizer;const x=so(v,f),S=x==null?void 0:x.modalizer;if(S&&(S.focused(),S.userId===this.activeId&&x.groupper)){const w=v.getParent(f),B=w&&((g=it.getTabsterContext(v,w))===null||g===void 0?void 0:g.modalizer);if(B)p=B;else{this.setActive(void 0);return}}if(p==null||p.focused(),(p==null?void 0:p.userId)===this.activeId){this.currentIsOthersAccessible=p==null?void 0:p.getProps().isOthersAccessible;return}if(d.isFocusedProgrammatically||this.currentIsOthersAccessible||p!=null&&p.getProps().isAlwaysAccessible)this.setActive(p);else{const w=this._win();w.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=w.setTimeout(()=>this._restoreModalizerFocus(f),100)}},this._tabster=n,this._win=n.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=a,this._accessibleCheck=l,this._activationHistory=[],this.activeElements=[],n.controlTab||n.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),n.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const n=this._win();n.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(a=>{this._modalizers[a]&&(this._modalizers[a].dispose(),delete this._modalizers[a])}),n.clearTimeout(this._restoreModalizerFocusTimer),n.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizerLine truncated
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/function Jw(o,n,a,l){if(typeof MutationObserver>"u")return()=>{};const s=n.getWindow;let f;const d=b=>{var p,x,S,w,B;const A=new Set;for(const N of b){const D=N.target,j=N.removedNodes,L=N.addedNodes;if(N.type==="attributes")N.attributeName===Tr&&(A.has(D)||a(n,D));else{for(let Z=0;Z<j.length;Z++){const H=j[Z];A.add(H),g(H,!0),(x=(p=n._dummyObserver).domChanged)===null||x===void 0||x.call(p,D)}for(let Z=0;Z<L.length;Z++)g(L[Z]),(w=(S=n._dummyObserver).domChanged)===null||w===void 0||w.call(S,D)}}A.clear(),(B=n.modalizer)===null||B===void 0||B.hiddenUpdate()};function g(b,p){f||(f=rn(s).elementByUId),v(b,p);const x=ip(o,b,S=>v(S,p));if(x)for(;x.nextNode(););}function v(b,p){var x;if(!b.getAttribute)return NodeFilter.FILTER_SKIP;const S=b.__tabsterElementUID;return S&&f&&(p?delete f[S]:(x=f[S])!==null&&x!==void 0||(f[S]=new bo(s,b))),(so(n,b)||b.hasAttribute(Tr))&&a(n,b,p),NodeFilter.FILTER_SKIP}const h=te.createMutationObserver(d);return l&&g(s().document.body),h.observe(o,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Tr]}),()=>{h.disconnect()}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class $w{constructor(n){this._isUncontrolledCompletely=n}isUncontrolledCompletely(n,a){var l;const s=(l=this._isUncontrolledCompletely)===null||l===void 0?void 0:l.call(this,n,a);return s===void 0?a:s}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class e4 extends Wf{constructor(n,a,l){var s;if(super(n,a,l),this._hasFocus=!1,this._onFocusOut=f=>{var d;const g=(d=this._element)===null||d===void 0?void 0:d.get();g&&f.relatedTarget===null&&g.dispatchEvent(new I1),g&&!te.nodeContains(g,f.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===$n.Source){const f=(s=this._element)===null||s===void 0?void 0:s.get();f==null||f.addEventListener("focusout",this._onFocusOut),f==null||f.addEventListener("focusin",this._onFocusIn),this._hasFocus=te.nodeContains(f,f&&te.getActiveElement(f.ownerDocument))}}dispose(){var n;if(this._props.type===$n.Source){const a=(n=this._element)===null||n===void 0?void 0:n.get();a==null||a.removeEventListener("focusout",this._onFocusOut),a==null||a.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new I1)}}}class mc{constructor(n){this._stack=[],this._getWindow=n}push(n){var a;((a=this._stack[this._stack.length-1])===null||a===void 0?void 0:a.get())!==n&&(this._stack.length>mc.DEPTH&&this._stack.shift(),this._stack.push(new bo(this._getWindow,n)))}pop(n=()=>!0){var a;const l=this._getWindow().document;for(let s=this._stack.length-1;s>=0;s--){const f=(a=this._stack.pop())===null||a===void 0?void 0:a.get();if(f&&te.nodeContains(l.body,te.getParentElement(f))&&n(f))return f}}}mc.DEPTH=10;class t4{constructor(n){this._onRestoreFocus=a=>{var l,s;this._focusedElementState.cancelAsyncFocus(Zn.Restorer);const f=a.composedPath()[0];if(f){const d=(s=(l=so(this._tabster,f))===null||l===void 0?void 0:l.restorer)===null||s===void 0?void 0:s.getProps().id;this._focusedElementState.requestAsyncFocus(Zn.Restorer,()=>this._restoreFocus(f,d),0)}},this._onFocusIn=a=>{var l;if(!a)return;const s=so(this._tabster,a);((l=s==null?void 0:s.restorer)===null||l===void 0?void 0:l.getProps().type)===$n.Target&&this._history.push(a)},this._restoreFocus=(a,l)=>{var s;const f=this._getWindow().document;if(te.getActiveElement(f)!==f.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&te.nodeContains(f.body,a))return;const d=g=>{var v,h;const b=(h=(v=so(this._tabster,g))===null||v===void 0?void 0:v.restorer)===null||h===void 0?void 0:h.getProps();return b?b.id:null};(s=this._history.pop(g=>l===d(g)))===null||s===void 0||s.focus()},this._tabster=n,this._getWindow=n.getWindow,this._getWindow().addEventListener(kf,this._onRestoreFocus),this._history=new mc(this._getWindow),this._keyboardNavState=n.keyboardNavigation,this._focusedElementState=n.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const n=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(Zn.Restorer),n.removeEventListener(kf,this._onRestoreFocus)}createRestorer(n,a){const l=new e4(this._tabster,n,a);return a.type===$n.Target&&te.getActiveElement(n.ownerDocument)===n&&this._history.push(n),l}}/*!
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/class o4{constructor(n){this.keyboardNavigation=n.keyboardNavigation,this.focusedElement=n.focusedElement,this.focusable=n.focusable,this.root=n.root,this.uncontrolled=n.uncontrolled,this.core=n}}class r4{constructor(n,a){var l,s;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.7.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=Ew(n),this._win=n;const f=this.getWindow;a!=null&&a.DOMAPI&&zw({...a.DOMAPI}),this.keyboardNavigation=new Iw(f),this.focusedElement=new ut(this,f),this.focusable=new Zw(this),this.root=new it(this,a==null?void 0:a.autoRoot),this.uncontrolled=new $w((a==null?void 0:a.checkUncontrolledCompletely)||(a==null?void 0:a.checkUncontrolledTrappingFocus)),this.controlTab=(l=a==null?void 0:a.controlTab)!==null&&l!==void 0?l:!0,this.rootDummyInputs=!!(a!=null&&a.rootDummyInputs),this._dummyObserver=new Fw(f),this.getParent=(s=a==null?void 0:a.getParent)!==null&&s!==void 0?s:te.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:d=>{if(!this._unobserve){const g=f().document;this._unobserve=Jw(g,this,op,d)}}},ap(f),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(n){var a;n&&(this.getParent=(a=n.getParent)!==null&&a!==void 0?a:this.getParent)}createTabster(n,a){const l=new o4(this);return n||this._wrappers.add(l),this._mergeProps(a),l}disposeTabster(n,a){a?this._wrappers.clear():this._wrappers.delete(n),this._wrappers.size===0&&this.dispose()}dispose(){var n,a,l,s,f,d,g,v;this.internal.stopObserver();const h=this._win;h==null||h.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],h&&this._forgetMemorizedTimer&&(h.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(n=this.outline)===null||n===void 0||n.dispose(),(a=this.crossOrigin)===null||a===void 0||a.dispose(),(l=this.deloser)===null||l===void 0||l.dispose(),(s=this.groupper)===null||s===void 0||s.dispose(),(f=this.mover)===null||f===void 0||f.dispose(),(d=this.modalizer)===null||d===void 0||d.dispose(),(g=this.observedElement)===null||g===void 0||g.dispose(),(v=this.restorer)===null||v===void 0||v.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),jw(this.getWindow),Y1(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),h&&(Nw(h),delete h.__tabsterInstance,delete this._win)}storageEntry(n,a){const l=this._storage;let s=l.get(n);return s?a===!1&&Object.keys(s).length===0&&l.delete(n):a===!0&&(s={},l.set(n,s)),s}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let n=this._forgetMemorizedElements.shift();n;n=this._forgetMemorizedElements.shift())Y1(this.getWindow,n),ut.forgetMemorized(this.focusedElement,n)},0),np(this.getWindow,!0)))}queueInit(n){var a;this._win&&(this._initQueue.push(n),this._initTimer||(this._initTimer=(a=this._win)===null||a===void 0?void 0:a.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const n=this._initQueue;this._initQueue=[],n.forEach(a=>a())}}function n4(o,n){let a=c4(o);return a?a.createTabster(!1,n):(a=new r4(o,n),o.__tabsterInstance=a,a.createTabster())}function a4(o,n,a){const l=o.core;return l.modalizer||(l.modalizer=new Qw(l,n,a)),l.modalizer}function i4(o){const n=o.core;return n.restorer||(n.restorer=new t4(n)),n.restorer}function l4(o,n){o.core.disposeTabster(o,n)}function c4(o){return o.__tabsterInstance}const s4=o=>o;function u4(o){const n=(o==null?void 0:o.defaultView)||void 0,a=n==null?void 0:n.__tabsterShadowDOMAPI;if(n)return n4(n,{autoRoot:{},controlTab:!1,getParent:ES,checkUncontrolledCompletely:l=>{var s;return((s=l.firstElementChild)===null||s===void 0?void 0:s.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:a})}function Qf(o=s4){const{targetDocument:n}=Bt(),a=_.useRef(null);return Tt(()=>{const l=u4(n);if(l)return a.current=o(l),()=>{l4(l),a.current=null}},[n,o]),a}const Q1=o=>{Qf();const n=up(o);return _.useMemo(()=>({[Tr]:n}),[n])},f4=()=>{const o=Qf(),{targetDocument:n}=Bt(),a=_.useCallback((g,v)=>{var h;return g&&((h=o.current)===null||h===void 0?void 0:h.focusable.findAll({container:g,acceptCondition:v}))||[]},[o]),l=_.useCallback(g=>{var v;return g&&((v=o.current)===null||v===void 0?void 0:v.focusable.findFirst({container:g}))},[o]),s=_.useCallback(g=>{var v;return g&&((v=o.current)===null||v===void 0?void 0:v.focusable.findLast({container:g}))},[o]),f=_.useCallback((g,v={})=>{if(!o.current||!n||!g)return null;const{container:h=n.body}=v;return o.current.focusable.findNext({currentElement:g,container:h})},[o,n]),d=_.useCallback((g,v={})=>{if(!o.current||!n||!g)returLine truncated
|
||||
`,"Motion factories require a single child element to be passed. ","That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."].join("");function Up(o,n=!0){const a=_.useRef(null);_.useEffect(()=>{},[n]);try{const l=_.Children.only(o);if(_.isValidElement(l))return[_.cloneElement(l,{ref:li(a,Gf(l))}),a]}catch{}throw new Error(m6)}const Gp=_.createContext(void 0);Gp.Provider;const Vp=()=>{var o;return(o=_.useContext(Gp))!==null&&o!==void 0?o:"default"},v6=Symbol("MOTION_DEFINITION");function Bm(o){return Object.assign(a=>{"use no memo";const{children:l,imperativeRef:s,onMotionFinish:f,onMotionStart:d,onMotionCancel:g,...v}=a,h=v,[b,p]=Up(l),x=Lp(s),S=Vp()==="skip",w=_.useRef({skipMotions:S,params:h}),B=Hp(),A=Pp(),N=Qe(()=>{d==null||d(null)}),D=Qe(()=>{f==null||f(null)}),j=Qe(()=>{g==null||g(null)});return Tt(()=>{w.current={skipMotions:S,params:h}}),Tt(()=>{const L=p.current;if(L){const Z=typeof o=="function"?o({element:L,...w.current.params}):o;N();const H=B(L,Z,{isReducedMotion:A()});return x.current=H,H.setMotionEndCallbacks(D,j),w.current.skipMotions&&H.finish(),()=>{H.cancel()}}},[B,p,x,A,D,N,j]),b},{[v6]:typeof o=="function"?o:()=>o})}const Zp=_.createContext(void 0);Zp.Provider;function p6(o=!1,n=!1){const a=_.useRef(n?o:!0),l=SS(),s=_.useCallback(f=>{a.current!==f&&(a.current=f,l())},[l]);return _.useEffect(()=>{o&&(a.current=o)}),[o||a.current,s]}const Xp=Symbol("PRESENCE_MOTION_DEFINITION"),b6=Symbol.for("interruptablePresence");function $f(o){return Object.assign(n=>{"use no memo";const l={..._.useContext(Zp),...n},s=Vp()==="skip",{appear:f,children:d,imperativeRef:g,onExit:v,onMotionFinish:h,onMotionStart:b,onMotionCancel:p,visible:x,unmountOnExit:S,...w}=l,B=w,[A,N]=p6(x,S),[D,j]=Up(d,A),L=Lp(g),Z=_.useRef({appear:f,params:B,skipMotions:s}),H=Hp(),U=xS(),ie=Pp(),Be=Qe(ce=>{b==null||b(null,{direction:ce})}),be=Qe(ce=>{h==null||h(null,{direction:ce}),ce==="exit"&&S&&(N(!1),v==null||v())}),ye=Qe(ce=>{p==null||p(null,{direction:ce})});return Tt(()=>{Z.current={appear:f,params:B,skipMotions:s}}),Tt(()=>{const ce=j.current;if(!ce)return;let pe;function Q(){pe&&(q&&pe.isRunning()||(pe.cancel(),L.current=void 0))}const Ee=typeof o=="function"?o({element:ce,...Z.current.params}):o,q=Ee[b6];if(q&&(pe=L.current,pe&&pe.isRunning()))return pe.reverse(),Q;const W=x?Ee.enter:Ee.exit,ee=x?"enter":"exit",oe=!Z.current.appear&&U,ke=Z.current.skipMotions;return oe||Be(ee),pe=H(ce,W,{isReducedMotion:ie()}),oe?(pe.finish(),Q):(L.current=pe,pe.setMotionEndCallbacks(()=>be(ee),()=>ye(ee)),ke&&pe.finish(),Q)},[H,j,L,ie,be,Be,ye,x]),_.useEffect(()=>{if(S&&!A){var ce;(ce=L.current)===null||ce===void 0||ce.dispose()}},[L,S,A]),A?D:null},{[Xp]:typeof o=="function"?o:()=>o},{In:Bm(typeof o=="function"?(...n)=>o(...n).enter:o.enter),Out:Bm(typeof o=="function"?(...n)=>o(...n).exit:o.exit)})}function y6(o,n){return l=>o({...n,...l})}function mi(o,n){const a=o[Xp],l=y6(a,n);return $f(l)}const ed=_.createContext(void 0);function x6(){return _.useContext(ed)}const Ip=_.forwardRef((o,n)=>_.createElement(ed.Provider,{value:n},o.children));Ip.displayName="MotionRefForwarder";const Yp=o=>_.createElement(ed.Provider,{value:void 0},o.children);Yp.displayName="MotionRefForwarderReset";function Wp(o,n){const{as:a,children:l,...s}=o??{};if(o===null){const d=!n.defaultProps.visible&&n.defaultProps.unmountOnExit,g=(v,h)=>d?null:_.createElement(_.Fragment,null,h.children);return{[Jl]:g,[Jn]:n.elementType}}const f={...n.defaultProps,...s,[Jn]:n.elementType};return typeof l=="function"&&(f[Jl]=l),f}const oc=({direction:o,duration:n,easing:a=ht.curveLinear,delay:l=0,outOpacity:s=0,inOpacity:f=1})=>{const d=[{opacity:s},{opacity:f}];return o==="exit"&&d.reverse(),{keyframes:d,duration:n,easing:a,delay:l,fill:"both"}},S6=({duration:o=ht.durationNormal,easing:n=ht.curveEasyEase,delay:a=0,exitDuration:l=o,exitEasing:s=n,exitDelay:f=a,outOpacity:d=0,inOpacity:g=1})=>({enter:oc({direction:"enter",duration:o,easing:n,delay:a,outOpacity:d,inOpacity:g}),exit:oc({direction:"exit",duration:l,easing:s,delay:f,outOpacity:d,inOpacity:g})}),Kp=$f(S6);mi(Kp,{duration:ht.durationFast});const w6=mi(Kp,{duration:ht.durationGentle}),km=({direction:o,duration:n,easing:a=ht.curveLinear,delay:l=0,outScale:s=.9,inScale:f=1})=>{const d=[{scale:s},{scale:f}];return o==="exit"&&d.reverse(),{keyframes:d,duration:n,easing:a,delay:l}},B6=({duration:o=ht.durationGentle,easing:n=ht.curveDecelerateMax,delay:a=0,exitDuration:l=ht.durationNormal,exitEasing:s=ht.curveAccelerateMax,exitDelay:f=a,outScale:d=.9,inScale:g=1,animateOpacity:v=!0})=>{const h=[km({direction:"enter",duration:o,easing:n,delay:a,outScale:d,inScale:g})],b=[km({direction:"exit",duration:l,easing:s,delay:f,outScale:d,inScale:g})];return v&&(h.push(oc({direction:"enter",duration:o,easing:n,delay:a})),b.push(oc({direction:"exit",duration:l,easing:s,delay:f}))),{enter:h,exit:b}},td=$f(B6);mi(td,{duration:ht.durationNo
Line truncated
|
||||
|
||||
Vamos a planificar el sprint del mes que viene el jueves a las 10:00. Necesito que reviseis los temas pendientes del backlog.
|
||||
|
||||
Un saludo`,receivedAt:new Date(Date.now()-1e3*60*30).toISOString(),isRead:!1,folder:"inbox"},{id:"2",from:"[email protected]",fromName:"María García",to:"[email protected]",subject:"RE: Presupuesto proyecto digital 2026",body:`Hola Lago,
|
||||
|
||||
Gracias por la información. He revisado el presupuesto y parece correcto. Adjunto la propuesta final.
|
||||
|
||||
¿Podemos hablar mañana por teléfono?
|
||||
|
||||
Saludos`,receivedAt:new Date(Date.now()-1e3*60*60*2).toISOString(),isRead:!1,folder:"inbox"},{id:"3",from:"[email protected]",fromName:"DevOps Team",to:"[email protected]",subject:"[Alert] Production deployment failed — pipeline #4821",body:`Pipeline #4821 failed at stage: build
|
||||
|
||||
Error: npm ERR! code ETARGET
|
||||
npm ERR! notarget No valid target for react@19.0.1
|
||||
|
||||
View logs: https://devops.company.com/pipelines/4821`,receivedAt:new Date(Date.now()-1e3*60*60*5).toISOString(),isRead:!0,folder:"inbox"},{id:"4",from:"[email protected]",fromName:"Lago",to:"[email protected]",subject:"Resumen semanal — Power Platform",body:`Equipo,
|
||||
|
||||
Aquí va el resumen de lo hecho esta semana:
|
||||
|
||||
• Demo de code apps publicada en el blog
|
||||
• Connector de Outlook integrado
|
||||
• Migración del backlog a Dataverse completada
|
||||
|
||||
Para la semana que viene:
|
||||
• Terminar la integración con Teams
|
||||
• Revisar los permisos de producción
|
||||
|
||||
Saludos`,receivedAt:new Date(Date.now()-1e3*60*60*24).toISOString(),isRead:!0,folder:"sent"},{id:"5",from:"[email protected]",fromName:"Tech Weekly",to:"[email protected]",subject:"This Week in AI & Power Platform — Issue #47",body:`Top stories this week:
|
||||
|
||||
1. Microsoft announces GPT-5 integration for Copilot Studio
|
||||
2. Power Apps code apps reach 1,400+ connectors milestone
|
||||
3. Dataverse 2026 Wave 1 features now generally available
|
||||
|
||||
Read more inside...`,receivedAt:new Date(Date.now()-1e3*60*60*48).toISOString(),isRead:!0,folder:"inbox"},{id:"6",from:"[email protected]",fromName:"LinkedIn",to:"[email protected]",subject:"5 people viewed your profile this week",body:`Your profile got noticed!
|
||||
|
||||
5 people in Austria viewed your profile in the past week, including recruiters and hiring managers.
|
||||
|
||||
View who they are →`,receivedAt:new Date(Date.now()-1e3*60*60*72).toISOString(),isRead:!0,folder:"inbox"},{id:"7",from:"[email protected]",fromName:"Lago",to:"draft",subject:"Borrador: Propuesta reunión trimestral",body:"Borrador de la propuesta para la reunión trimestral con dirección...",receivedAt:new Date(Date.now()-1e3*60*60*6).toISOString(),isRead:!0,folder:"drafts"}];class u8{delay(n){return new Promise(a=>setTimeout(a,n))}async getProfile(){return await this.delay(300),gf}async getMessages(n="inbox"){return await this.delay(600),Ul.filter(a=>a.folder===n)}async getMessage(n){return await this.delay(200),Ul.find(a=>a.id===n)}async sendMessage(n){await this.delay(800);const a={id:Date.now().toString(),from:gf.email,fromName:gf.displayName,to:n.to||"",subject:n.subject||"(Sin asunto)",body:n.body||"",receivedAt:new Date().toISOString(),isRead:!0,folder:"sent"};return Ul.push(a),a}async markAsRead(n){await this.delay(100);const a=Ul.find(l=>l.id===n);a&&(a.isRead=!0)}}const hf=new u8,gd=w3({root:{display:"flex",height:"100vh",width:"100vw",overflow:"hidden",backgroundColor:$.colorNeutralBackground1},navRail:{width:"48px",backgroundColor:$.colorBrandBackground,display:"flex",flexDirection:"column",alignItems:"center",paddingTop:"8px",paddingBottom:"8px",gap:"2px",flexShrink:0},navBtn:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:$.borderRadiusMedium,cursor:"pointer",color:"rgba(255,255,255,.7)",border:"none",background:"transparent",transition:"all 120ms",":hover":{backgroundColor:"rgba(255,255,255,.15)",color:"#fff"}},navBtnActive:{backgroundColor:"rgba(255,255,255,.22)",color:"#fff"},folderPane:{width:"200px",backgroundColor:$.colorNeutralBackground2,borderRight:`1px solid ${$.colorNeutralStroke2}`,display:"flex",flexDirection:"column",flexShrink:0,overflowY:"auto"},folderHeader:{...st.padding("14px","16px","6px"),display:"flex",alignItems:"center",gap:"8px"},folderItem:{display:"flex",alignItems:"center",gap:"10px",...st.padding("7px","16px"),cursor:"pointer",fontSize:$.fontSizeBase300,color:$.colorNeutralForeground2,border:"none",background:"transparent",width:"100%",textAlign:"left",borderRadius:0,transition:"all 100ms",":hover":{backgroundColor:$.colorNeutralBackground2Hover}},folderItemActive:{backgroundColor:$.colorBrandBackground2,color:$.colorBrandForeground1,fontWeight:$.fontWeightSemibold,borderLeft:`3px solid ${$.colorBrandForeground1}`,paddingLeft:"13px"},folderBadge:{marginLeft:"auto"},centre:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",minWidth:0},toolbar:{display:"flex",alignItems:"center",gap:"6px",...st.padding("6px","12px"),borderBottom:`1px solid ${$.colorNeutralStroke2}`,backgroundColor:$.colorNeutralBackground1,flexShrink:0},searchWrap:{flex:1,maxWidth:"380px",position:"relative"},searchIcon:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",color:$.colorNeutralForeground3,pointerEvents:"none",display:"flex"},contentSplit:{flex:1,display:"flex",overflow:"hidden"},messageList:{width:"360px",borderRight:`1px solid ${$.colorNeutralStroke2}`,overflowY:"auto",flexShrink:0,backgroundColor:$.colorNeutralBackground1},messageItem:{display:"flex",gap:"12px",...st.padding("10px","16px"),cursor:"pointer",borderBottom:`1px solid ${$.colorNeutralStroke2}`,transition:"background 80ms",":hover":{backgroundColor:$.colorNeutralBackground1Hover}},messageItemSelected:{backgroundColor:$.colorBrandBackground2,":hover":{backgroundColor:$.colorBrandBackground2}},messageItemUnread:{borderLeft:`3px solid ${$.colorBrandForeground1}`,paddingLeft:"13px"},messageContent:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"2px"},messageTopRow:{display:"flex",alignItems:"center",gap:"6px"},messageSender:{flex:1,fontSize:$.fontSizeBase300,fontWeight:$.fontWeightSemibold,color:$.colorNeutralForeground1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},messageTime:{fontSize:$.fontSizeBase200,color:$.colorNeutralForeground3,flexShrink:0},messageSubject:{fontSize:$.fontSizeBase300,color:$.colorNeutralForeground1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},messagePreview:{fontSize:$.fontSizeBase200,color:$.colorNeutralForeground3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},readingPane:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:$.colorNeutralBackground1},readingHeader:{...st.padding("20px","28px","16px"),display:"flex",gap:"14px",alignItems:"flex-start"},readingMeta:{flex:1,minWidth:0},readingSubject:{fontSize:$.fontSizeBase500,fontWeight:$.fontWeightBold,color:$.colorNeutralForeground1,lineHeight:$.lineHeightBase500,marginTop:"2px"},readingBody:{...st.padding("4px","28px","28px"),fontSize:$.fontSizeBase300,lineHeight:$.lineHeightBase400,color:$.colorNeutralForeground1,whiteSpace:"pre-wrap"},readingActions:{display:"flex",gap:"8px",...st.padding("0","28px","20px")},emptyState:{flex:1,display:"flex",flexDirection:"column",alignIt
Line truncated
|
||||
|
||||
---------- Mensaje reenviado ----------
|
||||
De: ${Q.fromName} <${Q.from}>
|
||||
Fecha: ${new Date(Q.receivedAt).toLocaleString("es-ES")}
|
||||
Asunto: ${Q.subject}
|
||||
|
||||
${Q.body}`),w(!0)},ce=f.filter(Q=>Q.subject.toLowerCase().includes(p.toLowerCase())||Q.fromName.toLowerCase().includes(p.toLowerCase())),pe=tv.find(Q=>Q.id===l);return P.jsxs("div",{className:o.root,children:[P.jsxs("nav",{className:o.navRail,children:[P.jsx(Vn,{content:"Correo",relationship:"label",positioning:"after",children:P.jsx("button",{className:de(o.navBtn,n==="mail"&&o.navBtnActive),onClick:()=>a("mail"),children:n==="mail"?P.jsx(om,{}):P.jsx(Tf,{})})}),P.jsx(Vn,{content:"Conexiones",relationship:"label",positioning:"after",children:P.jsx("button",{className:de(o.navBtn,n==="connections"&&o.navBtnActive),onClick:()=>a("connections"),children:P.jsx(jB,{})})}),P.jsx("div",{style:{flex:1}}),P.jsx(Vn,{content:"Nuevo mensaje",relationship:"label",positioning:"after",children:P.jsx("button",{className:o.navBtn,onClick:()=>w(!0),children:P.jsx(tm,{})})})]}),n==="mail"?P.jsxs(P.Fragment,{children:[P.jsxs("aside",{className:o.folderPane,children:[P.jsxs("div",{className:o.folderHeader,children:[P.jsx(Wl,{name:"Lago",initials:"LA",size:28,color:"brand"}),P.jsx(Mt,{weight:"semibold",size:300,children:"[email protected]"})]}),P.jsx(ai,{style:{margin:"6px 0"}}),tv.map(Q=>{const Ee=l===Q.id,q=Q.id===l?ce.filter(W=>!W.isRead).length:Q.unreadCount;return P.jsxs("button",{className:de(o.folderItem,Ee&&o.folderItemActive),onClick:()=>s(Q.id),children:[f8(Q.id,Ee),P.jsx("span",{children:Q.name}),q>0&&P.jsx(eb,{className:o.folderBadge,count:q,appearance:"filled",color:"brand",size:"small"})]},Q.id)})]}),P.jsxs("div",{className:o.centre,children:[P.jsxs("div",{className:o.toolbar,children:[P.jsx(_r,{appearance:"primary",icon:P.jsx(tm,{}),size:"small",onClick:()=>w(!0),children:"Nuevo"}),P.jsx(Ub,{}),P.jsx(Vn,{content:"Recargar",relationship:"label",children:P.jsx(Pb,{icon:P.jsx(OB,{}),onClick:U})}),P.jsx("div",{style:{flex:1}}),P.jsxs("div",{className:o.searchWrap,children:[P.jsx("span",{className:o.searchIcon,children:P.jsx(AB,{fontSize:16})}),P.jsx(ic,{size:"small",placeholder:"Buscar correos…",value:p,onChange:(Q,Ee)=>x(Ee.value),style:{width:"100%",paddingLeft:"30px"},contentAfter:p?P.jsx(_r,{appearance:"transparent",size:"small",icon:P.jsx(i6,{fontSize:14}),onClick:()=>x("")}):void 0})]})]}),P.jsxs("div",{className:o.contentSplit,children:[P.jsx("div",{className:o.messageList,children:h?P.jsx("div",{className:o.emptyState,style:{padding:"40px 0"},children:P.jsx(Ab,{size:"small",label:"Cargando…"})}):ce.length===0?P.jsxs("div",{className:o.emptyState,style:{padding:"60px 16px"},children:[P.jsx(Tf,{fontSize:40,style:{opacity:.3}}),P.jsxs(Mt,{size:300,children:["No hay correos en ",pe.name]})]}):ce.map(Q=>P.jsxs("div",{className:de(o.messageItem,!Q.isRead&&o.messageItemUnread,(g==null?void 0:g.id)===Q.id&&o.messageItemSelected),onClick:()=>ie(Q),children:[P.jsx(Wl,{name:Q.fromName,initials:ov(Q.fromName),size:32,style:{backgroundColor:rv(Q.fromName),flexShrink:0}}),P.jsxs("div",{className:o.messageContent,children:[P.jsxs("div",{className:o.messageTopRow,children:[P.jsxs("span",{className:o.messageSender,children:[!Q.isRead&&P.jsx(CB,{style:{color:$.colorBrandForeground1,marginRight:4,fontSize:8,verticalAlign:"middle"}}),Q.fromName]}),P.jsx("span",{className:o.messageTime,children:d8(Q.receivedAt)})]}),P.jsx("div",{className:o.messageSubject,children:Q.subject}),P.jsxs("div",{className:o.messagePreview,children:[Q.body.substring(0,80),"…"]})]})]},Q.id))}),g?P.jsxs("div",{className:o.readingPane,children:[P.jsxs("div",{className:o.readingHeader,children:[P.jsx(Wl,{name:g.fromName,initials:ov(g.fromName),size:40,style:{backgroundColor:rv(g.fromName)}}),P.jsxs("div",{className:o.readingMeta,children:[P.jsx(Mt,{weight:"semibold",size:300,children:g.fromName}),P.jsxs(Mt,{size:200,style:{color:$.colorNeutralForeground3,marginLeft:"8px"},children:["<",g.from,">"]}),P.jsx("div",{className:o.readingSubject,children:g.subject}),P.jsx(Mt,{size:200,style:{color:$.colorNeutralForeground3,marginTop:"2px",display:"block"},children:new Date(g.receivedAt).toLocaleString("es-ES",{weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"})})]})]}),P.jsx(ai,{style:{margin:"0 28px"}}),P.jsx("div",{className:o.readingBody,children:g.body}),P.jsx(ai,{style:{margin:"0 28px"}}),P.jsxs("div",{className:o.readingActions,children:[P.jsx(_r,{appearance:"primary",icon:P.jsx(DB,{}),size:"small",onClick:()=>be(g),children:"Responder"}),P.jsx(_r,{appearance:"subtle",icon:P.jsx(RB,{}),size:"small",onClick:()=>ye(g),children:"Reenviar"}),P.jsx(_r,{appearance:"subtle",icon:P.jsx(Fp,{}),size:"small",children:"Eliminar"})]})]}):P.jsxs("div",{className:o.emptyState,children:[P.jsx(om,{fontSize:48,style:{opacity:.15}}),P.jsx(Mt,{size:400,style:{opacity:.5},children:"Selecciona un correo para leerlo"})]})]})]})]}):P.jsx(m8,{}),P.jsx(h8,{open:S,onOpenChange:w,to:B,onToChange:A,subject:N,onSubjectChange:D,body:j,onBodyChange:L,sending:Z,onSend:Be})]})}function h8({open:o,onOpenChange:n,to:a,onToChange:l,subject:s,on
Line truncated
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
*{box-sizing:border-box;margin:0;padding:0}:root{--bg-primary: #1a1a2e;--bg-secondary: #16213e;--bg-surface: #0f3460;--accent: #e94560;--accent-hover: #ff6b6b;--text-primary: #eaeaea;--text-secondary: #a0a0b0;--border: #2a2a4a;--selected: #1e3a5f}body{font-family:Segoe UI,system-ui,sans-serif;background:var(--bg-primary);color:var(--text-primary);height:100vh;overflow:hidden}.app{display:flex;height:100vh}.sidebar{width:60px;background:var(--bg-secondary);border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:8px}.sidebar-icon{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s;font-size:18px}.sidebar-icon:hover{background:var(--bg-surface)}.sidebar-icon.active{background:var(--accent)}.main-area{flex:1;display:flex;flex-direction:column;overflow:hidden}.toolbar{display:flex;align-items:center;gap:12px;padding:8px 16px;background:var(--bg-secondary);border-bottom:1px solid var(--border)}.toolbar-btn{padding:6px 12px;background:var(--bg-surface);border:1px solid var(--border);border-radius:4px;color:var(--text-primary);cursor:pointer;font-size:13px;transition:all .2s}.toolbar-btn:hover{background:var(--selected);border-color:var(--accent)}.toolbar-btn.primary{background:var(--accent);border-color:var(--accent)}.toolbar-btn.primary:hover{background:var(--accent-hover)}.search-box{flex:1;display:flex;align-items:center;background:var(--bg-primary);border:1px solid var(--border);border-radius:6px;padding:6px 12px;gap:8px}.search-box input{flex:1;background:transparent;border:none;outline:none;color:var(--text-primary);font-size:13px}.search-box input::placeholder{color:var(--text-secondary)}.content{flex:1;display:flex;overflow:hidden}.folder-list{width:180px;background:var(--bg-secondary);border-right:1px solid var(--border);overflow-y:auto;padding:8px 0}.folder-item{display:flex;align-items:center;gap:8px;padding:8px 16px;cursor:pointer;font-size:13px;color:var(--text-secondary);transition:all .15s}.folder-item:hover{background:var(--bg-surface);color:var(--text-primary)}.folder-item.active{background:var(--selected);color:var(--text-primary);border-right:2px solid var(--accent)}.folder-item .folder-icon{font-size:16px}.folder-item .unread{margin-left:auto;background:var(--accent);color:#fff;font-size:11px;padding:1px 6px;border-radius:10px}.email-list{width:320px;border-right:1px solid var(--border);overflow-y:auto}.email-item{display:flex;flex-direction:column;gap:4px;padding:12px 16px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s}.email-item:hover{background:var(--bg-surface)}.email-item.selected{background:var(--selected)}.email-item.unread{border-left:3px solid var(--accent)}.email-from{font-size:13px;font-weight:600;color:var(--text-primary)}.email-item.unread .email-from{color:var(--accent)}.email-subject{font-size:13px;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.email-preview{font-size:12px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.email-time{font-size:11px;color:var(--text-secondary);margin-left:auto}.email-detail{flex:1;display:flex;flex-direction:column;overflow-y:auto;padding:20px 24px;gap:16px}.email-detail-header{display:flex;align-items:flex-start;gap:12px}.email-avatar{width:40px;height:40px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex-shrink:0}.email-meta{flex:1;min-width:0}.email-meta-from{font-size:14px;font-weight:600;color:var(--text-primary)}.email-meta-subject{font-size:16px;font-weight:600;color:var(--text-primary);margin-top:4px}.email-meta-time{font-size:12px;color:var(--text-secondary);margin-top:2px}.email-body{font-size:14px;line-height:1.7;color:var(--text-primary);white-space:pre-wrap}.email-actions{display:flex;gap:8px;border-top:1px solid var(--border);padding-top:16px}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-secondary)}.empty-state-icon{font-size:48px;opacity:.3}.empty-state-text{font-size:14px}.compose-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:100}.compose{width:600px;background:var(--bg-secondary);border-radius:8px;border:1px solid var(--border);display:flex;flex-direction:column;max-height:80vh}.compose-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);font-size:14px;font-weight:600}.compose-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:18px}.compose-close:hover{color:var(--text-primary)}.compose-field{display:flex;align-items:center;border-bottom:1px solid var(--border);padding:8px 16px;gap:8px}.compose-field-label{font-size:13px;color:var(-Line truncated
|
||||
Vendored
+13
-13
@@ -1,13 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Outlook Lite — Power Apps Code Apps Part 2</title>
|
||||
<script type="module" crossorigin src="/assets/index-Cyu5-a_6.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DjuLdqDL.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Outlook Lite — Power Apps Code Apps Part 2</title>
|
||||
<script type="module" crossorigin src="/assets/index-DQ2nyFq4.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CmpLfbp9.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>␍
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user