@articles-media/articles-dev-box 1.0.17 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/Ad-Ck5UdTq3.js +387 -0
- package/dist/Ad-DYtftKNV.cjs +1 -0
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +2 -604
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +56 -0
- package/dist/AdConfirmExitModal-CRCnzYQM.cjs +1 -0
- package/dist/AdDetailsModal-DRNRTL2W.js +108 -0
- package/dist/AdDetailsModal-g0n7LiV6.cjs +1 -0
- package/dist/ArticlesAd.cjs +1 -1
- package/dist/ArticlesAd.js +16 -15
- package/dist/Button-BlAdEbSd.js +30 -0
- package/dist/Button-CbpRj01E.cjs +1 -0
- package/dist/CreditsModal.cjs +1 -0
- package/dist/CreditsModal.js +56 -0
- package/dist/DarkModeHandler.cjs +1 -1
- package/dist/DarkModeHandler.js +17 -16
- package/dist/FriendsList.cjs +1 -1
- package/dist/FriendsList.js +77 -121
- package/dist/GameScoreboard-CBY3JsFa.js +165 -0
- package/dist/GameScoreboard-DdOCRxON.cjs +1 -0
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +2 -190
- package/dist/GlobalBody.cjs +33 -1
- package/dist/GlobalBody.js +36 -7
- package/dist/GlobalHead.cjs +1 -1
- package/dist/GlobalHead.js +10 -12
- package/dist/Link-MFZblBb4.js +17 -0
- package/dist/Link-c7exNCJ3.cjs +1 -0
- package/dist/Modal-BX1s6CCU.js +1631 -0
- package/dist/Modal-DP9CeAVD.cjs +3 -0
- package/dist/ReturnToLauncherButton.cjs +1 -1
- package/dist/ReturnToLauncherButton.js +39 -54
- package/dist/SettingsModal--sWLmLGp.cjs +1 -0
- package/dist/SettingsModal-XI2dMI09.js +247 -0
- package/dist/SettingsModal.cjs +1 -1
- package/dist/SettingsModal.js +2 -658
- package/dist/StatusModal-D7WDDR9P.cjs +1 -0
- package/dist/StatusModal-elrPJvX1.js +70 -0
- package/dist/ViewUserModal-DDjWLpyM.js +3094 -0
- package/dist/ViewUserModal-DPVcjXNU.cjs +1 -0
- package/dist/ViewUserModal.cjs +1 -1
- package/dist/ViewUserModal.js +3 -3149
- package/dist/articles-dev-box.css +2 -1
- package/dist/chunk-350yNsax.cjs +1 -0
- package/dist/classnames-DP6dWde5.js +31 -0
- package/dist/classnames-pS64X3rL.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +16 -28
- package/dist/jsx-runtime-VZk6y-ec.js +191 -0
- package/dist/jsx-runtime-hCcDh67y.cjs +6 -0
- package/dist/numberWithCommas-BSKBdR-e.js +18 -0
- package/dist/numberWithCommas-D9tgiUnq.cjs +1 -0
- package/dist/useAuthSiteStatus-1rHjYC4N.js +29 -0
- package/dist/useAuthSiteStatus-P5kHc_Bz.cjs +1 -0
- package/dist/useFullscreen.cjs +1 -0
- package/dist/useFullscreen.js +24 -0
- package/dist/useUserDetails.cjs +1 -1
- package/dist/useUserDetails.js +22 -32
- package/dist/useUserFriends.cjs +1 -1
- package/dist/useUserFriends.js +29 -51
- package/dist/useUserToken.cjs +1 -1
- package/dist/useUserToken.js +16 -21
- package/package.json +17 -10
- package/dist/AdConfirmExitModal-Bhz-lt9w.js +0 -72
- package/dist/AdConfirmExitModal-N3Lvhb4y.cjs +0 -1
- package/dist/AdDetailsModal-BMj8DjV0.cjs +0 -1
- package/dist/AdDetailsModal-DXvfmyKK.js +0 -83
- package/dist/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/ElementChildren-DN3RWY2E.js +0 -51
- package/dist/ElementChildren-eAwIENLl.cjs +0 -1
- package/dist/GlobalBody-BrrtfBBs.js +0 -123
- package/dist/GlobalBody-weON_TbJ.cjs +0 -33
- package/dist/Modal-Bdhkgkwr.cjs +0 -2
- package/dist/Modal-nux8R77F.js +0 -2087
- package/dist/StatusModal-B086BgSW.js +0 -71
- package/dist/StatusModal-CzPyqQQA.cjs +0 -1
- package/dist/index-BlP2-uOi.cjs +0 -1
- package/dist/index-C8MeSLnR.js +0 -2504
- package/dist/index-DWV8myok.cjs +0 -6
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/jsx-runtime-nZSsnGb7.cjs +0 -6
- package/dist/jsx-runtime-tc70JA_2.js +0 -264
- package/dist/numberWithCommas-CRgrb58X.cjs +0 -1
- package/dist/numberWithCommas-DnAkiOFL.js +0 -1256
package/dist/index-DWV8myok.cjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";const x=require("react");function tn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bn}=Object.prototype,{getPrototypeOf:mt}=Object,{iterator:je,toStringTag:nn}=Symbol,ke=(e=>t=>{const n=Bn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Y=e=>(e=e.toLowerCase(),t=>ke(t)===e),qe=e=>t=>typeof t===e,{isArray:we}=Array,ye=qe("undefined");function ge(e){return e!==null&&!ye(e)&&e.constructor!==null&&!ye(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rn=Y("ArrayBuffer");function jn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rn(e.buffer),t}const kn=qe("string"),q=qe("function"),sn=qe("number"),Oe=e=>e!==null&&typeof e=="object",qn=e=>e===!0||e===!1,ve=e=>{if(ke(e)!=="object")return!1;const t=mt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(nn in e)&&!(je in e)},Mn=e=>{if(!Oe(e)||ge(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Hn=Y("Date"),Vn=Y("File"),$n=e=>!!(e&&typeof e.uri<"u"),Wn=e=>e&&typeof e.getParts<"u",zn=Y("Blob"),Jn=Y("FileList"),Kn=e=>Oe(e)&&q(e.pipe);function Gn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const xt=Gn(),Dt=typeof xt.FormData<"u"?xt.FormData:void 0,Xn=e=>{let t;return e&&(Dt&&e instanceof Dt||q(e.append)&&((t=ke(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},Yn=Y("URLSearchParams"),[Qn,Zn,er,tr]=["ReadableStream","Request","Response","Headers"].map(Y),nr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Te(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),we(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ge(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function on(e,t){if(ge(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,an=e=>!ye(e)&&e!==fe;function rt(){const{caseless:e,skipUndefined:t}=an(this)&&this||{},n={},r=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=e&&on(n,i)||i;ve(n[o])&&ve(s)?n[o]=rt(n[o],s):ve(s)?n[o]=rt({},s):we(s)?n[o]=s.slice():(!t||!ye(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Te(arguments[s],r);return n}const rr=(e,t,n,{allOwnKeys:r}={})=>(Te(t,(s,i)=>{n&&q(s)?Object.defineProperty(e,i,{value:tn(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),sr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),or=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ir=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&mt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ar=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},cr=e=>{if(!e)return null;if(we(e))return e;let t=e.length;if(!sn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ur=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mt(Uint8Array)),lr=(e,t)=>{const r=(e&&e[je]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},fr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dr=Y("HTMLFormElement"),pr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Nt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hr=Y("RegExp"),cn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Te(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},mr=e=>{cn(e,(t,n)=>{if(q(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(q(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Er=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return we(e)?r(e):r(String(e).split(t)),n},yr=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Rr(e){return!!(e&&q(e.append)&&e[nn]==="FormData"&&e[je])}const Sr=e=>{const t=new Array(10),n=(r,s)=>{if(Oe(r)){if(t.indexOf(r)>=0)return;if(ge(r))return r;if(!("toJSON"in r)){t[s]=r;const i=we(r)?[]:{};return Te(r,(o,a)=>{const d=n(o,s+1);!ye(d)&&(i[a]=d)}),t[s]=void 0,i}}return r};return n(e,0)},br=Y("AsyncFunction"),gr=e=>e&&(Oe(e)||q(e))&&q(e.then)&&q(e.catch),un=((e,t)=>e?setImmediate:t?((n,r)=>(fe.addEventListener("message",({source:s,data:i})=>{s===fe&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),fe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",q(fe.postMessage)),Or=typeof queueMicrotask<"u"?queueMicrotask.bind(fe):typeof process<"u"&&process.nextTick||un,Tr=e=>e!=null&&q(e[je]),c={isArray:we,isArrayBuffer:rn,isBuffer:ge,isFormData:Xn,isArrayBufferView:jn,isString:kn,isNumber:sn,isBoolean:qn,isObject:Oe,isPlainObject:ve,isEmptyObject:Mn,isReadableStream:Qn,isRequest:Zn,isResponse:er,isHeaders:tr,isUndefined:ye,isDate:Hn,isFile:Vn,isReactNativeBlob:$n,isReactNative:Wn,isBlob:zn,isRegExp:hr,isFunction:q,isStream:Kn,isURLSearchParams:Yn,isTypedArray:ur,isFileList:Jn,forEach:Te,merge:rt,extend:rr,trim:nr,stripBOM:sr,inherits:or,toFlatObject:ir,kindOf:ke,kindOfTest:Y,endsWith:ar,toArray:cr,forEachEntry:lr,matchAll:fr,isHTMLForm:dr,hasOwnProperty:Nt,hasOwnProp:Nt,reduceDescriptors:cn,freezeMethods:mr,toObjectSet:Er,toCamelCase:pr,noop:yr,toFiniteNumber:wr,findKey:on,global:fe,isContextDefined:an,isSpecCompliantForm:Rr,toJSONObject:Sr,isAsyncFn:br,isThenable:gr,setImmediate:un,asap:Or,isIterable:Tr};let R=class ln extends Error{static from(t,n,r,s,i,o){const a=new ln(t.message,n||t.code,r,s,i);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),o&&Object.assign(a,o),a}constructor(t,n,r,s,i){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}}};R.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";R.ERR_BAD_OPTION="ERR_BAD_OPTION";R.ECONNABORTED="ECONNABORTED";R.ETIMEDOUT="ETIMEDOUT";R.ERR_NETWORK="ERR_NETWORK";R.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";R.ERR_DEPRECATED="ERR_DEPRECATED";R.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";R.ERR_BAD_REQUEST="ERR_BAD_REQUEST";R.ERR_CANCELED="ERR_CANCELED";R.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";R.ERR_INVALID_URL="ERR_INVALID_URL";const _r=null;function st(e){return c.isPlainObject(e)||c.isArray(e)}function fn(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function We(e,t,n){return e?e.concat(t).map(function(s,i){return s=fn(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Ar(e){return c.isArray(e)&&!e.some(st)}const Cr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Me(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!c.isUndefined(h[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(c.isDate(u))return u.toISOString();if(c.isBoolean(u))return u.toString();if(!d&&c.isBlob(u))throw new R("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(u)||c.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,m,h){let S=u;if(c.isReactNative(t)&&c.isReactNativeBlob(u))return t.append(We(h,m,i),f(u)),!1;if(u&&!h&&typeof u=="object"){if(c.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(c.isArray(u)&&Ar(u)||(c.isFileList(u)||c.endsWith(m,"[]"))&&(S=c.toArray(u)))return m=fn(m),S.forEach(function(_,D){!(c.isUndefined(_)||_===null)&&t.append(o===!0?We([m],D,i):o===null?m:m+"[]",f(_))}),!1}return st(u)?!0:(t.append(We(h,m,i),f(u)),!1)}const p=[],E=Object.assign(Cr,{defaultVisitor:l,convertValue:f,isVisitable:st});function y(u,m){if(!c.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),c.forEach(u,function(S,w){(!(c.isUndefined(S)||S===null)&&s.call(t,S,c.isString(w)?w.trim():w,m,E))===!0&&y(S,m?m.concat(w):[w])}),p.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Lt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Et(e,t){this._pairs=[],e&&Me(e,this,t)}const dn=Et.prototype;dn.append=function(t,n){this._pairs.push([t,n])};dn.toString=function(t){const n=t?function(r){return t.call(this,r,Lt)}:Lt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function xr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function pn(e,t,n){if(!t)return e;const r=n&&n.encode||xr,s=c.isFunction(n)?{serialize:n}:n,i=s&&s.serialize;let o;if(i?o=i(t,s):o=c.isURLSearchParams(t)?t.toString():new Et(t,s).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Pt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Dr=typeof URLSearchParams<"u"?URLSearchParams:Et,Nr=typeof FormData<"u"?FormData:null,Lr=typeof Blob<"u"?Blob:null,Pr={isBrowser:!0,classes:{URLSearchParams:Dr,FormData:Nr,Blob:Lr},protocols:["http","https","file","blob","url","data"]},wt=typeof window<"u"&&typeof document<"u",ot=typeof navigator=="object"&&navigator||void 0,Fr=wt&&(!ot||["ReactNative","NativeScript","NS"].indexOf(ot.product)<0),vr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ur=wt&&window.location.href||"http://localhost",Ir=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wt,hasStandardBrowserEnv:Fr,hasStandardBrowserWebWorkerEnv:vr,navigator:ot,origin:Ur},Symbol.toStringTag,{value:"Module"})),j={...Ir,...Pr};function Br(e,t){return Me(e,new j.classes.URLSearchParams,{visitor:function(n,r,s,i){return j.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function jr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kr(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function hn(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),d=i>=n.length;return o=!o&&c.isArray(s)?s.length:o,d?(c.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!c.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&c.isArray(s[o])&&(s[o]=kr(s[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(jr(r),s,n,0)}),n}return null}function qr(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _e={transitional:yt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(hn(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Br(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Me(a?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),qr(t)):t}],transformResponse:[function(t){const n=this.transitional||_e.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?R.from(a,R.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{_e.headers[e]={}});const Mr=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hr=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
-
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Mr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ft=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function Ue(e){return e===!1||e==null?e:c.isArray(e)?e.map(Ue):String(e).replace(/[\r\n]+$/,"")}function Vr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $r=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ze(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Wr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function zr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let M=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,d,f){const l=be(d);if(!l)throw new Error("header name must be a non-empty string");const p=c.findKey(s,l);(!p||s[p]===void 0||f===!0||f===void 0&&s[p]!==!1)&&(s[p||d]=Ue(a))}const o=(a,d)=>c.forEach(a,(f,l)=>i(f,l,d));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(c.isString(t)&&(t=t.trim())&&!$r(t))o(Hr(t),n);else if(c.isObject(t)&&c.isIterable(t)){let a={},d,f;for(const l of t){if(!c.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[f=l[0]]=(d=a[f])?c.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}o(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=be(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Vr(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=be(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ze(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=be(o),o){const a=c.findKey(r,o);a&&(!n||ze(r,r[a],a,n))&&(delete r[a],s=!0)}}return c.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||ze(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,i)=>{const o=c.findKey(r,i);if(o){n[o]=Ue(s),delete n[i];return}const a=t?Wr(i):String(i).trim();a!==i&&delete n[i],n[a]=Ue(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ft]=this[Ft]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=be(o);r[a]||(zr(s,o),r[a]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(M.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(M);function Je(e,t){const n=this||_e,r=t||n,s=M.from(r.headers);let i=r.data;return c.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function mn(e){return!!(e&&e.__CANCEL__)}let Ae=class extends R{constructor(t,n,r){super(t??"canceled",R.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function En(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new R("Request failed with status code "+n.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Jr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[i];o||(o=f),n[s]=d,r[s]=f;let p=i,E=0;for(;p!==s;)E+=n[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const y=l&&f-l;return y?Math.round(E*1e3/y):void 0}}function Gr(e,t){let n=0,r=1e3/t,s,i;const o=(f,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const l=Date.now(),p=l-n;p>=r?o(f,l):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},r-p)))},()=>s&&o(s)]}const Be=(e,t,n=3)=>{let r=0;const s=Kr(50,250);return Gr(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,d=o-r,f=s(d),l=o<=a;r=o;const p={loaded:o,total:a,progress:a?o/a:void 0,bytes:d,rate:f||void 0,estimated:f&&a&&l?(a-o)/f:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},vt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ut=e=>(...t)=>c.asap(()=>e(...t)),Xr=j.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,j.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0,Yr=j.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),c.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Qr(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Zr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yn(e,t,n){let r=!Qr(t);return e&&(r||n==!1)?Zr(e,t):t}const It=e=>e instanceof M?{...e}:e;function pe(e,t){t=t||{};const n={};function r(f,l,p,E){return c.isPlainObject(f)&&c.isPlainObject(l)?c.merge.call({caseless:E},f,l):c.isPlainObject(l)?c.merge({},l):c.isArray(l)?l.slice():l}function s(f,l,p,E){if(c.isUndefined(l)){if(!c.isUndefined(f))return r(void 0,f,p,E)}else return r(f,l,p,E)}function i(f,l){if(!c.isUndefined(l))return r(void 0,l)}function o(f,l){if(c.isUndefined(l)){if(!c.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function a(f,l,p){if(p in t)return r(f,l);if(p in e)return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,l,p)=>s(It(f),It(l),p,!0)};return c.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const p=c.hasOwnProp(d,l)?d[l]:s,E=p(e[l],t[l],l);c.isUndefined(E)&&p!==a||(n[l]=E)}),n}const wn=e=>{const t=pe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=M.from(o),t.url=pn(yn(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(n)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(c.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,p])=>{f.includes(l.toLowerCase())&&o.set(l,p)})}}if(j.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&Xr(t.url))){const d=s&&i&&Yr.read(i);d&&o.set(s,d)}return t},es=typeof XMLHttpRequest<"u",ts=es&&function(e){return new Promise(function(n,r){const s=wn(e);let i=s.data;const o=M.from(s.headers).normalize();let{responseType:a,onUploadProgress:d,onDownloadProgress:f}=s,l,p,E,y,u;function m(){y&&y(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function S(){if(!h)return;const _=M.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:_,config:e,request:h};En(function(A){n(A),m()},function(A){r(A),m()},g),h=null}"onloadend"in h?h.onloadend=S:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(S)},h.onabort=function(){h&&(r(new R("Request aborted",R.ECONNABORTED,e,h)),h=null)},h.onerror=function(D){const g=D&&D.message?D.message:"Network Error",U=new R(g,R.ERR_NETWORK,e,h);U.event=D||null,r(U),h=null},h.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const g=s.transitional||yt;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),r(new R(D,g.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&c.forEach(o.toJSON(),function(D,g){h.setRequestHeader(g,D)}),c.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),a&&a!=="json"&&(h.responseType=s.responseType),f&&([E,u]=Be(f,!0),h.addEventListener("progress",E)),d&&h.upload&&([p,y]=Be(d),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(l=_=>{h&&(r(!_||_.type?new Ae(null,e,h):_),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const w=Jr(s.url);if(w&&j.protocols.indexOf(w)===-1){r(new R("Unsupported protocol "+w+":",R.ERR_BAD_REQUEST,e));return}h.send(i||null)})},ns=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(f){if(!s){s=!0,a();const l=f instanceof Error?f:this.reason;r.abort(l instanceof R?l:new Ae(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new R(`timeout of ${t}ms exceeded`,R.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>c.asap(a),d}},rs=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},ss=async function*(e,t){for await(const n of os(e))yield*rs(n,t)},os=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Bt=(e,t,n,r)=>{const s=ss(e,t);let i=0,o,a=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){a(),d.close();return}let p=l.byteLength;if(n){let E=i+=p;n(E)}d.enqueue(new Uint8Array(l))}catch(f){throw a(f),f}},cancel(d){return a(d),s.return()}},{highWaterMark:2})},jt=64*1024,{isFunction:Ne}=c,is=(({Request:e,Response:t})=>({Request:e,Response:t}))(c.global),{ReadableStream:kt,TextEncoder:qt}=c.global,Mt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},as=e=>{e=c.merge.call({skipUndefined:!0},is,e);const{fetch:t,Request:n,Response:r}=e,s=t?Ne(t):typeof fetch=="function",i=Ne(n),o=Ne(r);if(!s)return!1;const a=s&&Ne(kt),d=s&&(typeof qt=="function"?(u=>m=>u.encode(m))(new qt):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=i&&a&&Mt(()=>{let u=!1;const m=new kt,h=new n(j.origin,{body:m,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return m.cancel(),u&&!h}),l=o&&a&&Mt(()=>c.isReadableStream(new r("").body)),p={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!p[u]&&(p[u]=(m,h)=>{let S=m&&m[u];if(S)return S.call(m);throw new R(`Response type '${u}' is not supported`,R.ERR_NOT_SUPPORT,h)})});const E=async u=>{if(u==null)return 0;if(c.isBlob(u))return u.size;if(c.isSpecCompliantForm(u))return(await new n(j.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(c.isArrayBufferView(u)||c.isArrayBuffer(u))return u.byteLength;if(c.isURLSearchParams(u)&&(u=u+""),c.isString(u))return(await d(u)).byteLength},y=async(u,m)=>{const h=c.toFiniteNumber(u.getContentLength());return h??E(m)};return async u=>{let{url:m,method:h,data:S,signal:w,cancelToken:_,timeout:D,onDownloadProgress:g,onUploadProgress:U,responseType:A,headers:Q,withCredentials:O="same-origin",fetchOptions:te}=wn(u),H=t||fetch;A=A?(A+"").toLowerCase():"text";let J=ns([w,_&&_.toAbortSignal()],D),V=null;const F=J&&J.unsubscribe&&(()=>{J.unsubscribe()});let ne;try{if(U&&f&&h!=="get"&&h!=="head"&&(ne=await y(Q,S))!==0){let Z=new n(m,{method:"POST",body:S,duplex:"half"}),$;if(c.isFormData(S)&&($=Z.headers.get("content-type"))&&Q.setContentType($),Z.body){const[G,se]=vt(ne,Be(Ut(U)));S=Bt(Z.body,jt,G,se)}}c.isString(O)||(O=O?"include":"omit");const v=i&&"credentials"in n.prototype,Re={...te,signal:J,method:h.toUpperCase(),headers:Q.normalize().toJSON(),body:S,duplex:"half",credentials:v?O:void 0};V=i&&new n(m,Re);let K=await(i?H(V,te):H(m,Re));const re=l&&(A==="stream"||A==="response");if(l&&(g||re&&F)){const Z={};["status","statusText","headers"].forEach(he=>{Z[he]=K[he]});const $=c.toFiniteNumber(K.headers.get("content-length")),[G,se]=g&&vt($,Be(Ut(g),!0))||[];K=new r(Bt(K.body,jt,G,()=>{se&&se(),F&&F()}),Z)}A=A||"text";let xe=await p[c.findKey(p,A)||"text"](K,u);return!re&&F&&F(),await new Promise((Z,$)=>{En(Z,$,{data:xe,headers:M.from(K.headers),status:K.status,statusText:K.statusText,config:u,request:V})})}catch(v){throw F&&F(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,u,V,v&&v.response),{cause:v.cause||v}):R.from(v,v&&v.code,u,V,v&&v.response)}}},cs=new Map,Rn=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,a=o,d,f,l=cs;for(;a--;)d=i[a],f=l.get(d),f===void 0&&l.set(d,f=a?new Map:as(t)),l=f;return f};Rn();const Rt={http:_r,xhr:ts,fetch:{get:Rn}};c.forEach(Rt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ht=e=>`- ${e}`,us=e=>c.isFunction(e)||e===null||e===!1;function ls(e,t){e=c.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let a;if(s=r,!us(r)&&(s=Rt[(a=String(r)).toLowerCase()],s===void 0))throw new R(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(t))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
|
|
4
|
-
`+o.map(Ht).join(`
|
|
5
|
-
`):" "+Ht(o[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Sn={getAdapter:ls,adapters:Rt};function Ke(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function Vt(e){return Ke(e),e.headers=M.from(e.headers),e.data=Je.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sn.getAdapter(e.adapter||_e.adapter,e)(e).then(function(r){return Ke(e),r.data=Je.call(e,e.transformResponse,r),r.headers=M.from(r.headers),r},function(r){return mn(r)||(Ke(e),r&&r.response&&(r.response.data=Je.call(e,e.transformResponse,r.response),r.response.headers=M.from(r.response.headers))),Promise.reject(r)})}const bn="1.14.0",He={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{He[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $t={};He.transitional=function(t,n,r){function s(i,o){return"[Axios v"+bn+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new R(s(o," has been removed"+(n?" in "+n:"")),R.ERR_DEPRECATED);return n&&!$t[o]&&($t[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};He.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function fs(e,t,n){if(typeof e!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],d=a===void 0||o(a,i,e);if(d!==!0)throw new R("option "+i+" must be "+d,R.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new R("Unknown option "+i,R.ERR_BAD_OPTION)}}const Ie={assertOptions:fs,validators:He},z=Ie.validators;let de=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Pt,response:new Pt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Ie.assertOptions(r,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean),legacyInterceptorReqResOrdering:z.transitional(z.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:Ie.assertOptions(s,{encode:z.function,serialize:z.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ie.assertOptions(n,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&c.merge(i.common,i[n.method]);i&&c.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=M.concat(o,i);const a=[];let d=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;d=d&&m.synchronous;const h=n.transitional||yt;h&&h.legacyInterceptorReqResOrdering?a.unshift(m.fulfilled,m.rejected):a.push(m.fulfilled,m.rejected)});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,p=0,E;if(!d){const u=[Vt.bind(this),void 0];for(u.unshift(...a),u.push(...f),E=u.length,l=Promise.resolve(n);p<E;)l=l.then(u[p++],u[p++]);return l}E=a.length;let y=n;for(;p<E;){const u=a[p++],m=a[p++];try{y=u(y)}catch(h){m.call(this,h);break}}try{l=Vt.call(this,y)}catch(u){return Promise.reject(u)}for(p=0,E=f.length;p<E;)l=l.then(f[p++],f[p++]);return l}getUri(t){t=pe(this.defaults,t);const n=yn(t.baseURL,t.url,t.allowAbsoluteUrls);return pn(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){de.prototype[t]=function(n,r){return this.request(pe(r||{},{method:t,url:n,data:(r||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,a){return this.request(pe(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}de.prototype[t]=n(),de.prototype[t+"Form"]=n(!0)});let ds=class gn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new Ae(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new gn(function(s){t=s}),cancel:t}}};function ps(e){return function(n){return e.apply(null,n)}}function hs(e){return c.isObject(e)&&e.isAxiosError===!0}const it={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(it).forEach(([e,t])=>{it[t]=e});function On(e){const t=new de(e),n=tn(de.prototype.request,t);return c.extend(n,de.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return On(pe(e,s))},n}const L=On(_e);L.Axios=de;L.CanceledError=Ae;L.CancelToken=ds;L.isCancel=mn;L.VERSION=bn;L.toFormData=Me;L.AxiosError=R;L.Cancel=L.CanceledError;L.all=function(t){return Promise.all(t)};L.spread=ps;L.isAxiosError=hs;L.mergeConfig=pe;L.AxiosHeaders=M;L.formToJSON=e=>hn(c.isHTMLForm(e)?new FormData(e):e);L.getAdapter=Sn.getAdapter;L.HttpStatusCode=it;L.default=L;const{Axios:Qs,AxiosError:Zs,CanceledError:eo,isCancel:to,CancelToken:no,VERSION:ro,all:so,Cancel:oo,isAxiosError:io,spread:ao,toFormData:co,AxiosHeaders:uo,HttpStatusCode:lo,formToJSON:fo,getAdapter:po,mergeConfig:ho}=L;var Le={exports:{}},Ge={};var Wt;function ms(){if(Wt)return Ge;Wt=1;var e=x;function t(p,E){return p===E&&(p!==0||1/p===1/E)||p!==p&&E!==E}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(p,E){var y=E(),u=r({inst:{value:y,getSnapshot:E}}),m=u[0].inst,h=u[1];return i(function(){m.value=y,m.getSnapshot=E,d(m)&&h({inst:m})},[p,y,E]),s(function(){return d(m)&&h({inst:m}),p(function(){d(m)&&h({inst:m})})},[p]),o(y),y}function d(p){var E=p.getSnapshot;p=p.value;try{var y=E();return!n(p,y)}catch{return!0}}function f(p,E){return E()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:a;return Ge.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,Ge}var Xe={};var zt;function Es(){return zt||(zt=1,process.env.NODE_ENV!=="production"&&(function(){function e(y,u){return y===u&&(y!==0||1/y===1/u)||y!==y&&u!==u}function t(y,u){l||s.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=u();if(!p){var h=u();i(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}h=o({inst:{value:m,getSnapshot:u}});var S=h[0].inst,w=h[1];return d(function(){S.value=m,S.getSnapshot=u,n(S)&&w({inst:S})},[y,m,u]),a(function(){return n(S)&&w({inst:S}),y(function(){n(S)&&w({inst:S})})},[y]),f(m),m}function n(y){var u=y.getSnapshot;y=y.value;try{var m=u();return!i(y,m)}catch{return!0}}function r(y,u){return u()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=x,i=typeof Object.is=="function"?Object.is:e,o=s.useState,a=s.useEffect,d=s.useLayoutEffect,f=s.useDebugValue,l=!1,p=!1,E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Xe.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Xe}var Jt;function ys(){return Jt||(Jt=1,process.env.NODE_ENV==="production"?Le.exports=ms():Le.exports=Es()),Le.exports}var Kt=ys();const Tn=0,_n=1,An=2,Gt=3;var Xt=Object.prototype.hasOwnProperty;function at(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&at(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Xt.call(e,n)&&++r&&!Xt.call(t,n)||!(n in t)||!at(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const ae=new WeakMap,ce=()=>{},B=ce(),ct=Object,b=e=>e===B,ee=e=>typeof e=="function",ue=(e,t)=>({...e,...t}),Cn=e=>ee(e.then),Ye={},Pe={},St="undefined",Ce=typeof window!=St,ut=typeof document!=St,ws=Ce&&"Deno"in window,Rs=()=>Ce&&typeof window.requestAnimationFrame!=St,xn=(e,t)=>{const n=ae.get(e);return[()=>!b(t)&&e.get(t)||Ye,r=>{if(!b(t)){const s=e.get(t);t in Pe||(Pe[t]=s),n[5](t,ue(s,r),s||Ye)}},n[6],()=>!b(t)&&t in Pe?Pe[t]:!b(t)&&e.get(t)||Ye]};let lt=!0;const Ss=()=>lt,[ft,dt]=Ce&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ce,ce],bs=()=>{const e=ut&&document.visibilityState;return b(e)||e!=="hidden"},gs=e=>(ut&&document.addEventListener("visibilitychange",e),ft("focus",e),()=>{ut&&document.removeEventListener("visibilitychange",e),dt("focus",e)}),Os=e=>{const t=()=>{lt=!0,e()},n=()=>{lt=!1};return ft("online",t),ft("offline",n),()=>{dt("online",t),dt("offline",n)}},Ts={isOnline:Ss,isVisible:bs},_s={initFocus:gs,initReconnect:Os},Yt=!x.useId,Ee=!Ce||ws,As=e=>Rs()?window.requestAnimationFrame(e):setTimeout(e,1),Qe=Ee?x.useEffect:x.useLayoutEffect,Ze=typeof navigator<"u"&&navigator.connection,Qt=!Ee&&Ze&&(["slow-2g","2g"].includes(Ze.effectiveType)||Ze.saveData),Fe=new WeakMap,Cs=e=>ct.prototype.toString.call(e),et=(e,t)=>e===`[object ${t}]`;let xs=0;const pt=e=>{const t=typeof e,n=Cs(e),r=et(n,"Date"),s=et(n,"RegExp"),i=et(n,"Object");let o,a;if(ct(e)===e&&!r&&!s){if(o=Fe.get(e),o)return o;if(o=++xs+"~",Fe.set(e,o),Array.isArray(e)){for(o="@",a=0;a<e.length;a++)o+=pt(e[a])+",";Fe.set(e,o)}if(i){o="#";const d=ct.keys(e).sort();for(;!b(a=d.pop());)b(e[a])||(o+=a+":"+pt(e[a])+",");Fe.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},bt=e=>{if(ee(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?pt(e):"",[e,t]};let Ds=0;const ht=()=>++Ds;async function Dn(...e){const[t,n,r,s]=e,i=ue({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=i.populateCache;const a=i.rollbackOnError;let d=i.optimisticData;const f=E=>typeof a=="function"?a(E):a!==!1,l=i.throwOnError;if(ee(n)){const E=n,y=[],u=t.keys();for(const m of u)!/^\$(inf|sub)\$/.test(m)&&E(t.get(m)._k)&&y.push(m);return Promise.all(y.map(p))}return p(n);async function p(E){const[y]=bt(E);if(!y)return;const[u,m]=xn(t,y),[h,S,w,_]=ae.get(t),D=()=>{const F=h[y];return(ee(i.revalidate)?i.revalidate(u().data,E):i.revalidate!==!1)&&(delete w[y],delete _[y],F&&F[0])?F[0](An).then(()=>u().data):u().data};if(e.length<3)return D();let g=r,U,A=!1;const Q=ht();S[y]=[Q,0];const O=!b(d),te=u(),H=te.data,J=te._c,V=b(J)?H:J;if(O&&(d=ee(d)?d(V,H):d,m({data:d,_c:V})),ee(g))try{g=g(V)}catch(F){U=F,A=!0}if(g&&Cn(g))if(g=await g.catch(F=>{U=F,A=!0}),Q!==S[y][0]){if(A)throw U;return g}else A&&O&&f(U)&&(o=!0,m({data:V,_c:B}));if(o&&!A)if(ee(o)){const F=o(g,V);m({data:F,error:B,_c:B})}else m({data:g,error:B,_c:B});if(S[y][1]=ht(),Promise.resolve(D()).then(()=>{m({_c:B})}),A){if(l)throw U;return}return g}}const Zt=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Ns=(e,t)=>{if(!ae.has(e)){const n=ue(_s,t),r=Object.create(null),s=Dn.bind(B,e);let i=ce;const o=Object.create(null),a=(l,p)=>{const E=o[l]||[];return o[l]=E,E.push(p),()=>E.splice(E.indexOf(p),1)},d=(l,p,E)=>{e.set(l,p);const y=o[l];if(y)for(const u of y)u(p,E)},f=()=>{if(!ae.has(e)&&(ae.set(e,[r,Object.create(null),Object.create(null),Object.create(null),s,d,a]),!Ee)){const l=n.initFocus(setTimeout.bind(B,Zt.bind(B,r,Tn))),p=n.initReconnect(setTimeout.bind(B,Zt.bind(B,r,_n)));i=()=>{l&&l(),p&&p(),ae.delete(e)}}};return f(),[e,s,f,i]}return[e,ae.get(e)[4]]},Ls=(e,t,n,r,s)=>{const i=n.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!b(i)&&o>i||setTimeout(r,a,s)},Ps=at,[Nn,Fs]=Ns(new Map),vs=ue({onLoadingSlow:ce,onSuccess:ce,onError:ce,onErrorRetry:Ls,onDiscarded:ce,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Qt?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Qt?5e3:3e3,compare:Ps,isPaused:()=>!1,cache:Nn,mutate:Fs,fallback:{}},Ts),Us=(e,t)=>{const n=ue(e,t);if(t){const{use:r,fallback:s}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),s&&o&&(n.fallback=ue(s,o))}return n},Is=x.createContext({}),Bs="$inf$",Ln=Ce&&window.__SWR_DEVTOOLS_USE__,js=Ln?window.__SWR_DEVTOOLS_USE__:[],ks=()=>{Ln&&(window.__SWR_DEVTOOLS_REACT__=x)},Pn=e=>ee(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],qs=()=>{const e=x.useContext(Is);return x.useMemo(()=>ue(vs,e),[e])},Ms=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=bt(t),[,,,a]=ae.get(Nn);if(o.startsWith(Bs))return n(...i);const d=a[o];return b(d)?n(...i):(delete a[o],d)}),r),Hs=js.concat(Ms),Vs=e=>function(...n){const r=qs(),[s,i,o]=Pn(n),a=Us(r,o);let d=e;const{use:f}=a,l=(f||[]).concat(Hs);for(let p=l.length;p--;)d=l[p](d);return d(s,i||a.fetcher||null,a)},$s=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s>=0&&(r[s]=r[r.length-1],r.pop())}},Ws=(e,t)=>(...n)=>{const[r,s,i]=Pn(n),o=(i.use||[]).concat(t);return e(r,s,{...i,use:o})};ks();const tt=x.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),nt={dedupe:!0},en=Promise.resolve(B),zs=(e,t,n)=>{const{cache:r,compare:s,suspense:i,fallbackData:o,revalidateOnMount:a,revalidateIfStale:d,refreshInterval:f,refreshWhenHidden:l,refreshWhenOffline:p,keepPreviousData:E,strictServerPrefetchWarning:y}=n,[u,m,h,S]=ae.get(r),[w,_]=bt(e),D=x.useRef(!1),g=x.useRef(!1),U=x.useRef(w),A=x.useRef(t),Q=x.useRef(n),O=()=>Q.current,te=()=>O().isVisible()&&O().isOnline(),[H,J,V,F]=xn(r,w),ne=x.useRef({}).current,v=b(o)?b(n.fallback)?B:n.fallback[w]:o,Re=(T,C)=>{for(const P in ne){const N=P;if(N==="data"){if(!s(T[N],C[N])&&(!b(T[N])||!s(De,C[N])))return!1}else if(C[N]!==T[N])return!1}return!0},K=x.useMemo(()=>{const T=!w||!t?!1:b(a)?O().isPaused()||i?!1:d!==!1:a,C=k=>{const oe=ue(k);return delete oe._k,T?{isValidating:!0,isLoading:!0,...oe}:oe},P=H(),N=F(),X=C(P),me=P===N?X:C(N);let I=X;return[()=>{const k=C(H());return Re(k,I)?(I.data=k.data,I.isLoading=k.isLoading,I.isValidating=k.isValidating,I.error=k.error,I):(I=k,k)},()=>me]},[r,w]),re=Kt.useSyncExternalStore(x.useCallback(T=>V(w,(C,P)=>{Re(P,C)||T()}),[r,w]),K[0],K[1]),xe=!D.current,Z=u[w]&&u[w].length>0,$=re.data,G=b($)?v&&Cn(v)?tt(v):v:$,se=re.error,he=x.useRef(G),De=E?b($)?b(he.current)?G:he.current:$:G,le=w&&b(G),Fn=!Ee&&Kt.useSyncExternalStore(()=>ce,()=>!1,()=>!0);y&&Fn&&!i&&le&&console.warn(`Missing pre-initiated data for serialized key "${w}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const gt=Z&&!b(se)?!1:xe&&!b(a)?a:O().isPaused()?!1:i?b(G)?!1:d:b(G)||d,Ot=!!(w&&t&&xe&>),vn=b(re.isValidating)?Ot:re.isValidating,Un=b(re.isLoading)?Ot:re.isLoading,Se=x.useCallback(async T=>{const C=A.current;if(!w||!C||g.current||O().isPaused())return!1;let P,N,X=!0;const me=T||{},I=!h[w]||!me.dedupe,k=()=>Yt?!g.current&&w===U.current&&D.current:w===U.current,oe={isValidating:!1,isLoading:!1},_t=()=>{J(oe)},At=()=>{const W=h[w];W&&W[1]===N&&delete h[w]},Ct={isValidating:!0};b(H().data)&&(Ct.isLoading=!0);try{if(I&&(J(Ct),n.loadingTimeout&&b(H().data)&&setTimeout(()=>{X&&k()&&O().onLoadingSlow(w,n)},n.loadingTimeout),h[w]=[C(_),ht()]),[P,N]=h[w],P=await P,I&&setTimeout(At,n.dedupingInterval),!h[w]||h[w][1]!==N)return I&&k()&&O().onDiscarded(w),!1;oe.error=B;const W=m[w];if(!b(W)&&(N<=W[0]||N<=W[1]||W[1]===0))return _t(),I&&k()&&O().onDiscarded(w),!1;const ie=H().data;oe.data=s(ie,P)?ie:P,I&&k()&&O().onSuccess(P,w,n)}catch(W){At();const ie=O(),{shouldRetryOnError:Ve}=ie;ie.isPaused()||(oe.error=W,I&&k()&&(ie.onError(W,w,ie),(Ve===!0||ee(Ve)&&Ve(W))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||te())&&ie.onErrorRetry(W,w,ie,In=>{const $e=u[w];$e&&$e[0]&&$e[0](Gt,In)},{retryCount:(me.retryCount||0)+1,dedupe:!0})))}return X=!1,_t(),!0},[w,r]),Tt=x.useCallback((...T)=>Dn(r,U.current,...T),[]);if(Qe(()=>{A.current=t,Q.current=n,b($)||(he.current=$)}),Qe(()=>{if(!w)return;const T=Se.bind(B,nt);let C=0;O().revalidateOnFocus&&(C=Date.now()+O().focusThrottleInterval);const N=$s(w,u,(X,me={})=>{if(X==Tn){const I=Date.now();O().revalidateOnFocus&&I>C&&te()&&(C=I+O().focusThrottleInterval,T())}else if(X==_n)O().revalidateOnReconnect&&te()&&T();else{if(X==An)return Se();if(X==Gt)return Se(me)}});return g.current=!1,U.current=w,D.current=!0,J({_k:_}),gt&&(h[w]||(b(G)||Ee?T():As(T))),()=>{g.current=!0,N()}},[w]),Qe(()=>{let T;function C(){const N=ee(f)?f(H().data):f;N&&T!==-1&&(T=setTimeout(P,N))}function P(){!H().error&&(l||O().isVisible())&&(p||O().isOnline())?Se(nt).then(C):C()}return C(),()=>{T&&(clearTimeout(T),T=-1)}},[f,l,p,w]),x.useDebugValue(De),i){if(!Yt&&Ee&&le)throw new Error("Fallback data is required when using Suspense in SSR.");le&&(A.current=t,Q.current=n,g.current=!1);const T=S[w],C=!b(T)&&le?Tt(T):en;if(tt(C),!b(se)&&le)throw se;const P=le?Se(nt):en;!b(De)&&le&&(P.status="fulfilled",P.value=!0),tt(P)}return{mutate:Tt,get data(){return ne.data=!0,De},get error(){return ne.error=!0,se},get isValidating(){return ne.isValidating=!0,vn},get isLoading(){return ne.isLoading=!0,Un}}},Js=Vs(zs);exports.axios=L;exports.useSWR=Js;exports.withMiddleware=Ws;
|
package/dist/index-YnD2EP-S.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function c(e) {
|
|
2
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3
|
-
}
|
|
4
|
-
var o = { exports: {} };
|
|
5
|
-
var i;
|
|
6
|
-
function p() {
|
|
7
|
-
return i || (i = 1, (function(e) {
|
|
8
|
-
(function() {
|
|
9
|
-
var u = {}.hasOwnProperty;
|
|
10
|
-
function s() {
|
|
11
|
-
for (var t = "", r = 0; r < arguments.length; r++) {
|
|
12
|
-
var n = arguments[r];
|
|
13
|
-
n && (t = a(t, f(n)));
|
|
14
|
-
}
|
|
15
|
-
return t;
|
|
16
|
-
}
|
|
17
|
-
function f(t) {
|
|
18
|
-
if (typeof t == "string" || typeof t == "number")
|
|
19
|
-
return t;
|
|
20
|
-
if (typeof t != "object")
|
|
21
|
-
return "";
|
|
22
|
-
if (Array.isArray(t))
|
|
23
|
-
return s.apply(null, t);
|
|
24
|
-
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
25
|
-
return t.toString();
|
|
26
|
-
var r = "";
|
|
27
|
-
for (var n in t)
|
|
28
|
-
u.call(t, n) && t[n] && (r = a(r, n));
|
|
29
|
-
return r;
|
|
30
|
-
}
|
|
31
|
-
function a(t, r) {
|
|
32
|
-
return r ? t ? t + " " + r : t + r : t;
|
|
33
|
-
}
|
|
34
|
-
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
35
|
-
})();
|
|
36
|
-
})(o)), o.exports;
|
|
37
|
-
}
|
|
38
|
-
var l = p();
|
|
39
|
-
const m = /* @__PURE__ */ c(l);
|
|
40
|
-
export {
|
|
41
|
-
m as c,
|
|
42
|
-
c as g
|
|
43
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";const K=require("react");var v={exports:{}},m={};var $;function ee(){if($)return m;$=1;var u=Symbol.for("react.transitional.element"),_=Symbol.for("react.fragment");function c(i,o,s){var f=null;if(s!==void 0&&(f=""+s),o.key!==void 0&&(f=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:u,type:i,key:f,ref:o!==void 0?o:null,props:s}}return m.Fragment=_,m.jsx=c,m.jsxs=c,m}var E={};var I;function re(){return I||(I=1,process.env.NODE_ENV!=="production"&&(function(){function u(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case U:return"Profiler";case W:return"StrictMode";case z:return"Suspense";case G:return"SuspenseList";case B:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case M:return"Portal";case J:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:u(e.type)||"Memo";case T:r=e._payload,e=e._init;try{return u(e(r))}catch{}}return null}function _(e){return""+e}function c(e){try{_(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),_(e)}}function i(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===T)return"<...>";try{var r=u(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function o(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function f(e){if(j.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function d(e,r){function t(){g||(g=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function D(){var e=u(this.type);return h[e]||(h[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function L(e,r,t,n,b,A){var a=t.ref;return e={$$typeof:y,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:D}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:b}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function P(e,r,t,n,b,A){var a=r.children;if(a!==void 0)if(n)if(Z(a)){for(n=0;n<a.length;n++)w(a[n]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else w(a);if(j.call(r,"key")){a=u(e);var l=Object.keys(r).filter(function(Q){return Q!=="key"});n=0<l.length?"{key: someKey, "+l.join(": ..., ")+": ...}":"{key: someKey}",Y[a+n]||(l=0<l.length?"{"+l.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
-
let props = %s;
|
|
3
|
-
<%s {...props} />
|
|
4
|
-
React keys must be passed directly to JSX without using spread:
|
|
5
|
-
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,n,a,l,a),Y[a+n]=!0)}if(a=null,t!==void 0&&(c(t),a=""+t),f(r)&&(c(r.key),a=""+r.key),"key"in r){t={};for(var S in r)S!=="key"&&(t[S]=r[S])}else t=r;return a&&d(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),L(e,a,t,o(),b,A)}function w(e){x(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===T&&(e._payload.status==="fulfilled"?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}var R=K,y=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),J=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),k=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,Z=Array.isArray,O=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(e){return e()}};var g,h={},N=R.react_stack_bottom_frame.bind(R,s)(),C=O(i(s)),Y={};E.Fragment=p,E.jsx=function(e,r,t){var n=1e4>k.recentlyCreatedOwnerStacks++;return P(e,r,t,!1,n?Error("react-stack-top-frame"):N,n?O(i(e)):C)},E.jsxs=function(e,r,t){var n=1e4>k.recentlyCreatedOwnerStacks++;return P(e,r,t,!0,n?Error("react-stack-top-frame"):N,n?O(i(e)):C)}})()),E}var F;function te(){return F||(F=1,process.env.NODE_ENV==="production"?v.exports=ee():v.exports=re()),v.exports}var ne=te();exports.jsxRuntimeExports=ne;
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import K from "react";
|
|
2
|
-
var v = { exports: {} }, m = {};
|
|
3
|
-
var I;
|
|
4
|
-
function ee() {
|
|
5
|
-
if (I) return m;
|
|
6
|
-
I = 1;
|
|
7
|
-
var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), E = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
8
|
-
function c(i, o, s) {
|
|
9
|
-
var f = null;
|
|
10
|
-
if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
|
|
11
|
-
s = {};
|
|
12
|
-
for (var d in o)
|
|
13
|
-
d !== "key" && (s[d] = o[d]);
|
|
14
|
-
} else s = o;
|
|
15
|
-
return o = s.ref, {
|
|
16
|
-
$$typeof: l,
|
|
17
|
-
type: i,
|
|
18
|
-
key: f,
|
|
19
|
-
ref: o !== void 0 ? o : null,
|
|
20
|
-
props: s
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
|
|
24
|
-
}
|
|
25
|
-
var _ = {};
|
|
26
|
-
var $;
|
|
27
|
-
function re() {
|
|
28
|
-
return $ || ($ = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29
|
-
function l(e) {
|
|
30
|
-
if (e == null) return null;
|
|
31
|
-
if (typeof e == "function")
|
|
32
|
-
return e.$$typeof === H ? null : e.displayName || e.name || null;
|
|
33
|
-
if (typeof e == "string") return e;
|
|
34
|
-
switch (e) {
|
|
35
|
-
case p:
|
|
36
|
-
return "Fragment";
|
|
37
|
-
case U:
|
|
38
|
-
return "Profiler";
|
|
39
|
-
case W:
|
|
40
|
-
return "StrictMode";
|
|
41
|
-
case z:
|
|
42
|
-
return "Suspense";
|
|
43
|
-
case G:
|
|
44
|
-
return "SuspenseList";
|
|
45
|
-
case B:
|
|
46
|
-
return "Activity";
|
|
47
|
-
}
|
|
48
|
-
if (typeof e == "object")
|
|
49
|
-
switch (typeof e.tag == "number" && console.error(
|
|
50
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
51
|
-
), e.$$typeof) {
|
|
52
|
-
case M:
|
|
53
|
-
return "Portal";
|
|
54
|
-
case V:
|
|
55
|
-
return e.displayName || "Context";
|
|
56
|
-
case J:
|
|
57
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
|
-
case q:
|
|
59
|
-
var r = e.render;
|
|
60
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
|
-
case X:
|
|
62
|
-
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
|
63
|
-
case T:
|
|
64
|
-
r = e._payload, e = e._init;
|
|
65
|
-
try {
|
|
66
|
-
return l(e(r));
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
function E(e) {
|
|
73
|
-
return "" + e;
|
|
74
|
-
}
|
|
75
|
-
function c(e) {
|
|
76
|
-
try {
|
|
77
|
-
E(e);
|
|
78
|
-
var r = !1;
|
|
79
|
-
} catch {
|
|
80
|
-
r = !0;
|
|
81
|
-
}
|
|
82
|
-
if (r) {
|
|
83
|
-
r = console;
|
|
84
|
-
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
85
|
-
return t.call(
|
|
86
|
-
r,
|
|
87
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
88
|
-
n
|
|
89
|
-
), E(e);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function i(e) {
|
|
93
|
-
if (e === p) return "<>";
|
|
94
|
-
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
95
|
-
return "<...>";
|
|
96
|
-
try {
|
|
97
|
-
var r = l(e);
|
|
98
|
-
return r ? "<" + r + ">" : "<...>";
|
|
99
|
-
} catch {
|
|
100
|
-
return "<...>";
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function o() {
|
|
104
|
-
var e = k.A;
|
|
105
|
-
return e === null ? null : e.getOwner();
|
|
106
|
-
}
|
|
107
|
-
function s() {
|
|
108
|
-
return Error("react-stack-top-frame");
|
|
109
|
-
}
|
|
110
|
-
function f(e) {
|
|
111
|
-
if (x.call(e, "key")) {
|
|
112
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
|
-
if (r && r.isReactWarning) return !1;
|
|
114
|
-
}
|
|
115
|
-
return e.key !== void 0;
|
|
116
|
-
}
|
|
117
|
-
function d(e, r) {
|
|
118
|
-
function t() {
|
|
119
|
-
g || (g = !0, console.error(
|
|
120
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
121
|
-
r
|
|
122
|
-
));
|
|
123
|
-
}
|
|
124
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
125
|
-
get: t,
|
|
126
|
-
configurable: !0
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function D() {
|
|
130
|
-
var e = l(this.type);
|
|
131
|
-
return h[e] || (h[e] = !0, console.error(
|
|
132
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
133
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
134
|
-
}
|
|
135
|
-
function L(e, r, t, n, b, A) {
|
|
136
|
-
var a = t.ref;
|
|
137
|
-
return e = {
|
|
138
|
-
$$typeof: j,
|
|
139
|
-
type: e,
|
|
140
|
-
key: r,
|
|
141
|
-
props: t,
|
|
142
|
-
_owner: n
|
|
143
|
-
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
|
|
144
|
-
enumerable: !1,
|
|
145
|
-
get: D
|
|
146
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
147
|
-
configurable: !1,
|
|
148
|
-
enumerable: !1,
|
|
149
|
-
writable: !0,
|
|
150
|
-
value: 0
|
|
151
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
152
|
-
configurable: !1,
|
|
153
|
-
enumerable: !1,
|
|
154
|
-
writable: !0,
|
|
155
|
-
value: null
|
|
156
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
157
|
-
configurable: !1,
|
|
158
|
-
enumerable: !1,
|
|
159
|
-
writable: !0,
|
|
160
|
-
value: b
|
|
161
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
162
|
-
configurable: !1,
|
|
163
|
-
enumerable: !1,
|
|
164
|
-
writable: !0,
|
|
165
|
-
value: A
|
|
166
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
167
|
-
}
|
|
168
|
-
function P(e, r, t, n, b, A) {
|
|
169
|
-
var a = r.children;
|
|
170
|
-
if (a !== void 0)
|
|
171
|
-
if (n)
|
|
172
|
-
if (Z(a)) {
|
|
173
|
-
for (n = 0; n < a.length; n++)
|
|
174
|
-
w(a[n]);
|
|
175
|
-
Object.freeze && Object.freeze(a);
|
|
176
|
-
} else
|
|
177
|
-
console.error(
|
|
178
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
179
|
-
);
|
|
180
|
-
else w(a);
|
|
181
|
-
if (x.call(r, "key")) {
|
|
182
|
-
a = l(e);
|
|
183
|
-
var u = Object.keys(r).filter(function(Q) {
|
|
184
|
-
return Q !== "key";
|
|
185
|
-
});
|
|
186
|
-
n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
187
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
188
|
-
let props = %s;
|
|
189
|
-
<%s {...props} />
|
|
190
|
-
React keys must be passed directly to JSX without using spread:
|
|
191
|
-
let props = %s;
|
|
192
|
-
<%s key={someKey} {...props} />`,
|
|
193
|
-
n,
|
|
194
|
-
a,
|
|
195
|
-
u,
|
|
196
|
-
a
|
|
197
|
-
), Y[a + n] = !0);
|
|
198
|
-
}
|
|
199
|
-
if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
|
|
200
|
-
t = {};
|
|
201
|
-
for (var S in r)
|
|
202
|
-
S !== "key" && (t[S] = r[S]);
|
|
203
|
-
} else t = r;
|
|
204
|
-
return a && d(
|
|
205
|
-
t,
|
|
206
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
207
|
-
), L(
|
|
208
|
-
e,
|
|
209
|
-
a,
|
|
210
|
-
t,
|
|
211
|
-
o(),
|
|
212
|
-
b,
|
|
213
|
-
A
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
function w(e) {
|
|
217
|
-
y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
218
|
-
}
|
|
219
|
-
function y(e) {
|
|
220
|
-
return typeof e == "object" && e !== null && e.$$typeof === j;
|
|
221
|
-
}
|
|
222
|
-
var R = K, j = /* @__PURE__ */ Symbol.for("react.transitional.element"), M = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), W = /* @__PURE__ */ Symbol.for("react.strict_mode"), U = /* @__PURE__ */ Symbol.for("react.profiler"), J = /* @__PURE__ */ Symbol.for("react.consumer"), V = /* @__PURE__ */ Symbol.for("react.context"), q = /* @__PURE__ */ Symbol.for("react.forward_ref"), z = /* @__PURE__ */ Symbol.for("react.suspense"), G = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), H = /* @__PURE__ */ Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
223
|
-
return null;
|
|
224
|
-
};
|
|
225
|
-
R = {
|
|
226
|
-
react_stack_bottom_frame: function(e) {
|
|
227
|
-
return e();
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
var g, h = {}, N = R.react_stack_bottom_frame.bind(
|
|
231
|
-
R,
|
|
232
|
-
s
|
|
233
|
-
)(), C = O(i(s)), Y = {};
|
|
234
|
-
_.Fragment = p, _.jsx = function(e, r, t) {
|
|
235
|
-
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
236
|
-
return P(
|
|
237
|
-
e,
|
|
238
|
-
r,
|
|
239
|
-
t,
|
|
240
|
-
!1,
|
|
241
|
-
n ? Error("react-stack-top-frame") : N,
|
|
242
|
-
n ? O(i(e)) : C
|
|
243
|
-
);
|
|
244
|
-
}, _.jsxs = function(e, r, t) {
|
|
245
|
-
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
246
|
-
return P(
|
|
247
|
-
e,
|
|
248
|
-
r,
|
|
249
|
-
t,
|
|
250
|
-
!0,
|
|
251
|
-
n ? Error("react-stack-top-frame") : N,
|
|
252
|
-
n ? O(i(e)) : C
|
|
253
|
-
);
|
|
254
|
-
};
|
|
255
|
-
})()), _;
|
|
256
|
-
}
|
|
257
|
-
var F;
|
|
258
|
-
function te() {
|
|
259
|
-
return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports;
|
|
260
|
-
}
|
|
261
|
-
var ae = te();
|
|
262
|
-
export {
|
|
263
|
-
ae as j
|
|
264
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const F=require("./jsx-runtime-nZSsnGb7.cjs");function Q(t){const{href:e,children:n,newPage:r,...a}=t;return F.jsxRuntimeExports.jsx("a",{href:e,...a,...r&&{target:"_blank",rel:"noopener noreferrer"},children:n})}const C=6048e5,X=864e5,L=6e4,D=Symbol.for("constructDateFrom");function g(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&D in t?t[D](e):t instanceof Date?new t.constructor(e):new Date(e)}function h(t,e){return g(e||t,t)}let R={};function O(){return R}function M(t,e){const n=O(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=h(t,e?.in),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function P(t,e){return M(t,{...e,weekStartsOn:1})}function q(t,e){const n=h(t,e?.in),r=n.getFullYear(),a=g(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=P(a),i=g(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const u=P(i);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function W(t){const e=h(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function N(t,...e){const n=g.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function v(t,e){const n=h(t,e?.in);return n.setHours(0,0,0,0),n}function B(t,e,n){const[r,a]=N(n?.in,t,e),o=v(r),i=v(a),u=+o-W(o),f=+i-W(i);return Math.round((u-f)/X)}function G(t,e){const n=q(t,e),r=g(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),P(r)}function A(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function I(t){return!(!A(t)&&typeof t!="number"||isNaN(+h(t)))}function V(t,e){const n=h(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const J={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$=(t,e,n)=>{let r;const a=J[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function k(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const z={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},U={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},K={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Z={date:k({formats:z,defaultWidth:"full"}),time:k({formats:U,defaultWidth:"full"}),dateTime:k({formats:K,defaultWidth:"full"})},tt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},et=(t,e,n,r)=>tt[t];function b(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,u=n?.width?String(n.width):i;a=t.formattingValues[u]||t.formattingValues[i]}else{const i=t.defaultWidth,u=n?.width?String(n.width):t.defaultWidth;a=t.values[u]||t.values[i]}const o=t.argumentCallback?t.argumentCallback(e):e;return a[o]}}const nt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},at={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ot={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},it={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},st={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ut=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ct={ordinalNumber:ut,era:b({values:nt,defaultWidth:"wide"}),quarter:b({values:rt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:b({values:at,defaultWidth:"wide"}),day:b({values:ot,defaultWidth:"wide"}),dayPeriod:b({values:it,defaultWidth:"wide",formattingValues:st,defaultFormattingWidth:"wide"})};function p(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;const i=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(u)?ft(u,c=>c.test(i)):dt(u,c=>c.test(i));let m;m=t.valueCallback?t.valueCallback(f):f,m=n.valueCallback?n.valueCallback(m):m;const d=e.slice(i.length);return{value:m,rest:d}}}function dt(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function ft(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function ht(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],o=e.match(t.parsePattern);if(!o)return null;let i=t.valueCallback?t.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;const u=e.slice(a.length);return{value:i,rest:u}}}const mt=/^(\d+)(th|st|nd|rd)?/i,lt=/\d+/i,gt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},wt={any:[/^b/i,/^(a|c)/i]},yt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bt={any:[/1/i,/2/i,/3/i,/4/i]},pt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Mt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Pt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ot={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Dt={ordinalNumber:ht({matchPattern:mt,parsePattern:lt,valueCallback:t=>parseInt(t,10)}),era:p({matchPatterns:gt,defaultMatchWidth:"wide",parsePatterns:wt,defaultParseWidth:"any"}),quarter:p({matchPatterns:yt,defaultMatchWidth:"wide",parsePatterns:bt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:p({matchPatterns:pt,defaultMatchWidth:"wide",parsePatterns:Mt,defaultParseWidth:"any"}),day:p({matchPatterns:Pt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:xt,defaultMatchWidth:"any",parsePatterns:kt,defaultParseWidth:"any"})},Wt={code:"en-US",formatDistance:$,formatLong:Z,formatRelative:et,localize:ct,match:Dt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vt(t,e){const n=h(t,e?.in);return B(n,V(n))+1}function St(t,e){const n=h(t,e?.in),r=+P(n)-+G(n);return Math.round(r/C)+1}function H(t,e){const n=h(t,e?.in),r=n.getFullYear(),a=O(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=g(e?.in||t,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const u=M(i,e),f=g(e?.in||t,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const m=M(f,e);return+n>=+u?r+1:+n>=+m?r:r-1}function Yt(t,e){const n=O(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=H(t,e),o=g(e?.in||t,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),M(o,e)}function Tt(t,e){const n=h(t,e?.in),r=+M(n,e)-+Yt(n,e);return Math.round(r/C)+1}function s(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const l={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return s(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):s(n+1,2)},d(t,e){return s(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return s(t.getHours()%12||12,e.length)},H(t,e){return s(t.getHours(),e.length)},m(t,e){return s(t.getMinutes(),e.length)},s(t,e){return s(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return s(a,e.length)}},y={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},S={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return l.y(t,e)},Y:function(t,e,n,r){const a=H(t,r),o=a>0?a:1-a;if(e==="YY"){const i=o%100;return s(i,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):s(o,e.length)},R:function(t,e){const n=q(t);return s(n,e.length)},u:function(t,e){const n=t.getFullYear();return s(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return l.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=Tt(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):s(a,e.length)},I:function(t,e,n){const r=St(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):s(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):l.d(t,e)},D:function(t,e,n){const r=vt(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):s(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return s(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return s(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return s(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=y.noon:r===0?a=y.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=y.evening:r>=12?a=y.afternoon:r>=4?a=y.morning:a=y.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return l.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):l.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):l.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):l.s(t,e)},S:function(t,e){return l.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return T(r);case"XXXX":case"XX":return w(r);default:return w(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return T(r);case"xxxx":case"xx":return w(r);default:return w(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Y(r,":");default:return"GMT"+w(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Y(r,":");default:return"GMT"+w(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return s(r,e.length)},T:function(t,e,n){return s(+t,e.length)}};function Y(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+e+s(o,2)}function T(t,e){return t%60===0?(t>0?"-":"+")+s(Math.abs(t)/60,2):w(t,e)}function w(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=s(Math.trunc(r/60),2),o=s(r%60,2);return n+a+e+o}const E=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},_=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Et=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return E(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",E(r,e)).replace("{{time}}",_(a,e))},Ft={p:_,P:Et},Ct=/^D+$/,qt=/^Y+$/,Nt=["D","DD","YY","YYYY"];function Ht(t){return Ct.test(t)}function _t(t){return qt.test(t)}function jt(t,e,n){const r=Qt(t,e,n);if(console.warn(r),Nt.includes(t))throw new RangeError(r)}function Qt(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Xt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Rt=/^'([^]*?)'?$/,Bt=/''/g,Gt=/[a-zA-Z]/;function j(t,e,n){const r=O(),a=r.locale??Wt,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=h(t,n?.in);if(!I(u))throw new RangeError("Invalid time value");let f=e.match(Lt).map(d=>{const c=d[0];if(c==="p"||c==="P"){const x=Ft[c];return x(d,a.formatLong)}return d}).join("").match(Xt).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const c=d[0];if(c==="'")return{isToken:!1,value:At(d)};if(S[c])return{isToken:!0,value:d};if(c.match(Gt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:d}});a.localize.preprocessor&&(f=a.localize.preprocessor(u,f));const m={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return f.map(d=>{if(!d.isToken)return d.value;const c=d.value;(_t(c)||Ht(c))&&jt(c,e,String(t));const x=S[c[0]];return x(u,c,a.localize,m)}).join("")}function At(t){const e=t.match(Rt);return e?e[1].replace(Bt,"'"):t}function It(t){let e=t?.date,n=t?.format;return e?F.jsxRuntimeExports.jsx("span",{"date-renderer":"ArticlesDate",children:j(new Date(e),n||"MM/dd/yy - h:mmaa")}):"Need date prop"}function Vt(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}exports.ArticlesDate=It;exports.Link=Q;exports.format=j;exports.millisecondsInMinute=L;exports.normalizeDates=N;exports.numberWithCommas=Vt;exports.toDate=h;
|