mirror of
https://github.com/khairul169/loli-license.git
synced 2025-06-17 17:19:35 +07:00
405 lines
459 KiB
JavaScript
405 lines
459 KiB
JavaScript
|
function MC(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 Fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sy={exports:{}},pu={},xy={exports:{}},J={};/**
|
||
|
* @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 Wa=Symbol.for("react.element"),RC=Symbol.for("react.portal"),zC=Symbol.for("react.fragment"),FC=Symbol.for("react.strict_mode"),IC=Symbol.for("react.profiler"),DC=Symbol.for("react.provider"),OC=Symbol.for("react.context"),LC=Symbol.for("react.forward_ref"),jC=Symbol.for("react.suspense"),BC=Symbol.for("react.memo"),NC=Symbol.for("react.lazy"),Rm=Symbol.iterator;function VC(e){return e===null||typeof e!="object"?null:(e=Rm&&e[Rm]||e["@@iterator"],typeof e=="function"?e:null)}var wy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ky=Object.assign,Cy={};function li(e,t,n){this.props=e,this.context=t,this.refs=Cy,this.updater=n||wy}li.prototype.isReactComponent={};li.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")};li.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _y(){}_y.prototype=li.prototype;function bh(e,t,n){this.props=e,this.context=t,this.refs=Cy,this.updater=n||wy}var Sh=bh.prototype=new _y;Sh.constructor=bh;ky(Sh,li.prototype);Sh.isPureReactComponent=!0;var zm=Array.isArray,Py=Object.prototype.hasOwnProperty,xh={current:null},Ty={key:!0,ref:!0,__self:!0,__source:!0};function Ey(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)Py.call(t,r)&&!Ty.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:Wa,type:e,key:i,ref:a,props:o,_owner:xh.current}}function WC(e,t){return{$$typeof:Wa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function wh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wa}function HC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fm=/\/+/g;function Sc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?HC(""+e.key):t.toString(36)}function Gs(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 Wa:case RC:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Sc(a,0):r,zm(o)?(n="",e!=null&&(n=e.replace(Fm,"$&/")+"/"),Gs(o,t,n,"",function(u){return u})):o!=null&&(wh(o)&&(o=WC(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Fm,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",zm(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+Sc(i,s);a+=Gs(i,t,n,l,o)}else if(l=VC(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+Sc(i,s++),a+=Gs(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 hs(e,t,n){if(e==null)return e;var r=[],o=0;return Gs(e,r,"","",function(i){return t.call(n,i,o++)}),r}function UC(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 ht={current:null},Ks={transition:null},GC={ReactCurrentDispatcher:ht,ReactCurrentBatchConfig:Ks,ReactCurrentOwner:xh};J.Children={map:hs,forEach:function(e,t,n){hs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hs(e,function(){t++}),t},toArray:function(e){return hs(e,function(t){return t})||[]},only:function(e){if(!wh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=li;J.Fragment=zC;J.Profiler=IC;J.Pure
|
||
|
* @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 KC=b,YC=Symbol.for("react.element"),qC=Symbol.for("react.fragment"),XC=Object.prototype.hasOwnProperty,QC=KC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZC={key:!0,ref:!0,__self:!0,__source:!0};function $y(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)XC.call(t,r)&&!ZC.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:YC,type:e,key:i,ref:a,props:o,_owner:QC.current}}pu.Fragment=qC;pu.jsx=$y;pu.jsxs=$y;Sy.exports=pu;var w=Sy.exports,Fd={},Ay={exports:{}},Rt={},My={exports:{}},Ry={};/**
|
||
|
* @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(M,F){var j=M.length;M.push(F);e:for(;0<j;){var B=j-1>>>1,G=M[B];if(0<o(G,F))M[B]=F,M[j]=G,j=B;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var F=M[0],j=M.pop();if(j!==F){M[0]=j;e:for(var B=0,G=M.length,U=G>>>1;B<U;){var Z=2*(B+1)-1,Ee=M[Z],ce=Z+1,me=M[ce];if(0>o(Ee,j))ce<G&&0>o(me,Ee)?(M[B]=me,M[ce]=j,B=ce):(M[B]=Ee,M[Z]=j,B=Z);else if(ce<G&&0>o(me,j))M[B]=me,M[ce]=j,B=ce;else break e}}return F}function o(M,F){var j=M.sortIndex-F.sortIndex;return j!==0?j:M.id-F.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,d=null,f=3,h=!1,v=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(M){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=M)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function k(M){if(g=!1,y(M),!v)if(n(l)!==null)v=!0,H(P);else{var F=n(u);F!==null&&L(k,F.startTime-M)}}function P(M,F){v=!1,g&&(g=!1,m($),$=-1),h=!0;var j=f;try{for(y(F),d=n(l);d!==null&&(!(d.expirationTime>F)||M&&!Q());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var G=B(d.expirationTime<=F);F=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(l)&&r(l),y(F)}else r(l);d=n(l)}if(d!==null)var U=!0;else{var Z=n(u);Z!==null&&L(k,Z.startTime-F),U=!1}return U}finally{d=null,f=j,h=!1}}var A=!1,T=null,$=-1,O=5,D=-1;function Q(){return!(e.unstable_now()-D<O)}function fe(){if(T!==null){var M=e.unstable_now();D=M;var F=!0;try{F=T(!0,M)}finally{F?V():(A=!1,T=null)}}else A=!1}var V;if(typeof p=="function")V=function(){p(fe)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,R=z.port2;z.port1.onmessage=fe,V=function(){R.postMessage(null)}}else V=function(){x(fe,0)};function H(M){T=M,A||(A=!0,V())}function L(M,F){$=x(function(){M(e.unstable_now())},F)}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(M){M.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,H(P))},e.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"):O=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(f){case 1:case 2:case 3:var F=3;break;default:F=f}var j=f;f=F;try{return M()}finally{f=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,F){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var j=f;f=M;try{return F()}finally{f=j}},e.unstable_scheduleCallback=function(M,F,j){var B=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?B+j:B):j=B,M){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=j+G,M={id:c++,callback:F,priorityLevel:M,startTime:j,expirationTime:G,sortIndex:-1},j>B?(M.sortIndex=j,t(u,M),n(l)===null&&M===n(u)&&(g?(m($),$=-1):g=!0,L(k,j-B))):(M.sortIndex=G,t(l,M),v||h||(v=!0,H(P))),M},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(M){var F=f;return function(){var j=f;f=F;try{return M.apply(this,arguments)}finally{f=j}}}})(Ry);My.exports=Ry;var JC=My.exports;/**
|
||
|
* @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 zy=b,At=JC;function I(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 Fy=new Set,da={};function no(e,t){Qo(e,t),Qo(e+"Capture",t)}function Qo(e,t){for(da[e]=t,e=0;e<t.length;e++)Fy.add(t[e])}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Id=Object.prototype.hasOwnProperty,e_=/^[: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]*$/,Dm={},Om={};function t_(e){return Id.call(Om,e)?!0:Id.call(Dm,e)?!1:e_.test(e)?Om[e]=!0:(Dm[e]=!0,!1)}function n_(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 r_(e,t,n,r){if(t===null||typeof t>"u"||n_(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 pt(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 tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new pt(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){tt[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var kh=/[\-:]([a-z])/g;function Ch(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-
|
||
|
`+xc+e}var wc=!1;function kc(e,t){if(!e||wc)return"";wc=!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{wc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ii(e):""}function o_(e){switch(e.tag){case 5:return Ii(e.type);case 16:return Ii("Lazy");case 13:return Ii("Suspense");case 19:return Ii("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function jd(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 bo:return"Fragment";case yo:return"Portal";case Dd:return"Profiler";case Ph:return"StrictMode";case Od:return"Suspense";case Ld:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dy:return(e.displayName||"Context")+".Consumer";case Iy:return(e._context.displayName||"Context")+".Provider";case Th:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eh:return t=e.displayName||null,t!==null?t:jd(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return jd(e(t))}catch{}}return null}function i_(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 jd(t);case 8:return t===Ph?"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 gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ly(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function a_(e){var t=Ly(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 ms(e){e._valueTracker||(e._valueTracker=a_(e))}function jy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ly(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kl(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 Bd(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gr(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 By(e,t){t=t.checked,t!=null&&_h(e,"checked",t,!1)}function Nd(e,t){By(e,t);var n=gr(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")?Vd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vd(e,t.type,gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bm(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(v2,"")}function ks(e,t,n){if(t=uv(t),uv(e)!==t&&n)throw Error(I(425))}function Ml(){}var nf=null,rf=null;function of(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 af=typeof setTimeout=="function"?setTimeout:void 0,g2=typeof clearTimeout=="function"?clearTimeout:void 0,cv=typeof Promise=="function"?Promise:void 0,y2=typeof queueMicrotask=="function"?queueMicrotask:typeof cv<"u"?function(e){return cv.resolve(null).then(e).catch(b2)}:af;function b2(e){setTimeout(function(){throw e})}function Dc(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),va(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);va(t)}function lr(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 dv(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 ci=Math.random().toString(36).slice(2),fn="__reactFiber$"+ci,xa="__reactProps$"+ci,jn="__reactContainer$"+ci,sf="__reactEvents$"+ci,S2="__reactListeners$"+ci,x2="__reactHandles$"+ci;function Or(e){var t=e[fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jn]||n[fn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dv(e);e!==null;){if(n=e[fn])return n;e=dv(e)}return t}e=n,n=e.parentNode}return null}function Ga(e){return e=e[fn]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ko(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function bu(e){return e[xa]||null}var lf=[],Co=-1;function xr(e){return{current:e}}function ke(e){0>Co||(e.current=lf[Co],lf[Co]=null,Co--)}function be(e,t){Co++,lf[Co]=e.current,e.current=t}var yr={},st=xr(yr),bt=xr(!1),Kr=yr;function Zo(e,t){var n=e.type.contextTypes;if(!n)return yr;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 St(e){return e=e.childContextTypes,e!=null}function Rl(){ke(bt),ke(st)}function fv(e,t,n){if(st.current!==yr)throw Error(I(168));be(st,t),be(bt,n)}function E1(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(I(108,i_(e)||"Unknown",o));return ze({},n,r)}function zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yr,Kr=st.current,be(st,e),be(bt,bt.current),!0}function hv(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=E1(e,t,Kr),r.__reactInternalMemoizedMergedChildContext=e,ke(bt),ke(st),be(st,e)):ke(bt),be(bt,n)}var Tn=null,Su=!1,Oc=!1;function $1(e){Tn===null?Tn=[e]:Tn.push(e)}function w2(e){Su=!0,$1(e)}function wr(){if(!Oc&&Tn!==null){Oc=!0;var e=0,t=he;try{var n=Tn;for(he=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tn=null,Su=!1}catch(o){throw Tn!==null&&(Tn=Tn.slice(e+1)),e1(Ah,wr),o}finally{he=t,Oc=!1}}return null}var _o=[],Po=0,Fl=null,Il=0,Bt=[],Nt=0,Yr=null,An=1,Mn="";function Er(e,t){_o[Po++]=Il,_o[Po++]=Fl,Fl=e,Il=t}function A1(e,t,n){Bt[Nt++]=An,Bt[Nt++]=Mn,Bt[Nt++]=Yr,Yr=e;var r=An;e=Mn;var o=32-Jt(r)-1;r&=~(1<<o),n+=1;var i=32-Jt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,An=1<<32-Jt(t)+o|n<<o|r,Mn=i+e}else An=1<<i|n<<o|r,Mn=e}function jh(e){e.return!==null&&(Er(e,1),A1(e,1,0))}function Bh(e){for(;e===Fl;)Fl=_o[--Po],_o[Po]=null,Il=_o[--Po],_o[Po]=null;for(;e===Yr;)Yr=Bt[--Nt],Bt[Nt]=null,Mn=Bt[--Nt],Bt[Nt]=null,An=Bt[--Nt],Bt[Nt]=null}var Tt=null,Pt=null,Pe=!1,Qt=null;function M1(e,t){var n=Vt(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 Vc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var M2=typeof WeakMap=="function"?WeakMap:Map;function ib(e,t,n){n=Fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Cf=r),pf(e,t)},n}function ab(e,t,n){n=Fn(-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(){pf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){pf(e,t),typeof r!="function"&&(cr===null?cr=new Set([this]):cr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function kv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new M2;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=U2.bind(null,e,t,n),t.then(e,e))}function Cv(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 _v(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=Fn(-1,1),t.tag=2,ur(n,t,1))),n.lanes|=1),e)}var R2=Hn.ReactCurrentOwner,gt=!1;function ut(e,t,n,r){t.child=e===null?L1(t,null,n,r):ei(t,e.child,n,r)}function Pv(e,t,n,r,o){n=n.render;var i=t.ref;return Bo(t,o),r=Qh(e,t,n,r,i,o),n=Zh(),e!==null&&!gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Nn(e,t,o)):(Pe&&n&&jh(t),t.flags|=1,ut(e,t,r,o),t.child)}function Tv(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!lp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,sb(e,t,i,r,o)):(e=rl(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:ya,n(a,r)&&e.ref===t.ref)return Nn(e,t,o)}return t.flags|=1,e=fr(i,r),e.ref=t.ref,e.return=t,t.child=e}function sb(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ya(i,r)&&e.ref===t.ref)if(gt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(gt=!0);else return t.lanes=e.lanes,Nn(e,t,o)}return mf(e,t,n,r,o)}function lb(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},be($o,_t),_t|=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,be($o,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,be($o,_t),_t|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,be($o,_t),_t|=r;return ut(e,t,o,n),t.child}function ub(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mf(e,t,n,r,o){var i=St(n)?Kr:st.current;return i=Zo(t,i),Bo(t,o),n=Qh(e,t,n,r,i,o),r=Zh(),e!==null&&!gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Nn(e,t,o)):(Pe&&r&&jh(t),t.flags|=1,ut(e,t,n,o),t.child)}function Ev(e,t,n,r,o){if(St(n)){var i=!0;zl(t)}else i=!1;if(Bo(t,o),t.stateNode===null)el(e,t),D1(t,n,r),hf(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=Ht(u):(u=St(n)?Kr:st.current,u=Zo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&bv(t,a,r,u),Qn=!1;var f=t.memoizedState;a.state=f,Ll(t,r,a,o),l=t.memoizedState,s!==r||f!==l||bt.current||Qn?(typeof c=="function"&&(ff(t,n,c,r),l=t.memoizedState),(s=Qn||yv(t,n,s,r,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
|
||
|
* 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 Xe=typeof Symbol=="function"&&Symbol.for,gp=Xe?Symbol.for("react.element"):60103,yp=Xe?Symbol.for("react.portal"):60106,zu=Xe?Symbol.for("react.fragment"):60107,Fu=Xe?Symbol.for("react.strict_mode"):60108,Iu=Xe?Symbol.for("react.profiler"):60114,Du=Xe?Symbol.for("react.provider"):60109,Ou=Xe?Symbol.for("react.context"):60110,bp=Xe?Symbol.for("react.async_mode"):60111,Lu=Xe?Symbol.for("react.concurrent_mode"):60111,ju=Xe?Symbol.for("react.forward_ref"):60112,Bu=Xe?Symbol.for("react.suspense"):60113,MP=Xe?Symbol.for("react.suspense_list"):60120,Nu=Xe?Symbol.for("react.memo"):60115,Vu=Xe?Symbol.for("react.lazy"):60116,RP=Xe?Symbol.for("react.block"):60121,zP=Xe?Symbol.for("react.fundamental"):60117,FP=Xe?Symbol.for("react.responder"):60118,IP=Xe?Symbol.for("react.scope"):60119;function Ft(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gp:switch(e=e.type,e){case bp:case Lu:case zu:case Iu:case Fu:case Bu:return e;default:switch(e=e&&e.$$typeof,e){case Ou:case ju:case Vu:case Nu:case Du:return e;default:return t}}case yp:return t}}}function Vb(e){return Ft(e)===Lu}pe.AsyncMode=bp;pe.ConcurrentMode=Lu;pe.ContextConsumer=Ou;pe.ContextProvider=Du;pe.Element=gp;pe.ForwardRef=ju;pe.Fragment=zu;pe.Lazy=Vu;pe.Memo=Nu;pe.Portal=yp;pe.Profiler=Iu;pe.StrictMode=Fu;pe.Suspense=Bu;pe.isAsyncMode=function(e){return Vb(e)||Ft(e)===bp};pe.isConcurrentMode=Vb;pe.isContextConsumer=function(e){return Ft(e)===Ou};pe.isContextProvider=function(e){return Ft(e)===Du};pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gp};pe.isForwardRef=function(e){return Ft(e)===ju};pe.isFragment=function(e){return Ft(e)===zu};pe.isLazy=function(e){return Ft(e)===Vu};pe.isMemo=function(e){return Ft(e)===Nu};pe.isPortal=function(e){return Ft(e)===yp};pe.isProfiler=function(e){return Ft(e)===Iu};pe.isStrictMode=function(e){return Ft(e)===Fu};pe.isSuspense=function(e){return Ft(e)===Bu};pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zu||e===Lu||e===Iu||e===Fu||e===Bu||e===MP||typeof e=="object"&&e!==null&&(e.$$typeof===Vu||e.$$typeof===Nu||e.$$typeof===Du||e.$$typeof===Ou||e.$$typeof===ju||e.$$typeof===zP||e.$$typeof===FP||e.$$typeof===IP||e.$$typeof===RP)};pe.typeOf=Ft;Nb.exports=pe;var DP=Nb.exports,Wb=DP,OP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hb={};Hb[Wb.ForwardRef]=OP;Hb[Wb.Memo]=LP;var jP=!0;function BP(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Ub=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||jP===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Gb=function(t,n,r){Ub(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function NP(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var VP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeW
|
||
|
:root,
|
||
|
:host {
|
||
|
--chakra-vh: 100vh;
|
||
|
}
|
||
|
|
||
|
@supports (height: -webkit-fill-available) {
|
||
|
:root,
|
||
|
:host {
|
||
|
--chakra-vh: -webkit-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: -moz-fill-available) {
|
||
|
:root,
|
||
|
:host {
|
||
|
--chakra-vh: -moz-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: 100dvh) {
|
||
|
:root,
|
||
|
:host {
|
||
|
--chakra-vh: 100dvh;
|
||
|
}
|
||
|
}
|
||
|
`,ZP=()=>w.jsx(Wu,{styles:Zb}),JP=({scope:e=""})=>w.jsx(Wu,{styles:Qb`
|
||
|
html {
|
||
|
line-height: 1.5;
|
||
|
-webkit-text-size-adjust: 100%;
|
||
|
font-family: system-ui, sans-serif;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
text-rendering: optimizeLegibility;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
touch-action: manipulation;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
position: relative;
|
||
|
min-height: 100%;
|
||
|
margin: 0;
|
||
|
font-feature-settings: "kern";
|
||
|
}
|
||
|
|
||
|
${e} :where(*, *::before, *::after) {
|
||
|
border-width: 0;
|
||
|
border-style: solid;
|
||
|
box-sizing: border-box;
|
||
|
word-wrap: break-word;
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
${e} hr {
|
||
|
border-top-width: 1px;
|
||
|
box-sizing: content-box;
|
||
|
height: 0;
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
${e} :where(pre, code, kbd,samp) {
|
||
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||
|
font-size: 1em;
|
||
|
}
|
||
|
|
||
|
${e} a {
|
||
|
background-color: transparent;
|
||
|
color: inherit;
|
||
|
text-decoration: inherit;
|
||
|
}
|
||
|
|
||
|
${e} abbr[title] {
|
||
|
border-bottom: none;
|
||
|
text-decoration: underline;
|
||
|
-webkit-text-decoration: underline dotted;
|
||
|
text-decoration: underline dotted;
|
||
|
}
|
||
|
|
||
|
${e} :where(b, strong) {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
${e} small {
|
||
|
font-size: 80%;
|
||
|
}
|
||
|
|
||
|
${e} :where(sub,sup) {
|
||
|
font-size: 75%;
|
||
|
line-height: 0;
|
||
|
position: relative;
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
${e} sub {
|
||
|
bottom: -0.25em;
|
||
|
}
|
||
|
|
||
|
${e} sup {
|
||
|
top: -0.5em;
|
||
|
}
|
||
|
|
||
|
${e} img {
|
||
|
border-style: none;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, input, optgroup, select, textarea) {
|
||
|
font-family: inherit;
|
||
|
font-size: 100%;
|
||
|
line-height: 1.15;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, input) {
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, select) {
|
||
|
text-transform: none;
|
||
|
}
|
||
|
|
||
|
${e} :where(
|
||
|
button::-moz-focus-inner,
|
||
|
[type="button"]::-moz-focus-inner,
|
||
|
[type="reset"]::-moz-focus-inner,
|
||
|
[type="submit"]::-moz-focus-inner
|
||
|
) {
|
||
|
border-style: none;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} fieldset {
|
||
|
padding: 0.35em 0.75em 0.625em;
|
||
|
}
|
||
|
|
||
|
${e} legend {
|
||
|
box-sizing: border-box;
|
||
|
color: inherit;
|
||
|
display: table;
|
||
|
max-width: 100%;
|
||
|
padding: 0;
|
||
|
white-space: normal;
|
||
|
}
|
||
|
|
||
|
${e} progress {
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
${e} textarea {
|
||
|
overflow: auto;
|
||
|
}
|
||
|
|
||
|
${e} :where([type="checkbox"], [type="radio"]) {
|
||
|
box-sizing: border-box;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} input[type="number"]::-webkit-inner-spin-button,
|
||
|
${e} input[type="number"]::-webkit-outer-spin-button {
|
||
|
-webkit-appearance: none !important;
|
||
|
}
|
||
|
|
||
|
${e} input[type="number"] {
|
||
|
-moz-appearance: textfield;
|
||
|
}
|
||
|
|
||
|
${e} input[type="search"] {
|
||
|
-webkit-appearance: textfield;
|
||
|
outline-offset: -2px;
|
||
|
}
|
||
|
|
||
|
${e} input[type="search"]::-webkit-search-decoration {
|
||
|
-webkit-appearance: none !important;
|
||
|
}
|
||
|
|
||
|
${e} ::-webkit-file-upload-button {
|
||
|
-webkit-appearance: button;
|
||
|
font: inherit;
|
||
|
}
|
||
|
|
||
|
${e} details {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
${e} summary {
|
||
|
display: list-item;
|
||
|
}
|
||
|
|
||
|
template {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
[hidden] {
|
||
|
display: none !important;
|
||
|
}
|
||
|
|
||
|
${e} :where(
|
||
|
blockquote,
|
||
|
dl,
|
||
|
dd,
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6,
|
||
|
hr,
|
||
|
figure,
|
||
|
p,
|
||
|
pre
|
||
|
) {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
${e} button {
|
||
|
background: transparent;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} fieldset {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} :where(ol, ul) {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} textarea {
|
||
|
resize: vertical;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, [role="button"]) {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
${e} button::-moz-focus-inner {
|
||
|
border: 0 !important;
|
||
|
}
|
||
|
|
||
|
${e} table {
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
|
||
|
${e} :where(h1, h2, h3, h4, h5, h6) {
|
||
|
font-size: inherit;
|
||
|
font-weight: inherit;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, input, optgroup, select, textarea) {
|
||
|
padding: 0;
|
||
|
line-height: inherit;
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
${e} :where(img, video) {
|
||
|
max-width: 100%;
|
||
|
height: auto;
|
||
|
}
|
||
|
|
||
|
[data-js-focus-visible]
|
||
|
:focus:not([data-focus-visible-added]):not(
|
||
|
[data-focus-visible-disabled]
|
||
|
) {
|
||
|
outline: none;
|
||
|
box-shadow: none;
|
||
|
}
|
||
|
|
||
|
${e} select::-ms-expand {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
${Zb}
|
||
|
`});function eT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Gt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=b.createContext(a);s.displayName=t;function l(){var u;const c=b.useContext(s);if(!c&&n){const d=new Error(i??eT(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[tT,nT]=Gt({strict:!1,name:"PortalManagerContext"});function Jb(e){const{children:t,zIndex:n}=e;return w.jsx(tT,{value:{zIndex:n},children:t})}Jb.displayName="PortalManager";var hr=globalThis!=null&&globalThis.document?b.useLayoutEffect:b.useEffect,[eS,rT]=Gt({strict:!1,name:"PortalContext"}),xp="chakra-portal",oT=".chakra-portal",iT=e=>w.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),aT=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=b.useState(null),i=b.useRef(null),[,a]=b.useState({});b.useEffect(()=>a({}),[]);const s=rT(),l=nT();hr(()=>{if(!r)return;const c=r.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=xp,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?w.jsx(iT,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?hp.createPortal(w.jsx(eS,{value:i.current,children:u}),i.current):w.jsx("span",{ref:c=>{c&&o(c)}})},sT=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),a=b.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=xp),l},[o]),[,s]=b.useState({});return hr(()=>s({}),[]),hr(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?hp.createPortal(w.jsx(eS,{value:r?a:null,children:t}),a):null};function qa(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?w.jsx(sT,{containerRef:n,...r}):w.jsx(aT,{...r})}qa.className=xp;qa.selector=oT;qa.displayName="Portal";function tS(){const e=b.useContext(Ma);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var wp=b.createContext({});wp.displayName="ColorModeContext";function kp(){const e=b.useContext(wp);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Ms={light:"chakra-ui-light",dark:"chakra-ui-dark"};function lT(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?Ms.dark:Ms.light),document.body.classList.remove(r?Ms.light:Ms.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),i=a=>{r(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var uT="chakra-ui-color-mode";function cT(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var dT=cT(uT),Xv=()=>{};function Qv(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function nS(e){const{
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}var Y$=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function q$(e){const t=Y$();return!e||H$(e)?t:e.string&&e.colors?Q$(e.string,e.colors):e.string&&!e.colors?X$(e.string):e.colors&&!e.string?Z$(e.colors):t}function X$(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const o=t>>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function Q$(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function Z$(e){return e[Math.floor(Math.random()*e.length)]}function K(e,t){return n=>n.colorMode==="dark"?t:e}function Ep(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function hS(e){return tn(e)&&e.reference?e.reference:String(e)}var Ku=(e,...t)=>t.map(hS).join(` ${e} `).replace(/calc/g,""),cg=(...e)=>`calc(${Ku("+",...e)})`,dg=(...e)=>`calc(${Ku("-",...e)})`,Df=(...e)=>`calc(${Ku("*",...e)})`,fg=(...e)=>`calc(${Ku("/",...e)})`,hg=e=>{const t=hS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Df(t,-1)},$n=Object.assign(e=>({add:(...t)=>$n(cg(e,...t)),subtract:(...t)=>$n(dg(e,...t)),multiply:(...t)=>$n(Df(e,...t)),divide:(...t)=>$n(fg(e,...t)),negate:()=>$n(hg(e)),toString:()=>e.toString()}),{add:cg,subtract:dg,multiply:Df,divide:fg,negate:hg});function J$(e){return!Number.isInteger(parseFloat(e.toString()))}function e5(e,t="-"){return e.replace(/\s+/g,t)}function pS(e){const t=e5(e.toString());return t.includes("\\.")?e:J$(e)?t.replace(".","\\."):e}function t5(e,t=""){return[t,pS(e)].filter(Boolean).join("-")}function n5(e,t){return`var(${pS(e)}${t?`, ${t}`:""})`}function r5(e,t=""){return`--${t5(e,t)}`}function Ue(e,t){const n=r5(e,t==null?void 0:t.prefix);return{variable:n,reference:n5(n,o5(t==null?void 0:t.fallback))}}function o5(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:i5,definePartsStyle:ll}=Se(_$.keys),ta=Ue("switch-track-width"),Hr=Ue("switch-track-height"),qc=Ue("switch-track-diff"),a5=$n.subtract(ta,Hr),Of=Ue("switch-thumb-x"),$i=Ue("switch-bg"),s5=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ta.reference],height:[Hr.reference],transitionProperty:"common",transitionDuration:"fast",[$i.variable]:"colors.gray.300",_dark:{[$i.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[$i.variable]:`colors.${t}.500`,_dark:{[$i.variable]:`colors.${t}.200`}},bg:$i.reference}},l5={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Hr.reference],height:[Hr.reference],_checked:{transform:`translateX(${Of.reference})`}},u5=ll(e=>({container:{[qc.variable]:a5,[Of.variable]:qc.reference,_rtl:{[Of.variable]:$n(qc).negate().toString()}},track:s5(e),thumb:l5})),c5={sm:ll({container:{[ta.variable]:"1.375rem",[Hr.variable]:"sizes.3"}}),md:ll({container:{[ta.variable]:"1.875rem",[Hr.variable]:"sizes.4"}}),lg:ll({container:{[ta.variable]:"2.875rem",[Hr.variable]:"sizes.6"}})},d5=i5({baseStyle:u5,sizes:c5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:f5,definePartsStyle:Wo}=Se(P$.keys),h5=Wo({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Xl={"&[data-is-numeric=true]":{textAlign:"end"}},p5=Wo(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Xl},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Xl},caption:{color:K("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),m5=Wo(e=>{const{colorScheme:t}=e;return{th:{color:K("gray
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${ct(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},cA={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},dA=e=>({bg:K("gray.100","whiteAlpha.300")(e)}),fA=e=>({transitionProperty:"common",transitionDuration:"slow",...uA(e)}),hA=Wi(e=>({label:cA,filledTrack:fA(e),track:dA(e)})),pA={xs:Wi({track:{h:"1"}}),sm:Wi({track:{h:"2"}}),md:Wi({track:{h:"3"}}),lg:Wi({track:{h:"4"}})},mA=lA({sizes:pA,baseStyle:hA,defaultProps:{size:"md",colorScheme:"blue"}}),vA=e=>typeof e=="function";function ft(e,...t){return vA(e)?e(...t):e}var{definePartsStyle:hl,defineMultiStyleConfig:gA}=Se(u$.keys),ra=q("checkbox-size"),yA=e=>{const{colorScheme:t}=e;return{w:ra.reference,h:ra.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e),_hover:{bg:K(`${t}.600`,`${t}.300`)(e),borderColor:K(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:K("gray.200","transparent")(e),bg:K("gray.200","whiteAlpha.300")(e),color:K("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e)},_disabled:{bg:K("gray.100","whiteAlpha.100")(e),borderColor:K("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:K("red.500","red.300")(e)}}},bA={_disabled:{cursor:"not-allowed"}},SA={userSelect:"none",_disabled:{opacity:.4}},xA={transitionProperty:"transform",transitionDuration:"normal"},wA=hl(e=>({icon:xA,container:bA,control:ft(yA,e),label:SA})),kA={sm:hl({control:{[ra.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:hl({control:{[ra.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:hl({control:{[ra.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ql=gA({baseStyle:wA,sizes:kA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:CA,definePartsStyle:pl}=Se(x$.keys),_A=e=>{var t;const n=(t=ft(Ql.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},PA=pl(e=>{var t,n,r,o;return{label:(n=(t=Ql).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=Ql).baseStyle)==null?void 0:o.call(r,e).container,control:_A(e)}}),TA={md:pl({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:pl({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:pl({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},EA=CA({baseStyle:PA,sizes:TA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$A,definePartsStyle:AA}=Se(w$.keys),Is=q("select-bg"),Tg,MA={...(Tg=le.baseStyle)==null?void 0:Tg.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Is.reference,[Is.variable]:"colors.white",_dark:{[Is.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Is.reference}},RA={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},zA=AA({field:MA,icon:RA}),Ds={paddingInlineEnd:"8"},Eg,$g,Ag,Mg,Rg,zg,Fg,Ig,FA={lg:{...(Eg=le.sizes)==null?void 0:Eg.lg,field:{...($g=le.sizes)==null?void 0:$g.lg.field,...Ds}},md:{...(Ag=le.sizes)==null?void 0:Ag.md,field:{...(Mg=le.sizes)==null?void 0:Mg.md.field,...Ds}},sm:{...(Rg=le.sizes)==null?void 0:Rg.sm,field:{...(zg=le.sizes)==null?void 0:zg.sm.field,...Ds}},xs:{...(Fg=le.sizes)==null?void 0:Fg.xs,field:{...(Ig=le.sizes)==null?void 0:Ig.xs.field,...Ds},icon:{insetEnd:"1"}}},IA=$A({baseStyle:zA,sizes:FA,variants:le.variants,defaultProps:le.defaultProps}),Zc=q("skeleton-start-color"),Jc=q("skeleton-end-color"),DA={[Zc.variable]:"colors.gray.100",[Jc.variable]:"colors.gray.400",_dark:{[Zc.variable]:"colors.gray.800",[Jc.variable]:"colors.gray.600"},background:Zc.reference,borderColor:Jc.reference,opacity:.7,borderRadius:"sm"},OA={baseStyle:DA},ed=q("skip-link-bg"),LA={borderRadius:"md",fontWeight:"semibold",_fo
|
||
|
[data-motion-pop-id="${n}"] {
|
||
|
position: absolute !important;
|
||
|
width: ${i}px !important;
|
||
|
height: ${a}px !important;
|
||
|
top: ${s}px !important;
|
||
|
left: ${l}px !important;
|
||
|
}
|
||
|
`),()=>{document.head.removeChild(u)}},[t]),b.createElement(ND,{isPresent:t,childRef:r,sizeRef:o},b.cloneElement(e,{ref:r}))}const _d=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=KS(WD),l=b.useId(),u=b.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[n]);return b.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),b.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=b.createElement(VD,{isPresent:n},e)),b.createElement(Qa.Provider,{value:u},e)};function WD(){return new Map}function HD(e){return b.useEffect(()=>()=>e(),[])}const go=e=>e.key||"";function UD(e,t){e.forEach(n=>{const r=go(n);t.set(r,n)})}function GD(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const oc=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=b.useContext(Fp).forceRender||BD()[0],l=Zx(),u=GD(e);let c=u;const d=b.useRef(new Map).current,f=b.useRef(c),h=b.useRef(new Map).current,v=b.useRef(!0);if(eu(()=>{v.current=!1,UD(u,h),f.current=c}),HD(()=>{v.current=!0,h.clear(),d.clear()}),v.current)return b.createElement(b.Fragment,null,c.map(p=>b.createElement(_d,{key:go(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a},p)));c=[...c];const g=f.current.map(go),x=u.map(go),m=g.length;for(let p=0;p<m;p++){const y=g[p];x.indexOf(y)===-1&&!d.has(y)&&d.set(y,void 0)}return a==="wait"&&d.size&&(c=[]),d.forEach((p,y)=>{if(x.indexOf(y)!==-1)return;const k=h.get(y);if(!k)return;const P=g.indexOf(y);let A=p;if(!A){const T=()=>{h.delete(y),d.delete(y);const $=f.current.findIndex(O=>O.key===y);if(f.current.splice($,1),!d.size){if(f.current=u,l.current===!1)return;s(),r&&r()}};A=b.createElement(_d,{key:go(k),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:i,mode:a},k),d.set(y,A)}c.splice(P,0,A)}),c=c.map(p=>{const y=p.key;return d.has(y)?p:b.createElement(_d,{key:go(p),isPresent:!0,presenceAffectsLayout:i,mode:a},p)}),b.createElement(b.Fragment,null,d.size?c:c.map(p=>b.cloneElement(p)))};var KD={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Jx=b.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=KD,toastSpacing:c="0.5rem"}=e,[d,f]=b.useState(s),h=II();Bf(()=>{h||r==null||r()},[h]),Bf(()=>{f(s)},[s]);const v=()=>f(null),g=()=>f(s),x=()=>{h&&o()};b.useEffect(()=>{h&&i&&o()},[h,i,o]),z4(x,d);const m=b.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),p=b.useMemo(()=>M4(a),[a]);return w.jsx(rc.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:g,custom:{position:a},style:p,children:w.jsx(X.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:or(n,{id:t,onClose:x})})})});Jx.displayName="ToastComponent";var Y0={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),w.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ns=ue((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=ye("chakra-icon",s),d=oo("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:i,className:c,__css:f},v=r??Y0.viewBox;if(n&&typeof n!="string")return w.jsx
|
||
|
.`.concat(Rj,` {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
padding-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
body {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
overscroll-behavior: contain;
|
||
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
|
padding-left: `.concat(o,`px;
|
||
|
padding-top: `).concat(i,`px;
|
||
|
padding-right: `).concat(a,`px;
|
||
|
margin-left:0;
|
||
|
margin-top:0;
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
|
}
|
||
|
|
||
|
.`).concat(Sl,` {
|
||
|
right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(xl,` {
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Sl," .").concat(Sl,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(xl," .").concat(xl,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(zj,": ").concat(s,`px;
|
||
|
}
|
||
|
`)},Uj=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=b.useMemo(function(){return Vj(o)},[o]);return b.createElement(Wj,{styles:Hj(i,!t,o,n?"":"!important")})},yh=!1;if(typeof window<"u")try{var Hs=Object.defineProperty({},"passive",{get:function(){return yh=!0,!0}});window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch{yh=!1}var mo=yh?{passive:!1}:!1,Gj=function(e){return e.tagName==="TEXTAREA"},ek=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Gj(e)&&n[t]==="visible")},Kj=function(e){return ek(e,"overflowY")},Yj=function(e){return ek(e,"overflowX")},fy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=tk(e,r);if(o){var i=nk(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qj=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Xj=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tk=function(e,t){return e==="v"?Kj(t):Yj(t)},nk=function(e,t){return e==="v"?qj(t):Xj(t)},Qj=function(e,t){return e==="h"&&t==="rtl"?-1:1},Zj=function(e,t,n,r,o){var i=Qj(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var h=nk(e,s),v=h[0],g=h[1],x=h[2],m=g-x-i*v;(v||m)&&tk(e,s)&&(d+=m,f+=v),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&d===0||!o&&a>d)||!c&&(o&&f===0||!o&&-a>f))&&(u=!0),u},Us=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hy=function(e){return[e.deltaX,e.deltaY]},py=function(e){return e&&"current"in e?e.current:e},Jj=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eB=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},tB=0,vo=[];function nB(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),o=b.useState(tB++)[0],i=b.useState(Jw)[0],a=b.useRef(e);b.useEffect(function(){a.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=eL([e.lockRef.current],(e.shards||[]).map(py),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=b.useCallback(function(g,x){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var m=Us(g),p=n.current,y="deltaX"in g?g.deltaX:p[0]-m[0],k="deltaY"in g?g.deltaY:p[1]-m[1],P,A=g.target,T=Math.abs(y)>Math.abs(k)?"h":"v";if("touches"in g&&T==="h"&&A.type==="range")return!1;var $=fy(T,A);if(!$)return!0;if($?P=T:(P=T==="v"?"h":"v",$=fy(T,A)),!$)return!1;if(!r.current&&"changedTouches"in g&&(y||k)&&(r.current=P),!P)return!0;var O=r.current||P;return Zj(O,x,g,O==="h"?y:k,!0)},[]),l=b.useCallback(function(g){var x=g;if(!(!vo.length||vo[vo.length-1]!==i)){var m="deltaY"in x?hy(x):Us(x),p=t.current.filter(function(P){return P.name===x.type&&P.target===x.target&&Jj(P.delta,m)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var y=(a.current.shards||[]).map(py).filter(Boolean).filter(function(P){return P.contains(x.target)}),k=y.length>0?s(x,y[0]):!a.current.noIsolation;k&&x.cancelable&&x.preventDefault()}}},[]),u=b.useCallback(function(g,x,m,p){var y={name:g,delta:x,target:m,should:p};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(k){return k!==y})},1)},[]),c=b.useCallback(function(g){n.current=Us(g),r.current=void 0},[]),d=b.useCallback(function(g){u(g.type,hy(g),g.target,s(g,e.lockRef.current))},[]),f=b.useCallback(function(g){u(g.type,Us(g),g.target,s(g,e.lockRef.current))},[]);b.useEffect(function(){return vo.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,mo),document.addEventListener("touchmove",l,mo),document.addEventListener("touchstart",c,mo),function(){vo=vo.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,mo),document.removeEventListener("touchmove",l,mo),document.removeEventListener("touchstart",c,mo)}},[]);var h=e.removeScrollBar,v=e.inert;return b.createElement(b.Fragment,null,v?b.createElement(i,{styles:eB(o)}):null,h?b.createElement(Uj,{gapMode:e.gapMode}):null)}const rB=tL(Zw,nB);var rk=b.forwardRef(function(e,t){return b.createElement(sc,hn({},e,{ref:t,sideCar:rB}))});rk.classNames=sc.classNames;const oB=rk;function iB(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:c,isOpen:d}=pi(),[f,h]=Bx();b.useEffect(()=>{!f&&h&&setTimeout(h)},[f,h]);const v=qw(r,d);return w.jsx(Hw,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:c,children:w.jsx(oB,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&i,forwardProps:!0,children:e.children})})}var[aB,sB]=Gt(),lB={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function uB(e,t){var n,r;if(e)return(r=(n=lB[e])==null?void 0:n[t])!=null?r:e}function cB(e){var t;const{isOpen:n,onClose:r,placement:o="right",children:i,...a}=e,s=tS(),l=(t=s.components)==null?void 0:t.Drawer,u=uB(o,s.direction);return w.jsx(aB,{value:{placement:u},children:w.jsx(Qw,{isOpen:n,onClose:r,styleConfig:l,...a,children:i})})}var dB=X(aw),ok=ue((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:u}=pi(),c=s(a,t),d=l(i),f=ye("chakra-modal__content",n),h=hi(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogCo
|
||
|
* @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 si=b;function wB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kB=typeof Object.is=="function"?Object.is:wB,CB=si.useState,_B=si.useEffect,PB=si.useLayoutEffect,TB=si.useDebugValue;function EB(e,t){var n=t(),r=CB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return PB(function(){o.value=n,o.getSnapshot=t,zd(o)&&i({inst:o})},[e,n,t]),_B(function(){return zd(o)&&i({inst:o}),e(function(){zd(o)&&i({inst:o})})},[e]),TB(n),n}function zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kB(e,n)}catch{return!0}}function $B(e,t){return t()}var AB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$B:EB;xk.useSyncExternalStore=si.useSyncExternalStore!==void 0?si.useSyncExternalStore:AB;Sk.exports=xk;var MB=Sk.exports;/**
|
||
|
* @license React
|
||
|
* use-sync-external-store-shim/with-selector.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 lc=b,RB=MB;function zB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var FB=typeof Object.is=="function"?Object.is:zB,IB=RB.useSyncExternalStore,DB=lc.useRef,OB=lc.useEffect,LB=lc.useMemo,jB=lc.useDebugValue;bk.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=DB(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=LB(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&a.hasValue){var v=a.value;if(o(v,h))return d=v}return d=h}if(v=d,FB(c,h))return v;var g=r(h);return o!==void 0&&o(v,g)?v:(c=h,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,o]);var s=IB(e,i[0],i[1]);return OB(function(){a.hasValue=!0,a.value=s},[s]),jB(s),s};yk.exports=bk;var BB=yk.exports;const NB=Va(BB),{useSyncExternalStoreWithSelector:VB}=NB;function WB(e,t=e.getState,n){const r=VB(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return b.useDebugValue(r),r}const gy=e=>{({BASE_URL:"/loli-license",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?xB(e):e,n=(r,o)=>WB(t,r,o);return Object.assign(n,t),n},HB=e=>e?gy(e):gy,UB="/loli-license/assets/mahirussy-15408101.jpg",yy=(e=1)=>{let t="";const n="abcdefghijklmnopqrstuvwxyz".toUpperCase();for(let r=0;r<e;r++)t+=n.charAt(Math.round(Math.random()*n.length-1));return t},GB=()=>yy()+"-"+yy(2)+Math.round(Math.random()*9999).toString().padStart(4,"0"),wk=HB(e=>({name:"Mahiro Oyama",idNo:GB(),accessLevel:"Headpats and hugs only",sex:"Male",birthday:wl().format("YYYY-MM-DD"),photo:UB,expYears:5,showWatermarkOnExport:!0,setValues:t=>e({...t})})),KB=(e,t,n,r,o,i)=>{for(var a=t.split(" "),s="",l=0;l<a.length;l++){var u=s+a[l]+" ",c=e.measureText(u),d=c.width;d>o&&l>0?(e.fillText(s,n,r),s=a[l]+" ",r+=i):s=u}e.fillText(s,n,r)},YB=e=>{e=e.replace(/^\s+|\s+$/g,""),e=e.toLowerCase();for(var t="àáãäâèéëêìíïîòóöôùúüûñç·/_,:;",n="aaaaaeeeeiiiioooouuuunc------",r=0,o=t.length;r<o;r++)e=e.replace(new RegExp(t.charAt(r),"g"),n.charAt(r));return e=e.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),e},qB=(e,t,n,r,o,i,a,s)=>{a=typeof a=="number"?a:.5,s=typeof s=="number"?s:.5,a<0&&(a=0),s<0&&(s=0),a>1&&(a=1),s>1&&(s=1);var l=t.width,u=t.height,c=Math.min(o/l,i/u),d=l*c,f=u*c,h,v,g,x,m=1;d<o&&(m=o/d),Math.abs(m-1)<1e-14&&f<i&&(m=i/f),d*=m,f*=m,g=l/(d/o),x=u/(f/i),h=(l-g)*a,v=(u-x)*s,h<0&&(h=0),v<0&&(v=0),g>l&&(g=l),x>u&&(x=u),e.drawImage(t,h,v,g,x,n,r,o,i)},by=e=>new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t(n)}}),XB=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)},r.onerror=o=>{n(o)}}),QB=({isOpen:e,onClose:t})=>{const n=wk(),r=b.useRef(null),o=async i=>{var l;if(!((l=i.target.files)!=null&&l.length))return;const a=i.target.files[0],s=await XB(a);n.setValues({photo:s})};return w.jsxs(cB,{isOpen:e,placement:"right",onClose:t,children:[w.jsx(sk,{}),w.jsxs(ok,{children:[w.jsx(uk,{}),w.jsx(ak,{children:"Card Detail"}),w.jsx(lk,{children:w.jsxs(Kw,{spacing:3,alignItems:"stretch",children:[w.jsxs(cu,{w:"120px",h:40,bg:"white",shadow:"md",rounded:"md",p:2,overflow:"hidden",position:"relative",onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},children:[w.jsx(sw,{src:n.photo,w:"full",h:"full",objectFit:"cover"}),w.jsx(os,{position:"absolute",top:1,right:1,color:"gray.900",bg:"whiteAlpha.800",p:1,rounded:"md",children:w.jsx(vk,{})})]}),w.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:o,style:{display:"none"}}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"Agent Name"}),w.jsx(Dr,{value:n.name,onChange:i=>n.setValues({name:i.target.value})})]}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"ID Number"}),w.jsx(Dr,{value:n.idNo,onChange:i=>n.setValues({idNo:i.target.value})})]}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"Sex"}),w.jsx(Dr,{value:n.sex,onChange:i=>n.setValues({sex
|