131 lines
471 KiB
JavaScript
131 lines
471 KiB
JavaScript
|
var g_=Object.defineProperty;var y_=(e,t,n)=>t in e?g_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ch=(e,t,n)=>(y_(e,typeof t!="symbol"?t+"":t,n),n);function w_(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var vU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ni={},__={get exports(){return Ni},set exports(e){Ni=e}},gl={},w={},b_={get exports(){return w},set exports(e){w=e}},ce={};/**
|
||
|
* @license React
|
||
|
* react.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var aa=Symbol.for("react.element"),E_=Symbol.for("react.portal"),C_=Symbol.for("react.fragment"),R_=Symbol.for("react.strict_mode"),x_=Symbol.for("react.profiler"),k_=Symbol.for("react.provider"),O_=Symbol.for("react.context"),T_=Symbol.for("react.forward_ref"),P_=Symbol.for("react.suspense"),N_=Symbol.for("react.memo"),L_=Symbol.for("react.lazy"),fh=Symbol.iterator;function A_(e){return e===null||typeof e!="object"?null:(e=fh&&e[fh]||e["@@iterator"],typeof e=="function"?e:null)}var Tg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pg=Object.assign,Ng={};function Io(e,t,n){this.props=e,this.context=t,this.refs=Ng,this.updater=n||Tg}Io.prototype.isReactComponent={};Io.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Io.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lg(){}Lg.prototype=Io.prototype;function ud(e,t,n){this.props=e,this.context=t,this.refs=Ng,this.updater=n||Tg}var cd=ud.prototype=new Lg;cd.constructor=ud;Pg(cd,Io.prototype);cd.isPureReactComponent=!0;var dh=Array.isArray,Ag=Object.prototype.hasOwnProperty,fd={current:null},Ig={key:!0,ref:!0,__self:!0,__source:!0};function Dg(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Ag.call(t,r)&&!Ig.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:aa,type:e,key:i,ref:a,props:o,_owner:fd.current}}function I_(e,t){return{$$typeof:aa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dd(e){return typeof e=="object"&&e!==null&&e.$$typeof===aa}function D_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ph=/\/+/g;function Su(e,t){return typeof e=="object"&&e!==null&&e.key!=null?D_(""+e.key):t.toString(36)}function is(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case aa:case E_:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Su(a,0):r,dh(o)?(n="",e!=null&&(n=e.replace(ph,"$&/")+"/"),is(o,t,n,"",function(u){return u})):o!=null&&(dd(o)&&(o=I_(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(ph,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",dh(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+Su(i,s);a+=is(i,t,n,l,o)}else if(l=A_(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+Su(i,s++),a+=is(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ta(e,t,n){if(e==null)return e;var r=[],o=0;return is(e,r,"","",function(i){return t.call(n,i,o++)}),r}function M_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tt={current:null},as={transition:null},$_={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:as,ReactCurrentOwner:fd};ce.Children={map:Ta,forEach:function(e,t,n){Ta(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ta(e,function(){t++}),t},toArray:function(e){return Ta(e,function(t){return t})||[]},only:function(e){if(!dd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Io;ce.Fragment=C_;ce.Profiler=x_;ce
|
||
|
* @license React
|
||
|
* react-jsx-runtime.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var U_=w,F_=Symbol.for("react.element"),j_=Symbol.for("react.fragment"),z_=Object.prototype.hasOwnProperty,B_=U_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V_={key:!0,ref:!0,__self:!0,__source:!0};function Mg(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)z_.call(t,r)&&!V_.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:F_,type:e,key:i,ref:a,props:o,_owner:B_.current}}gl.Fragment=j_;gl.jsx=Mg;gl.jsxs=Mg;(function(e){e.exports=gl})(__);const wn=Ni.Fragment,R=Ni.jsx,se=Ni.jsxs;const W_="modulepreload",H_=function(e,t){return new URL(e,t).href},hh={},_n=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=H_(i,r),i in hh)return;hh[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":W_,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};function Qt(e){return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K_(e,t){if(Qt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $g(e){var t=K_(e,"string");return Qt(t)==="symbol"?t:String(t)}function vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$g(r.key),r)}}function Mt(e,t,n){return t&&vh(e.prototype,t),n&&vh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _c(e,t){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_c(e,t)}function yl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_c(e,t)}function sa(e,t){if(t&&(Qt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hn(e)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cn(e)}function fn(e,t,n){return t=$g(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ug(e){if(Array.isArray(e))return e}function Q_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fg(e,t){if(e){if(typeof e=="string")return mh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mh(e,t)}}function jg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q_(e){return Ug(e)||Q_(e)||Fg(e)||jg()}function gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var G_={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},Y_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt(this,e),this.init(t,n)}return Mt(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||G_,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,o,i){return i&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,yh(yh({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),an=new Y_,nr=function(){function e(){Dt(this,e),this.observers={}}return Mt(e,[{key:"on",value:function(n,r){var o=this;return n.split(" ").forEach(function(i){o.observers[i]=o.observers[i]||[],o.observers[i].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(o){return o!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,o)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(o))})}}}]),e}();function Qo(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function wh(e){return e==null?"":""+e}function X_(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function pd(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function Sh(e,t,n){var r=pd(e,t,Object),o=r.obj,i=r.k;o[i]=n}function J_(e,t,n,r){var o=pd(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function Es(e,t){var n=pd(e,t),r=n.obj,o=n.k;if(r)return r[o]}function _h(e,t,n){var r=Es(e,n);return r!==void 0?r:Es(t,n)}function zg(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):zg(e[r],t[r],n):e[r]=t[r]);return e}function Br(e){return e.replace(/[\-\[\]\/
|
||
|
* @license React
|
||
|
* scheduler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/(function(e){function t(P,H){var $=P.length;P.push(H);e:for(;0<$;){var U=$-1>>>1,E=P[U];if(0<o(E,H))P[U]=H,P[$]=E,$=U;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var H=P[0],$=P.pop();if($!==H){P[0]=$;e:for(var U=0,E=P.length,L=E>>>1;U<L;){var A=2*(U+1)-1,J=P[A],F=A+1,z=P[F];if(0>o(J,$))F<E&&0>o(z,J)?(P[U]=z,P[F]=$,U=F):(P[U]=J,P[A]=$,U=A);else if(F<E&&0>o(z,$))P[U]=z,P[F]=$,U=F;else break e}}return H}function o(P,H){var $=P.sortIndex-H.sortIndex;return $!==0?$:P.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(P){for(var H=n(u);H!==null;){if(H.callback===null)r(u);else if(H.startTime<=P)r(u),H.sortIndex=H.expirationTime,t(l,H);else break;H=n(u)}}function _(P){if(y=!1,m(P),!g)if(n(l)!==null)g=!0,X(x);else{var H=n(u);H!==null&&O(_,H.startTime-P)}}function x(P,H){g=!1,y&&(y=!1,h(N),N=-1),v=!0;var $=p;try{for(m(H),f=n(l);f!==null&&(!(f.expirationTime>H)||P&&!ee());){var U=f.callback;if(typeof U=="function"){f.callback=null,p=f.priorityLevel;var E=U(f.expirationTime<=H);H=e.unstable_now(),typeof E=="function"?f.callback=E:f===n(l)&&r(l),m(H)}else r(l);f=n(l)}if(f!==null)var L=!0;else{var A=n(u);A!==null&&O(_,A.startTime-H),L=!1}return L}finally{f=null,p=$,v=!1}}var C=!1,T=null,N=-1,W=5,M=-1;function ee(){return!(e.unstable_now()-M<W)}function pe(){if(T!==null){var P=e.unstable_now();M=P;var H=!0;try{H=T(!0,P)}finally{H?ue():(C=!1,T=null)}}else C=!1}var ue;if(typeof d=="function")ue=function(){d(pe)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,j=K.port2;K.port1.onmessage=pe,ue=function(){j.postMessage(null)}}else ue=function(){S(pe,0)};function X(P){T=P,C||(C=!0,ue())}function O(P,H){N=S(function(){P(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,X(x))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(p){case 1:case 2:case 3:var H=3;break;default:H=p}var $=p;p=H;try{return P()}finally{p=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,H){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var $=p;p=P;try{return H()}finally{p=$}},e.unstable_scheduleCallback=function(P,H,$){var U=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?U+$:U):$=U,P){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=$+E,P={id:c++,callback:H,priorityLevel:P,startTime:$,expirationTime:E,sortIndex:-1},$>U?(P.sortIndex=$,t(u,P),n(l)===null&&P===n(u)&&(y?(h(N),N=-1):y=!0,O(_,$-U))):(P.sortIndex=E,t(l,P),g||v||(g=!0,X(x))),P},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(P){var H=p;return function(){var $=p;p=H;try{return P.apply(this,arguments)}finally{p=$}}}})(Qg);(function(e){e.exports=Qg})(oE);/**
|
||
|
* @license React
|
||
|
* react-dom.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var qg=w,mt=Cc;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Gg=new Set,Li={};function Ir(e,t){yo(e,t),yo(e+"Capture",t)}function yo(e,t){for(Li[e]=t,e=0;e<t.length;e++)Gg.add(t[e])}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rc=Object.prototype.hasOwnProperty,iE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Wh={},Hh={};function aE(e){return Rc.call(Hh,e)?!0:Rc.call(Wh,e)?!1:iE.test(e)?Hh[e]=!0:(Wh[e]=!0,!1)}function sE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lE(e,t,n,r){if(t===null||typeof t>"u"||sE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){We[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var hd=/[\-:]([a-z])/g;function vd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-
|
||
|
`+Eu+e}var Cu=!1;function Ru(e,t){if(!e||Cu)return"";Cu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
||
|
`),i=r.stack.split(`
|
||
|
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
|
||
|
`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Cu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ui(e):""}function uE(e){switch(e.tag){case 5:return ui(e.type);case 16:return ui("Lazy");case 13:return ui("Suspense");case 19:return ui("SuspenseList");case 0:case 2:case 15:return e=Ru(e.type,!1),e;case 11:return e=Ru(e.type.render,!1),e;case 1:return e=Ru(e.type,!0),e;default:return""}}function Tc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case qr:return"Fragment";case Qr:return"Portal";case xc:return"Profiler";case gd:return"StrictMode";case kc:return"Suspense";case Oc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xg:return(e.displayName||"Context")+".Consumer";case Yg:return(e._context.displayName||"Context")+".Provider";case yd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wd:return t=e.displayName||null,t!==null?t:Tc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return Tc(e(t))}catch{}}return null}function cE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tc(t);case 8:return t===gd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fE(e){var t=Zg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Aa(e){e._valueTracker||(e._valueTracker=fE(e))}function ey(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pc(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ty(e,t){t=t.checked,t!=null&&md(e,"checked",t,!1)}function Nc(e,t){ty(e,t);var n=rr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lc(e,t.type,rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qh(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(_C,"")}function za(e,t,n){if(t=gv(t),gv(e)!==t&&n)throw Error(D(425))}function As(){}var Kc=null,Qc=null;function qc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gc=typeof setTimeout=="function"?setTimeout:void 0,bC=typeof clearTimeout=="function"?clearTimeout:void 0,yv=typeof Promise=="function"?Promise:void 0,EC=typeof queueMicrotask=="function"?queueMicrotask:typeof yv<"u"?function(e){return yv.resolve(null).then(e).catch(CC)}:Gc;function CC(e){setTimeout(function(){throw e})}function Uu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),$i(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);$i(t)}function Gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function wv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Mo=Math.random().toString(36).slice(2),on="__reactFiber$"+Mo,Bi="__reactProps$"+Mo,En="__reactContainer$"+Mo,Yc="__reactEvents$"+Mo,RC="__reactListeners$"+Mo,xC="__reactHandles$"+Mo;function yr(e){var t=e[on];if(t)return t;for(var n=e.parentNode;n;){if(t=n[En]||n[on]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wv(e);e!==null;){if(n=e[on])return n;e=wv(e)}return t}e=n,n=e.parentNode}return null}function fa(e){return e=e[on]||e[En],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Cl(e){return e[Bi]||null}var Xc=[],Zr=-1;function lr(e){return{current:e}}function Ee(e){0>Zr||(e.current=Xc[Zr],Xc[Zr]=null,Zr--)}function _e(e,t){Zr++,Xc[Zr]=e.current,e.current=t}var or={},Ye=lr(or),st=lr(!1),Rr=or;function wo(e,t){var n=e.type.contextTypes;if(!n)return or;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lt(e){return e=e.childContextTypes,e!=null}function Is(){Ee(st),Ee(Ye)}function Sv(e,t,n){if(Ye.current!==or)throw Error(D(168));_e(Ye,t),_e(st,n)}function Vy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,cE(e)||"Unknown",o));return Pe({},n,r)}function Ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Rr=Ye.current,_e(Ye,e),_e(st,st.current),!0}function _v(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Vy(e,t,Rr),r.__reactInternalMemoizedMergedChildContext=e,Ee(st),Ee(Ye),_e(Ye,e)):Ee(st),_e(st,n)}var mn=null,Rl=!1,Fu=!1;function Wy(e){mn===null?mn=[e]:mn.push(e)}function kC(e){Rl=!0,Wy(e)}function ur(){if(!Fu&&mn!==null){Fu=!0;var e=0,t=ve;try{var n=mn;for(ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mn=null,Rl=!1}catch(o){throw mn!==null&&(mn=mn.slice(e+1)),vy(_d,ur),o}finally{ve=t,Fu=!1}}return null}var eo=[],to=0,Ms=null,$s=0,kt=[],Ot=0,xr=null,gn=1,yn="";function pr(e,t){eo[to++]=$s,eo[to++]=Ms,Ms=e,$s=t}function Hy(e,t,n){kt[Ot++]=gn,kt[Ot++]=yn,kt[Ot++]=xr,xr=e;var r=gn;e=yn;var o=32-qt(r)-1;r&=~(1<<o),n+=1;var i=32-qt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,gn=1<<32-qt(t)+o|n<<o|r,yn=i+e}else gn=1<<i|n<<o|r,yn=e}function Pd(e){e.return!==null&&(pr(e,1),Hy(e,1,0))}function Nd(e){for(;e===Ms;)Ms=eo[--to],eo[to]=null,$s=eo[--to],eo[to]=null;for(;e===xr;)xr=kt[--Ot],kt[Ot]=null,yn=kt[--Ot],kt[Ot]=null,gn=kt[--Ot],kt[Ot]=null}var vt=null,ht=null,Re=!1,Ht=null;function Ky(e,t){var n=Tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletio
|
||
|
Error generating stack: `+i.message+`
|
||
|
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Wu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var MC=typeof WeakMap=="function"?WeakMap:Map;function S0(e,t,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,hf=r),rf(e,t)},n}function _0(e,t,n){n=Sn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){rf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){rf(e,t),typeof r!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Nv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new MC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=YC.bind(null,e,t,n),t.then(e,e))}function Lv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Av(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Sn(-1,1),t.tag=2,Yn(n,t,1))),n.lanes|=1),e)}var $C=xn.ReactCurrentOwner,at=!1;function Ze(e,t,n,r){t.child=e===null?Zy(t,null,n,r):_o(t,e.child,n,r)}function Iv(e,t,n,r,o){n=n.render;var i=t.ref;return po(t,o),r=Bd(e,t,n,r,i,o),n=Vd(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Rn(e,t,o)):(Re&&n&&Pd(t),t.flags|=1,Ze(e,t,r,o),t.child)}function Dv(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Zd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,b0(e,t,i,r,o)):(e=ms(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Fi,n(a,r)&&e.ref===t.ref)return Rn(e,t,o)}return t.flags|=1,e=Zn(i,r),e.ref=t.ref,e.return=t,t.child=e}function b0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Fi(i,r)&&e.ref===t.ref)if(at=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(at=!0);else return t.lanes=e.lanes,Rn(e,t,o)}return of(e,t,n,r,o)}function E0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(oo,pt),pt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(oo,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,_e(oo,pt),pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,_e(oo,pt),pt|=r;return Ze(e,t,o,n),t.child}function C0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function of(e,t,n,r,o){var i=lt(n)?Rr:Ye.current;return i=wo(t,i),po(t,o),n=Bd(e,t,n,r,i,o),r=Vd(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Rn(e,t,o)):(Re&&r&&Pd(t),t.flags|=1,Ze(e,t,n,o),t.child)}function Mv(e,t,n,r,o){if(lt(n)){var i=!0;Ds(t)}else i=!1;if(po(t,o),t.stateNode===null)ps(e,t),Xy(t,n,r),nf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=At(u):(u=lt(n)?Rr:Ye.current,u=wo(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&kv(t,a,r,u),In=!1;var p=t.memoizedState;a.state=p,js(t,r,a,o),l=t.memoizedState,s!==r||p!==l||st.current||In?(typeof c=="function"&&(tf(t,n,c,r),l=t.memoizedState),(s=In||xv(t,n,s,r,p,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
|
||
|
* Adapted from jQuery UI core
|
||
|
*
|
||
|
* http://jqueryui.com
|
||
|
*
|
||
|
* Copyright 2014 jQuery Foundation and other contributors
|
||
|
* Released under the MIT license.
|
||
|
* http://jquery.org/license
|
||
|
*
|
||
|
* http://api.jqueryui.com/category/ui-core/
|
||
|
*/var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function i(f,p){return p.getPropertyValue("overflow")!=="visible"||f.scrollWidth<=0&&f.scrollHeight<=0}function a(f){var p=f.offsetWidth<=0&&f.offsetHeight<=0;if(p&&!f.innerHTML)return!0;try{var v=window.getComputedStyle(f),g=v.getPropertyValue("display");return p?g!==r&&i(f,v):g===n}catch{return console.warn("Failed to inspect element style"),!1}}function s(f){for(var p=f,v=f.getRootNode&&f.getRootNode();p&&p!==document.body;){if(v&&p===v&&(p=v.host.parentNode),a(p))return!1;p=p.parentNode}return!0}function l(f,p){var v=f.nodeName.toLowerCase(),g=o.test(v)&&!f.disabled||v==="a"&&f.href||p;return g&&s(f)}function u(f){var p=f.getAttribute("tabindex");p===null&&(p=void 0);var v=isNaN(p);return(v||p>=0)&&l(f,!v)}function c(f){var p=[].slice.call(f.querySelectorAll("*"),0).reduce(function(v,g){return v.concat(g.shadowRoot?c(g.shadowRoot):[g])},[]);return p.filter(u)}e.exports=t.default})(vR,Gi);Object.defineProperty(Jt,"__esModule",{value:!0});Jt.resetState=wR;Jt.log=SR;Jt.handleBlur=Yi;Jt.handleFocus=Xi;Jt.markForFocusLater=_R;Jt.returnFocus=bR;Jt.popWithoutFocus=ER;Jt.setupScopedFocus=CR;Jt.teardownScopedFocus=RR;var mR=Gi,gR=yR(mR);function yR(e){return e&&e.__esModule?e:{default:e}}var Ro=[],io=null,yf=!1;function wR(){Ro=[]}function SR(){}function Yi(){yf=!0}function Xi(){if(yf){if(yf=!1,!io)return;setTimeout(function(){if(!io.contains(document.activeElement)){var e=(0,gR.default)(io)[0]||io;e.focus()}},0)}}function _R(){Ro.push(document.activeElement)}function bR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{Ro.length!==0&&(t=Ro.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function ER(){Ro.length>0&&Ro.pop()}function CR(e){io=e,window.addEventListener?(window.addEventListener("blur",Yi,!1),document.addEventListener("focus",Xi,!0)):(window.attachEvent("onBlur",Yi),document.attachEvent("onFocus",Xi))}function RR(){io=null,window.addEventListener?(window.removeEventListener("blur",Yi),document.removeEventListener("focus",Xi)):(window.detachEvent("onBlur",Yi),document.detachEvent("onFocus",Xi))}var Xs={},xR={get exports(){return Xs},set exports(e){Xs=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=Gi,r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?i(s.activeElement.shadowRoot):s.activeElement}function a(s,l){var u=(0,r.default)(s);if(!u.length){l.preventDefault();return}var c=void 0,f=l.shiftKey,p=u[0],v=u[u.length-1],g=i();if(s===g){if(!f)return;c=v}if(v===g&&!f&&(c=p),p===g&&f&&(c=v),c){l.preventDefault(),c.focus();return}var y=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),S=y!=null&&y[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(S){var h=u.indexOf(g);if(h>-1&&(h+=f?-1:1),c=u[h],typeof c>"u"){l.preventDefault(),c=f?v:p,c.focus();return}l.preventDefault(),c.focus()}}e.exports=t.default})(xR,Xs);var Zt={},kR=function(){},OR=kR,Yt={},wf={},TR={get exports(){return wf},set exports(e){wf=e}};/*!
|
||
|
Copyright (c) 2015 Jed Watson.
|
||
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
||
|
All rights reserved.
|
||
|
*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(TR);Object.defineProperty(Yt,"__esModule",{value:!0});Yt.canUseDOM=Yt.SafeNodeList=Yt.SafeHTMLCollection=void 0;var PR=wf,NR=LR(PR);function LR(e){return e&&e.__esModule?e:{default:e}}var Dl=NR.default,AR=Dl.canUseDOM?window.HTMLElement:{};Yt.SafeHTMLCollection=Dl.canUseDOM?window.HTMLCollection:{};Yt.SafeNodeList=Dl.canUseDOM?window.NodeList:{};Yt.canUseDOM=Dl.canUseDOM;Yt.default=AR;Object.defineProperty(Zt,"__esModule",{value:!0});Zt.resetState=UR;Zt.log=FR;Zt.assertNodeList=Y0;Zt.setElement=jR;Zt.validateElement=op;Zt.hide=zR;Zt.show=BR;Zt.documentNotReadyOrSSRTesting=VR;var IR=OR,DR=$R(IR),MR=Yt;function $R(e){return e&&e.__esModule?e:{default:e}}var xt=null;function UR(){xt&&(xt.removeAttribute?xt.removeAttribute("aria-hidden"):xt.length!=null?xt.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(xt).forEach(function(e){return e.removeAttribute("aria-hidden")})),xt=null}function FR(){}function Y0(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function jR(e){var t=e;if(typeof t=="string"&&MR.canUseDOM){var n=document.querySelectorAll(t);Y0(n,t),t=n}return xt=t||xt,xt}function op(e){var t=e||xt;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,DR.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function zR(e){var t=!0,n=!1,r=void 0;try{for(var o=op(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var a=i.value;a.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function BR(e){var t=!0,n=!1,r=void 0;try{for(var o=op(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var a=i.value;a.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function VR(){xt=null}var $o={};Object.defineProperty($o,"__esModule",{value:!0});$o.resetState=WR;$o.log=HR;var xi={},ki={};function Yv(e,t){e.classList.remove(t)}function WR(){var e=document.getElementsByTagName("html")[0];for(var t in xi)Yv(e,xi[t]);var n=document.body;for(var r in ki)Yv(n,ki[r]);xi={},ki={}}function HR(){}var KR=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},QR=function(t,n){return t[n]&&(t[n]-=1),n},qR=function(t,n,r){r.forEach(function(o){KR(n,o),t.add(o)})},GR=function(t,n,r){r.forEach(function(o){QR(n,o),n[o]===0&&t.remove(o)})};$o.add=function(t,n){return qR(t.classList,t.nodeName.toLowerCase()=="html"?xi:ki,n.split(" "))};$o.remove=function(t,n){return GR(t.classList,t.nodeName.toLowerCase()=="html"?xi:ki,n.split(" "))};var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.log=XR;Uo.resetState=JR;function YR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var X0=function e(){var t=this;YR(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Js=new X0;function XR(){console.log("portalOpenInstances ----------"),console.log(Js.openInstances.length),Js.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function JR(){Js=new X0}Uo.default=Js;var ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.re
|
||
|
|
||
|
`+i+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
|
||
|
`+n:"")+(r!==null?`
|
||
|
`+r:"")+(o!==null?`
|
||
|
`+o:"")+`
|
||
|
|
||
|
The above lifecycles should be removed. Learn more about this warning here:
|
||
|
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=J0,t.componentWillReceiveProps=Z0),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=e1;var s=t.componentDidUpdate;t.componentDidUpdate=function(u,c,f){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,u,c,p)}}return e}const a2=Object.freeze(Object.defineProperty({__proto__:null,polyfill:i2},Symbol.toStringTag,{value:"Module"})),s2=S_(a2);Object.defineProperty(Pr,"__esModule",{value:!0});Pr.bodyOpenClassName=Pr.portalClassName=void 0;var Jv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l2=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t1=w,Zs=pa(t1),u2=go,el=pa(u2),c2=ge,oe=pa(c2),f2=Ys,Zv=pa(f2),d2=Zt,p2=v2(d2),Bn=Yt,em=pa(Bn),h2=s2;function v2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function pa(e){return e&&e.__esModule?e:{default:e}}function m2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function g2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y2=Pr.portalClassName="ReactModalPortal",w2=Pr.bodyOpenClassName="ReactModal__Body--open",vr=Bn.canUseDOM&&el.default.createPortal!==void 0,nm=function(t){return document.createElement(t)},rm=function(){return vr?el.default.createPortal:el.default.unstable_renderSubtreeIntoContainer};function qa(e){return e()}var ha=function(e){g2(t,e);function t(){var n,r,o,i;m2(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return i=(r=(o=tm(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.removePortal=function(){!vr&&el.default.unmountComponentAtNode(o.node);var u=qa(o.props.parentSelector);u&&u.contains(o.node)?u.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(u){o.portal=u},o.renderPortal=function(u){var c=rm(),f=c(o,Zs.default.createElement(Zv.default,Jv({defaultStyles:t.defaultStyles},u)),o.node);o.portalRef(f)},r),tm(o,i)}return l2(t,[{key:"componentDidMount",value:function(){if(Bn.canUseDOM){vr||(this.node=nm("div")),this.node.className=this.props.portalClassName;var r=qa(this.props.parentSelector);r.appendChild(this.node),!vr&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(r){var o=qa(r.parentSelector),i=qa(this.props.parentSelector);return{prevParent:o,nextParent:i}}},{key:"componentDidUpdate",value:function(r,o,i){if(Bn.canUseDOM){var a=this.props,s=a.isOpen,l=a.portalClassName;r.portalClassName!==l&&(this.node.className=l);var u=i.prevParent,c=i.nextParent;c!==u&&(u.removeChild(this.node),c.appendChild(this.node)),!(!r.isOpen&&!s)&&!vr&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!Bn.canUseDOM||!this.node||!this.portal)){var r=this.portal.state,o=Date.now(),i=r.isOpen&&this.props.closeTimeoutMS&&(r.closesAt||o+this.props.closeTimeoutMS);i?(r.beforeClose||this.portal.closeWithTimeout(),setT
|
||
|
* @license React
|
||
|
* use-sync-external-store-shim.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var xo=w;function $2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U2=typeof Object.is=="function"?Object.is:$2,F2=xo.useState,j2=xo.useEffect,z2=xo.useLayoutEffect,B2=xo.useDebugValue;function V2(e,t){var n=t(),r=F2({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return z2(function(){o.value=n,o.getSnapshot=t,qu(o)&&i({inst:o})},[e,n,t]),j2(function(){return qu(o)&&i({inst:o}),e(function(){qu(o)&&i({inst:o})})},[e]),B2(n),n}function qu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!U2(e,n)}catch{return!0}}function W2(e,t){return t()}var H2=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?W2:V2;f1.useSyncExternalStore=xo.useSyncExternalStore!==void 0?xo.useSyncExternalStore:H2;(function(e){e.exports=f1})(M2);const K2=Cf.useSyncExternalStore,pm=w.createContext(void 0),d1=w.createContext(!1);function p1(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=pm),window.ReactQueryClientContext):pm)}const Q2=({context:e}={})=>{const t=w.useContext(p1(e,w.useContext(d1)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q2=({client:e,children:t,context:n,contextSharing:r=!1})=>{w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=p1(n,r);return w.createElement(d1.Provider,{value:!n&&r},w.createElement(o.Provider,{value:e},t))},h1=w.createContext(!1),G2=()=>w.useContext(h1);h1.Provider;function Y2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const X2=w.createContext(Y2()),J2=()=>w.useContext(X2);function Z2(e,t){return typeof e=="function"?e(...t):!!e}const ex=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},tx=e=>{w.useEffect(()=>{e.clearReset()},[e])},nx=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Z2(n,[e.error,r]),rx=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},ox=(e,t)=>e.isLoading&&e.isFetching&&!t,ix=(e,t,n)=>(e==null?void 0:e.suspense)&&ox(t,n),ax=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function sx(e,t){const n=Q2({context:e.context}),r=G2(),o=J2(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=Ie.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Ie.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Ie.batchCalls(i.onSettled)),rx(i),ex(i,o),tx(o);const[a]=w.useState(()=>new t(n,i)),s=a.getOptimisticResult(i);if(K2(w.useCallback(l=>r?()=>{}:a.subscribe(Ie.batchCalls(l)),[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),w.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),ix(i,s,r))throw ax(i,a,o);if(nx({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}function lx(e,t,n){const r=pi(e,t,n);return sx(r,I2)}/**
|
||
|
* @remix-run/router v1.3.2
|
||
|
*
|
||
|
* Copyright (c) Remix Software Inc.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
*
|
||
|
* @license MIT
|
||
|
*/function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zi.apply(this,arguments)}var Vn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Vn||(Vn={}));const hm="popstate";function ux(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:s="",hash:l=""}=Mr(o.location.hash.substr(1));return Rf("",{pathname:a,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");s=u===-1?l:l.slice(0,u)}return s+"#"+(typeof i=="string"?i:ol(i))}function r(o,i){cx(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return dx(t,n,r,e)}function Ge(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fx(){return Math.random().toString(36).substr(2,8)}function vm(e,t){return{usr:e.state,key:e.key,idx:t}}function Rf(e,t,n,r){return n===void 0&&(n=null),Zi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mr(t):t,{state:n,key:t&&t.key||r||fx()})}function ol(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Mr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Vn.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Zi({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=Vn.Pop;let S=c(),h=S==null?null:S-u;u=S,l&&l({action:s,location:y.location,delta:h})}function p(S,h){s=Vn.Push;let d=Rf(y.location,S,h);n&&n(d,S),u=c()+1;let m=vm(d,u),_=y.createHref(d);try{a.pushState(m,"",_)}catch{o.location.assign(_)}i&&l&&l({action:s,location:y.location,delta:1})}function v(S,h){s=Vn.Replace;let d=Rf(y.location,S,h);n&&n(d,S),u=c();let m=vm(d,u),_=y.createHref(d);a.replaceState(m,"",_),i&&l&&l({action:s,location:y.location,delta:0})}function g(S){let h=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof S=="string"?S:ol(S);return Ge(h,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,h)}let y={get action(){return s},get location(){return e(o,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(hm,f),l=S,()=>{o.removeEventListener(hm,f),l=null}},createHref(S){return t(o,S)},createURL:g,encodeLocation(S){let h=g(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:v,go(S){return a.go(S)}};return y}var mm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mm||(mm={}));function px(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Mr(t):t,o=g1(r.pathname||"/",n);if(o==null)return null;let i=v1(e);hx(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=Ex(i[s],xx(o));return a}function v1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Ge(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=er([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Ge(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),v1(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:_x(u,i.index),routesMeta:c
|
||
|
* React Router v6.8.1
|
||
|
*
|
||
|
* Copyright (c) Remix Software Inc.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
*
|
||
|
* @license MIT
|
||
|
*/function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xf.apply(this,arguments)}function Dx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Mx=typeof Object.is=="function"?Object.is:Dx,{useState:$x,useEffect:Ux,useLayoutEffect:Fx,useDebugValue:jx}=Lt;function zx(e,t,n){const r=t(),[{inst:o},i]=$x({inst:{value:r,getSnapshot:t}});return Fx(()=>{o.value=r,o.getSnapshot=t,Yu(o)&&i({inst:o})},[e,r,t]),Ux(()=>(Yu(o)&&i({inst:o}),e(()=>{Yu(o)&&i({inst:o})})),[e]),jx(r),r}function Yu(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Mx(n,r)}catch{return!0}}function Bx(e,t,n){return t()}const Vx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wx=!Vx,Hx=Wx?Bx:zx;"useSyncExternalStore"in Lt&&(e=>e.useSyncExternalStore)(Lt);const Kx=w.createContext(null),S1=w.createContext(null),$l=w.createContext(null),Ul=w.createContext(null),Fo=w.createContext({outlet:null,matches:[]}),_1=w.createContext(null);function Qx(e,t){let{relative:n}=t===void 0?{}:t;ga()||Ge(!1);let{basename:r,navigator:o}=w.useContext($l),{hash:i,pathname:a,search:s}=b1(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:er([r,a])),o.createHref({pathname:l,search:s,hash:i})}function ga(){return w.useContext(Ul)!=null}function ya(){return ga()||Ge(!1),w.useContext(Ul).location}function qx(){ga()||Ge(!1);let{basename:e,navigator:t}=w.useContext($l),{matches:n}=w.useContext(Fo),{pathname:r}=ya(),o=JSON.stringify(y1(n).map(s=>s.pathnameBase)),i=w.useRef(!1);return w.useEffect(()=>{i.current=!0}),w.useCallback(function(s,l){if(l===void 0&&(l={}),!i.current)return;if(typeof s=="number"){t.go(s);return}let u=w1(s,JSON.parse(o),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:er([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,r])}function b1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=w.useContext(Fo),{pathname:o}=ya(),i=JSON.stringify(y1(r).map(a=>a.pathnameBase));return w.useMemo(()=>w1(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function E1(e,t){ga()||Ge(!1);let{navigator:n}=w.useContext($l),r=w.useContext(S1),{matches:o}=w.useContext(Fo),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=ya(),u;if(t){var c;let y=typeof t=="string"?Mr(t):t;s==="/"||(c=y.pathname)!=null&&c.startsWith(s)||Ge(!1),u=y}else u=l;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",v=px(e,{pathname:p}),g=Jx(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:er([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:er([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r||void 0);return t&&g?w.createElement(Ul.Provider,{value:{location:xf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Vn.Pop}},g):g}function Gx(){let e=nk(),t=Ax(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,i)}class Yx extends w.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?w.createElement(Fo.Provider,{value:this.props.routeContext},w.createElement(_1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xx(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(Kx);return o&&o.static&&o.stat
|
||
|
* React Router DOM v6.8.1
|
||
|
*
|
||
|
* Copyright (c) Remix Software Inc.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
*
|
||
|
* @license MIT
|
||
|
*/function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kf.apply(this,arguments)}function ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ik(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ak(e,t){return e.button===0&&(!t||t==="_self")&&!ik(e)}const sk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function lk(e){let{basename:t,children:n,window:r}=e,o=w.useRef();o.current==null&&(o.current=ux({window:r,v5Compat:!0}));let i=o.current,[a,s]=w.useState({action:i.action,location:i.location});return w.useLayoutEffect(()=>i.listen(s),[i]),w.createElement(rk,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}const uk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",C1=w.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=ok(t,sk),p,v=!1;if(uk&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){p=u;let h=new URL(window.location.href),d=u.startsWith("//")?new URL(h.protocol+u):new URL(u);d.origin===h.origin?u=d.pathname+d.search+d.hash:v=!0}let g=Qx(u,{relative:o}),y=ck(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function S(h){r&&r(h),h.defaultPrevented||y(h)}return w.createElement("a",kf({},f,{href:p||g,onClick:v||i?r:S,ref:n,target:l}))});var Sm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Sm||(Sm={}));var _m;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_m||(_m={}));function ck(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=qx(),l=ya(),u=b1(e,{relative:a});return w.useCallback(c=>{if(ak(c,n)){c.preventDefault();let f=r!==void 0?r:ol(l)===ol(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}function fk(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var dk=fk,ae=dk;function pk(e){return!!e&&typeof e.then=="function"}var xe=pk;function hk(e,t){if(e!=null)return e;throw ae(t??"Got unexpected null or undefined")}var ke=hk;function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Fl{getValue(){throw ae("BaseLoadable")}toPromise(){throw ae("BaseLoadable")}valueMaybe(){throw ae("BaseLoadable")}valueOrThrow(){throw ae(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw ae("BaseLoadable")}promiseOrThrow(){throw ae(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw ae("BaseLoadable")}errorOrThrow(){throw ae(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw ae("BaseLoadable")}}class vk extends Fl{constructor(t){super(),ie(this,"state","hasValue"),ie(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return xe(n)?Nr(n):ko(n)?n:wa(n)}catch(n){return xe(n)?Nr(n.next(()=>this.map(t))):jl(n)}}}class mk extends Fl{constructor(t){super(),ie(this,"state","hasError"),ie(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class R1 extends Fl{constructor(t){super(),ie(this,"state","loading"),ie(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.conten
|
||
|
production. But it is safe to ignore this warning if it occurred because of
|
||
|
hot module replacement.`;console.warn(t)}}function Bk(e){N1.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&zk(e.key),Lr.set(e.key,e);const t=e.set==null?new Oo.RecoilValueReadOnly(e.key):new Oo.RecoilState(e.key);return dp.set(e.key,t),t}class D1 extends Error{}function Vk(e){const t=Lr.get(e);if(t==null)throw new D1(`Missing definition for RecoilValue: "${e}""`);return t}function Wk(e){return Lr.get(e)}const al=new Map;function Hk(e){var t;if(!ye("recoil_memory_managament_2020"))return;const n=Lr.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Lr.delete(e),(r=M1(e))===null||r===void 0||r(),al.delete(e)}}function Kk(e,t){ye("recoil_memory_managament_2020")&&(t===void 0?al.delete(e):al.set(e,t))}function M1(e){return al.get(e)}var ft={nodes:Lr,recoilValues:dp,registerNode:Bk,getNode:Vk,getNodeMaybe:Wk,deleteNodeConfigIfPossible:Hk,setConfigDeletionHandler:Kk,getConfigDeletionHandler:M1,recoilValuesForKeys:jk,NodeMissingError:D1,DefaultValue:I1,DEFAULT_VALUE:Fk};function Qk(e,t){t()}var qk={enqueueExecution:Qk};function Gk(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Yk=Gk(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,s=o/4,l={},u=function(b){return function(){return b}},c=n.hash=function(k){var b=typeof k>"u"?"undefined":t(k);if(b==="number")return k;b!=="string"&&(k+="");for(var I=0,B=0,V=k.length;B<V;++B){var G=k.charCodeAt(B);I=(I<<5)-I+G|0}return I},f=function(b){return b-=b>>1&1431655765,b=(b&858993459)+(b>>2&858993459),b=b+(b>>4)&252645135,b+=b>>8,b+=b>>16,b&127},p=function(b,I){return I>>>b&i},v=function(b){return 1<<b},g=function(b,I){return f(b&I-1)},y=function(b,I,B,V){var G=V;if(!b){var re=V.length;G=new Array(re);for(var te=0;te<re;++te)G[te]=V[te]}return G[I]=B,G},S=function(b,I,B){var V=B.length-1,G=0,re=0,te=B;if(b)G=re=I;else for(te=new Array(V);G<I;)te[re++]=B[G++];for(++G;G<=V;)te[re++]=B[G++];return b&&(te.length=V),te},h=function(b,I,B,V){var G=V.length;if(b){for(var re=G;re>=I;)V[re--]=V[re];return V[I]=B,V}for(var te=0,ne=0,le=new Array(G+1);te<I;)le[ne++]=V[te++];for(le[I]=B;te<G;)le[++ne]=V[te++];return le},d=1,m=2,_=3,x=4,C={__hamt_isEmpty:!0},T=function(b){return b===C||b&&b.__hamt_isEmpty},N=function(b,I,B,V){return{type:d,edit:b,hash:I,key:B,value:V,_modify:P}},W=function(b,I,B){return{type:m,edit:b,hash:I,children:B,_modify:H}},M=function(b,I,B){return{type:_,edit:b,mask:I,children:B,_modify:$}},ee=function(b,I,B){return{type:x,edit:b,size:I,children:B,_modify:U}},pe=function(b){return b===C||b.type===d||b.type===m},ue=function(b,I,B,V,G){for(var re=[],te=V,ne=0,le=0;te;++le)te&1&&(re[le]=G[ne++]),te>>>=1;return re[I]=B,ee(b,ne+1,re)},K=function(b,I,B,V){for(var G=new Array(I-1),re=0,te=0,ne=0,le=V.length;ne<le;++ne)if(ne!==B){var Ce=V[ne];Ce&&!T(Ce)&&(G[re++]=Ce,te|=1<<ne)}return M(b,te,G)},j=function k(b,I,B,V,G,re){if(B===G)return W(b,B,[re,V]);var te=p(I,B),ne=p(I,G);return M(b,v(te)|v(ne),te===ne?[k(b,I+r,B,V,G,re)]:te<ne?[V,re]:[re,V])},X=function(b,I,B,V,G,re,te,ne){for(var le=G.length,Ce=0;Ce<le;++Ce){var ot=G[Ce];if(B(te,ot.key)){var Ue=ot.value,Ct=re(Ue);return Ct===Ue?G:Ct===l?(--ne.value,S(b,Ce,G)):y(b,Ce,N(I,V,te,Ct),G)}}var $t=re();return $t===l?G:(++ne.value,y(b,le,N(I,V,te,$t),G))},O=function(b,I){return b===I.edit},P=function(b,I,B,V,G,re,te){if(I(re,this.key)){var ne=V(this.value);return ne===this.value?this:ne===l?(--te.value,C):O(b,this)?(this.value=ne,this):N(b,G,re,ne)}var le=V();return le===l?this:(++te.value,j(b,B,this.hash,this,G,N(b,G,re,le)))},H=function(b,I,B,V,G,re,te){if(G===this.hash){var ne=O(b,this),le=X(ne,b,I,this.hash,this.children,V,re,te);return le===this.children?this:le.length>1?W(b,this.hash,le):le[0]}var Ce=V();return Ce===l?this:(++te.value,j(b,B,this.hash,this,G,N(b,G,re,Ce)))},$=function(b,I,B,V,G,re,te){var ne=this.mask,le=this.children,Ce=p(B,G),ot=v(Ce),Ue=g(ne,ot),Ct=ne&ot,$t=Ct?le[
|
||
|
`),i=o[o.length-1];for(let a=0;a<o.length-1;a++)qf(o[a]);if(t){qf(i),ts="",console.log("GET /traffic streaming done"),ao=!1;return}else ts=i;return iS(e)})}let ns;function Bp(e){if(ao||ns===1)return na;ns=1;const t=Qw(e,oS),n=new WebSocket(t);return n.addEventListener("error",function(r){ns=3}),n.addEventListener("close",function(r){ns=3,YI(e)}),n.addEventListener("message",function(r){qf(r.data)}),na}function YI(e){if(ao)return na;ao=!0;const{url:t,init:n}=_t(e);return fetch(t+oS,n).then(r=>{if(r.ok){const o=r.body.getReader();iS(o)}else ao=!1},r=>{console.log("fetch /traffic error",r),ao=!1}),na}function eg(e){return t=>{t(`openModal:${e}`,n=>{n.modals[e]=!0})}}function XI(e){return t=>{t(`closeModal:${e}`,n=>{n.modals[e]=!1})}}const JI={apiConfig:!1},SU=e=>e.configs.configs,ZI=e=>e.configs.haveFetchedConfig,_U=e=>e.configs.configs["log-level"];function aS(e){return async(t,n)=>{let r;try{r=await rS(e)}catch{t(eg("apiConfig"));return}if(!r.ok){console.log("Error fetch configs",r.statusText),t(eg("apiConfig"));return}const o=await r.json();t("store/configs#fetchConfigs",a=>{a.configs.configs=o}),ZI(n())?Bp(e):t(eD())}}function eD(){return e=>{e("store/configs#markHaveFetchedConfig",t=>{t.configs.haveFetchedConfig=!0})}}function bU(e,t){return async n=>{qI(e,t).then(r=>{r.ok===!1&&console.log("Error update configs",r.statusText)},r=>{throw console.log("Error update configs",r),r}).then(()=>{n(aS(e))}),n("storeConfigsOptimisticUpdateConfigs",r=>{r.configs.configs={...r.configs.configs,...t}})}}const tD={configs:{port:7890,"socks-port":7891,"redir-port":0,"allow-lan":!1,mode:"Rule","log-level":"uninit"},haveFetchedConfig:!1},Bo=e=>{const t=e.app.selectedClashAPIConfigIndex;return e.app.clashAPIConfigs[t]},sS=e=>e.app.selectedClashAPIConfigIndex,Vp=e=>e.app.clashAPIConfigs,Wp=e=>e.app.theme,nD=e=>e.app.selectedChartStyleIndex,lS=e=>e.app.latencyTestUrl,EU=e=>e.app.collapsibleIsOpen,CU=e=>e.app.proxySortBy,RU=e=>e.app.hideUnavailableProxies,rD=e=>e.app.autoCloseOldConns,xU=e=>e.app.logStreamingPaused,oD=yI(Fr,600);function Hp(e,{baseURL:t,secret:n,metaLabel:r}){const o=Vp(e());for(let i=0;i<o.length;i++){const a=o[i];if(a.baseURL===t&&a.secret===n&&a.metaLabel===r)return i}}function iD(e){return async(t,n)=>{if(Hp(n,e))return;const o={...e,addedAt:Date.now()};t("addClashAPIConfig",i=>{i.app.clashAPIConfigs.push(o)}),Fr(n().app)}}function aD(e){return async(t,n)=>{const r=Hp(n,e);t("removeClashAPIConfig",o=>{o.app.clashAPIConfigs.splice(r,1)}),Fr(n().app)}}function sD(e){return async(t,n)=>{const r=Hp(n,e);sS(n())!==r&&t("selectClashAPIConfig",i=>{i.app.selectedClashAPIConfigIndex=r}),Fr(n().app);try{window.location.reload()}catch{}}}const uc=document.querySelector("html");function cc(e,t){const n=document.createElement("meta");n.setAttribute("name","theme-color"),n.setAttribute("content",e),t&&n.setAttribute("media",t),document.head.appendChild(n)}function lD(e){const t=Array.from(document.querySelectorAll("meta[name=theme-color]"));let n;for(const r of t)r.getAttribute("media")?document.head.removeChild(r):n=r;if(e==="auto")if(cc("#eeeeee","(prefers-color-scheme: light)"),cc("#202020","(prefers-color-scheme: dark)"),n)document.head.removeChild(n);else return;else{const r=e==="light"?"#eeeeee":"#202020";n?n.setAttribute("content",r):cc(r)}}function uS(e="dark"){e==="auto"?uc.setAttribute("data-theme","auto"):e==="dark"?uc.setAttribute("data-theme","dark"):uc.setAttribute("data-theme","light"),lD(e)}function uD(e="auto"){return(t,n)=>{Wp(n())!==e&&(uS(e),t("storeSwitchTheme",o=>{o.app.theme=e}),Fr(n().app))}}function cD(e){return(t,n)=>{t("appSelectChartStyleIndex",r=>{r.app.selectedChartStyleIndex=Number(e)}),Fr(n().app)}}function tg(e,t){return(n,r)=>{n("appUpdateAppConfig",o=>{o.app[e]=t}),Fr(r().app)}}function fD(e,t,n){return(r,o)=>{r("updateCollapsibleIsOpen",i=>{i.app.collapsibleIsOpen[`${e}:${t}`]=n}),oD(o().app)}}var Og;const dD={baseURL:((Og=document.getElementById("app"))==null?void 0:Og.getAttribute("data-base-url"))??"http://127.0.0.1:9090",secret:"",addedAt:0},pD={selectedClashAPIConfigIndex:0,clashAPIConfigs:[
|
||
|
* @reach/utils v0.18.0
|
||
|
*
|
||
|
* Copyright (c) 2018-2022, React Training LLC
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
*
|
||
|
* @license MIT
|
||
|
*/function CS(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Le(e,t){return n=>{if(e&&e(n),!n.defaultPrevented)return t(n)}}function ug(e){return typeof e=="boolean"}function hl(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function o3(e){return typeof e=="string"}function i3(e,t){if(e!=null)if(hl(e))e(t);else try{e.current=t}catch{throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}function jr(...e){return w.useCallback(t=>{for(let n of e)i3(n,t)},e)}function ar(e){return CS()?e?e.ownerDocument:document:null}function a3(e,t){let n=w.createContext(t);function r(i){let{children:a,...s}=i,l=w.useMemo(()=>s,Object.values(s));return w.createElement(n.Provider,{value:l},a)}function o(i){let a=w.useContext(n);if(a)return a;if(t)return t;throw Error(`${i} must be rendered inside of a ${e} component.`)}return n.displayName=`${e}Context`,r.displayName=`${e}Provider`,[r,o]}function s3(e){let t=ar(e),n=t.defaultView||window;return t?{width:t.documentElement.clientWidth??n.innerWidth,height:t.documentElement.clientHeight??n.innerHeight}:{width:0,height:0}}function Ss(e){return"which"in e?e.which===3:"button"in e?e.button===2:!1}function Ao(...e){return e.filter(t=>t!=null).join("--")}function Gp(){}function RS(){let[,e]=w.useState(Object.create(null));return w.useCallback(()=>{e(Object.create(null))},[])}var mo=CS()?w.useLayoutEffect:w.useEffect;function vc(e){const t=w.useRef(null);return w.useEffect(()=>{t.current=e},[e]),t.current}function l3(e,t){let[n,r]=w.useState(t),o=w.useCallback(i=>{e.current=i,r(i)},[]);return[n,o]}var u3=({children:e,type:t="reach-portal",containerRef:n})=>{let r=w.useRef(null),o=w.useRef(null),i=RS();return w.useEffect(()=>{n!=null&&(typeof n!="object"||!("current"in n)?console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."):n.current==null&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))},[n]),mo(()=>{if(!r.current)return;let a=r.current.ownerDocument,s=(n==null?void 0:n.current)||a.body;return o.current=a==null?void 0:a.createElement(t),s.appendChild(o.current),i(),()=>{o.current&&s&&s.removeChild(o.current)}},[t,i,n]),o.current?go.createPortal(e,o.current):w.createElement("span",{ref:r})},Yp=({unstable_skipInitialRender:e,...t})=>{let[n,r]=w.useState(!1);return w.useEffect(()=>{e&&r(!0)},[e]),e&&!n?null:w.createElement(u3,{...t})};Yp.displayName="Portal";var c3=["bottom","height","left","right","top","width"],f3=function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),c3.some(function(r){return t[r]!==n[r]})},Ln=new Map,xS,d3=function e(){var t=[];Ln.forEach(function(n,r){var o=r.getBoundingClientRect();f3(o,n.rect)&&(n.rect=o,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),xS=window.requestAnimationFrame(e)};function p3(e,t){return{observe:function(){var r=Ln.size===0;Ln.has(e)?Ln.get(e).callbacks.push(t):Ln.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&d3()},unobserve:function(){var r=Ln.get(e);if(r){var o=r.callbacks.indexOf(t);o>=0&&r.callbacks.splice(o,1),r.callbacks.length||Ln.delete(e),Ln.size||cancelAnimationFrame(xS)}}}}function vl(e,t,n){let r,o;ug(t)?r=t:(r=(t==null?void 0:t.observe)??!0,o=t==null?void 0:t.onChange),hl(n)&&(o=n),w.useEffect(()=>{ug(t)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")},[t]),w.useEffect(()=>{hl(n)&&console.warn("Passing `onChange` as the th
|
||
|
* tabbable 5.3.3
|
||
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||
|
*/var h3=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Yf=h3.join(","),kS=typeof Element>"u",ra=kS?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Xf=!kS&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},v3=function(t,n,r){var o=Array.prototype.slice.apply(t.querySelectorAll(Yf));return n&&ra.call(t,Yf)&&o.unshift(t),o=o.filter(r),o},m3=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,u=e(l,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:a,candidates:u})}else{var c=ra.call(a,Yf);c&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),p=!r.shadowRootFilter||r.shadowRootFilter(a);if(f&&p){var v=e(f===!0?a.children:f.children,!0,r);r.flatten?o.push.apply(o,v):o.push({scope:a,candidates:v})}else i.unshift.apply(i,a.children)}}return o},OS=function(t,n){return t.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},g3=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},TS=function(t){return t.tagName==="INPUT"},y3=function(t){return TS(t)&&t.type==="hidden"},w3=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},S3=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},_3=function(t){if(!t.name)return!0;var n=t.form||Xf(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var i=S3(o,t.form);return!i||i===t},b3=function(t){return TS(t)&&t.type==="radio"},E3=function(t){return b3(t)&&!_3(t)},cg=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},C3=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=ra.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(ra.call(a,"details:not([open]) *"))return!0;var s=Xf(t).host,l=(s==null?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(!r||r==="full"){if(typeof o=="function"){for(var u=t;t;){var c=t.parentElement,f=Xf(t);if(c&&!c.shadowRoot&&o(c)===!0)return cg(t);t.assignedSlot?t=t.assignedSlot:!c&&f!==t.ownerDocument?t=f.host:t=c}t=u}if(l)return!t.getClientRects().length}else if(r==="non-zero-area")return cg(t);return!1},R3=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return ra.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},x3=function(t,n){return!(n.disabled||y3(n)||C3(n,t)||w3(n)||R3(n))},fg=function(t,n){return!(E3(n)||OS(n)<0||!x3(t,n))},k3=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},O3=function e(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scope,s=a?o.scope:o,l=OS(s,a),u=a?e(o.candidates):s;l===0?a?n.push.apply(n,u):n.push(s):r.push({documentOrder:i,tabIndex:l,item:o,isScope:a,content:u})}),r.sort(g3).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},hn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=m3([t],n.includeContainer,{filter:fg.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:k3}):r=v3(t,n
|
||
|
|
||
|
If you are using the \`@reach/descendants\` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.
|
||
|
|
||
|
If you are using another \`reach-ui\` package, this is probably our bug!
|
||
|
|
||
|
To report a bug, open a new issue:
|
||
|
|
||
|
https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md
|
||
|
|
||
|
IMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed.`),B3(l);let u=z3(l,i),c;return u===-1?c=[...l,{...s,element:i,index:l.length}]:c=hg(l,{...s,element:i,index:u},u),c}),()=>{i&&r(l=>l.filter(u=>i!==u.element))}):Gp,[]);return w.createElement(e.Provider,{value:w.useMemo(()=>({descendants:n,registerDescendant:o}),[n,o])},t)}function j3(e,t){let{descendants:n}=w.useContext(e),{callback:r,currentIndex:o,filter:i,key:a="index",orientation:s="vertical",rotate:l=!0,rtl:u=!1}=t;return function(f){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(f.key))return;let p=o??-1,v=i?n.filter(i):n;if(!v.length)return;let g=v.findIndex(m=>m.index===o);function y(){return p===d().index?l?h():v[g]:v[(g+1)%v.length]}function S(){return p===h().index?l?d():v[g]:v[(g-1+v.length)%v.length]}function h(){return v[0]}function d(){return v[v.length-1]}switch(f.key){case"ArrowDown":if(s==="vertical"||s==="both"){f.preventDefault();let T=y();r(a==="option"?T:T[a])}break;case"ArrowUp":if(s==="vertical"||s==="both"){f.preventDefault();let T=S();r(a==="option"?T:T[a])}break;case"ArrowLeft":if(s==="horizontal"||s==="both"){f.preventDefault();let T=(u?y:S)();r(a==="option"?T:T[a])}break;case"ArrowRight":if(s==="horizontal"||s==="both"){f.preventDefault();let T=(u?S:y)();r(a==="option"?T:T[a])}break;case"PageUp":f.preventDefault();let m=(f.ctrlKey?S:h)();r(a==="option"?m:m[a]);break;case"Home":f.preventDefault();let _=h();r(a==="option"?_:_[a]);break;case"PageDown":f.preventDefault();let x=(f.ctrlKey?y:d)();r(a==="option"?x:x[a]);break;case"End":f.preventDefault();let C=d();r(a==="option"?C:C[a]);break}}}function LS(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function z3(e,t){if(!t||!e.length)return-1;let n=e.length;for(;n--;){let r=e[n].element;if(r&&LS(r,t))return n+1}return-1}function hg(e,t,n){return n==null||!(n in e)?[...e,t]:[...e.slice(0,n),t,...e.slice(n)]}function B3(e){return e.sort((t,n)=>!t.element||!n.element?0:LS(t.element,n.element)?-1:1).map((t,n)=>({...t,index:n}))}var AS="CLEAR_SELECTION_INDEX",Jp="CLICK_MENU_ITEM",oa="CLOSE_MENU",V3="OPEN_MENU_AT_FIRST_ITEM",Jf="OPEN_MENU_AT_INDEX",IS="OPEN_MENU_CLEARED",Zf="SEARCH_FOR_ITEM",Wn="SELECT_ITEM_AT_INDEX",ed="SET_BUTTON_ID",au=D3("DropdownDescendantContext"),[W3,xa]=a3("Dropdown"),H3={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},DS=({id:e,children:t})=>{let n=w.useRef(null),r=w.useRef(null),o=w.useRef(null),[i,a]=$3(),s=NS(e),l=e||Ao("menu",s),u=Ao("menu-button",l),[c,f]=w.useReducer(J3,{...H3,triggerId:u}),p=w.useRef(!1),v=w.useRef([]),g=w.useRef(!1),y=w.useRef({x:0,y:0});return w.useEffect(()=>{c.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(()=>{ml(r.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[c.isExpanded]),w.createElement(F3,{context:au,items:i,set:a},w.createElement(W3,{dispatch:f,dropdownId:l,dropdownRef:r,mouseDownStartPosRef:y,popoverRef:o,readyToSelect:g,selectCallbacks:v,state:c,triggerClickedRef:p,triggerRef:n},hl(t)?t({isExpanded:c.isExpanded,isOpen:c.isExpanded}):t))};DS.displayName="DropdownProvider";function MS({onKeyDown:e,onMouseDown:t,id:n,ref:r,...o}){let{dispatch:i,dropdownId:a,mouseDownStartPosRef:s,triggerClickedRef:l,triggerRef:u,state:{triggerId:c,isExpanded:f}}=xa("useDropdownTrigger"),p=jr(u,r),v=zS(),g=w.useMemo(()=>v.findIndex(h=>!h.disabled),[v]);w.useEffect(()=>{n!=null&&n!==c&&i({type:ed,payload:n})},[c,i,n]),w.useEffect(()=>{n==null&&i({type:ed,payload:Ao("menu-button",a)})},[a,i,n]);function y(h){switch(h.key){case"ArrowDown":case"ArrowUp":h.preventDefault(),i({type:Jf,payload:{index:g}});break;case"Enter":case" ":i({type:Jf,payload:{index:g}});break}}function S(h){Ss(h.nativeEvent)||(s.current={x:h.clientX,y:h.clientY},f||(l.current=!0),i(f?{type:oa}:{type:IS}))}return{data:{isExpanded:f,controls:a},props:{...o,ref:p,id:c||void 0,onKeyDown:Le(e,y),onMouseDown:Le(t,S),type:"button"}}}var K3=w.forwardRef(({as:e="button",...t},n)=
|
||
|
* react-is.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var ze=typeof Symbol=="function"&&Symbol.for,Zp=ze?Symbol.for("react.element"):60103,eh=ze?Symbol.for("react.portal"):60106,su=ze?Symbol.for("react.fragment"):60107,lu=ze?Symbol.for("react.strict_mode"):60108,uu=ze?Symbol.for("react.profiler"):60114,cu=ze?Symbol.for("react.provider"):60109,fu=ze?Symbol.for("react.context"):60110,th=ze?Symbol.for("react.async_mode"):60111,du=ze?Symbol.for("react.concurrent_mode"):60111,pu=ze?Symbol.for("react.forward_ref"):60112,hu=ze?Symbol.for("react.suspense"):60113,e4=ze?Symbol.for("react.suspense_list"):60120,vu=ze?Symbol.for("react.memo"):60115,mu=ze?Symbol.for("react.lazy"):60116,t4=ze?Symbol.for("react.block"):60121,n4=ze?Symbol.for("react.fundamental"):60117,r4=ze?Symbol.for("react.responder"):60118,o4=ze?Symbol.for("react.scope"):60119;function bt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zp:switch(e=e.type,e){case th:case du:case su:case uu:case lu:case hu:return e;default:switch(e=e&&e.$$typeof,e){case fu:case pu:case mu:case vu:case cu:return e;default:return t}}case eh:return t}}}function BS(e){return bt(e)===du}me.AsyncMode=th;me.ConcurrentMode=du;me.ContextConsumer=fu;me.ContextProvider=cu;me.Element=Zp;me.ForwardRef=pu;me.Fragment=su;me.Lazy=mu;me.Memo=vu;me.Portal=eh;me.Profiler=uu;me.StrictMode=lu;me.Suspense=hu;me.isAsyncMode=function(e){return BS(e)||bt(e)===th};me.isConcurrentMode=BS;me.isContextConsumer=function(e){return bt(e)===fu};me.isContextProvider=function(e){return bt(e)===cu};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zp};me.isForwardRef=function(e){return bt(e)===pu};me.isFragment=function(e){return bt(e)===su};me.isLazy=function(e){return bt(e)===mu};me.isMemo=function(e){return bt(e)===vu};me.isPortal=function(e){return bt(e)===eh};me.isProfiler=function(e){return bt(e)===uu};me.isStrictMode=function(e){return bt(e)===lu};me.isSuspense=function(e){return bt(e)===hu};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===su||e===du||e===uu||e===lu||e===hu||e===e4||typeof e=="object"&&e!==null&&(e.$$typeof===mu||e.$$typeof===vu||e.$$typeof===cu||e.$$typeof===fu||e.$$typeof===pu||e.$$typeof===n4||e.$$typeof===r4||e.$$typeof===o4||e.$$typeof===t4)};me.typeOf=bt;(function(e){e.exports=me})(Z3);var VS=w.forwardRef(({as:e=w.Fragment,id:t,children:n,...r},o)=>{let a=w.useMemo(()=>{try{return td.isFragment(w.createElement(e,null))}catch{return!1}},[e])?{}:{ref:o,id:t,"data-reach-menu":"",...r};return w.createElement(e,{...a},w.createElement(DS,{id:t,children:n}))});VS.displayName="Menu";var WS=w.forwardRef(({as:e="button",...t},n)=>{let{data:{isExpanded:r,controls:o},props:i}=MS({...t,ref:n});return w.createElement(e,{"aria-expanded":r?!0:void 0,"aria-haspopup":!0,"aria-controls":o,...i,"data-reach-menu-button":""})});WS.displayName="MenuButton";var nh=w.forwardRef(({as:e="div",...t},n)=>{let{data:{disabled:r},props:o}=$S({...t,ref:n});return w.createElement(e,{role:"menuitem",...o,"aria-disabled":r||void 0,"data-reach-menu-item":""})});nh.displayName="MenuItemImpl";var HS=w.forwardRef(({as:e="div",...t},n)=>w.createElement(nh,{...t,ref:n,as:e}));HS.displayName="MenuItem";var KS=w.forwardRef(({as:e="div",...t},n)=>{let{data:{activeDescendant:r,triggerId:o},props:i}=US({...t,ref:n});return w.createElement(e,{"aria-activedescendant":r,"aria-labelledby":o||void 0,role:"menu",...i,"data-reach-menu-items":""})});KS.displayName="MenuItems";var i4=w.forwardRef(({as:e="a",component:t,onSelect:n,...r},o)=>(w.useEffect(()=>{t&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")},[t]),w.createElement(nh,{...r,ref:o,"data-reach-menu-link":"",as:e,isLink:!0,onSelect:n||Gp})));i4.displayName="MenuLink";var QS=w.forwardRef(({portal:e=!0,...t},n)=>w.createElement(qS,{portal:e},w.createElement(KS,{...t,ref:n,"data-reach-menu-list":""})));QS.displayName="MenuList";var qS=w.forwardRef(({as:e="div",...t},n)=>{let{data:{portal:r,targetRef:o,position:i},props:a}=FS({...t,ref:n}),s={"data-reach-menu-popover":""};return r?w.createElement(Xp,{...a,...s,as:e,targ
|