@byuckchon-frontend/utils 1.2.0 → 1.2.1

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/dist/index.umd.js CHANGED
@@ -1,6 +1,7 @@
1
- (function(H,ce){typeof exports=="object"&&typeof module<"u"?ce(exports):typeof define=="function"&&define.amd?define(["exports"],ce):(H=typeof globalThis<"u"?globalThis:H||self,ce(H.index={}))})(this,(function(H){"use strict";const ce=()=>({formatPhoneNumber:i=>{const a=(i??"").replace(/\D/g,"");if(/^1[568]\d{7}$/.test(a))return a.replace(/^(\d{4})(\d{4})$/,"$1-$2");if(a.startsWith("02")){if(a.length===9)return a.replace(/^(\d{2})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===10)return a.replace(/^(\d{2})(\d{4})(\d{4})$/,"$1-$2-$3")}if(/^0\d+/.test(a)){if(a.length===10)return a.replace(/^(\d{3})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===11)return a.replace(/^(\d{3})(\d{4})(\d{4})$/,"$1-$2-$3")}return i},formatBizNumber:i=>{const a=(i??"").replace(/\D/g,"");return a.length===10?a.replace(/^(\d{3})(\d{2})(\d{5})$/,"$1-$2-$3"):a.length===13?a.replace(/^(\d{6})(\d{7})$/,"$1-$2"):String(i??"")},formatDate:i=>{if(!(i instanceof Date)||isNaN(i.getTime()))return"";const a=i.getHours(),f=i.getMinutes(),l=a<12?"오전":"오후",u=a%12===0?12:a%12;return`${l} ${u}시 ${f}분`},Masker:{maskName:i=>{const a=(i??"").trim(),f=[...a].length;if(f<=0)return"";if(f===1)return"*";if(f===2){const[g]=[...a];return`${g}*`}const l=[...a],u=l[0],m=l[f-1],p="*".repeat(f-2);return`${u}${p}${m}`},maskPhoneNumber:i=>{if(i.includes("-")){const m=i.split("-");if(m.length===3){const[p,g,d]=m;return`${p}-${"*".repeat(g.replace(/\D/g,"").length||4)}-${d}`}if(m.length===2){const[p,g]=m,d=g.replace(/\D/g,""),w=d.slice(-4),h=Math.max(1,d.length-w.length);return`${p}-${"*".repeat(h)}${w}`}return i}const a=i.replace(/\D/g,"");if(a.length<8)return i;const f=a.slice(0,3),l=a.slice(-4),u=Math.max(1,a.length-(f.length+l.length));return`${f}${"*".repeat(u)}${l}`}},commanizeData:i=>{const a=String(i??"").trim();if(!a)return"";const f=a.replace(/,/g,""),l=f.startsWith("-")?"-":"",u=f.replace(/^-/,""),[m,p]=u.split("."),g=m.replace(/\B(?=(\d{3})+(?!\d))/g,",");return l+g+(p!==void 0?`.${p}`:"")},decommanizeData:i=>i.replace(/,/g,"")}),En=/^[A-Za-z0-9]([A-Za-z0-9_.+-]*[A-Za-z0-9])?@[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?\.[A-Za-z]{2,}$/,Pn=/^010(\d{4})(\d{4})$/,Dn=/^(070|02|031|032|033|034|035|036|037|038|039|041|042|043|051|052|053|054|055|061|062|063|064|070|071|072)[0-9]{3,4}[0-9]{4}$/,Mn=/([0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1,2][0-9]|3[0,1]))/,Rn=/^(19[0-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/,kn=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+~`\-={}[\]:;"'<>,.?/\\]).{10,}$/,An=/^d{2}([0]\d|[1][0-2])([0][1-9]|[1-2]\d|[3][0-1])[-]*[1-4]\d{6}$/,Sn=/^(?:[0-9]{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[1,2][0-9]|3[0,1]))-[1-8][0-9]{6}$/,_n=/^https?:\/\/(?:[-\w.])+(?:\.[a-zA-Z]{2,})+(?::\d+)?(?:\/[^\s]*)?$/i,Nn=/\.(jpg|jpeg|png|gif|pdf|doc|docx|xls|xlsx|ppt|pptx|txt|zip|rar)$/i;function Cn(t){return En.test(t)}function Fn(t){return Pn.test(t)}function Ln(t){return Dn.test(t)}function $n(t){return Mn.test(t)}function Hn(t){return Rn.test(t)}function qn(t){return kn.test(t)}function vn(t){return An.test(t)}function Bn(t){return Sn.test(t)}function In(t){const e=t.replace(/-/gi,"").split("").map(n=>parseInt(n,10));if(e.length===10){if(e.every(o=>o===0))return!1;const n=[1,3,7,1,3,7,1,3,5];let r=0;for(let o=0;o<9;o++)r+=n[o]*e[o];const s=(10-r%10)%10;return e[9]===s}return!1}function Yn(t){return _n.test(t)}function Wn(t,e=10){const n=typeof t=="string"?t:t.name;return!(!Nn.test(n)||t instanceof File&&t.size/1048576>e)}const jn={email:Cn,phone:Fn,homePhone:Ln,birth6:$n,birth8:Hn,password:qn,juminAfter2020:Bn,juminBefore2020:vn,corporateRegiNumber:In,url:Yn,file:Wn};function et(t,e){return function(){return t.apply(e,arguments)}}const{toString:Un}=Object.prototype,{getPrototypeOf:Ce}=Object,{iterator:ge,toStringTag:tt}=Symbol,be=(t=>e=>{const n=Un.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),q=t=>(t=t.toLowerCase(),e=>be(e)===t),xe=t=>e=>typeof e===t,{isArray:te}=Array,ne=xe("undefined");function ue(t){return t!==null&&!ne(t)&&t.constructor!==null&&!ne(t.constructor)&&F(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const nt=q("ArrayBuffer");function zn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&nt(t.buffer),e}const Qn=xe("string"),F=xe("function"),rt=xe("number"),le=t=>t!==null&&typeof t=="object",Xn=t=>t===!0||t===!1,Te=t=>{if(be(t)!=="object")return!1;const e=Ce(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tt in t)&&!(ge in t)},Vn=t=>{if(!le(t)||ue(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Jn=q("Date"),Gn=q("File"),Kn=q("Blob"),Zn=q("FileList"),er=t=>le(t)&&F(t.pipe),tr=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||F(t.append)&&((e=be(t))==="formdata"||e==="object"&&F(t.toString)&&t.toString()==="[object FormData]"))},nr=q("URLSearchParams"),[rr,sr,or,ir]=["ReadableStream","Request","Response","Headers"].map(q),ar=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fe(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),te(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{if(ue(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function st(t,e){if(ue(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const V=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ot=t=>!ne(t)&&t!==V;function Fe(){const{caseless:t,skipUndefined:e}=ot(this)&&this||{},n={},r=(s,o)=>{const i=t&&st(n,o)||o;Te(n[i])&&Te(s)?n[i]=Fe(n[i],s):Te(s)?n[i]=Fe({},s):te(s)?n[i]=s.slice():(!e||!ne(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&fe(arguments[s],r);return n}const cr=(t,e,n,{allOwnKeys:r}={})=>(fe(e,(s,o)=>{n&&F(s)?t[o]=et(s,n):t[o]=s},{allOwnKeys:r}),t),ur=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),lr=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},fr=(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&Ce(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},dr=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},hr=t=>{if(!t)return null;if(te(t))return t;let e=t.length;if(!rt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},mr=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ce(Uint8Array)),pr=(t,e)=>{const r=(t&&t[ge]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},wr=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},yr=q("HTMLFormElement"),gr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),it=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),br=q("RegExp"),at=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};fe(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},xr=t=>{at(t,(e,n)=>{if(F(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(F(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Tr=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return te(t)?r(t):r(String(t).split(e)),n},Or=()=>{},Er=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Pr(t){return!!(t&&F(t.append)&&t[tt]==="FormData"&&t[ge])}const Dr=t=>{const e=new Array(10),n=(r,s)=>{if(le(r)){if(e.indexOf(r)>=0)return;if(ue(r))return r;if(!("toJSON"in r)){e[s]=r;const o=te(r)?[]:{};return fe(r,(i,a)=>{const f=n(i,s+1);!ne(f)&&(o[a]=f)}),e[s]=void 0,o}}return r};return n(t,0)},Mr=q("AsyncFunction"),Rr=t=>t&&(le(t)||F(t))&&F(t.then)&&F(t.catch),ct=((t,e)=>t?setImmediate:e?((n,r)=>(V.addEventListener("message",({source:s,data:o})=>{s===V&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),V.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",F(V.postMessage)),kr=typeof queueMicrotask<"u"?queueMicrotask.bind(V):typeof process<"u"&&process.nextTick||ct,c={isArray:te,isArrayBuffer:nt,isBuffer:ue,isFormData:tr,isArrayBufferView:zn,isString:Qn,isNumber:rt,isBoolean:Xn,isObject:le,isPlainObject:Te,isEmptyObject:Vn,isReadableStream:rr,isRequest:sr,isResponse:or,isHeaders:ir,isUndefined:ne,isDate:Jn,isFile:Gn,isBlob:Kn,isRegExp:br,isFunction:F,isStream:er,isURLSearchParams:nr,isTypedArray:mr,isFileList:Zn,forEach:fe,merge:Fe,extend:cr,trim:ar,stripBOM:ur,inherits:lr,toFlatObject:fr,kindOf:be,kindOfTest:q,endsWith:dr,toArray:hr,forEachEntry:pr,matchAll:wr,isHTMLForm:yr,hasOwnProperty:it,hasOwnProp:it,reduceDescriptors:at,freezeMethods:xr,toObjectSet:Tr,toCamelCase:gr,noop:Or,toFiniteNumber:Er,findKey:st,global:V,isContextDefined:ot,isSpecCompliantForm:Pr,toJSONObject:Dr,isAsyncFn:Mr,isThenable:Rr,setImmediate:ct,asap:kr,isIterable:t=>t!=null&&F(t[ge])};function b(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}c.inherits(b,Error,{toJSON:function(){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}}});const ut=b.prototype,lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{lt[t]={value:t}}),Object.defineProperties(b,lt),Object.defineProperty(ut,"isAxiosError",{value:!0}),b.from=(t,e,n,r,s,o)=>{const i=Object.create(ut);c.toFlatObject(t,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const a=t&&t.message?t.message:"Error",f=e==null&&t?t.code:e;return b.call(i,a,f,n,r,s),t&&i.cause==null&&Object.defineProperty(i,"cause",{value:t,configurable:!0}),i.name=t&&t.name||"Error",o&&Object.assign(i,o),i};const Ar=null;function Le(t){return c.isPlainObject(t)||c.isArray(t)}function ft(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}function dt(t,e,n){return t?t.concat(e).map(function(s,o){return s=ft(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function Sr(t){return c.isArray(t)&&!t.some(Le)}const _r=c.toFlatObject(c,{},null,function(e){return/^is[A-Z]/.test(e)});function Oe(t,e,n){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,h){return!c.isUndefined(h[w])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(e);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(c.isDate(d))return d.toISOString();if(c.isBoolean(d))return d.toString();if(!f&&c.isBlob(d))throw new b("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(d)||c.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,w,h){let y=d;if(d&&!h&&typeof d=="object"){if(c.endsWith(w,"{}"))w=r?w:w.slice(0,-2),d=JSON.stringify(d);else if(c.isArray(d)&&Sr(d)||(c.isFileList(d)||c.endsWith(w,"[]"))&&(y=c.toArray(d)))return w=ft(w),y.forEach(function(E,D){!(c.isUndefined(E)||E===null)&&e.append(i===!0?dt([w],D,o):i===null?w:w+"[]",l(E))}),!1}return Le(d)?!0:(e.append(dt(h,w,o),l(d)),!1)}const m=[],p=Object.assign(_r,{defaultVisitor:u,convertValue:l,isVisitable:Le});function g(d,w){if(!c.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+w.join("."));m.push(d),c.forEach(d,function(y,P){(!(c.isUndefined(y)||y===null)&&s.call(e,y,c.isString(P)?P.trim():P,w,p))===!0&&g(y,w?w.concat(P):[P])}),m.pop()}}if(!c.isObject(t))throw new TypeError("data must be an object");return g(t),e}function ht(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function $e(t,e){this._pairs=[],t&&Oe(t,this,e)}const mt=$e.prototype;mt.append=function(e,n){this._pairs.push([e,n])},mt.toString=function(e){const n=e?function(r){return e.call(this,r,ht)}:ht;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Nr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function pt(t,e,n){if(!e)return t;const r=n&&n.encode||Nr;c.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=c.isURLSearchParams(e)?e.toString():new $e(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class wt{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,function(r){r!==null&&e(r)})}}const yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:$e,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},He=typeof window<"u"&&typeof document<"u",qe=typeof navigator=="object"&&navigator||void 0,Fr=He&&(!qe||["ReactNative","NativeScript","NS"].indexOf(qe.product)<0),Lr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$r=He&&window.location.href||"http://localhost",C={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:He,hasStandardBrowserEnv:Fr,hasStandardBrowserWebWorkerEnv:Lr,navigator:qe,origin:$r},Symbol.toStringTag,{value:"Module"})),...Cr};function Hr(t,e){return Oe(t,new C.classes.URLSearchParams,{visitor:function(n,r,s,o){return C.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function qr(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function vr(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function gt(t){function e(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),f=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,f?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=vr(s[i])),!a)}if(c.isFormData(t)&&c.isFunction(t.entries)){const n={};return c.forEachEntry(t,(r,s)=>{e(qr(r),s,n,0)}),n}return null}function Br(t,e,n){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const de={transitional:yt,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(e);if(o&&c.isHTMLForm(e)&&(e=new FormData(e)),c.isFormData(e))return s?JSON.stringify(gt(e)):e;if(c.isArrayBuffer(e)||c.isBuffer(e)||c.isStream(e)||c.isFile(e)||c.isBlob(e)||c.isReadableStream(e))return e;if(c.isArrayBufferView(e))return e.buffer;if(c.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Hr(e,this.formSerializer).toString();if((a=c.isFileList(e))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Oe(a?{"files[]":e}:e,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Br(e)):e}],transformResponse:[function(e){const n=this.transitional||de.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(e)||c.isReadableStream(e))return e;if(e&&c.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],t=>{de.headers[t]={}});const Ir=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"]),Yr=t=>{const e={};let n,r,s;return t&&t.split(`
2
- `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&Ir[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},bt=Symbol("internals");function he(t){return t&&String(t).trim().toLowerCase()}function Ee(t){return t===!1||t==null?t:c.isArray(t)?t.map(Ee):String(t)}function Wr(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const jr=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ve(t,e,n,r,s){if(c.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!c.isString(e)){if(c.isString(r))return e.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(e)}}function Ur(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function zr(t,e){const n=c.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}let L=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(a,f,l){const u=he(f);if(!u)throw new Error("header name must be a non-empty string");const m=c.findKey(s,u);(!m||s[m]===void 0||l===!0||l===void 0&&s[m]!==!1)&&(s[m||f]=Ee(a))}const i=(a,f)=>c.forEach(a,(l,u)=>o(l,u,f));if(c.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(c.isString(e)&&(e=e.trim())&&!jr(e))i(Yr(e),n);else if(c.isObject(e)&&c.isIterable(e)){let a={},f,l;for(const u of e){if(!c.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[l=u[0]]=(f=a[l])?c.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(a,n)}else e!=null&&o(n,e,r);return this}get(e,n){if(e=he(e),e){const r=c.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Wr(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(e,n){if(e=he(e),e){const r=c.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ve(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=he(i),i){const a=c.findKey(r,i);a&&(!n||ve(r,r[a],a,n))&&(delete r[a],s=!0)}}return c.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||ve(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=Ee(s),delete n[o];return}const a=e?Ur(o):String(o).trim();a!==o&&delete n[o],n[a]=Ee(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[bt]=this[bt]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=he(i);r[a]||(zr(s,i),r[a]=!0)}return c.isArray(e)?e.forEach(o):o(e),this}};L.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(L.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),c.freezeMethods(L);function Be(t,e){const n=this||de,r=e||n,s=L.from(r.headers);let o=r.data;return c.forEach(t,function(a){o=a.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function xt(t){return!!(t&&t.__CANCEL__)}function re(t,e,n){b.call(this,t??"canceled",b.ERR_CANCELED,e,n),this.name="CanceledError"}c.inherits(re,b,{__CANCEL__:!0});function Tt(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Qr(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Xr(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(f){const l=Date.now(),u=r[o];i||(i=l),n[s]=f,r[s]=l;let m=o,p=0;for(;m!==s;)p+=n[m++],m=m%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),l-i<e)return;const g=u&&l-u;return g?Math.round(p*1e3/g):void 0}}function Vr(t,e){let n=0,r=1e3/e,s,o;const i=(l,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),t(...l)};return[(...l)=>{const u=Date.now(),m=u-n;m>=r?i(l,u):(s=l,o||(o=setTimeout(()=>{o=null,i(s)},r-m)))},()=>s&&i(s)]}const Pe=(t,e,n=3)=>{let r=0;const s=Xr(50,250);return Vr(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,f=i-r,l=s(f),u=i<=a;r=i;const m={loaded:i,total:a,progress:a?i/a:void 0,bytes:f,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},Ot=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Et=t=>(...e)=>c.asap(()=>t(...e)),Jr=C.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,C.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Gr=C.hasStandardBrowserEnv?{write(t,e,n,r,s,o,i){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),c.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Kr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Zr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Pt(t,e,n){let r=!Kr(e);return t&&(r||n==!1)?Zr(t,e):e}const Dt=t=>t instanceof L?{...t}:t;function J(t,e){e=e||{};const n={};function r(l,u,m,p){return c.isPlainObject(l)&&c.isPlainObject(u)?c.merge.call({caseless:p},l,u):c.isPlainObject(u)?c.merge({},u):c.isArray(u)?u.slice():u}function s(l,u,m,p){if(c.isUndefined(u)){if(!c.isUndefined(l))return r(void 0,l,m,p)}else return r(l,u,m,p)}function o(l,u){if(!c.isUndefined(u))return r(void 0,u)}function i(l,u){if(c.isUndefined(u)){if(!c.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function a(l,u,m){if(m in e)return r(l,u);if(m in t)return r(void 0,l)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,u,m)=>s(Dt(l),Dt(u),m,!0)};return c.forEach(Object.keys({...t,...e}),function(u){const m=f[u]||s,p=m(t[u],e[u],u);c.isUndefined(p)&&m!==a||(n[u]=p)}),n}const Mt=t=>{const e=J({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=e;if(e.headers=i=L.from(i),e.url=pt(Pt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(n)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(c.isFunction(n.getHeaders)){const f=n.getHeaders(),l=["content-type","content-length"];Object.entries(f).forEach(([u,m])=>{l.includes(u.toLowerCase())&&i.set(u,m)})}}if(C.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(e)),r||r!==!1&&Jr(e.url))){const f=s&&o&&Gr.read(o);f&&i.set(s,f)}return e},es=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=Mt(t);let o=s.data;const i=L.from(s.headers).normalize();let{responseType:a,onUploadProgress:f,onDownloadProgress:l}=s,u,m,p,g,d;function w(){g&&g(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function y(){if(!h)return;const E=L.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),_={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:t,request:h};Tt(function($){n($),w()},function($){r($),w()},_),h=null}"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(y)},h.onabort=function(){h&&(r(new b("Request aborted",b.ECONNABORTED,t,h)),h=null)},h.onerror=function(D){const _=D&&D.message?D.message:"Network Error",Y=new b(_,b.ERR_NETWORK,t,h);Y.event=D||null,r(Y),h=null},h.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const _=s.transitional||yt;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),r(new b(D,_.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,t,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&c.forEach(i.toJSON(),function(D,_){h.setRequestHeader(_,D)}),c.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),a&&a!=="json"&&(h.responseType=s.responseType),l&&([p,d]=Pe(l,!0),h.addEventListener("progress",p)),f&&h.upload&&([m,g]=Pe(f),h.upload.addEventListener("progress",m),h.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(u=E=>{h&&(r(!E||E.type?new re(null,t,h):E),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const P=Qr(s.url);if(P&&C.protocols.indexOf(P)===-1){r(new b("Unsupported protocol "+P+":",b.ERR_BAD_REQUEST,t));return}h.send(o||null)})},ts=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(l){if(!s){s=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof b?u:new re(u instanceof Error?u.message:u))}};let i=e&&setTimeout(()=>{i=null,o(new b(`timeout ${e} of ms exceeded`,b.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),t=null)};t.forEach(l=>l.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>c.asap(a),f}},ns=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},rs=async function*(t,e){for await(const n of ss(t))yield*ns(n,e)},ss=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Rt=(t,e,n,r)=>{const s=rs(t,e);let o=0,i,a=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await s.next();if(l){a(),f.close();return}let m=u.byteLength;if(n){let p=o+=m;n(p)}f.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(f){return a(f),s.return()}},{highWaterMark:2})},kt=64*1024,{isFunction:De}=c,os=(({Request:t,Response:e})=>({Request:t,Response:e}))(c.global),{ReadableStream:At,TextEncoder:St}=c.global,_t=(t,...e)=>{try{return!!t(...e)}catch{return!1}},is=t=>{t=c.merge.call({skipUndefined:!0},os,t);const{fetch:e,Request:n,Response:r}=t,s=e?De(e):typeof fetch=="function",o=De(n),i=De(r);if(!s)return!1;const a=s&&De(At),f=s&&(typeof St=="function"?(d=>w=>d.encode(w))(new St):async d=>new Uint8Array(await new n(d).arrayBuffer())),l=o&&a&&_t(()=>{let d=!1;const w=new n(C.origin,{body:new At,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!w}),u=i&&a&&_t(()=>c.isReadableStream(new r("").body)),m={stream:u&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!m[d]&&(m[d]=(w,h)=>{let y=w&&w[d];if(y)return y.call(w);throw new b(`Response type '${d}' is not supported`,b.ERR_NOT_SUPPORT,h)})});const p=async d=>{if(d==null)return 0;if(c.isBlob(d))return d.size;if(c.isSpecCompliantForm(d))return(await new n(C.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(c.isArrayBufferView(d)||c.isArrayBuffer(d))return d.byteLength;if(c.isURLSearchParams(d)&&(d=d+""),c.isString(d))return(await f(d)).byteLength},g=async(d,w)=>{const h=c.toFiniteNumber(d.getContentLength());return h??p(w)};return async d=>{let{url:w,method:h,data:y,signal:P,cancelToken:E,timeout:D,onDownloadProgress:_,onUploadProgress:Y,responseType:$,headers:Ke,withCredentials:Se="same-origin",fetchOptions:wn}=Mt(d),yn=e||fetch;$=$?($+"").toLowerCase():"text";let _e=ts([P,E&&E.toAbortSignal()],D),ye=null;const ee=_e&&_e.unsubscribe&&(()=>{_e.unsubscribe()});let gn;try{if(Y&&l&&h!=="get"&&h!=="head"&&(gn=await g(Ke,y))!==0){let X=new n(w,{method:"POST",body:y,duplex:"half"}),ae;if(c.isFormData(y)&&(ae=X.headers.get("content-type"))&&Ke.setContentType(ae),X.body){const[Ze,Ne]=Ot(gn,Pe(Et(Y)));y=Rt(X.body,kt,Ze,Ne)}}c.isString(Se)||(Se=Se?"include":"omit");const W=o&&"credentials"in n.prototype,bn={...wn,signal:_e,method:h.toUpperCase(),headers:Ke.normalize().toJSON(),body:y,duplex:"half",credentials:W?Se:void 0};ye=o&&new n(w,bn);let Q=await(o?yn(ye,wn):yn(w,bn));const xn=u&&($==="stream"||$==="response");if(u&&(_||xn&&ee)){const X={};["status","statusText","headers"].forEach(Tn=>{X[Tn]=Q[Tn]});const ae=c.toFiniteNumber(Q.headers.get("content-length")),[Ze,Ne]=_&&Ot(ae,Pe(Et(_),!0))||[];Q=new r(Rt(Q.body,kt,Ze,()=>{Ne&&Ne(),ee&&ee()}),X)}$=$||"text";let Ni=await m[c.findKey(m,$)||"text"](Q,d);return!xn&&ee&&ee(),await new Promise((X,ae)=>{Tt(X,ae,{data:Ni,headers:L.from(Q.headers),status:Q.status,statusText:Q.statusText,config:d,request:ye})})}catch(W){throw ee&&ee(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,d,ye),{cause:W.cause||W}):b.from(W,W&&W.code,d,ye)}}},as=new Map,Nt=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:s}=e,o=[r,s,n];let i=o.length,a=i,f,l,u=as;for(;a--;)f=o[a],l=u.get(f),l===void 0&&u.set(f,l=a?new Map:is(e)),u=l;return l};Nt();const Ie={http:Ar,xhr:es,fetch:{get:Nt}};c.forEach(Ie,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ct=t=>`- ${t}`,cs=t=>c.isFunction(t)||t===null||t===!1;function us(t,e){t=c.isArray(t)?t:[t];const{length:n}=t;let r,s;const o={};for(let i=0;i<n;i++){r=t[i];let a;if(s=r,!cs(r)&&(s=Ie[(a=String(r)).toLowerCase()],s===void 0))throw new b(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(e))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([f,l])=>`adapter ${f} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
4
- `+i.map(Ct).join(`
5
- `):" "+Ct(i[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Ft={getAdapter:us,adapters:Ie};function Ye(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new re(null,t)}function Lt(t){return Ye(t),t.headers=L.from(t.headers),t.data=Be.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ft.getAdapter(t.adapter||de.adapter,t)(t).then(function(r){return Ye(t),r.data=Be.call(t,t.transformResponse,r),r.headers=L.from(r.headers),r},function(r){return xt(r)||(Ye(t),r&&r.response&&(r.response.data=Be.call(t,t.transformResponse,r.response),r.response.headers=L.from(r.response.headers))),Promise.reject(r)})}const $t="1.13.2",Me={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Me[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ht={};Me.transitional=function(e,n,r){function s(o,i){return"[Axios v"+$t+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(e===!1)throw new b(s(i," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!Ht[i]&&(Ht[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,a):!0}},Me.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function ls(t,e,n){if(typeof t!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const a=t[o],f=a===void 0||i(a,o,t);if(f!==!0)throw new b("option "+o+" must be "+f,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+o,b.ERR_BAD_OPTION)}}const Re={assertOptions:ls,validators:Me},v=Re.validators;let G=class{constructor(e){this.defaults=e||{},this.interceptors={request:new wt,response:new wt}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=J(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Re.assertOptions(r,{silentJSONParsing:v.transitional(v.boolean),forcedJSONParsing:v.transitional(v.boolean),clarifyTimeoutError:v.transitional(v.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:Re.assertOptions(s,{encode:v.function,serialize:v.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Re.assertOptions(n,{baseUrl:v.spelling("baseURL"),withXsrfToken:v.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),n.headers=L.concat(i,o);const a=[];let f=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(f=f&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const l=[];this.interceptors.response.forEach(function(w){l.push(w.fulfilled,w.rejected)});let u,m=0,p;if(!f){const d=[Lt.bind(this),void 0];for(d.unshift(...a),d.push(...l),p=d.length,u=Promise.resolve(n);m<p;)u=u.then(d[m++],d[m++]);return u}p=a.length;let g=n;for(;m<p;){const d=a[m++],w=a[m++];try{g=d(g)}catch(h){w.call(this,h);break}}try{u=Lt.call(this,g)}catch(d){return Promise.reject(d)}for(m=0,p=l.length;m<p;)u=u.then(l[m++],l[m++]);return u}getUri(e){e=J(this.defaults,e);const n=Pt(e.baseURL,e.url,e.allowAbsoluteUrls);return pt(n,e.params,e.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(e){G.prototype[e]=function(n,r){return this.request(J(r||{},{method:e,url:n,data:(r||{}).data}))}}),c.forEach(["post","put","patch"],function(e){function n(r){return function(o,i,a){return this.request(J(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}G.prototype[e]=n(),G.prototype[e+"Form"]=n(!0)});let fs=class On{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,a){r.reason||(r.reason=new re(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new On(function(s){e=s}),cancel:e}}};function ds(t){return function(n){return t.apply(null,n)}}function hs(t){return c.isObject(t)&&t.isAxiosError===!0}const We={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(We).forEach(([t,e])=>{We[e]=t});function qt(t){const e=new G(t),n=et(G.prototype.request,e);return c.extend(n,G.prototype,e,{allOwnKeys:!0}),c.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return qt(J(t,s))},n}const k=qt(de);k.Axios=G,k.CanceledError=re,k.CancelToken=fs,k.isCancel=xt,k.VERSION=$t,k.toFormData=Oe,k.AxiosError=b,k.Cancel=k.CanceledError,k.all=function(e){return Promise.all(e)},k.spread=ds,k.isAxiosError=hs,k.mergeConfig=J,k.AxiosHeaders=L,k.formToJSON=t=>gt(c.isHTMLForm(t)?new FormData(t):t),k.getAdapter=Ft.getAdapter,k.HttpStatusCode=We,k.default=k;const{Axios:vi,AxiosError:Bi,CanceledError:Ii,isCancel:Yi,CancelToken:Wi,VERSION:ji,all:Ui,Cancel:zi,isAxiosError:Qi,spread:Xi,toFormData:Vi,AxiosHeaders:Ji,HttpStatusCode:Gi,formToJSON:Ki,getAdapter:Zi,mergeConfig:ea}=k,ms=({error:t,message:e="알 수 없는 에러가 발생했습니다.",callback:n})=>k.isAxiosError(t)?(n?.(),{type:"axios",message:t.response?.data?.message??e,status:t.response?.status}):t instanceof Error?(n?.(),{type:"client",message:t.message||e}):(n?.(),{type:"unknown",message:e}),vt=(t,e={})=>{const{removeUndefined:n=!0,removeNull:r=!0,removeEmptyString:s=!0,removeEmptyArray:o=!0,removeEmptyObject:i=!0,normalizeNumbers:a=!1,normalizeBooleans:f=!1,normalizeNested:l=!1}=e,u=p=>{switch(!0){case(n&&p===void 0):return!0;case(r&&p===null):return!0;case(s&&p===""):return!0;case(o&&Array.isArray(p)&&p.length===0):return!0;case(i&&typeof p=="object"&&p!==null&&!Array.isArray(p)&&Object.keys(p).length===0):return!0;default:return!1}},m=p=>{if(typeof p=="object"&&p!==null){if(Array.isArray(p))return l?p.map(g=>m(g)).filter(g=>!u(g)):p;if(typeof p=="object")return l?vt(p,e):p}if(typeof p=="string"){const g=p.trim();if(f){const d=g.toLowerCase();if(d==="true")return!0;if(d==="false")return!1}return g}return a&&typeof p=="number"?String(p):p};return Object.fromEntries(Object.entries(t).map(([p,g])=>[p,m(g)]).filter(([,p])=>!u(p)))};function j(){return typeof window>"u"||"Deno"in globalThis}function ps(){return!j()}function Bt(){return j()?!1:/ipad|iphone/i.test(navigator.userAgent)}function It(){return j()?!1:/Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.platform)}function Yt(){return j()?!1:/Android/i.test(navigator.userAgent)}function ws(){return j()?!1:/MSIE|Trident/i.test(navigator.userAgent)}function Wt(){return j()?!1:/KAKAOTALK/i.test(navigator.userAgent)}function je(){return j()?!1:Bt()?"ios":Yt()?"android":"web"}function ys(){const t=je();return t==="ios"||t==="android"}function gs(){if(j())return"server";if(Wt())return"kakao";const t=je();return t==="ios"||t==="android"?t:It()?"macos":"web"}const bs={isServer:j,isClient:ps,isIOS:Bt,isAndroid:Yt,isMacOS:It,isIE:ws,isKakaoWebView:Wt,isMobileWeb:ys,getOSByUserAgent:je,getPlatform:gs},jt=6048e5,xs=864e5,Ut=6e4,zt=36e5,Ts=1e3,Qt=Symbol.for("constructDateFrom");function N(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Qt in t?t[Qt](e):t instanceof Date?new t.constructor(e):new Date(e)}function T(t,e){return N(e||t,t)}function Xt(t,e,n){const r=T(t,n?.in);return isNaN(e)?N(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}let Os={};function se(){return Os}function U(t,e){const n=se(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=T(t,e?.in),o=s.getDay(),i=(o<r?7:0)+o-r;return s.setDate(s.getDate()-i),s.setHours(0,0,0,0),s}function oe(t,e){return U(t,{...e,weekStartsOn:1})}function Vt(t,e){const n=T(t,e?.in),r=n.getFullYear(),s=N(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const o=oe(s),i=N(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const a=oe(i);return n.getTime()>=o.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function ke(t){const e=T(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 K(t,...e){const n=N.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Jt(t,e){const n=T(t,e?.in);return n.setHours(0,0,0,0),n}function Gt(t,e,n){const[r,s]=K(n?.in,t,e),o=Jt(r),i=Jt(s),a=+o-ke(o),f=+i-ke(i);return Math.round((a-f)/xs)}function Es(t,e){const n=Vt(t,e),r=N(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),oe(r)}function me(t,e){const n=+T(t)-+T(e);return n<0?-1:n>0?1:n}function Ps(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ds(t){return!(!Ps(t)&&typeof t!="number"||isNaN(+T(t)))}function Ms(t,e,n){const[r,s]=K(n?.in,t,e),o=r.getFullYear()-s.getFullYear(),i=r.getMonth()-s.getMonth();return o*12+i}function Rs(t,e,n){const[r,s]=K(n?.in,t,e);return r.getFullYear()-s.getFullYear()}function Kt(t,e,n){const[r,s]=K(n?.in,t,e),o=Zt(r,s),i=Math.abs(Gt(r,s));r.setDate(r.getDate()-o*i);const a=+(Zt(r,s)===-o),f=o*(i-a);return f===0?0:f}function Zt(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function Ue(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function ks(t,e,n){const[r,s]=K(n?.in,t,e),o=(+r-+s)/zt;return Ue(n?.roundingMethod)(o)}function As(t,e){return+T(t)-+T(e)}function Ss(t,e,n){const r=As(t,e)/Ut;return Ue(n?.roundingMethod)(r)}function _s(t,e){const n=T(t,e?.in);return n.setHours(23,59,59,999),n}function Ns(t,e){const n=T(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Cs(t,e){const n=T(t,e?.in);return+_s(n,e)==+Ns(n,e)}function Fs(t,e,n){const[r,s,o]=K(n?.in,t,t,e),i=me(s,o),a=Math.abs(Ms(s,o));if(a<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-i*a);let f=me(s,o)===-i;Cs(r)&&a===1&&me(r,o)===1&&(f=!1);const l=i*(a-+f);return l===0?0:l}function Ls(t,e,n){const r=Kt(t,e,n)/7;return Ue(n?.roundingMethod)(r)}function $s(t,e,n){const[r,s]=K(n?.in,t,e),o=me(r,s),i=Math.abs(Rs(r,s));r.setFullYear(1584),s.setFullYear(1584);const a=me(r,s)===-o,f=o*(i-+a);return f===0?0:f}function Hs(t,e){const n=T(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const qs={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"}},vs=(t,e,n)=>{let r;const s=qs[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ze(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Bs={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Is={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ys={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ws={date:ze({formats:Bs,defaultWidth:"full"}),time:ze({formats:Is,defaultWidth:"full"}),dateTime:ze({formats:Ys,defaultWidth:"full"})},js={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Us=(t,e,n,r)=>js[t];function pe(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):i;s=t.formattingValues[a]||t.formattingValues[i]}else{const i=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;s=t.values[a]||t.values[i]}const o=t.argumentCallback?t.argumentCallback(e):e;return s[o]}}const zs={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qs={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Xs={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"]},Vs={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"]},Js={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"}},Gs={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"}},Ks={ordinalNumber:(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"},era:pe({values:zs,defaultWidth:"wide"}),quarter:pe({values:Qs,defaultWidth:"wide",argumentCallback:t=>t-1}),month:pe({values:Xs,defaultWidth:"wide"}),day:pe({values:Vs,defaultWidth:"wide"}),dayPeriod:pe({values:Js,defaultWidth:"wide",formattingValues:Gs,defaultFormattingWidth:"wide"})};function we(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(s);if(!o)return null;const i=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(a)?eo(a,m=>m.test(i)):Zs(a,m=>m.test(i));let l;l=t.valueCallback?t.valueCallback(f):f,l=n.valueCallback?n.valueCallback(l):l;const u=e.slice(i.length);return{value:l,rest:u}}}function Zs(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function eo(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function to(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=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 a=e.slice(s.length);return{value:i,rest:a}}}const no=/^(\d+)(th|st|nd|rd)?/i,ro=/\d+/i,so={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},oo={any:[/^b/i,/^(a|c)/i]},io={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ao={any:[/1/i,/2/i,/3/i,/4/i]},co={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},uo={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]},lo={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},fo={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]},ho={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},mo={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}},po={ordinalNumber:to({matchPattern:no,parsePattern:ro,valueCallback:t=>parseInt(t,10)}),era:we({matchPatterns:so,defaultMatchWidth:"wide",parsePatterns:oo,defaultParseWidth:"any"}),quarter:we({matchPatterns:io,defaultMatchWidth:"wide",parsePatterns:ao,defaultParseWidth:"any",valueCallback:t=>t+1}),month:we({matchPatterns:co,defaultMatchWidth:"wide",parsePatterns:uo,defaultParseWidth:"any"}),day:we({matchPatterns:lo,defaultMatchWidth:"wide",parsePatterns:fo,defaultParseWidth:"any"}),dayPeriod:we({matchPatterns:ho,defaultMatchWidth:"any",parsePatterns:mo,defaultParseWidth:"any"})},en={code:"en-US",formatDistance:vs,formatLong:Ws,formatRelative:Us,localize:Ks,match:po,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wo(t,e){const n=T(t,e?.in);return Gt(n,Hs(n))+1}function tn(t,e){const n=T(t,e?.in),r=+oe(n)-+Es(n);return Math.round(r/jt)+1}function Qe(t,e){const n=T(t,e?.in),r=n.getFullYear(),s=se(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,i=N(e?.in||t,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const a=U(i,e),f=N(e?.in||t,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const l=U(f,e);return+n>=+a?r+1:+n>=+l?r:r-1}function yo(t,e){const n=se(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=Qe(t,e),o=N(e?.in||t,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),U(o,e)}function nn(t,e){const n=T(t,e?.in),r=+U(n,e)-+yo(n,e);return Math.round(r/jt)+1}function x(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const z={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return x(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):x(n+1,2)},d(t,e){return x(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];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return x(t.getHours()%12||12,e.length)},H(t,e){return x(t.getHours(),e.length)},m(t,e){return x(t.getMinutes(),e.length)},s(t,e){return x(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return x(s,e.length)}},ie={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rn={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"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return z.y(t,e)},Y:function(t,e,n,r){const s=Qe(t,r),o=s>0?s:1-s;if(e==="YY"){const i=o%100;return x(i,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):x(o,e.length)},R:function(t,e){const n=Vt(t);return x(n,e.length)},u:function(t,e){const n=t.getFullYear();return x(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 x(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"});case"QQQQ":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 x(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"});case"qqqq":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 z.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"});case"MMMM":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 x(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"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=nn(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):x(s,e.length)},I:function(t,e,n){const r=tn(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):x(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):z.d(t,e)},D:function(t,e,n){const r=wo(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):x(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"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return x(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return x(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return x(s,e.length);case"io":return n.ordinalNumber(s,{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"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=ie.noon:r===0?s=ie.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=ie.evening:r>=12?s=ie.afternoon:r>=4?s=ie.morning:s=ie.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{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 z.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):z.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):x(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):x(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):z.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):z.s(t,e)},S:function(t,e){return z.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return on(r);case"XXXX":case"XX":return Z(r);case"XXXXX":case"XXX":default:return Z(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return on(r);case"xxxx":case"xx":return Z(r);case"xxxxx":case"xxx":default:return Z(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+sn(r,":");case"OOOO":default:return"GMT"+Z(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+sn(r,":");case"zzzz":default:return"GMT"+Z(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return x(r,e.length)},T:function(t,e,n){return x(+t,e.length)}};function sn(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+e+x(o,2)}function on(t,e){return t%60===0?(t>0?"-":"+")+x(Math.abs(t)/60,2):Z(t,e)}function Z(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=x(Math.trunc(r/60),2),o=x(r%60,2);return n+s+e+o}const an=(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"});case"PPPP":default:return e.date({width:"full"})}},cn=(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"});case"pppp":default:return e.time({width:"full"})}},Xe={p:cn,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return an(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;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",an(r,e)).replace("{{time}}",cn(s,e))}},go=/^D+$/,bo=/^Y+$/,xo=["D","DD","YY","YYYY"];function un(t){return go.test(t)}function ln(t){return bo.test(t)}function Ve(t,e,n){const r=To(t,e,n);if(console.warn(r),xo.includes(t))throw new RangeError(r)}function To(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 Oo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Eo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Po=/^'([^]*?)'?$/,Do=/''/g,Mo=/[a-zA-Z]/;function Ro(t,e,n){const r=se(),s=r.locale??en,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=T(t,n?.in);if(!Ds(a))throw new RangeError("Invalid time value");let f=e.match(Eo).map(u=>{const m=u[0];if(m==="p"||m==="P"){const p=Xe[m];return p(u,s.formatLong)}return u}).join("").match(Oo).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const m=u[0];if(m==="'")return{isToken:!1,value:ko(u)};if(rn[m])return{isToken:!0,value:u};if(m.match(Mo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:u}});s.localize.preprocessor&&(f=s.localize.preprocessor(a,f));const l={firstWeekContainsDate:o,weekStartsOn:i,locale:s};return f.map(u=>{if(!u.isToken)return u.value;const m=u.value;(ln(m)||un(m))&&Ve(m,e,String(t));const p=rn[m[0]];return p(a,m,s.localize,l)}).join("")}function ko(t){const e=t.match(Po);return e?e[1].replace(Do,"'"):t}function Ao(t,e){const n=T(t,e?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",s="";const o="-",i=":";{const a=x(n.getDate(),2),f=x(n.getMonth()+1,2);r=`${x(n.getFullYear(),4)}${o}${f}${o}${a}`}{const a=n.getTimezoneOffset();if(a!==0){const g=Math.abs(a),d=x(Math.trunc(g/60),2),w=x(g%60,2);s=`${a<0?"+":"-"}${d}:${w}`}else s="Z";const f=x(n.getHours(),2),l=x(n.getMinutes(),2),u=x(n.getSeconds(),2),m=r===""?"":"T",p=[f,l,u].join(i);r=`${r}${m}${p}${s}`}return r}function So(){return Object.assign({},se())}function _o(t,e){const n=T(t,e?.in).getDay();return n===0?7:n}function No(t,e){return+T(t)>+T(e)}function Co(t,e){return+T(t)<+T(e)}function Fo(t,e){const n=Lo(e)?new e(0):N(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function Lo(t){return typeof t=="function"&&t.prototype?.constructor===t}const $o=10;class fn{subPriority=0;validate(e,n){return!0}}class Ho extends fn{constructor(e,n,r,s,o){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,o&&(this.subPriority=o)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class qo extends fn{priority=$o;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>N(n,r))}set(e,n){return n.timestampIsSet?e:N(e,Fo(e,this.context))}}class O{run(e,n,r,s){const o=this.parse(e,n,r,s);return o?{setter:new Ho(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,n,r){return!0}}class vo extends O{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const A={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},B={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function S(t,e){return t&&{value:e(t.value),rest:t.rest}}function M(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function I(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(s*zt+o*Ut+i*Ts),rest:e.slice(n[0].length)}}function dn(t){return M(A.anyDigitsSigned,t)}function R(t,e){switch(t){case 1:return M(A.singleDigit,e);case 2:return M(A.twoDigits,e);case 3:return M(A.threeDigits,e);case 4:return M(A.fourDigits,e);default:return M(new RegExp("^\\d{1,"+t+"}"),e)}}function Ae(t,e){switch(t){case 1:return M(A.singleDigitSigned,e);case 2:return M(A.twoDigitsSigned,e);case 3:return M(A.threeDigitsSigned,e);case 4:return M(A.fourDigitsSigned,e);default:return M(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Je(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function hn(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const o=r+50,i=Math.trunc(o/100)*100,a=t>=o%100;s=t+i-(a?100:0)}return n?s:1-s}function mn(t){return t%400===0||t%4===0&&t%100!==0}class Bo extends O{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const s=o=>({year:o,isTwoDigitYear:n==="yy"});switch(n){case"y":return S(R(4,e),s);case"yo":return S(r.ordinalNumber(e,{unit:"year"}),s);default:return S(R(n.length,e),s)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const s=e.getFullYear();if(r.isTwoDigitYear){const i=hn(r.year,s);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}const o=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}class Io extends O{priority=130;parse(e,n,r){const s=o=>({year:o,isTwoDigitYear:n==="YY"});switch(n){case"Y":return S(R(4,e),s);case"Yo":return S(r.ordinalNumber(e,{unit:"year"}),s);default:return S(R(n.length,e),s)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,s){const o=Qe(e,s);if(r.isTwoDigitYear){const a=hn(r.year,o);return e.setFullYear(a,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),U(e,s)}const i=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(i,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),U(e,s)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class Yo extends O{priority=130;parse(e,n){return Ae(n==="R"?4:n.length,e)}set(e,n,r){const s=N(e,0);return s.setFullYear(r,0,4),s.setHours(0,0,0,0),oe(s)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Wo extends O{priority=130;parse(e,n){return Ae(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class jo extends O{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return R(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Uo extends O{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return R(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class zo extends O{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const s=o=>o-1;switch(n){case"M":return S(M(A.month,e),s);case"MM":return S(R(2,e),s);case"Mo":return S(r.ordinalNumber(e,{unit:"month"}),s);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class Qo extends O{priority=110;parse(e,n,r){const s=o=>o-1;switch(n){case"L":return S(M(A.month,e),s);case"LL":return S(R(2,e),s);case"Lo":return S(r.ordinalNumber(e,{unit:"month"}),s);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function Xo(t,e,n){const r=T(t,n?.in),s=nn(r,n)-e;return r.setDate(r.getDate()-s*7),T(r,n?.in)}class Vo extends O{priority=100;parse(e,n,r){switch(n){case"w":return M(A.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return R(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,s){return U(Xo(e,r,s),s)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Jo(t,e,n){const r=T(t,n?.in),s=tn(r,n)-e;return r.setDate(r.getDate()-s*7),r}class Go extends O{priority=100;parse(e,n,r){switch(n){case"I":return M(A.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return R(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return oe(Jo(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const Ko=[31,28,31,30,31,30,31,31,30,31,30,31],Zo=[31,29,31,30,31,30,31,31,30,31,30,31];class ei extends O{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return M(A.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return R(n.length,e)}}validate(e,n){const r=e.getFullYear(),s=mn(r),o=e.getMonth();return s?n>=1&&n<=Zo[o]:n>=1&&n<=Ko[o]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class ti extends O{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return M(A.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return R(n.length,e)}}validate(e,n){const r=e.getFullYear();return mn(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Ge(t,e,n){const r=se(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=T(t,n?.in),i=o.getDay(),f=(e%7+7)%7,l=7-s,u=e<0||e>6?e-(i+l)%7:(f+l)%7-(i+l)%7;return Xt(o,u,n)}class ni extends O{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,s){return e=Ge(e,r,s),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class ri extends O{priority=90;parse(e,n,r,s){const o=i=>{const a=Math.floor((i-1)/7)*7;return(i+s.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return S(R(n.length,e),o);case"eo":return S(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,s){return e=Ge(e,r,s),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class si extends O{priority=90;parse(e,n,r,s){const o=i=>{const a=Math.floor((i-1)/7)*7;return(i+s.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return S(R(n.length,e),o);case"co":return S(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,s){return e=Ge(e,r,s),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function oi(t,e,n){const r=T(t,n?.in),s=_o(r,n),o=e-s;return Xt(r,o,n)}class ii extends O{priority=90;parse(e,n,r){const s=o=>o===0?7:o;switch(n){case"i":case"ii":return R(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return S(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return S(r.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return S(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s);case"iiii":default:return S(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=oi(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class ai extends O{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Je(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class ci extends O{priority=80;parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Je(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class ui extends O{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Je(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class li extends O{priority=70;parse(e,n,r){switch(n){case"h":return M(A.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return R(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const s=e.getHours()>=12;return s&&r<12?e.setHours(r+12,0,0,0):!s&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class fi extends O{priority=70;parse(e,n,r){switch(n){case"H":return M(A.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return R(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class di extends O{priority=70;parse(e,n,r){switch(n){case"K":return M(A.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return R(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class hi extends O{priority=70;parse(e,n,r){switch(n){case"k":return M(A.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return R(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const s=r<=24?r%24:r;return e.setHours(s,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class mi extends O{priority=60;parse(e,n,r){switch(n){case"m":return M(A.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return R(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class pi extends O{priority=50;parse(e,n,r){switch(n){case"s":return M(A.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return R(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class wi extends O{priority=30;parse(e,n){const r=s=>Math.trunc(s*Math.pow(10,-n.length+3));return S(R(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class yi extends O{priority=10;parse(e,n){switch(n){case"X":return I(B.basicOptionalMinutes,e);case"XX":return I(B.basic,e);case"XXXX":return I(B.basicOptionalSeconds,e);case"XXXXX":return I(B.extendedOptionalSeconds,e);case"XXX":default:return I(B.extended,e)}}set(e,n,r){return n.timestampIsSet?e:N(e,e.getTime()-ke(e)-r)}incompatibleTokens=["t","T","x"]}class gi extends O{priority=10;parse(e,n){switch(n){case"x":return I(B.basicOptionalMinutes,e);case"xx":return I(B.basic,e);case"xxxx":return I(B.basicOptionalSeconds,e);case"xxxxx":return I(B.extendedOptionalSeconds,e);case"xxx":default:return I(B.extended,e)}}set(e,n,r){return n.timestampIsSet?e:N(e,e.getTime()-ke(e)-r)}incompatibleTokens=["t","T","X"]}class bi extends O{priority=40;parse(e){return dn(e)}set(e,n,r){return[N(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class xi extends O{priority=20;parse(e){return dn(e)}set(e,n,r){return[N(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const Ti={G:new vo,y:new Bo,Y:new Io,R:new Yo,u:new Wo,Q:new jo,q:new Uo,M:new zo,L:new Qo,w:new Vo,I:new Go,d:new ei,D:new ti,E:new ni,e:new ri,c:new si,i:new ii,a:new ai,b:new ci,B:new ui,h:new li,H:new fi,K:new di,k:new hi,m:new mi,s:new pi,S:new wi,X:new yi,x:new gi,t:new bi,T:new xi},Oi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ei=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pi=/^'([^]*?)'?$/,Di=/''/g,Mi=/\S/,Ri=/[a-zA-Z]/;function ki(t,e,n,r){const s=()=>N(n,NaN),o=So(),i=o.locale??en,a=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,f=o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!e)return t?s():T(n,r?.in);const l={firstWeekContainsDate:a,weekStartsOn:f,locale:i},u=[new qo(r?.in,n)],m=e.match(Ei).map(h=>{const y=h[0];if(y in Xe){const P=Xe[y];return P(h,i.formatLong)}return h}).join("").match(Oi),p=[];for(let h of m){ln(h)&&Ve(h,e,t),un(h)&&Ve(h,e,t);const y=h[0],P=Ti[y];if(P){const{incompatibleTokens:E}=P;if(Array.isArray(E)){const _=p.find(Y=>E.includes(Y.token)||Y.token===y);if(_)throw new RangeError(`The format string mustn't contain \`${_.fullToken}\` and \`${h}\` at the same time`)}else if(P.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${h}\` and any other token at the same time`);p.push({token:y,fullToken:h});const D=P.run(t,h,i.match,l);if(!D)return s();u.push(D.setter),t=D.rest}else{if(y.match(Ri))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(h==="''"?h="'":y==="'"&&(h=Ai(h)),t.indexOf(h)===0)t=t.slice(h.length);else return s()}}if(t.length>0&&Mi.test(t))return s();const g=u.map(h=>h.priority).sort((h,y)=>y-h).filter((h,y,P)=>P.indexOf(h)===y).map(h=>u.filter(y=>y.priority===h).sort((y,P)=>P.subPriority-y.subPriority)).map(h=>h[0]);let d=T(n,r?.in);if(isNaN(+d))return s();const w={};for(const h of g){if(!h.validate(d,l))return s();const y=h.set(d,w,l);Array.isArray(y)?(d=y[0],Object.assign(w,y[1])):d=y}return d}function Ai(t){return t.match(Pi)[1].replace(Di,"'")}const Si=t=>new Date(t.getTime()+324e5),pn=(t,e="yyyy-MM-dd")=>{const n=typeof t=="string"?new Date(t):t;if(isNaN(n.getTime()))throw new Error("올바른 날짜 형식이 아닙니다.");return Ro(n,e)},_i=Object.freeze(Object.defineProperty({__proto__:null,afterDate:(t,e)=>No(t,e)?t:e,beforeDate:(t,e)=>Co(t,e)?t:e,formatDate:pn,formatToCustomKoreanTime:(t,e={})=>{const{use12Hour:n=!0,showPeriod:r=!0,showSeconds:s=!1,includeDate:o=!1,includeWeekday:i=!1,timeSeparator:a=":",dateFormat:f="yyyy-MM-dd",dateTimeSeparator:l=" ",padHours:u=!0,periodLabels:m={am:"오전",pm:"오후"},weekdayLabels:p=["일","월","화","수","목","금","토"]}=e,g=typeof t=="string"?new Date(t):t;if(isNaN(g.getTime()))throw new Error("올바른 날짜 형식이 아닙니다.");const d=g.getHours(),w=g.getMinutes(),h=g.getSeconds();let y="";if(n){const E=d<12?m.am:m.pm,D=d%12||12,_=u?D.toString().padStart(2,"0"):D.toString();y=r?`${E} ${_}`:_}else y=u?d.toString().padStart(2,"0"):d.toString();const P=w.toString().padStart(2,"0");if(y+=`${a}${P}`,s){const E=h.toString().padStart(2,"0");y+=`${a}${E}`}if(o){let D=pn(g,f);if(i){const _=p[g.getDay()];D+=` (${_})`}return`${D}${l}${y}`}return y},parseDate:(t,e)=>ki(t,e??"yyyy-MM-dd",new Date),relativeTime:(t,e)=>{const n=new Date,r=n>=t,o={...{direction:r?"전":"후",seconds:r?"방금":"잠시",minutes:"분",hours:"시간",days:"일",weeks:"주",months:"개월",years:"년"},...e},i=[{diffFunc:Ss,limit:60,label:o.minutes},{diffFunc:ks,limit:24,label:o.hours},{diffFunc:Kt,limit:7,label:o.days},{diffFunc:Ls,limit:5,label:o.weeks},{diffFunc:Fs,limit:12,label:o.months},{diffFunc:$s,limit:1/0,label:o.years}];for(const a of i){const f=Math.abs(a.diffFunc(n,t));if(f>=1&&f<a.limit)return`${f}${a.label} ${o.direction}`}return r?`${o.seconds} ${o.direction}`:`${o.seconds} ${o.direction}`},toISO:t=>Ao(t),utcToKst:Si},Symbol.toStringTag,{value:"Module"}));H.FormatData=ce,H.dateUtils=_i,H.filterParams=vt,H.handleError=ms,H.userAgent=bs,H.validate=jn,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(ne,je){typeof exports=="object"&&typeof module<"u"?je(exports):typeof define=="function"&&define.amd?define(["exports"],je):(ne=typeof globalThis<"u"?globalThis:ne||self,je(ne.index={}))})(this,(function(ne){"use strict";const je=()=>({formatPhoneNumber:i=>{const a=(i??"").replace(/\D/g,"");if(/^1[568]\d{7}$/.test(a))return a.replace(/^(\d{4})(\d{4})$/,"$1-$2");if(a.startsWith("02")){if(a.length===9)return a.replace(/^(\d{2})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===10)return a.replace(/^(\d{2})(\d{4})(\d{4})$/,"$1-$2-$3")}if(/^0\d+/.test(a)){if(a.length===10)return a.replace(/^(\d{3})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===11)return a.replace(/^(\d{3})(\d{4})(\d{4})$/,"$1-$2-$3")}return i},formatBizNumber:i=>{const a=(i??"").replace(/\D/g,"");return a.length===10?a.replace(/^(\d{3})(\d{2})(\d{5})$/,"$1-$2-$3"):a.length===13?a.replace(/^(\d{6})(\d{7})$/,"$1-$2"):String(i??"")},formatDate:i=>{if(!(i instanceof Date)||isNaN(i.getTime()))return"";const a=i.getHours(),d=i.getMinutes(),f=a<12?"오전":"오후",l=a%12===0?12:a%12;return`${f} ${l}시 ${d}분`},Masker:{maskName:i=>{const a=(i??"").trim(),d=[...a].length;if(d<=0)return"";if(d===1)return"*";if(d===2){const[A]=[...a];return`${A}*`}const f=[...a],l=f[0],p=f[d-1],w="*".repeat(d-2);return`${l}${w}${p}`},maskPhoneNumber:i=>{if(i.includes("-")){const p=i.split("-");if(p.length===3){const[w,A,m]=p;return`${w}-${"*".repeat(A.replace(/\D/g,"").length||4)}-${m}`}if(p.length===2){const[w,A]=p,m=A.replace(/\D/g,""),b=m.slice(-4),h=Math.max(1,m.length-b.length);return`${w}-${"*".repeat(h)}${b}`}return i}const a=i.replace(/\D/g,"");if(a.length<8)return i;const d=a.slice(0,3),f=a.slice(-4),l=Math.max(1,a.length-(d.length+f.length));return`${d}${"*".repeat(l)}${f}`}},commanizeData:i=>{const a=String(i??"").trim();if(!a)return"";const d=a.replace(/,/g,""),f=d.startsWith("-")?"-":"",l=d.replace(/^-/,""),[p,w]=l.split("."),A=p.replace(/\B(?=(\d{3})+(?!\d))/g,",");return f+A+(w!==void 0?`.${w}`:"")},decommanizeData:i=>i.replace(/,/g,"")}),Ts=/^[A-Za-z0-9]([A-Za-z0-9_.+-]*[A-Za-z0-9])?@[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?\.[A-Za-z]{2,}$/,Es=/^010(\d{4})(\d{4})$/,As=/^(070|02|031|032|033|034|035|036|037|038|039|041|042|043|051|052|053|054|055|061|062|063|064|070|071|072)[0-9]{3,4}[0-9]{4}$/,Os=/([0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1,2][0-9]|3[0,1]))/,_s=/^(19[0-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/,xs=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+~`\-={}[\]:;"'<>,.?/\\]).{10,}$/,Ds=/^d{2}([0]\d|[1][0-2])([0][1-9]|[1-2]\d|[3][0-1])[-]*[1-4]\d{6}$/,Rs=/^(?:[0-9]{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[1,2][0-9]|3[0,1]))-[1-8][0-9]{6}$/,Ss=/^https?:\/\/(?:[-\w.])+(?:\.[a-zA-Z]{2,})+(?::\d+)?(?:\/[^\s]*)?$/i,Ms=/\.(jpg|jpeg|png|gif|pdf|doc|docx|xls|xlsx|ppt|pptx|txt|zip|rar)$/i;function Ps(t){return Ts.test(t)}function Ns(t){return Es.test(t)}function Cs(t){return As.test(t)}function ks(t){return Os.test(t)}function Ls(t){return _s.test(t)}function Is(t){return xs.test(t)}function Fs(t){return Ds.test(t)}function vs(t){return Rs.test(t)}function Hs(t){const e=t.replace(/-/gi,"").split("").map(n=>parseInt(n,10));if(e.length===10){if(e.every(o=>o===0))return!1;const n=[1,3,7,1,3,7,1,3,5];let r=0;for(let o=0;o<9;o++)r+=n[o]*e[o];const s=(10-r%10)%10;return e[9]===s}return!1}function Us(t){return Ss.test(t)}function Bs(t,e=10){const n=typeof t=="string"?t:t.name;return!(!Ms.test(n)||t instanceof File&&t.size/1048576>e)}const Ws={email:Ps,phone:Ns,homePhone:Cs,birth6:ks,birth8:Ls,password:Is,juminAfter2020:vs,juminBefore2020:Fs,corporateRegiNumber:Hs,url:Us,file:Bs};function xn(t,e){return function(){return t.apply(e,arguments)}}const{toString:$s}=Object.prototype,{getPrototypeOf:Ht}=Object,{iterator:lt,toStringTag:Dn}=Symbol,ft=(t=>e=>{const n=$s.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),oe=t=>(t=t.toLowerCase(),e=>ft(e)===t),dt=t=>e=>typeof e===t,{isArray:Ce}=Array,ke=dt("undefined");function Ge(t){return t!==null&&!ke(t)&&t.constructor!==null&&!ke(t.constructor)&&K(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Rn=oe("ArrayBuffer");function Ys(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Rn(t.buffer),e}const qs=dt("string"),K=dt("function"),Sn=dt("number"),Xe=t=>t!==null&&typeof t=="object",zs=t=>t===!0||t===!1,mt=t=>{if(ft(t)!=="object")return!1;const e=Ht(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Dn in t)&&!(lt in t)},js=t=>{if(!Xe(t)||Ge(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Gs=oe("Date"),Xs=oe("File"),Qs=oe("Blob"),Vs=oe("FileList"),Ks=t=>Xe(t)&&K(t.pipe),Js=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||K(t.append)&&((e=ft(t))==="formdata"||e==="object"&&K(t.toString)&&t.toString()==="[object FormData]"))},Zs=oe("URLSearchParams"),[eo,to,no,ro]=["ReadableStream","Request","Response","Headers"].map(oe),so=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qe(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),Ce(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{if(Ge(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function Mn(t,e){if(Ge(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const _e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pn=t=>!ke(t)&&t!==_e;function Ut(){const{caseless:t,skipUndefined:e}=Pn(this)&&this||{},n={},r=(s,o)=>{const i=t&&Mn(n,o)||o;mt(n[i])&&mt(s)?n[i]=Ut(n[i],s):mt(s)?n[i]=Ut({},s):Ce(s)?n[i]=s.slice():(!e||!ke(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Qe(arguments[s],r);return n}const oo=(t,e,n,{allOwnKeys:r}={})=>(Qe(e,(s,o)=>{n&&K(s)?t[o]=xn(s,n):t[o]=s},{allOwnKeys:r}),t),io=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ao=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},co=(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&Ht(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},uo=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},lo=t=>{if(!t)return null;if(Ce(t))return t;let e=t.length;if(!Sn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},fo=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ht(Uint8Array)),mo=(t,e)=>{const r=(t&&t[lt]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},ho=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},po=oe("HTMLFormElement"),go=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Nn=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),wo=oe("RegExp"),Cn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Qe(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},yo=t=>{Cn(t,(e,n)=>{if(K(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(K(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bo=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Ce(t)?r(t):r(String(t).split(e)),n},To=()=>{},Eo=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Ao(t){return!!(t&&K(t.append)&&t[Dn]==="FormData"&&t[lt])}const Oo=t=>{const e=new Array(10),n=(r,s)=>{if(Xe(r)){if(e.indexOf(r)>=0)return;if(Ge(r))return r;if(!("toJSON"in r)){e[s]=r;const o=Ce(r)?[]:{};return Qe(r,(i,a)=>{const d=n(i,s+1);!ke(d)&&(o[a]=d)}),e[s]=void 0,o}}return r};return n(t,0)},_o=oe("AsyncFunction"),xo=t=>t&&(Xe(t)||K(t))&&K(t.then)&&K(t.catch),kn=((t,e)=>t?setImmediate:e?((n,r)=>(_e.addEventListener("message",({source:s,data:o})=>{s===_e&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),_e.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",K(_e.postMessage)),Do=typeof queueMicrotask<"u"?queueMicrotask.bind(_e):typeof process<"u"&&process.nextTick||kn,u={isArray:Ce,isArrayBuffer:Rn,isBuffer:Ge,isFormData:Js,isArrayBufferView:Ys,isString:qs,isNumber:Sn,isBoolean:zs,isObject:Xe,isPlainObject:mt,isEmptyObject:js,isReadableStream:eo,isRequest:to,isResponse:no,isHeaders:ro,isUndefined:ke,isDate:Gs,isFile:Xs,isBlob:Qs,isRegExp:wo,isFunction:K,isStream:Ks,isURLSearchParams:Zs,isTypedArray:fo,isFileList:Vs,forEach:Qe,merge:Ut,extend:oo,trim:so,stripBOM:io,inherits:ao,toFlatObject:co,kindOf:ft,kindOfTest:oe,endsWith:uo,toArray:lo,forEachEntry:mo,matchAll:ho,isHTMLForm:po,hasOwnProperty:Nn,hasOwnProp:Nn,reduceDescriptors:Cn,freezeMethods:yo,toObjectSet:bo,toCamelCase:go,noop:To,toFiniteNumber:Eo,findKey:Mn,global:_e,isContextDefined:Pn,isSpecCompliantForm:Ao,toJSONObject:Oo,isAsyncFn:_o,isThenable:xo,setImmediate:kn,asap:Do,isIterable:t=>t!=null&&K(t[lt])};function O(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}u.inherits(O,Error,{toJSON:function(){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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const Ln=O.prototype,In={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{In[t]={value:t}}),Object.defineProperties(O,In),Object.defineProperty(Ln,"isAxiosError",{value:!0}),O.from=(t,e,n,r,s,o)=>{const i=Object.create(Ln);u.toFlatObject(t,i,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const a=t&&t.message?t.message:"Error",d=e==null&&t?t.code:e;return O.call(i,a,d,n,r,s),t&&i.cause==null&&Object.defineProperty(i,"cause",{value:t,configurable:!0}),i.name=t&&t.name||"Error",o&&Object.assign(i,o),i};const Ro=null;function Bt(t){return u.isPlainObject(t)||u.isArray(t)}function Fn(t){return u.endsWith(t,"[]")?t.slice(0,-2):t}function vn(t,e,n){return t?t.concat(e).map(function(s,o){return s=Fn(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function So(t){return u.isArray(t)&&!t.some(Bt)}const Mo=u.toFlatObject(u,{},null,function(e){return/^is[A-Z]/.test(e)});function ht(t,e,n){if(!u.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,h){return!u.isUndefined(h[b])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(e);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if(u.isDate(m))return m.toISOString();if(u.isBoolean(m))return m.toString();if(!d&&u.isBlob(m))throw new O("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(m)||u.isTypedArray(m)?d&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function l(m,b,h){let E=m;if(m&&!h&&typeof m=="object"){if(u.endsWith(b,"{}"))b=r?b:b.slice(0,-2),m=JSON.stringify(m);else if(u.isArray(m)&&So(m)||(u.isFileList(m)||u.endsWith(b,"[]"))&&(E=u.toArray(m)))return b=Fn(b),E.forEach(function(S,_){!(u.isUndefined(S)||S===null)&&e.append(i===!0?vn([b],_,o):i===null?b:b+"[]",f(S))}),!1}return Bt(m)?!0:(e.append(vn(h,b,o),f(m)),!1)}const p=[],w=Object.assign(Mo,{defaultVisitor:l,convertValue:f,isVisitable:Bt});function A(m,b){if(!u.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));p.push(m),u.forEach(m,function(E,P){(!(u.isUndefined(E)||E===null)&&s.call(e,E,u.isString(P)?P.trim():P,b,w))===!0&&A(E,b?b.concat(P):[P])}),p.pop()}}if(!u.isObject(t))throw new TypeError("data must be an object");return A(t),e}function Hn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Wt(t,e){this._pairs=[],t&&ht(t,this,e)}const Un=Wt.prototype;Un.append=function(e,n){this._pairs.push([e,n])},Un.toString=function(e){const n=e?function(r){return e.call(this,r,Hn)}:Hn;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Po(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Bn(t,e,n){if(!e)return t;const r=n&&n.encode||Po;u.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=u.isURLSearchParams(e)?e.toString():new Wt(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Wn{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){u.forEach(this.handlers,function(r){r!==null&&e(r)})}}const $n={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},No={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Wt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},$t=typeof window<"u"&&typeof document<"u",Yt=typeof navigator=="object"&&navigator||void 0,Co=$t&&(!Yt||["ReactNative","NativeScript","NS"].indexOf(Yt.product)<0),ko=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lo=$t&&window.location.href||"http://localhost",j={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$t,hasStandardBrowserEnv:Co,hasStandardBrowserWebWorkerEnv:ko,navigator:Yt,origin:Lo},Symbol.toStringTag,{value:"Module"})),...No};function Io(t,e){return ht(t,new j.classes.URLSearchParams,{visitor:function(n,r,s,o){return j.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function Fo(t){return u.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function vo(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function Yn(t){function e(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),d=o>=n.length;return i=!i&&u.isArray(s)?s.length:i,d?(u.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!u.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&u.isArray(s[i])&&(s[i]=vo(s[i])),!a)}if(u.isFormData(t)&&u.isFunction(t.entries)){const n={};return u.forEachEntry(t,(r,s)=>{e(Fo(r),s,n,0)}),n}return null}function Ho(t,e,n){if(u.isString(t))try{return(e||JSON.parse)(t),u.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Ve={transitional:$n,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=u.isObject(e);if(o&&u.isHTMLForm(e)&&(e=new FormData(e)),u.isFormData(e))return s?JSON.stringify(Yn(e)):e;if(u.isArrayBuffer(e)||u.isBuffer(e)||u.isStream(e)||u.isFile(e)||u.isBlob(e)||u.isReadableStream(e))return e;if(u.isArrayBufferView(e))return e.buffer;if(u.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Io(e,this.formSerializer).toString();if((a=u.isFileList(e))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ht(a?{"files[]":e}:e,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Ho(e)):e}],transformResponse:[function(e){const n=this.transitional||Ve.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(u.isResponse(e)||u.isReadableStream(e))return e;if(e&&u.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?O.from(a,O.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],t=>{Ve.headers[t]={}});const Uo=u.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"]),Bo=t=>{const e={};let n,r,s;return t&&t.split(`
2
+ `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&Uo[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},qn=Symbol("internals");function Ke(t){return t&&String(t).trim().toLowerCase()}function pt(t){return t===!1||t==null?t:u.isArray(t)?t.map(pt):String(t)}function Wo(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const $o=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function qt(t,e,n,r,s){if(u.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!u.isString(e)){if(u.isString(r))return e.indexOf(r)!==-1;if(u.isRegExp(r))return r.test(e)}}function Yo(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function qo(t,e){const n=u.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}let J=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(a,d,f){const l=Ke(d);if(!l)throw new Error("header name must be a non-empty string");const p=u.findKey(s,l);(!p||s[p]===void 0||f===!0||f===void 0&&s[p]!==!1)&&(s[p||d]=pt(a))}const i=(a,d)=>u.forEach(a,(f,l)=>o(f,l,d));if(u.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(u.isString(e)&&(e=e.trim())&&!$o(e))i(Bo(e),n);else if(u.isObject(e)&&u.isIterable(e)){let a={},d,f;for(const l of e){if(!u.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[f=l[0]]=(d=a[f])?u.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}i(a,n)}else e!=null&&o(n,e,r);return this}get(e,n){if(e=Ke(e),e){const r=u.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Wo(s);if(u.isFunction(n))return n.call(this,s,r);if(u.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ke(e),e){const r=u.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||qt(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=Ke(i),i){const a=u.findKey(r,i);a&&(!n||qt(r,r[a],a,n))&&(delete r[a],s=!0)}}return u.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||qt(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return u.forEach(this,(s,o)=>{const i=u.findKey(r,o);if(i){n[i]=pt(s),delete n[o];return}const a=e?Yo(o):String(o).trim();a!==o&&delete n[o],n[a]=pt(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return u.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&u.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[qn]=this[qn]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=Ke(i);r[a]||(qo(s,i),r[a]=!0)}return u.isArray(e)?e.forEach(o):o(e),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(J.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),u.freezeMethods(J);function zt(t,e){const n=this||Ve,r=e||n,s=J.from(r.headers);let o=r.data;return u.forEach(t,function(a){o=a.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function zn(t){return!!(t&&t.__CANCEL__)}function Le(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}u.inherits(Le,O,{__CANCEL__:!0});function jn(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new O("Request failed with status code "+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function zo(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function jo(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(d){const f=Date.now(),l=r[o];i||(i=f),n[s]=d,r[s]=f;let p=o,w=0;for(;p!==s;)w+=n[p++],p=p%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),f-i<e)return;const A=l&&f-l;return A?Math.round(w*1e3/A):void 0}}function Go(t,e){let n=0,r=1e3/e,s,o;const i=(f,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),t(...f)};return[(...f)=>{const l=Date.now(),p=l-n;p>=r?i(f,l):(s=f,o||(o=setTimeout(()=>{o=null,i(s)},r-p)))},()=>s&&i(s)]}const gt=(t,e,n=3)=>{let r=0;const s=jo(50,250);return Go(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,d=i-r,f=s(d),l=i<=a;r=i;const p={loaded:i,total:a,progress:a?i/a:void 0,bytes:d,rate:f||void 0,estimated:f&&a&&l?(a-i)/f:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(p)},n)},Gn=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Xn=t=>(...e)=>u.asap(()=>t(...e)),Xo=j.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,j.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0,Qo=j.hasStandardBrowserEnv?{write(t,e,n,r,s,o,i){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];u.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),u.isString(r)&&a.push(`path=${r}`),u.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),u.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Vo(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ko(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Qn(t,e,n){let r=!Vo(e);return t&&(r||n==!1)?Ko(t,e):e}const Vn=t=>t instanceof J?{...t}:t;function xe(t,e){e=e||{};const n={};function r(f,l,p,w){return u.isPlainObject(f)&&u.isPlainObject(l)?u.merge.call({caseless:w},f,l):u.isPlainObject(l)?u.merge({},l):u.isArray(l)?l.slice():l}function s(f,l,p,w){if(u.isUndefined(l)){if(!u.isUndefined(f))return r(void 0,f,p,w)}else return r(f,l,p,w)}function o(f,l){if(!u.isUndefined(l))return r(void 0,l)}function i(f,l){if(u.isUndefined(l)){if(!u.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function a(f,l,p){if(p in e)return r(f,l);if(p in t)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(f,l,p)=>s(Vn(f),Vn(l),p,!0)};return u.forEach(Object.keys({...t,...e}),function(l){const p=d[l]||s,w=p(t[l],e[l],l);u.isUndefined(w)&&p!==a||(n[l]=w)}),n}const Kn=t=>{const e=xe({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=e;if(e.headers=i=J.from(i),e.url=Bn(Qn(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),u.isFormData(n)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(u.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,p])=>{f.includes(l.toLowerCase())&&i.set(l,p)})}}if(j.hasStandardBrowserEnv&&(r&&u.isFunction(r)&&(r=r(e)),r||r!==!1&&Xo(e.url))){const d=s&&o&&Qo.read(o);d&&i.set(s,d)}return e},Jo=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=Kn(t);let o=s.data;const i=J.from(s.headers).normalize();let{responseType:a,onUploadProgress:d,onDownloadProgress:f}=s,l,p,w,A,m;function b(){A&&A(),m&&m(),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 E(){if(!h)return;const S=J.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:t,request:h};jn(function(ee){n(ee),b()},function(ee){r(ee),b()},C),h=null}"onloadend"in h?h.onloadend=E:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(E)},h.onabort=function(){h&&(r(new O("Request aborted",O.ECONNABORTED,t,h)),h=null)},h.onerror=function(_){const C=_&&_.message?_.message:"Network Error",Z=new O(C,O.ERR_NETWORK,t,h);Z.event=_||null,r(Z),h=null},h.ontimeout=function(){let _=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const C=s.transitional||$n;s.timeoutErrorMessage&&(_=s.timeoutErrorMessage),r(new O(_,C.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&u.forEach(i.toJSON(),function(_,C){h.setRequestHeader(C,_)}),u.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),a&&a!=="json"&&(h.responseType=s.responseType),f&&([w,m]=gt(f,!0),h.addEventListener("progress",w)),d&&h.upload&&([p,A]=gt(d),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",A)),(s.cancelToken||s.signal)&&(l=S=>{h&&(r(!S||S.type?new Le(null,t,h):S),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const P=zo(s.url);if(P&&j.protocols.indexOf(P)===-1){r(new O("Unsupported protocol "+P+":",O.ERR_BAD_REQUEST,t));return}h.send(o||null)})},Zo=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(f){if(!s){s=!0,a();const l=f instanceof Error?f:this.reason;r.abort(l instanceof O?l:new Le(l instanceof Error?l.message:l))}};let i=e&&setTimeout(()=>{i=null,o(new O(`timeout ${e} of ms exceeded`,O.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),t=null)};t.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>u.asap(a),d}},ei=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},ti=async function*(t,e){for await(const n of ni(t))yield*ei(n,e)},ni=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Jn=(t,e,n,r)=>{const s=ti(t,e);let o=0,i,a=d=>{i||(i=!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 w=o+=p;n(w)}d.enqueue(new Uint8Array(l))}catch(f){throw a(f),f}},cancel(d){return a(d),s.return()}},{highWaterMark:2})},Zn=64*1024,{isFunction:wt}=u,ri=(({Request:t,Response:e})=>({Request:t,Response:e}))(u.global),{ReadableStream:er,TextEncoder:tr}=u.global,nr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},si=t=>{t=u.merge.call({skipUndefined:!0},ri,t);const{fetch:e,Request:n,Response:r}=t,s=e?wt(e):typeof fetch=="function",o=wt(n),i=wt(r);if(!s)return!1;const a=s&&wt(er),d=s&&(typeof tr=="function"?(m=>b=>m.encode(b))(new tr):async m=>new Uint8Array(await new n(m).arrayBuffer())),f=o&&a&&nr(()=>{let m=!1;const b=new n(j.origin,{body:new er,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!b}),l=i&&a&&nr(()=>u.isReadableStream(new r("").body)),p={stream:l&&(m=>m.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!p[m]&&(p[m]=(b,h)=>{let E=b&&b[m];if(E)return E.call(b);throw new O(`Response type '${m}' is not supported`,O.ERR_NOT_SUPPORT,h)})});const w=async m=>{if(m==null)return 0;if(u.isBlob(m))return m.size;if(u.isSpecCompliantForm(m))return(await new n(j.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(u.isArrayBufferView(m)||u.isArrayBuffer(m))return m.byteLength;if(u.isURLSearchParams(m)&&(m=m+""),u.isString(m))return(await d(m)).byteLength},A=async(m,b)=>{const h=u.toFiniteNumber(m.getContentLength());return h??w(b)};return async m=>{let{url:b,method:h,data:E,signal:P,cancelToken:S,timeout:_,onDownloadProgress:C,onUploadProgress:Z,responseType:ee,headers:it,withCredentials:He="same-origin",fetchOptions:Dt}=Kn(m),q=e||fetch;ee=ee?(ee+"").toLowerCase():"text";let Oe=Zo([P,S&&S.toAbortSignal()],_),ge=null;const ae=Oe&&Oe.unsubscribe&&(()=>{Oe.unsubscribe()});let Rt;try{if(Z&&f&&h!=="get"&&h!=="head"&&(Rt=await A(it,E))!==0){let N=new n(b,{method:"POST",body:E,duplex:"half"}),we;if(u.isFormData(E)&&(we=N.headers.get("content-type"))&&it.setContentType(we),N.body){const[B,Me]=Gn(Rt,gt(Xn(Z)));E=Jn(N.body,Zn,B,Me)}}u.isString(He)||(He=He?"include":"omit");const se=o&&"credentials"in n.prototype,St={...Dt,signal:Oe,method:h.toUpperCase(),headers:it.normalize().toJSON(),body:E,duplex:"half",credentials:se?He:void 0};ge=o&&new n(b,St);let ce=await(o?q(ge,Dt):q(b,St));const Mt=l&&(ee==="stream"||ee==="response");if(l&&(C||Mt&&ae)){const N={};["status","statusText","headers"].forEach(k=>{N[k]=ce[k]});const we=u.toFiniteNumber(ce.headers.get("content-length")),[B,Me]=C&&Gn(we,gt(Xn(C),!0))||[];ce=new r(Jn(ce.body,Zn,B,()=>{Me&&Me(),ae&&ae()}),N)}ee=ee||"text";let Pt=await p[u.findKey(p,ee)||"text"](ce,m);return!Mt&&ae&&ae(),await new Promise((N,we)=>{jn(N,we,{data:Pt,headers:J.from(ce.headers),status:ce.status,statusText:ce.statusText,config:m,request:ge})})}catch(se){throw ae&&ae(),se&&se.name==="TypeError"&&/Load failed|fetch/i.test(se.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,m,ge),{cause:se.cause||se}):O.from(se,se&&se.code,m,ge)}}},oi=new Map,rr=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:s}=e,o=[r,s,n];let i=o.length,a=i,d,f,l=oi;for(;a--;)d=o[a],f=l.get(d),f===void 0&&l.set(d,f=a?new Map:si(e)),l=f;return f};rr();const jt={http:Ro,xhr:Jo,fetch:{get:rr}};u.forEach(jt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const sr=t=>`- ${t}`,ii=t=>u.isFunction(t)||t===null||t===!1;function ai(t,e){t=u.isArray(t)?t:[t];const{length:n}=t;let r,s;const o={};for(let i=0;i<n;i++){r=t[i];let a;if(s=r,!ii(r)&&(s=jt[(a=String(r)).toLowerCase()],s===void 0))throw new O(`Unknown adapter '${a}'`);if(s&&(u.isFunction(s)||(s=s.get(e))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
4
+ `+i.map(sr).join(`
5
+ `):" "+sr(i[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const or={getAdapter:ai,adapters:jt};function Gt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Le(null,t)}function ir(t){return Gt(t),t.headers=J.from(t.headers),t.data=zt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),or.getAdapter(t.adapter||Ve.adapter,t)(t).then(function(r){return Gt(t),r.data=zt.call(t,t.transformResponse,r),r.headers=J.from(r.headers),r},function(r){return zn(r)||(Gt(t),r&&r.response&&(r.response.data=zt.call(t,t.transformResponse,r.response),r.response.headers=J.from(r.response.headers))),Promise.reject(r)})}const ar="1.13.2",yt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{yt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const cr={};yt.transitional=function(e,n,r){function s(o,i){return"[Axios v"+ar+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(e===!1)throw new O(s(i," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!cr[i]&&(cr[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,a):!0}},yt.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function ci(t,e,n){if(typeof t!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const a=t[o],d=a===void 0||i(a,o,t);if(d!==!0)throw new O("option "+o+" must be "+d,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O("Unknown option "+o,O.ERR_BAD_OPTION)}}const bt={assertOptions:ci,validators:yt},ue=bt.validators;let De=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Wn,response:new Wn}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=xe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&bt.assertOptions(r,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),s!=null&&(u.isFunction(s)?n.paramsSerializer={serialize:s}:bt.assertOptions(s,{encode:ue.function,serialize:ue.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),bt.assertOptions(n,{baseUrl:ue.spelling("baseURL"),withXsrfToken:ue.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[n.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=J.concat(i,o);const a=[];let d=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(d=d&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let l,p=0,w;if(!d){const m=[ir.bind(this),void 0];for(m.unshift(...a),m.push(...f),w=m.length,l=Promise.resolve(n);p<w;)l=l.then(m[p++],m[p++]);return l}w=a.length;let A=n;for(;p<w;){const m=a[p++],b=a[p++];try{A=m(A)}catch(h){b.call(this,h);break}}try{l=ir.call(this,A)}catch(m){return Promise.reject(m)}for(p=0,w=f.length;p<w;)l=l.then(f[p++],f[p++]);return l}getUri(e){e=xe(this.defaults,e);const n=Qn(e.baseURL,e.url,e.allowAbsoluteUrls);return Bn(n,e.params,e.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(e){De.prototype[e]=function(n,r){return this.request(xe(r||{},{method:e,url:n,data:(r||{}).data}))}}),u.forEach(["post","put","patch"],function(e){function n(r){return function(o,i,a){return this.request(xe(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}De.prototype[e]=n(),De.prototype[e+"Form"]=n(!0)});let ui=class bs{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,a){r.reason||(r.reason=new Le(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new bs(function(s){e=s}),cancel:e}}};function li(t){return function(n){return t.apply(null,n)}}function fi(t){return u.isObject(t)&&t.isAxiosError===!0}const Xt={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(Xt).forEach(([t,e])=>{Xt[e]=t});function ur(t){const e=new De(t),n=xn(De.prototype.request,e);return u.extend(n,De.prototype,e,{allOwnKeys:!0}),u.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return ur(xe(t,s))},n}const v=ur(Ve);v.Axios=De,v.CanceledError=Le,v.CancelToken=ui,v.isCancel=zn,v.VERSION=ar,v.toFormData=ht,v.AxiosError=O,v.Cancel=v.CanceledError,v.all=function(e){return Promise.all(e)},v.spread=li,v.isAxiosError=fi,v.mergeConfig=xe,v.AxiosHeaders=J,v.formToJSON=t=>Yn(u.isHTMLForm(t)?new FormData(t):t),v.getAdapter=or.getAdapter,v.HttpStatusCode=Xt,v.default=v;const{Axios:Eu,AxiosError:Au,CanceledError:Ou,isCancel:_u,CancelToken:xu,VERSION:Du,all:Ru,Cancel:Su,isAxiosError:Mu,spread:Pu,toFormData:Nu,AxiosHeaders:Cu,HttpStatusCode:ku,formToJSON:Lu,getAdapter:Iu,mergeConfig:Fu}=v,di=({error:t,message:e="알 수 없는 에러가 발생했습니다.",callback:n})=>v.isAxiosError(t)?(n?.(),{type:"axios",message:t.response?.data?.message??e,status:t.response?.status}):t instanceof Error?(n?.(),{type:"client",message:t.message||e}):(n?.(),{type:"unknown",message:e}),lr=(t,e={})=>{const{removeUndefined:n=!0,removeNull:r=!0,removeEmptyString:s=!0,removeEmptyArray:o=!0,removeEmptyObject:i=!0,normalizeNumbers:a=!1,normalizeBooleans:d=!1,normalizeNested:f=!1}=e,l=w=>{switch(!0){case(n&&w===void 0):return!0;case(r&&w===null):return!0;case(s&&w===""):return!0;case(o&&Array.isArray(w)&&w.length===0):return!0;case(i&&typeof w=="object"&&w!==null&&!Array.isArray(w)&&Object.keys(w).length===0):return!0;default:return!1}},p=w=>{if(typeof w=="object"&&w!==null){if(Array.isArray(w))return f?w.map(A=>p(A)).filter(A=>!l(A)):w;if(typeof w=="object")return f?lr(w,e):w}if(typeof w=="string"){const A=w.trim();if(d){const m=A.toLowerCase();if(m==="true")return!0;if(m==="false")return!1}return A}return a&&typeof w=="number"?String(w):w};return Object.fromEntries(Object.entries(t).map(([w,A])=>[w,p(A)]).filter(([,w])=>!l(w)))};function pe(){return typeof window>"u"||"Deno"in globalThis}function mi(){return!pe()}function fr(){return pe()?!1:/ipad|iphone/i.test(navigator.userAgent)}function dr(){return pe()?!1:/Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.platform)}function mr(){return pe()?!1:/Android/i.test(navigator.userAgent)}function hi(){return pe()?!1:/MSIE|Trident/i.test(navigator.userAgent)}function hr(){return pe()?!1:/KAKAOTALK/i.test(navigator.userAgent)}function Qt(){return pe()?!1:fr()?"ios":mr()?"android":"web"}function pi(){const t=Qt();return t==="ios"||t==="android"}function gi(){if(pe())return"server";if(hr())return"kakao";const t=Qt();return t==="ios"||t==="android"?t:dr()?"macos":"web"}const wi={isServer:pe,isClient:mi,isIOS:fr,isAndroid:mr,isMacOS:dr,isIE:hi,isKakaoWebView:hr,isMobileWeb:pi,getOSByUserAgent:Qt,getPlatform:gi};const{entries:pr,setPrototypeOf:gr,isFrozen:yi,getPrototypeOf:bi,getOwnPropertyDescriptor:Ti}=Object;let{freeze:X,seal:re,create:Vt}=Object,{apply:Kt,construct:Jt}=typeof Reflect<"u"&&Reflect;X||(X=function(e){return e}),re||(re=function(e){return e}),Kt||(Kt=function(e,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),o=2;o<r;o++)s[o-2]=arguments[o];return e.apply(n,s)}),Jt||(Jt=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new e(...r)});const Tt=V(Array.prototype.forEach),Ei=V(Array.prototype.lastIndexOf),wr=V(Array.prototype.pop),Je=V(Array.prototype.push),Ai=V(Array.prototype.splice),Et=V(String.prototype.toLowerCase),Zt=V(String.prototype.toString),en=V(String.prototype.match),Ze=V(String.prototype.replace),Oi=V(String.prototype.indexOf),_i=V(String.prototype.trim),ie=V(Object.prototype.hasOwnProperty),Q=V(RegExp.prototype.test),et=xi(TypeError);function V(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return Kt(t,e,r)}}function xi(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Jt(t,n)}}function x(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Et;gr&&gr(t,null);let r=e.length;for(;r--;){let s=e[r];if(typeof s=="string"){const o=n(s);o!==s&&(yi(e)||(e[r]=o),s=o)}t[s]=!0}return t}function Di(t){for(let e=0;e<t.length;e++)ie(t,e)||(t[e]=null);return t}function le(t){const e=Vt(null);for(const[n,r]of pr(t))ie(t,n)&&(Array.isArray(r)?e[n]=Di(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=le(r):e[n]=r);return e}function tt(t,e){for(;t!==null;){const r=Ti(t,e);if(r){if(r.get)return V(r.get);if(typeof r.value=="function")return V(r.value)}t=bi(t)}function n(){return null}return n}const yr=X(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),tn=X(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nn=X(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ri=X(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rn=X(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Si=X(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),br=X(["#text"]),Tr=X(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),sn=X(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Er=X(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),At=X(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mi=re(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pi=re(/<%[\w\W]*|[\w\W]*%>/gm),Ni=re(/\$\{[\w\W]*/gm),Ci=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),ki=re(/^aria-[\-\w]+$/),Ar=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Li=re(/^(?:\w+script|data):/i),Ii=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Or=re(/^html$/i),Fi=re(/^[a-z][.\w]*(-[.\w]+)+$/i);var _r=Object.freeze({__proto__:null,ARIA_ATTR:ki,ATTR_WHITESPACE:Ii,CUSTOM_ELEMENT:Fi,DATA_ATTR:Ci,DOCTYPE_NAME:Or,ERB_EXPR:Pi,IS_ALLOWED_URI:Ar,IS_SCRIPT_OR_DATA:Li,MUSTACHE_EXPR:Mi,TMPLIT_EXPR:Ni});const nt={element:1,text:3,progressingInstruction:7,comment:8,document:9},vi=function(){return typeof window>"u"?null:window},Hi=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},xr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Dr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vi();const e=T=>Dr(T);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==nt.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,s=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:i,Node:a,Element:d,NodeFilter:f,NamedNodeMap:l=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:w,trustedTypes:A}=t,m=d.prototype,b=tt(m,"cloneNode"),h=tt(m,"remove"),E=tt(m,"nextSibling"),P=tt(m,"childNodes"),S=tt(m,"parentNode");if(typeof i=="function"){const T=n.createElement("template");T.content&&T.content.ownerDocument&&(n=T.content.ownerDocument)}let _,C="";const{implementation:Z,createNodeIterator:ee,createDocumentFragment:it,getElementsByTagName:He}=n,{importNode:Dt}=r;let q=xr();e.isSupported=typeof pr=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Oe,ERB_EXPR:ge,TMPLIT_EXPR:ae,DATA_ATTR:Rt,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:St,ATTR_WHITESPACE:ce,CUSTOM_ELEMENT:Mt}=_r;let{IS_ALLOWED_URI:Pt}=_r,N=null;const we=x({},[...yr,...tn,...nn,...rn,...br]);let B=null;const Me=x({},[...Tr,...sn,...Er,...At]);let k=Object.seal(Vt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),at=null,mn=null;const Ue=Object.seal(Vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Zr=!0,hn=!0,es=!1,ts=!0,Be=!1,Nt=!0,Pe=!1,pn=!1,gn=!1,We=!1,Ct=!1,kt=!1,ns=!0,rs=!1;const au="user-content-";let wn=!0,ct=!1,$e={},me=null;const yn=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ss=null;const os=x({},["audio","video","img","source","image","track"]);let bn=null;const is=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lt="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml";let Ye=ye,Tn=!1,En=null;const cu=x({},[Lt,It,ye],Zt);let Ft=x({},["mi","mo","mn","ms","mtext"]),vt=x({},["annotation-xml"]);const uu=x({},["title","style","font","a","script"]);let ut=null;const lu=["application/xhtml+xml","text/html"],fu="text/html";let $=null,qe=null;const du=n.createElement("form"),as=function(c){return c instanceof RegExp||c instanceof Function},An=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(qe&&qe===c)){if((!c||typeof c!="object")&&(c={}),c=le(c),ut=lu.indexOf(c.PARSER_MEDIA_TYPE)===-1?fu:c.PARSER_MEDIA_TYPE,$=ut==="application/xhtml+xml"?Zt:Et,N=ie(c,"ALLOWED_TAGS")?x({},c.ALLOWED_TAGS,$):we,B=ie(c,"ALLOWED_ATTR")?x({},c.ALLOWED_ATTR,$):Me,En=ie(c,"ALLOWED_NAMESPACES")?x({},c.ALLOWED_NAMESPACES,Zt):cu,bn=ie(c,"ADD_URI_SAFE_ATTR")?x(le(is),c.ADD_URI_SAFE_ATTR,$):is,ss=ie(c,"ADD_DATA_URI_TAGS")?x(le(os),c.ADD_DATA_URI_TAGS,$):os,me=ie(c,"FORBID_CONTENTS")?x({},c.FORBID_CONTENTS,$):yn,at=ie(c,"FORBID_TAGS")?x({},c.FORBID_TAGS,$):le({}),mn=ie(c,"FORBID_ATTR")?x({},c.FORBID_ATTR,$):le({}),$e=ie(c,"USE_PROFILES")?c.USE_PROFILES:!1,Zr=c.ALLOW_ARIA_ATTR!==!1,hn=c.ALLOW_DATA_ATTR!==!1,es=c.ALLOW_UNKNOWN_PROTOCOLS||!1,ts=c.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=c.SAFE_FOR_TEMPLATES||!1,Nt=c.SAFE_FOR_XML!==!1,Pe=c.WHOLE_DOCUMENT||!1,We=c.RETURN_DOM||!1,Ct=c.RETURN_DOM_FRAGMENT||!1,kt=c.RETURN_TRUSTED_TYPE||!1,gn=c.FORCE_BODY||!1,ns=c.SANITIZE_DOM!==!1,rs=c.SANITIZE_NAMED_PROPS||!1,wn=c.KEEP_CONTENT!==!1,ct=c.IN_PLACE||!1,Pt=c.ALLOWED_URI_REGEXP||Ar,Ye=c.NAMESPACE||ye,Ft=c.MATHML_TEXT_INTEGRATION_POINTS||Ft,vt=c.HTML_INTEGRATION_POINTS||vt,k=c.CUSTOM_ELEMENT_HANDLING||{},c.CUSTOM_ELEMENT_HANDLING&&as(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(k.tagNameCheck=c.CUSTOM_ELEMENT_HANDLING.tagNameCheck),c.CUSTOM_ELEMENT_HANDLING&&as(c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(k.attributeNameCheck=c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),c.CUSTOM_ELEMENT_HANDLING&&typeof c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(hn=!1),Ct&&(We=!0),$e&&(N=x({},br),B=[],$e.html===!0&&(x(N,yr),x(B,Tr)),$e.svg===!0&&(x(N,tn),x(B,sn),x(B,At)),$e.svgFilters===!0&&(x(N,nn),x(B,sn),x(B,At)),$e.mathMl===!0&&(x(N,rn),x(B,Er),x(B,At))),c.ADD_TAGS&&(typeof c.ADD_TAGS=="function"?Ue.tagCheck=c.ADD_TAGS:(N===we&&(N=le(N)),x(N,c.ADD_TAGS,$))),c.ADD_ATTR&&(typeof c.ADD_ATTR=="function"?Ue.attributeCheck=c.ADD_ATTR:(B===Me&&(B=le(B)),x(B,c.ADD_ATTR,$))),c.ADD_URI_SAFE_ATTR&&x(bn,c.ADD_URI_SAFE_ATTR,$),c.FORBID_CONTENTS&&(me===yn&&(me=le(me)),x(me,c.FORBID_CONTENTS,$)),c.ADD_FORBID_CONTENTS&&(me===yn&&(me=le(me)),x(me,c.ADD_FORBID_CONTENTS,$)),wn&&(N["#text"]=!0),Pe&&x(N,["html","head","body"]),N.table&&(x(N,["tbody"]),delete at.tbody),c.TRUSTED_TYPES_POLICY){if(typeof c.TRUSTED_TYPES_POLICY.createHTML!="function")throw et('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof c.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw et('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=c.TRUSTED_TYPES_POLICY,C=_.createHTML("")}else _===void 0&&(_=Hi(A,s)),_!==null&&typeof C=="string"&&(C=_.createHTML(""));X&&X(c),qe=c}},cs=x({},[...tn,...nn,...Ri]),us=x({},[...rn,...Si]),mu=function(c){let g=S(c);(!g||!g.tagName)&&(g={namespaceURI:Ye,tagName:"template"});const y=Et(c.tagName),L=Et(g.tagName);return En[c.namespaceURI]?c.namespaceURI===It?g.namespaceURI===ye?y==="svg":g.namespaceURI===Lt?y==="svg"&&(L==="annotation-xml"||Ft[L]):!!cs[y]:c.namespaceURI===Lt?g.namespaceURI===ye?y==="math":g.namespaceURI===It?y==="math"&&vt[L]:!!us[y]:c.namespaceURI===ye?g.namespaceURI===It&&!vt[L]||g.namespaceURI===Lt&&!Ft[L]?!1:!us[y]&&(uu[y]||!cs[y]):!!(ut==="application/xhtml+xml"&&En[c.namespaceURI]):!1},he=function(c){Je(e.removed,{element:c});try{S(c).removeChild(c)}catch{h(c)}},Ne=function(c,g){try{Je(e.removed,{attribute:g.getAttributeNode(c),from:g})}catch{Je(e.removed,{attribute:null,from:g})}if(g.removeAttribute(c),c==="is")if(We||Ct)try{he(g)}catch{}else try{g.setAttribute(c,"")}catch{}},ls=function(c){let g=null,y=null;if(gn)c="<remove></remove>"+c;else{const W=en(c,/^[\r\n\t ]+/);y=W&&W[0]}ut==="application/xhtml+xml"&&Ye===ye&&(c='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+c+"</body></html>");const L=_?_.createHTML(c):c;if(Ye===ye)try{g=new w().parseFromString(L,ut)}catch{}if(!g||!g.documentElement){g=Z.createDocument(Ye,"template",null);try{g.documentElement.innerHTML=Tn?C:L}catch{}}const G=g.body||g.documentElement;return c&&y&&G.insertBefore(n.createTextNode(y),G.childNodes[0]||null),Ye===ye?He.call(g,Pe?"html":"body")[0]:Pe?g.documentElement:G},fs=function(c){return ee.call(c.ownerDocument||c,c,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},On=function(c){return c instanceof p&&(typeof c.nodeName!="string"||typeof c.textContent!="string"||typeof c.removeChild!="function"||!(c.attributes instanceof l)||typeof c.removeAttribute!="function"||typeof c.setAttribute!="function"||typeof c.namespaceURI!="string"||typeof c.insertBefore!="function"||typeof c.hasChildNodes!="function")},ds=function(c){return typeof a=="function"&&c instanceof a};function be(T,c,g){Tt(T,y=>{y.call(e,c,g,qe)})}const ms=function(c){let g=null;if(be(q.beforeSanitizeElements,c,null),On(c))return he(c),!0;const y=$(c.nodeName);if(be(q.uponSanitizeElement,c,{tagName:y,allowedTags:N}),Nt&&c.hasChildNodes()&&!ds(c.firstElementChild)&&Q(/<[/\w!]/g,c.innerHTML)&&Q(/<[/\w!]/g,c.textContent)||c.nodeType===nt.progressingInstruction||Nt&&c.nodeType===nt.comment&&Q(/<[/\w]/g,c.data))return he(c),!0;if(!(Ue.tagCheck instanceof Function&&Ue.tagCheck(y))&&(!N[y]||at[y])){if(!at[y]&&ps(y)&&(k.tagNameCheck instanceof RegExp&&Q(k.tagNameCheck,y)||k.tagNameCheck instanceof Function&&k.tagNameCheck(y)))return!1;if(wn&&!me[y]){const L=S(c)||c.parentNode,G=P(c)||c.childNodes;if(G&&L){const W=G.length;for(let te=W-1;te>=0;--te){const Te=b(G[te],!0);Te.__removalCount=(c.__removalCount||0)+1,L.insertBefore(Te,E(c))}}}return he(c),!0}return c instanceof d&&!mu(c)||(y==="noscript"||y==="noembed"||y==="noframes")&&Q(/<\/no(script|embed|frames)/i,c.innerHTML)?(he(c),!0):(Be&&c.nodeType===nt.text&&(g=c.textContent,Tt([Oe,ge,ae],L=>{g=Ze(g,L," ")}),c.textContent!==g&&(Je(e.removed,{element:c.cloneNode()}),c.textContent=g)),be(q.afterSanitizeElements,c,null),!1)},hs=function(c,g,y){if(ns&&(g==="id"||g==="name")&&(y in n||y in du))return!1;if(!(hn&&!mn[g]&&Q(Rt,g))){if(!(Zr&&Q(se,g))){if(!(Ue.attributeCheck instanceof Function&&Ue.attributeCheck(g,c))){if(!B[g]||mn[g]){if(!(ps(c)&&(k.tagNameCheck instanceof RegExp&&Q(k.tagNameCheck,c)||k.tagNameCheck instanceof Function&&k.tagNameCheck(c))&&(k.attributeNameCheck instanceof RegExp&&Q(k.attributeNameCheck,g)||k.attributeNameCheck instanceof Function&&k.attributeNameCheck(g,c))||g==="is"&&k.allowCustomizedBuiltInElements&&(k.tagNameCheck instanceof RegExp&&Q(k.tagNameCheck,y)||k.tagNameCheck instanceof Function&&k.tagNameCheck(y))))return!1}else if(!bn[g]){if(!Q(Pt,Ze(y,ce,""))){if(!((g==="src"||g==="xlink:href"||g==="href")&&c!=="script"&&Oi(y,"data:")===0&&ss[c])){if(!(es&&!Q(St,Ze(y,ce,"")))){if(y)return!1}}}}}}}return!0},ps=function(c){return c!=="annotation-xml"&&en(c,Mt)},gs=function(c){be(q.beforeSanitizeAttributes,c,null);const{attributes:g}=c;if(!g||On(c))return;const y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let L=g.length;for(;L--;){const G=g[L],{name:W,namespaceURI:te,value:Te}=G,ze=$(W),_n=Te;let z=W==="value"?_n:_i(_n);if(y.attrName=ze,y.attrValue=z,y.keepAttr=!0,y.forceKeepAttr=void 0,be(q.uponSanitizeAttribute,c,y),z=y.attrValue,rs&&(ze==="id"||ze==="name")&&(Ne(W,c),z=au+z),Nt&&Q(/((--!?|])>)|<\/(style|title|textarea)/i,z)){Ne(W,c);continue}if(ze==="attributename"&&en(z,"href")){Ne(W,c);continue}if(y.forceKeepAttr)continue;if(!y.keepAttr){Ne(W,c);continue}if(!ts&&Q(/\/>/i,z)){Ne(W,c);continue}Be&&Tt([Oe,ge,ae],ys=>{z=Ze(z,ys," ")});const ws=$(c.nodeName);if(!hs(ws,ze,z)){Ne(W,c);continue}if(_&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!te)switch(A.getAttributeType(ws,ze)){case"TrustedHTML":{z=_.createHTML(z);break}case"TrustedScriptURL":{z=_.createScriptURL(z);break}}if(z!==_n)try{te?c.setAttributeNS(te,W,z):c.setAttribute(W,z),On(c)?he(c):wr(e.removed)}catch{Ne(W,c)}}be(q.afterSanitizeAttributes,c,null)},hu=function T(c){let g=null;const y=fs(c);for(be(q.beforeSanitizeShadowDOM,c,null);g=y.nextNode();)be(q.uponSanitizeShadowNode,g,null),ms(g),gs(g),g.content instanceof o&&T(g.content);be(q.afterSanitizeShadowDOM,c,null)};return e.sanitize=function(T){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=null,y=null,L=null,G=null;if(Tn=!T,Tn&&(T="<!-->"),typeof T!="string"&&!ds(T))if(typeof T.toString=="function"){if(T=T.toString(),typeof T!="string")throw et("dirty is not a string, aborting")}else throw et("toString is not a function");if(!e.isSupported)return T;if(pn||An(c),e.removed=[],typeof T=="string"&&(ct=!1),ct){if(T.nodeName){const Te=$(T.nodeName);if(!N[Te]||at[Te])throw et("root node is forbidden and cannot be sanitized in-place")}}else if(T instanceof a)g=ls("<!---->"),y=g.ownerDocument.importNode(T,!0),y.nodeType===nt.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?g=y:g.appendChild(y);else{if(!We&&!Be&&!Pe&&T.indexOf("<")===-1)return _&&kt?_.createHTML(T):T;if(g=ls(T),!g)return We?null:kt?C:""}g&&gn&&he(g.firstChild);const W=fs(ct?T:g);for(;L=W.nextNode();)ms(L),gs(L),L.content instanceof o&&hu(L.content);if(ct)return T;if(We){if(Ct)for(G=it.call(g.ownerDocument);g.firstChild;)G.appendChild(g.firstChild);else G=g;return(B.shadowroot||B.shadowrootmode)&&(G=Dt.call(r,G,!0)),G}let te=Pe?g.outerHTML:g.innerHTML;return Pe&&N["!doctype"]&&g.ownerDocument&&g.ownerDocument.doctype&&g.ownerDocument.doctype.name&&Q(Or,g.ownerDocument.doctype.name)&&(te="<!DOCTYPE "+g.ownerDocument.doctype.name+`>
7
+ `+te),Be&&Tt([Oe,ge,ae],Te=>{te=Ze(te,Te," ")}),_&&kt?_.createHTML(te):te},e.setConfig=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};An(T),pn=!0},e.clearConfig=function(){qe=null,pn=!1},e.isValidAttribute=function(T,c,g){qe||An({});const y=$(T),L=$(c);return hs(y,L,g)},e.addHook=function(T,c){typeof c=="function"&&Je(q[T],c)},e.removeHook=function(T,c){if(c!==void 0){const g=Ei(q[T],c);return g===-1?void 0:Ai(q[T],g,1)[0]}return wr(q[T])},e.removeHooks=function(T){q[T]=[]},e.removeAllHooks=function(){q=xr()},e}var Ui=Dr();const Bi={addElements:[],allowElements:[],allowAttributes:{},dropElements:[],dropAttributes:{}},Rr=t=>t?Array.from(new Set(Object.values(t).flat())):[],Wi=({content:t,config:e})=>{const n={...Bi,...e},r=Rr(n.allowAttributes),s=r.length>0?{ALLOWED_ATTR:[...new Set([...r,"class","id","style"])]}:{},o=Rr(n.dropAttributes),i=o.length>0?{FORBID_ATTR:o}:{},a=n.addElements&&n.addElements.length>0&&!(n.allowElements&&n.allowElements.length>0)?{ADD_TAGS:n.addElements}:{},d=n.allowElements&&n.allowElements.length>0?{ALLOWED_TAGS:n.allowElements}:{},f=n.dropElements&&n.dropElements.length>0?{FORBID_TAGS:n.dropElements}:{},l={ALLOW_UNKNOWN_PROTOCOLS:!1,...a,...d,...i,...s,...f};return Ui.sanitize(t,l)},Sr=6048e5,$i=864e5,Mr=6e4,Pr=36e5,Yi=1e3,Nr=Symbol.for("constructDateFrom");function Y(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Nr in t?t[Nr](e):t instanceof Date?new t.constructor(e):new Date(e)}function R(t,e){return Y(e||t,t)}function Cr(t,e,n){const r=R(t,n?.in);return isNaN(e)?Y(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}let qi={};function Ie(){return qi}function Ee(t,e){const n=Ie(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=R(t,e?.in),o=s.getDay(),i=(o<r?7:0)+o-r;return s.setDate(s.getDate()-i),s.setHours(0,0,0,0),s}function Fe(t,e){return Ee(t,{...e,weekStartsOn:1})}function kr(t,e){const n=R(t,e?.in),r=n.getFullYear(),s=Y(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const o=Fe(s),i=Y(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const a=Fe(i);return n.getTime()>=o.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function Ot(t){const e=R(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 Re(t,...e){const n=Y.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Lr(t,e){const n=R(t,e?.in);return n.setHours(0,0,0,0),n}function Ir(t,e,n){const[r,s]=Re(n?.in,t,e),o=Lr(r),i=Lr(s),a=+o-Ot(o),d=+i-Ot(i);return Math.round((a-d)/$i)}function zi(t,e){const n=kr(t,e),r=Y(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Fe(r)}function rt(t,e){const n=+R(t)-+R(e);return n<0?-1:n>0?1:n}function ji(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Gi(t){return!(!ji(t)&&typeof t!="number"||isNaN(+R(t)))}function Xi(t,e,n){const[r,s]=Re(n?.in,t,e),o=r.getFullYear()-s.getFullYear(),i=r.getMonth()-s.getMonth();return o*12+i}function Qi(t,e,n){const[r,s]=Re(n?.in,t,e);return r.getFullYear()-s.getFullYear()}function Fr(t,e,n){const[r,s]=Re(n?.in,t,e),o=vr(r,s),i=Math.abs(Ir(r,s));r.setDate(r.getDate()-o*i);const a=+(vr(r,s)===-o),d=o*(i-a);return d===0?0:d}function vr(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function on(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Vi(t,e,n){const[r,s]=Re(n?.in,t,e),o=(+r-+s)/Pr;return on(n?.roundingMethod)(o)}function Ki(t,e){return+R(t)-+R(e)}function Ji(t,e,n){const r=Ki(t,e)/Mr;return on(n?.roundingMethod)(r)}function Zi(t,e){const n=R(t,e?.in);return n.setHours(23,59,59,999),n}function ea(t,e){const n=R(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function ta(t,e){const n=R(t,e?.in);return+Zi(n,e)==+ea(n,e)}function na(t,e,n){const[r,s,o]=Re(n?.in,t,t,e),i=rt(s,o),a=Math.abs(Xi(s,o));if(a<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-i*a);let d=rt(s,o)===-i;ta(r)&&a===1&&rt(r,o)===1&&(d=!1);const f=i*(a-+d);return f===0?0:f}function ra(t,e,n){const r=Fr(t,e,n)/7;return on(n?.roundingMethod)(r)}function sa(t,e,n){const[r,s]=Re(n?.in,t,e),o=rt(r,s),i=Math.abs(Qi(r,s));r.setFullYear(1584),s.setFullYear(1584);const a=rt(r,s)===-o,d=o*(i-+a);return d===0?0:d}function oa(t,e){const n=R(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const ia={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"}},aa=(t,e,n)=>{let r;const s=ia[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function an(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const ca={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ua={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},la={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fa={date:an({formats:ca,defaultWidth:"full"}),time:an({formats:ua,defaultWidth:"full"}),dateTime:an({formats:la,defaultWidth:"full"})},da={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ma=(t,e,n,r)=>da[t];function st(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):i;s=t.formattingValues[a]||t.formattingValues[i]}else{const i=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;s=t.values[a]||t.values[i]}const o=t.argumentCallback?t.argumentCallback(e):e;return s[o]}}const ha={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pa={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ga={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"]},wa={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"]},ya={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"}},ba={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"}},Ta={ordinalNumber:(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"},era:st({values:ha,defaultWidth:"wide"}),quarter:st({values:pa,defaultWidth:"wide",argumentCallback:t=>t-1}),month:st({values:ga,defaultWidth:"wide"}),day:st({values:wa,defaultWidth:"wide"}),dayPeriod:st({values:ya,defaultWidth:"wide",formattingValues:ba,defaultFormattingWidth:"wide"})};function ot(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(s);if(!o)return null;const i=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(a)?Aa(a,p=>p.test(i)):Ea(a,p=>p.test(i));let f;f=t.valueCallback?t.valueCallback(d):d,f=n.valueCallback?n.valueCallback(f):f;const l=e.slice(i.length);return{value:f,rest:l}}}function Ea(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Aa(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Oa(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=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 a=e.slice(s.length);return{value:i,rest:a}}}const _a=/^(\d+)(th|st|nd|rd)?/i,xa=/\d+/i,Da={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},Ra={any:[/^b/i,/^(a|c)/i]},Sa={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ma={any:[/1/i,/2/i,/3/i,/4/i]},Pa={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},Na={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]},Ca={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},ka={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]},La={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},Ia={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}},Fa={ordinalNumber:Oa({matchPattern:_a,parsePattern:xa,valueCallback:t=>parseInt(t,10)}),era:ot({matchPatterns:Da,defaultMatchWidth:"wide",parsePatterns:Ra,defaultParseWidth:"any"}),quarter:ot({matchPatterns:Sa,defaultMatchWidth:"wide",parsePatterns:Ma,defaultParseWidth:"any",valueCallback:t=>t+1}),month:ot({matchPatterns:Pa,defaultMatchWidth:"wide",parsePatterns:Na,defaultParseWidth:"any"}),day:ot({matchPatterns:Ca,defaultMatchWidth:"wide",parsePatterns:ka,defaultParseWidth:"any"}),dayPeriod:ot({matchPatterns:La,defaultMatchWidth:"any",parsePatterns:Ia,defaultParseWidth:"any"})},Hr={code:"en-US",formatDistance:aa,formatLong:fa,formatRelative:ma,localize:Ta,match:Fa,options:{weekStartsOn:0,firstWeekContainsDate:1}};function va(t,e){const n=R(t,e?.in);return Ir(n,oa(n))+1}function Ur(t,e){const n=R(t,e?.in),r=+Fe(n)-+zi(n);return Math.round(r/Sr)+1}function cn(t,e){const n=R(t,e?.in),r=n.getFullYear(),s=Ie(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,i=Y(e?.in||t,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const a=Ee(i,e),d=Y(e?.in||t,0);d.setFullYear(r,0,o),d.setHours(0,0,0,0);const f=Ee(d,e);return+n>=+a?r+1:+n>=+f?r:r-1}function Ha(t,e){const n=Ie(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=cn(t,e),o=Y(e?.in||t,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),Ee(o,e)}function Br(t,e){const n=R(t,e?.in),r=+Ee(n,e)-+Ha(n,e);return Math.round(r/Sr)+1}function D(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Ae={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return D(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):D(n+1,2)},d(t,e){return D(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 D(t.getHours()%12||12,e.length)},H(t,e){return D(t.getHours(),e.length)},m(t,e){return D(t.getMinutes(),e.length)},s(t,e){return D(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return D(s,e.length)}},ve={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wr={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(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Ae.y(t,e)},Y:function(t,e,n,r){const s=cn(t,r),o=s>0?s:1-s;if(e==="YY"){const i=o%100;return D(i,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):D(o,e.length)},R:function(t,e){const n=kr(t);return D(n,e.length)},u:function(t,e){const n=t.getFullYear();return D(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 D(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 D(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 Ae.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 D(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 s=Br(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):D(s,e.length)},I:function(t,e,n){const r=Ur(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):D(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Ae.d(t,e)},D:function(t,e,n){const r=va(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):D(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 s=t.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return D(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return D(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return D(s,e.length);case"io":return n.ordinalNumber(s,{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 s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=ve.noon:r===0?s=ve.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=ve.evening:r>=12?s=ve.afternoon:r>=4?s=ve.morning:s=ve.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{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 Ae.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Ae.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):D(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):D(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ae.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Ae.s(t,e)},S:function(t,e){return Ae.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Yr(r);case"XXXX":case"XX":return Se(r);default:return Se(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Yr(r);case"xxxx":case"xx":return Se(r);default:return Se(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+$r(r,":");default:return"GMT"+Se(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+$r(r,":");default:return"GMT"+Se(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return D(r,e.length)},T:function(t,e,n){return D(+t,e.length)}};function $r(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+e+D(o,2)}function Yr(t,e){return t%60===0?(t>0?"-":"+")+D(Math.abs(t)/60,2):Se(t,e)}function Se(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=D(Math.trunc(r/60),2),o=D(r%60,2);return n+s+e+o}const qr=(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"})}},zr=(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"})}},un={p:zr,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return qr(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}}",qr(r,e)).replace("{{time}}",zr(s,e))}},Ua=/^D+$/,Ba=/^Y+$/,Wa=["D","DD","YY","YYYY"];function jr(t){return Ua.test(t)}function Gr(t){return Ba.test(t)}function ln(t,e,n){const r=$a(t,e,n);if(console.warn(r),Wa.includes(t))throw new RangeError(r)}function $a(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 Ya=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,za=/^'([^]*?)'?$/,ja=/''/g,Ga=/[a-zA-Z]/;function Xa(t,e,n){const r=Ie(),s=r.locale??Hr,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=R(t,n?.in);if(!Gi(a))throw new RangeError("Invalid time value");let d=e.match(qa).map(l=>{const p=l[0];if(p==="p"||p==="P"){const w=un[p];return w(l,s.formatLong)}return l}).join("").match(Ya).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const p=l[0];if(p==="'")return{isToken:!1,value:Qa(l)};if(Wr[p])return{isToken:!0,value:l};if(p.match(Ga))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:l}});s.localize.preprocessor&&(d=s.localize.preprocessor(a,d));const f={firstWeekContainsDate:o,weekStartsOn:i,locale:s};return d.map(l=>{if(!l.isToken)return l.value;const p=l.value;(Gr(p)||jr(p))&&ln(p,e,String(t));const w=Wr[p[0]];return w(a,p,s.localize,f)}).join("")}function Qa(t){const e=t.match(za);return e?e[1].replace(ja,"'"):t}function Va(t,e){const n=R(t,e?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",s="";const o="-",i=":";{const a=D(n.getDate(),2),d=D(n.getMonth()+1,2);r=`${D(n.getFullYear(),4)}${o}${d}${o}${a}`}{const a=n.getTimezoneOffset();if(a!==0){const A=Math.abs(a),m=D(Math.trunc(A/60),2),b=D(A%60,2);s=`${a<0?"+":"-"}${m}:${b}`}else s="Z";const d=D(n.getHours(),2),f=D(n.getMinutes(),2),l=D(n.getSeconds(),2),p=r===""?"":"T",w=[d,f,l].join(i);r=`${r}${p}${w}${s}`}return r}function Ka(){return Object.assign({},Ie())}function Ja(t,e){const n=R(t,e?.in).getDay();return n===0?7:n}function Za(t,e){return+R(t)>+R(e)}function ec(t,e){return+R(t)<+R(e)}function tc(t,e){const n=nc(e)?new e(0):Y(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function nc(t){return typeof t=="function"&&t.prototype?.constructor===t}const rc=10;class Xr{subPriority=0;validate(e,n){return!0}}class sc extends Xr{constructor(e,n,r,s,o){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,o&&(this.subPriority=o)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class oc extends Xr{priority=rc;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>Y(n,r))}set(e,n){return n.timestampIsSet?e:Y(e,tc(e,this.context))}}class M{run(e,n,r,s){const o=this.parse(e,n,r,s);return o?{setter:new sc(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,n,r){return!0}}class ic extends M{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const H={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},fe={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function U(t,e){return t&&{value:e(t.value),rest:t.rest}}function I(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function de(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(s*Pr+o*Mr+i*Yi),rest:e.slice(n[0].length)}}function Qr(t){return I(H.anyDigitsSigned,t)}function F(t,e){switch(t){case 1:return I(H.singleDigit,e);case 2:return I(H.twoDigits,e);case 3:return I(H.threeDigits,e);case 4:return I(H.fourDigits,e);default:return I(new RegExp("^\\d{1,"+t+"}"),e)}}function _t(t,e){switch(t){case 1:return I(H.singleDigitSigned,e);case 2:return I(H.twoDigitsSigned,e);case 3:return I(H.threeDigitsSigned,e);case 4:return I(H.fourDigitsSigned,e);default:return I(new RegExp("^-?\\d{1,"+t+"}"),e)}}function fn(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Vr(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const o=r+50,i=Math.trunc(o/100)*100,a=t>=o%100;s=t+i-(a?100:0)}return n?s:1-s}function Kr(t){return t%400===0||t%4===0&&t%100!==0}class ac extends M{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const s=o=>({year:o,isTwoDigitYear:n==="yy"});switch(n){case"y":return U(F(4,e),s);case"yo":return U(r.ordinalNumber(e,{unit:"year"}),s);default:return U(F(n.length,e),s)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const s=e.getFullYear();if(r.isTwoDigitYear){const i=Vr(r.year,s);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}const o=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}class cc extends M{priority=130;parse(e,n,r){const s=o=>({year:o,isTwoDigitYear:n==="YY"});switch(n){case"Y":return U(F(4,e),s);case"Yo":return U(r.ordinalNumber(e,{unit:"year"}),s);default:return U(F(n.length,e),s)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,s){const o=cn(e,s);if(r.isTwoDigitYear){const a=Vr(r.year,o);return e.setFullYear(a,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),Ee(e,s)}const i=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(i,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),Ee(e,s)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class uc extends M{priority=130;parse(e,n){return _t(n==="R"?4:n.length,e)}set(e,n,r){const s=Y(e,0);return s.setFullYear(r,0,4),s.setHours(0,0,0,0),Fe(s)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class lc extends M{priority=130;parse(e,n){return _t(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class fc extends M{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return F(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class dc extends M{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return F(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class mc extends M{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const s=o=>o-1;switch(n){case"M":return U(I(H.month,e),s);case"MM":return U(F(2,e),s);case"Mo":return U(r.ordinalNumber(e,{unit:"month"}),s);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class hc extends M{priority=110;parse(e,n,r){const s=o=>o-1;switch(n){case"L":return U(I(H.month,e),s);case"LL":return U(F(2,e),s);case"Lo":return U(r.ordinalNumber(e,{unit:"month"}),s);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function pc(t,e,n){const r=R(t,n?.in),s=Br(r,n)-e;return r.setDate(r.getDate()-s*7),R(r,n?.in)}class gc extends M{priority=100;parse(e,n,r){switch(n){case"w":return I(H.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return F(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,s){return Ee(pc(e,r,s),s)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function wc(t,e,n){const r=R(t,n?.in),s=Ur(r,n)-e;return r.setDate(r.getDate()-s*7),r}class yc extends M{priority=100;parse(e,n,r){switch(n){case"I":return I(H.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return F(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return Fe(wc(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const bc=[31,28,31,30,31,30,31,31,30,31,30,31],Tc=[31,29,31,30,31,30,31,31,30,31,30,31];class Ec extends M{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return I(H.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return F(n.length,e)}}validate(e,n){const r=e.getFullYear(),s=Kr(r),o=e.getMonth();return s?n>=1&&n<=Tc[o]:n>=1&&n<=bc[o]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Ac extends M{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return I(H.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return F(n.length,e)}}validate(e,n){const r=e.getFullYear();return Kr(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function dn(t,e,n){const r=Ie(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=R(t,n?.in),i=o.getDay(),d=(e%7+7)%7,f=7-s,l=e<0||e>6?e-(i+f)%7:(d+f)%7-(i+f)%7;return Cr(o,l,n)}class Oc extends M{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,s){return e=dn(e,r,s),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class _c extends M{priority=90;parse(e,n,r,s){const o=i=>{const a=Math.floor((i-1)/7)*7;return(i+s.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return U(F(n.length,e),o);case"eo":return U(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,s){return e=dn(e,r,s),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class xc extends M{priority=90;parse(e,n,r,s){const o=i=>{const a=Math.floor((i-1)/7)*7;return(i+s.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return U(F(n.length,e),o);case"co":return U(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,s){return e=dn(e,r,s),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function Dc(t,e,n){const r=R(t,n?.in),s=Ja(r,n),o=e-s;return Cr(r,o,n)}class Rc extends M{priority=90;parse(e,n,r){const s=o=>o===0?7:o;switch(n){case"i":case"ii":return F(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return U(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return U(r.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return U(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s);default:return U(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=Dc(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Sc extends M{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(fn(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class Mc extends M{priority=80;parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(fn(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class Pc extends M{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(fn(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class Nc extends M{priority=70;parse(e,n,r){switch(n){case"h":return I(H.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return F(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const s=e.getHours()>=12;return s&&r<12?e.setHours(r+12,0,0,0):!s&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class Cc extends M{priority=70;parse(e,n,r){switch(n){case"H":return I(H.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return F(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class kc extends M{priority=70;parse(e,n,r){switch(n){case"K":return I(H.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return F(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class Lc extends M{priority=70;parse(e,n,r){switch(n){case"k":return I(H.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return F(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const s=r<=24?r%24:r;return e.setHours(s,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class Ic extends M{priority=60;parse(e,n,r){switch(n){case"m":return I(H.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return F(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class Fc extends M{priority=50;parse(e,n,r){switch(n){case"s":return I(H.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return F(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class vc extends M{priority=30;parse(e,n){const r=s=>Math.trunc(s*Math.pow(10,-n.length+3));return U(F(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class Hc extends M{priority=10;parse(e,n){switch(n){case"X":return de(fe.basicOptionalMinutes,e);case"XX":return de(fe.basic,e);case"XXXX":return de(fe.basicOptionalSeconds,e);case"XXXXX":return de(fe.extendedOptionalSeconds,e);default:return de(fe.extended,e)}}set(e,n,r){return n.timestampIsSet?e:Y(e,e.getTime()-Ot(e)-r)}incompatibleTokens=["t","T","x"]}class Uc extends M{priority=10;parse(e,n){switch(n){case"x":return de(fe.basicOptionalMinutes,e);case"xx":return de(fe.basic,e);case"xxxx":return de(fe.basicOptionalSeconds,e);case"xxxxx":return de(fe.extendedOptionalSeconds,e);default:return de(fe.extended,e)}}set(e,n,r){return n.timestampIsSet?e:Y(e,e.getTime()-Ot(e)-r)}incompatibleTokens=["t","T","X"]}class Bc extends M{priority=40;parse(e){return Qr(e)}set(e,n,r){return[Y(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class Wc extends M{priority=20;parse(e){return Qr(e)}set(e,n,r){return[Y(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const $c={G:new ic,y:new ac,Y:new cc,R:new uc,u:new lc,Q:new fc,q:new dc,M:new mc,L:new hc,w:new gc,I:new yc,d:new Ec,D:new Ac,E:new Oc,e:new _c,c:new xc,i:new Rc,a:new Sc,b:new Mc,B:new Pc,h:new Nc,H:new Cc,K:new kc,k:new Lc,m:new Ic,s:new Fc,S:new vc,X:new Hc,x:new Uc,t:new Bc,T:new Wc},Yc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zc=/^'([^]*?)'?$/,jc=/''/g,Gc=/\S/,Xc=/[a-zA-Z]/;function Qc(t,e,n,r){const s=()=>Y(n,NaN),o=Ka(),i=o.locale??Hr,a=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,d=o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!e)return t?s():R(n,r?.in);const f={firstWeekContainsDate:a,weekStartsOn:d,locale:i},l=[new oc(r?.in,n)],p=e.match(qc).map(h=>{const E=h[0];if(E in un){const P=un[E];return P(h,i.formatLong)}return h}).join("").match(Yc),w=[];for(let h of p){Gr(h)&&ln(h,e,t),jr(h)&&ln(h,e,t);const E=h[0],P=$c[E];if(P){const{incompatibleTokens:S}=P;if(Array.isArray(S)){const C=w.find(Z=>S.includes(Z.token)||Z.token===E);if(C)throw new RangeError(`The format string mustn't contain \`${C.fullToken}\` and \`${h}\` at the same time`)}else if(P.incompatibleTokens==="*"&&w.length>0)throw new RangeError(`The format string mustn't contain \`${h}\` and any other token at the same time`);w.push({token:E,fullToken:h});const _=P.run(t,h,i.match,f);if(!_)return s();l.push(_.setter),t=_.rest}else{if(E.match(Xc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(h==="''"?h="'":E==="'"&&(h=Vc(h)),t.indexOf(h)===0)t=t.slice(h.length);else return s()}}if(t.length>0&&Gc.test(t))return s();const A=l.map(h=>h.priority).sort((h,E)=>E-h).filter((h,E,P)=>P.indexOf(h)===E).map(h=>l.filter(E=>E.priority===h).sort((E,P)=>P.subPriority-E.subPriority)).map(h=>h[0]);let m=R(n,r?.in);if(isNaN(+m))return s();const b={};for(const h of A){if(!h.validate(m,f))return s();const E=h.set(m,b,f);Array.isArray(E)?(m=E[0],Object.assign(b,E[1])):m=E}return m}function Vc(t){return t.match(zc)[1].replace(jc,"'")}const xt=t=>{const e=typeof t=="string"?new Date(t):t;if(isNaN(e.getTime()))throw new Error("올바른 날짜 형식이 아닙니다.");return e},Kc=t=>{const e=xt(t),n=540*60*1e3;return new Date(e.getTime()+n)},Jc=t=>{const e=xt(t),n=540*60*1e3;return new Date(e.getTime()-n)},Jr=(t,e="yyyy-MM-dd")=>{const n=xt(t);return Xa(n,e)},Zc=t=>Va(t),eu=(t,e)=>Qc(t,e??"yyyy-MM-dd",new Date),tu=(t,e)=>ec(t,e)?t:e,nu=(t,e)=>Za(t,e)?t:e,ru=(t,e)=>{const n=new Date,r=n>=t,o={...{direction:r?"전":"후",seconds:r?"방금":"잠시",minutes:"분",hours:"시간",days:"일",weeks:"주",months:"개월",years:"년"},...e},i=[{diffFunc:Ji,limit:60,label:o.minutes},{diffFunc:Vi,limit:24,label:o.hours},{diffFunc:Fr,limit:7,label:o.days},{diffFunc:ra,limit:5,label:o.weeks},{diffFunc:na,limit:12,label:o.months},{diffFunc:sa,limit:1/0,label:o.years}];for(const a of i){const d=Math.abs(a.diffFunc(n,t));if(d>=1&&d<a.limit)return`${d}${a.label} ${o.direction}`}return r?`${o.seconds} ${o.direction}`:`${o.seconds} ${o.direction}`},su=(t,e={})=>{const{use12Hour:n=!0,showPeriod:r=!0,showSeconds:s=!1,includeDate:o=!1,includeWeekday:i=!1,timeSeparator:a=":",dateFormat:d="yyyy-MM-dd",dateTimeSeparator:f=" ",padHours:l=!0,periodLabels:p={am:"오전",pm:"오후"},weekdayLabels:w=["일","월","화","수","목","금","토"]}=e,A=xt(t),m=A.getHours(),b=A.getMinutes(),h=A.getSeconds();let E="";if(n){const S=m<12?p.am:p.pm,_=m%12||12,C=l?_.toString().padStart(2,"0"):_.toString();E=r?`${S} ${C}`:C}else E=l?m.toString().padStart(2,"0"):m.toString();const P=b.toString().padStart(2,"0");if(E+=`${a}${P}`,s){const S=h.toString().padStart(2,"0");E+=`${a}${S}`}if(o){let _=Jr(A,d);if(i){const C=w[A.getDay()];_+=` (${C})`}return`${_}${f}${E}`}return E};function ou(t,e){const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}const iu=Object.freeze(Object.defineProperty({__proto__:null,afterDate:nu,beforeDate:tu,formatDate:Jr,formatToCustomKoreanTime:su,isSameDay:ou,kstToUtc:Jc,parseDate:eu,relativeTime:ru,toISO:Zc,utcToKst:Kc},Symbol.toStringTag,{value:"Module"}));ne.FormatData=je,ne.SanitizeHtml=Wi,ne.dateUtils=iu,ne.filterParams=lr,ne.handleError=di,ne.userAgent=wi,ne.validate=Ws,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})}));