gitalk-react 1.0.0-beta.4 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-zh-CN.md +4 -4
- package/README.md +3 -3
- package/dist/gitalk-dark.css +1 -1
- package/dist/gitalk-light.css +1 -1
- package/dist/gitalk.d.ts +2 -2
- package/dist/gitalk.js +2 -2
- package/dist/gitalk.umd.cjs +2 -2
- package/lib/gitalk.tsx +9 -3
- package/lib/themes/base.scss +4 -6
- package/lib/vite-env.d.ts +1 -0
- package/package.json +8 -5
package/dist/gitalk.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(_,P){typeof exports=="object"&&typeof module<"u"?module.exports=P(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],P):(_=typeof globalThis<"u"?globalThis:_||self,_.Gitalk=P(_.jsx,_.React,_.ReactDOM))})(this,function(_,P,je){"use strict";var cv=Object.defineProperty;var lv=(_,P,je)=>P in _?cv(_,P,{enumerable:!0,configurable:!0,writable:!0,value:je}):_[P]=je;var oe=(_,P,je)=>lv(_,typeof P!="symbol"?P+"":P,je);var Wt;var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut,Cn;function Rn(){if(Cn)return Ut;Cn=1;var e=Object.prototype.toString;return Ut=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},Ut}var qt,Fn;function Ei(){if(Fn)return qt;Fn=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Rn(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(g){var f=g.constructor;return f&&f.prototype===g},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var g in window)try{if(!u["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{l(window[g])}catch{return!0}}catch{return!0}return!1}(),m=function(g){if(typeof window>"u"||!d)return l(g);try{return l(g)}catch{return!1}};e=function(f){var w=f!==null&&typeof f=="object",A=r.call(f)==="[object Function]",G=n(f),x=w&&r.call(f)==="[object String]",M=[];if(!w&&!A&&!G)throw new TypeError("Object.keys called on a non-object");var y=i&&A;if(x&&f.length>0&&!t.call(f,0))for(var E=0;E<f.length;++E)M.push(String(E));if(G&&f.length>0)for(var S=0;S<f.length;++S)M.push(String(S));else for(var O in f)!(y&&O==="prototype")&&t.call(f,O)&&M.push(String(O));if(s)for(var C=m(f),W=0;W<a.length;++W)!(C&&a[W]==="constructor")&&t.call(f,a[W])&&M.push(a[W]);return M}}return qt=e,qt}var zt,Mn;function Ti(){if(Mn)return zt;Mn=1;var e=Array.prototype.slice,t=Rn(),r=Object.keys,n=r?function(i){return r(i)}:Ei(),o=Object.keys;return n.shim=function(){if(Object.keys){var i=function(){var a=Object.keys(arguments);return a&&a.length===arguments.length}(1,2);i||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},zt=n,zt}var Ht,xn;function Et(){if(xn)return Ht;xn=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Ht=e,Ht}var Bt,Nn;function Wn(){return Nn||(Nn=1,Bt=SyntaxError),Bt}var Vt,In;function at(){return In||(In=1,Vt=TypeError),Vt}var Xt,Ln;function _i(){return Ln||(Ln=1,Xt=Object.getOwnPropertyDescriptor),Xt}var Kt,jn;function Tt(){if(jn)return Kt;jn=1;var e=_i();if(e)try{e([],"length")}catch{e=null}return Kt=e,Kt}var Yt,Un;function qn(){if(Un)return Yt;Un=1;var e=Et(),t=Wn(),r=at(),n=Tt();return Yt=function(s,i,a){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,g=!!n&&n(s,i);if(e)e(s,i,{configurable:d===null&&g?g.configurable:!d,enumerable:l===null&&g?g.enumerable:!l,value:a,writable:u===null&&g?g.writable:!u});else if(m||!l&&!u&&!d)s[i]=a;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Yt}var Jt,zn;function Hn(){if(zn)return Jt;zn=1;var e=Et(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Jt=t,Jt}var Qt,Bn;function Vn(){if(Bn)return Qt;Bn=1;var e=Ti(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=qn(),s=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},i=Hn()(),a=function(u,d,m,g){if(d in u){if(g===!0){if(u[d]===m)return}else if(!s(g)||!g())return}i?o(u,d,m,!0):o(u,d,m)},l=function(u,d){var m=arguments.length>2?arguments[2]:{},g=e(d);t&&(g=n.call(g,Object.getOwnPropertySymbols(d)));for(var f=0;f<g.length;f+=1)a(u,g[f],d[g[f]],m[g[f]])};return l.supportsDescriptors=!!i,Qt=l,Qt}var Zt={exports:{}},er,Xn;function Kn(){return Xn||(Xn=1,er=Object),er}var tr,Yn;function Pi(){return Yn||(Yn=1,tr=Error),tr}var rr,Jn;function ki(){return Jn||(Jn=1,rr=EvalError),rr}var nr,Qn;function Si(){return Qn||(Qn=1,nr=RangeError),nr}var or,Zn;function Ai(){return Zn||(Zn=1,or=ReferenceError),or}var sr,eo;function Oi(){return eo||(eo=1,sr=URIError),sr}var ir,to;function $i(){return to||(to=1,ir=Math.abs),ir}var ar,ro;function Di(){return ro||(ro=1,ar=Math.floor),ar}var ur,no;function Gi(){return no||(no=1,ur=Math.max),ur}var cr,oo;function Ci(){return oo||(oo=1,cr=Math.min),cr}var lr,so;function Ri(){return so||(so=1,lr=Math.pow),lr}var dr,io;function Fi(){return io||(io=1,dr=Math.round),dr}var pr,ao;function Mi(){return ao||(ao=1,pr=Number.isNaN||function(t){return t!==t}),pr}var mr,uo;function xi(){if(uo)return mr;uo=1;var e=Mi();return mr=function(r){return e(r)||r===0?r:r<0?-1:1},mr}var hr,co;function Ni(){return co||(co=1,hr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}),hr}var gr,lo;function Wi(){if(lo)return gr;lo=1;var e=typeof Symbol<"u"&&Symbol,t=Ni();return gr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},gr}var fr,po;function mo(){return po||(po=1,fr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),fr}var vr,ho;function go(){if(ho)return vr;ho=1;var e=Kn();return vr=e.getPrototypeOf||null,vr}var yr,fo;function Ii(){if(fo)return yr;fo=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,u){for(var d=[],m=0;m<l.length;m+=1)d[m]=l[m];for(var g=0;g<u.length;g+=1)d[g+l.length]=u[g];return d},s=function(l,u){for(var d=[],m=u,g=0;m<l.length;m+=1,g+=1)d[g]=l[m];return d},i=function(a,l){for(var u="",d=0;d<a.length;d+=1)u+=a[d],d+1<a.length&&(u+=l);return u};return yr=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var d=s(arguments,1),m,g=function(){if(this instanceof m){var x=u.apply(this,o(d,arguments));return Object(x)===x?x:this}return u.apply(l,o(d,arguments))},f=r(0,u.length-d.length),w=[],A=0;A<f;A++)w[A]="$"+A;if(m=Function("binder","return function ("+i(w,",")+"){ return binder.apply(this,arguments); }")(g),u.prototype){var G=function(){};G.prototype=u.prototype,m.prototype=new G,G.prototype=null}return m},yr}var br,vo;function ut(){if(vo)return br;vo=1;var e=Ii();return br=Function.prototype.bind||e,br}var wr,yo;function Er(){return yo||(yo=1,wr=Function.prototype.call),wr}var Tr,bo;function _r(){return bo||(bo=1,Tr=Function.prototype.apply),Tr}var Pr,wo;function Li(){return wo||(wo=1,Pr=typeof Reflect<"u"&&Reflect&&Reflect.apply),Pr}var kr,Eo;function To(){if(Eo)return kr;Eo=1;var e=ut(),t=_r(),r=Er(),n=Li();return kr=n||e.call(r,t),kr}var Sr,_o;function Ar(){if(_o)return Sr;_o=1;var e=ut(),t=at(),r=Er(),n=To();return Sr=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},Sr}var Or,Po;function ji(){if(Po)return Or;Po=1;var e=Ar(),t=Tt(),r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,s=o.getPrototypeOf;return Or=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(a){return s(a==null?a:o(a))}:!1,Or}var $r,ko;function Ui(){if(ko)return $r;ko=1;var e=mo(),t=go(),r=ji();return $r=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,$r}var Dr,So;function Ao(){if(So)return Dr;So=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ut();return Dr=r.call(e,t),Dr}var Gr,Oo;function $o(){if(Oo)return Gr;Oo=1;var e,t=Kn(),r=Pi(),n=ki(),o=Si(),s=Ai(),i=Wn(),a=at(),l=Oi(),u=$i(),d=Di(),m=Gi(),g=Ci(),f=Ri(),w=Fi(),A=xi(),G=Function,x=function(ye){try{return G('"use strict"; return ('+ye+").constructor;")()}catch{}},M=Tt(),y=Et(),E=function(){throw new a},S=M?function(){try{return arguments.callee,E}catch{try{return M(arguments,"callee").get}catch{return E}}}():E,O=Wi()(),C=Ui(),W=go(),K=mo(),ee=_r(),ue=Er(),B={},U=typeof Uint8Array>"u"||!C?e:C(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":O&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":B,"%AsyncGenerator%":B,"%AsyncGeneratorFunction%":B,"%AsyncIteratorPrototype%":B,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":G,"%GeneratorFunction%":B,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":M,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&C?C(""[Symbol.iterator]()):e,"%Symbol%":O?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":S,"%TypedArray%":U,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":ue,"%Function.prototype.apply%":ee,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":W,"%Math.abs%":u,"%Math.floor%":d,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":w,"%Math.sign%":A,"%Reflect.getPrototypeOf%":K};if(C)try{null.error}catch(ye){var ve=C(C(ye));q["%Error.prototype%"]=ve}var me=function ye(H){var Z;if(H==="%AsyncFunction%")Z=x("async function () {}");else if(H==="%GeneratorFunction%")Z=x("function* () {}");else if(H==="%AsyncGeneratorFunction%")Z=x("async function* () {}");else if(H==="%AsyncGenerator%"){var X=ye("%AsyncGeneratorFunction%");X&&(Z=X.prototype)}else if(H==="%AsyncIteratorPrototype%"){var re=ye("%AsyncGenerator%");re&&C&&(Z=C(re.prototype))}return q[H]=Z,Z},De={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ge=ut(),Pe=Ao(),xe=Ge.call(ue,Array.prototype.concat),He=Ge.call(ee,Array.prototype.splice),nt=Ge.call(ue,String.prototype.replace),Fe=Ge.call(ue,String.prototype.slice),Be=Ge.call(ue,RegExp.prototype.exec),ot=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ne=/\\(\\)?/g,Ve=function(H){var Z=Fe(H,0,1),X=Fe(H,-1);if(Z==="%"&&X!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&Z!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var re=[];return nt(H,ot,function(be,Ce,ne,he){re[re.length]=ne?nt(he,Ne,"$1"):Ce||be}),re},ke=function(H,Z){var X=H,re;if(Pe(De,X)&&(re=De[X],X="%"+re[0]+"%"),Pe(q,X)){var be=q[X];if(be===B&&(be=me(X)),typeof be>"u"&&!Z)throw new a("intrinsic "+H+" exists, but is not available. Please file an issue!");return{alias:re,name:X,value:be}}throw new i("intrinsic "+H+" does not exist!")};return Gr=function(H,Z){if(typeof H!="string"||H.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Be(/^%?[^%]*%?$/,H)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=Ve(H),re=X.length>0?X[0]:"",be=ke("%"+re+"%",Z),Ce=be.name,ne=be.value,he=!1,V=be.alias;V&&(re=V[0],He(X,xe([0,1],V)));for(var we=1,Re=!0;we<X.length;we+=1){var ge=X[we],Me=Fe(ge,0,1),se=Fe(ge,-1);if((Me==='"'||Me==="'"||Me==="`"||se==='"'||se==="'"||se==="`")&&Me!==se)throw new i("property names with quotes must have matching quotes");if((ge==="constructor"||!Re)&&(he=!0),re+="."+ge,Ce="%"+re+"%",Pe(q,Ce))ne=q[Ce];else if(ne!=null){if(!(ge in ne)){if(!Z)throw new a("base intrinsic for "+H+" exists, but the property is not available.");return}if(M&&we+1>=X.length){var L=M(ne,ge);Re=!!L,Re&&"get"in L&&!("originalValue"in L.get)?ne=L.get:ne=ne[ge]}else Re=Pe(ne,ge),ne=ne[ge];Re&&!he&&(q[Ce]=ne)}}return ne},Gr}var Cr,Do;function qi(){if(Do)return Cr;Do=1;var e=$o(),t=qn(),r=Hn()(),n=Tt(),o=at(),s=e("%Math.floor%");return Cr=function(a,l){if(typeof a!="function")throw new o("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new o("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],d=!0,m=!0;if("length"in a&&n){var g=n(a,"length");g&&!g.configurable&&(d=!1),g&&!g.writable&&(m=!1)}return(d||m||!u)&&(r?t(a,"length",l,!0,!0):t(a,"length",l)),a},Cr}var Rr,Go;function zi(){if(Go)return Rr;Go=1;var e=ut(),t=_r(),r=To();return Rr=function(){return r(e,t,arguments)},Rr}var Co;function Hi(){return Co||(Co=1,function(e){var t=qi(),r=Et(),n=Ar(),o=zi();e.exports=function(i){var a=n(arguments),l=i.length-(arguments.length-1);return t(a,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Zt)),Zt.exports}var Fr,Ro;function Bi(){if(Ro)return Fr;Ro=1;var e=at();return Fr=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},Fr}var Mr,Fo;function Vi(){if(Fo)return Mr;Fo=1;var e=$o(),t=Ar(),r=t([e("%String.prototype.indexOf%")]);return Mr=function(o,s){var i=e(o,!!s);return typeof i=="function"&&r(o,".prototype.")>-1?t([i]):i},Mr}var xr,Mo;function xo(){if(Mo)return xr;Mo=1;var e=Bi(),t=Vi(),r=t("Object.prototype.propertyIsEnumerable"),n=t("Array.prototype.push");return xr=function(s){var i=e(s),a=[];for(var l in i)r(i,l)&&n(a,[l,i[l]]);return a},xr}var Nr,No;function Wo(){if(No)return Nr;No=1;var e=xo();return Nr=function(){return typeof Object.entries=="function"?Object.entries:e},Nr}var Wr,Io;function Xi(){if(Io)return Wr;Io=1;var e=Wo(),t=Vn();return Wr=function(){var n=e();return t(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},Wr}var Ir,Lo;function Ki(){if(Lo)return Ir;Lo=1;var e=Vn(),t=Hi(),r=xo(),n=Wo(),o=Xi(),s=t(n(),Object);return e(s,{getPolyfill:n,implementation:r,shim:o}),Ir=s,Ir}var Lr,jo;function Yi(){if(jo)return Lr;jo=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var r=function(o,s){var i=arguments.length;s=new Array(i>1?i-1:0);for(var a=1;a<i;a++)s[a-1]=arguments[a];var l=0,u="Warning: "+o.replace(/%s/g,function(){return s[l++]});typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}};t=function(n,o,s){var i=arguments.length;s=new Array(i>2?i-2:0);for(var a=2;a<i;a++)s[a-2]=arguments[a];if(o===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||r.apply(null,[o].concat(s))}}return Lr=t,Lr}var jr,Uo;function Ji(){if(Uo)return jr;Uo=1;var e=Ki(),t=Yi(),r=Ao(),n=function(E){t(!1,E)},o=String.prototype.replace,s=String.prototype.split,i="||||",a=function(y){var E=y%100,S=E%10;return E!==11&&S===1?0:2<=S&&S<=4&&!(E>=12&&E<=14)?1:2},l={pluralTypes:{arabic:function(y){if(y<3)return y;var E=y%100;return E>=3&&E<=10?3:E>=11?4:5},bosnian_serbian:a,chinese:function(){return 0},croatian:a,french:function(y){return y>=2?1:0},german:function(y){return y!==1?1:0},russian:a,lithuanian:function(y){return y%10===1&&y%100!==11?0:y%10>=2&&y%10<=9&&(y%100<11||y%100>19)?1:2},czech:function(y){return y===1?0:y>=2&&y<=4?1:2},polish:function(y){if(y===1)return 0;var E=y%10;return 2<=E&&E<=4&&(y%100<10||y%100>=20)?1:2},icelandic:function(y){return y%10!==1||y%100===11?1:0},slovenian:function(y){var E=y%100;return E===1?0:E===2?1:E===3||E===4?2:3},romanian:function(y){if(y===1)return 0;var E=y%100;return y===0||E>=2&&E<=19?1:2},ukrainian:a},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function u(y){for(var E={},S=e(y),O=0;O<S.length;O+=1)for(var C=S[O][0],W=S[O][1],K=0;K<W.length;K+=1)E[W[K]]=C;return E}function d(y,E){var S=u(y.pluralTypeToLanguages);return S[E]||S[s.call(E,/-/,1)[0]]||S.en}function m(y,E,S){return y.pluralTypes[E](S)}function g(){var y={};return function(E,S){var O=y[S];return O&&!E.pluralTypes[O]&&(O=null,y[S]=O),O||(O=d(E,S),O&&(y[S]=O)),O}}function f(y){return y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(y){var E=y&&y.prefix||"%{",S=y&&y.suffix||"}";if(E===i||S===i)throw new RangeError('"'+i+'" token is reserved for pluralization');return new RegExp(f(E)+"(.*?)"+f(S),"g")}var A=g(),G=/%\{(.*?)\}/g;function x(y,E,S,O,C,W){if(typeof y!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(E==null)return y;var K=y,ee=O||G,ue=W||o,B=typeof E=="number"?{smart_count:E}:E;if(B.smart_count!=null&&y){var U=C||l,q=s.call(y,i),ve=S||"en",me=A(U,ve),De=m(U,me,B.smart_count);K=o.call(q[De]||q[0],/^[^\S]*|[^\S]*$/g,"")}return K=ue.call(K,ee,function(Ge,Pe){return!r(B,Pe)||B[Pe]==null?Ge:B[Pe]}),K}function M(y){var E=y||{};this.phrases={},this.extend(E.phrases||{}),this.currentLocale=E.locale||"en";var S=E.allowMissing?x:null;this.onMissingKey=typeof E.onMissingKey=="function"?E.onMissingKey:S,this.warn=E.warn||n,this.replaceImplementation=E.replace||o,this.tokenRegex=w(E.interpolation),this.pluralRules=E.pluralRules||l}return M.prototype.locale=function(y){return y&&(this.currentLocale=y),this.currentLocale},M.prototype.extend=function(y,E){for(var S=e(y||{}),O=0;O<S.length;O+=1){var C=S[O][0],W=S[O][1],K=E?E+"."+C:C;typeof W=="object"?this.extend(W,K):this.phrases[K]=W}},M.prototype.unset=function(y,E){if(typeof y=="string")delete this.phrases[y];else for(var S=e(y||{}),O=0;O<S.length;O+=1){var C=S[O][0],W=S[O][1],K=E?E+"."+C:C;typeof W=="object"?this.unset(W,K):delete this.phrases[K]}},M.prototype.clear=function(){this.phrases={}},M.prototype.replace=function(y){this.clear(),this.extend(y)},M.prototype.t=function(y,E){var S,O,C=E??{};if(typeof this.phrases[y]=="string")S=this.phrases[y];else if(typeof C._=="string")S=C._;else if(this.onMissingKey){var W=this.onMissingKey;O=W(y,C,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+y+'"'),O=y;return typeof S=="string"&&(O=x(S,C,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),O},M.prototype.has=function(y){return r(this.phrases,y)},M.transformPhrase=function(E,S,O){return x(E,S,O)},jr=M,jr}var Qi=Ji();const Zi=wt(Qi);function j(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}function R(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}function F(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const i=s[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?ta(a,m=>m.test(i)):ea(a,m=>m.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function ea(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function ta(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Ae(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=r.valueCallback?r.valueCallback(i):i;const a=t.slice(o.length);return{value:i,rest:a}}}const qo=6e4,zo=36e5,_t=43200,Ho=1440,Bo=Symbol.for("constructDateFrom");function Pt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Bo in e?e[Bo](t):e instanceof Date?new e.constructor(t):new Date(t)}function kt(e,...t){const r=Pt.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}let ra={};function Vo(){return ra}function Oe(e,t){return Pt(t||e,e)}function Xo(e,t){var a,l,u,d;const r=Vo(),n=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,o=Oe(e,t==null?void 0:t.in),s=o.getDay(),i=(s<n?7:0)+s-n;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function St(e,t,r){const[n,o]=kt(r==null?void 0:r.in,e,t);return+Xo(n,r)==+Xo(o,r)}const Ko={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},na=(e,t,r)=>{let n;const o=r!=null&&r.addSuffix?Ko[e].withPreposition:Ko[e].standalone;return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:"vor "+n:n},oa={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},sa={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ia={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},aa={date:j({formats:oa,defaultWidth:"full"}),time:j({formats:sa,defaultWidth:"full"}),dateTime:j({formats:ia,defaultWidth:"full"})},ua={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},ca=(e,t,r,n)=>ua[e],la={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},da={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Ur={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},pa={narrow:Ur.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Ur.wide},ma={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},ha={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},ga={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},fa={ordinalNumber:e=>Number(e)+".",era:R({values:la,defaultWidth:"wide"}),quarter:R({values:da,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Ur,formattingValues:pa,defaultWidth:"wide"}),day:R({values:ma,defaultWidth:"wide"}),dayPeriod:R({values:ha,defaultWidth:"wide",formattingValues:ga,defaultFormattingWidth:"wide"})},va=/^(\d+)(\.)?/i,ya=/\d+/i,ba={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},wa={any:[/^v/i,/^n/i]},Ea={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},Ta={any:[/1/i,/2/i,/3/i,/4/i]},_a={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},Pa={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:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ka={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Sa={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Aa={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Oa={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},$a={ordinalNumber:Ae({matchPattern:va,parsePattern:ya,valueCallback:e=>parseInt(e)}),era:F({matchPatterns:ba,defaultMatchWidth:"wide",parsePatterns:wa,defaultParseWidth:"any"}),quarter:F({matchPatterns:Ea,defaultMatchWidth:"wide",parsePatterns:Ta,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:_a,defaultMatchWidth:"wide",parsePatterns:Pa,defaultParseWidth:"any"}),day:F({matchPatterns:ka,defaultMatchWidth:"wide",parsePatterns:Sa,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Aa,defaultMatchWidth:"wide",parsePatterns:Oa,defaultParseWidth:"any"})},Da={code:"de",formatDistance:na,formatLong:aa,formatRelative:ca,localize:fa,match:$a,options:{weekStartsOn:1,firstWeekContainsDate:4}},Ga={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"}},Ca=(e,t,r)=>{let n;const o=Ga[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},Ra={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fa=(e,t,r,n)=>Ra[e],Ma={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xa={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Na={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"]},Ia={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"}},La={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"}},ja={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:R({values:Ma,defaultWidth:"wide"}),quarter:R({values:xa,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Na,defaultWidth:"wide"}),day:R({values:Wa,defaultWidth:"wide"}),dayPeriod:R({values:Ia,defaultWidth:"wide",formattingValues:La,defaultFormattingWidth:"wide"})},Ua=/^(\d+)(th|st|nd|rd)?/i,qa=/\d+/i,za={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},Ha={any:[/^b/i,/^(a|c)/i]},Ba={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Va={any:[/1/i,/2/i,/3/i,/4/i]},Xa={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},Ka={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]},Ya={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},Ja={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]},Qa={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},Za={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}},eu={ordinalNumber:Ae({matchPattern:Ua,parsePattern:qa,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:za,defaultMatchWidth:"wide",parsePatterns:Ha,defaultParseWidth:"any"}),quarter:F({matchPatterns:Ba,defaultMatchWidth:"wide",parsePatterns:Va,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Xa,defaultMatchWidth:"wide",parsePatterns:Ka,defaultParseWidth:"any"}),day:F({matchPatterns:Ya,defaultMatchWidth:"wide",parsePatterns:Ja,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Qa,defaultMatchWidth:"any",parsePatterns:Za,defaultParseWidth:"any"})},tu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ru={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ou={date:j({formats:tu,defaultWidth:"full"}),time:j({formats:ru,defaultWidth:"full"}),dateTime:j({formats:nu,defaultWidth:"full"})},Yo={code:"en-US",formatDistance:Ca,formatLong:ou,formatRelative:Fa,localize:ja,match:eu,options:{weekStartsOn:0,firstWeekContainsDate:1}},su={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},iu=(e,t,r)=>{let n;const o=su[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+n:"hace "+n:n},au={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},uu={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},cu={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lu={date:j({formats:au,defaultWidth:"full"}),time:j({formats:uu,defaultWidth:"full"}),dateTime:j({formats:cu,defaultWidth:"full"})},du={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},pu={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},mu=(e,t,r,n)=>t.getHours()!==1?pu[e]:du[e],hu={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},gu={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},fu={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},vu={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},yu={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},bu={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},wu={ordinalNumber:(e,t)=>Number(e)+"º",era:R({values:hu,defaultWidth:"wide"}),quarter:R({values:gu,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:R({values:fu,defaultWidth:"wide"}),day:R({values:vu,defaultWidth:"wide"}),dayPeriod:R({values:yu,defaultWidth:"wide",formattingValues:bu,defaultFormattingWidth:"wide"})},Eu=/^(\d+)(º)?/i,Tu=/\d+/i,_u={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},Pu={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},ku={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Su={any:[/1/i,/2/i,/3/i,/4/i]},Au={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},Ou={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},$u={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Du={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},Gu={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},Cu={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Ru={ordinalNumber:Ae({matchPattern:Eu,parsePattern:Tu,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:_u,defaultMatchWidth:"wide",parsePatterns:Pu,defaultParseWidth:"any"}),quarter:F({matchPatterns:ku,defaultMatchWidth:"wide",parsePatterns:Su,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Au,defaultMatchWidth:"wide",parsePatterns:Ou,defaultParseWidth:"any"}),day:F({matchPatterns:$u,defaultMatchWidth:"wide",parsePatterns:Du,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Gu,defaultMatchWidth:"any",parsePatterns:Cu,defaultParseWidth:"any"})},Fu={code:"es",formatDistance:iu,formatLong:lu,formatRelative:mu,localize:wu,match:Ru,options:{weekStartsOn:1,firstWeekContainsDate:1}},Mu={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},xu=(e,t,r)=>{let n;const o=Mu[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"در "+n:n+" قبل":n},Nu={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},Wu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Iu={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lu={date:j({formats:Nu,defaultWidth:"full"}),time:j({formats:Wu,defaultWidth:"full"}),dateTime:j({formats:Iu,defaultWidth:"full"})},ju={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},Uu=(e,t,r,n)=>ju[e],qu={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},zu={narrow:["1","2","3","4"],abbreviated:["سم1","سم2","سم3","سم4"],wide:["سهماهه 1","سهماهه 2","سهماهه 3","سهماهه 4"]},Hu={narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},Bu={narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},Vu={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمهشب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبلازظهر",pm:"بعدازظهر",midnight:"نیمهشب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},Xu={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمهشب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبلازظهر",pm:"بعدازظهر",midnight:"نیمهشب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},Ku={ordinalNumber:(e,t)=>String(e),era:R({values:qu,defaultWidth:"wide"}),quarter:R({values:zu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Hu,defaultWidth:"wide"}),day:R({values:Bu,defaultWidth:"wide"}),dayPeriod:R({values:Vu,defaultWidth:"wide",formattingValues:Xu,defaultFormattingWidth:"wide"})},Yu=/^(\d+)(th|st|nd|rd)?/i,Ju=/\d+/i,Qu={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},Zu={any:[/^قبل/i,/^بعد/i]},ec={narrow:/^[1234]/i,abbreviated:/^سم[1234]/i,wide:/^سهماهه [1234]/i},tc={any:[/1/i,/2/i,/3/i,/4/i]},rc={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},nc={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},oc={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سهشنبه|چهارشنبه|پنجشنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سهشنبه|چهارشنبه|پنجشنبه|جمعه|شنبه)/i},sc={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سهشنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},ic={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمهشب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبلازظهر|نیمهشب|ظهر|صبح|بعدازظهر|عصر|شب)/i},ac={any:{am:/^(ق|ق.ظ.|قبلازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(نیمهشب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},uc={ordinalNumber:Ae({matchPattern:Yu,parsePattern:Ju,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Qu,defaultMatchWidth:"wide",parsePatterns:Zu,defaultParseWidth:"any"}),quarter:F({matchPatterns:ec,defaultMatchWidth:"wide",parsePatterns:tc,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:rc,defaultMatchWidth:"wide",parsePatterns:nc,defaultParseWidth:"any"}),day:F({matchPatterns:oc,defaultMatchWidth:"wide",parsePatterns:sc,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:ic,defaultMatchWidth:"wide",parsePatterns:ac,defaultParseWidth:"any"})},cc={code:"fa-IR",formatDistance:xu,formatLong:Lu,formatRelative:Uu,localize:Ku,match:uc,options:{weekStartsOn:6,firstWeekContainsDate:1}},lc={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},dc=(e,t,r)=>{let n;const o=lc[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+n:"il y a "+n:n},pc={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},mc={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},hc={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gc={date:j({formats:pc,defaultWidth:"full"}),time:j({formats:mc,defaultWidth:"full"}),dateTime:j({formats:hc,defaultWidth:"full"})},fc={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},vc=(e,t,r,n)=>fc[e],yc={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},bc={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},wc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},Ec={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},Tc={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},_c=(e,t)=>{const r=Number(e),n=t==null?void 0:t.unit;if(r===0)return"0";const o=["year","week","hour","minute","second"];let s;return r===1?s=n&&o.includes(n)?"ère":"er":s="ème",r+s},Pc=["MMM","MMMM"],kc={preprocessor:(e,t)=>e.getDate()===1||!t.some(n=>n.isToken&&Pc.includes(n.value))?t:t.map(n=>n.isToken&&n.value==="do"?{isToken:!0,value:"d"}:n),ordinalNumber:_c,era:R({values:yc,defaultWidth:"wide"}),quarter:R({values:bc,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:wc,defaultWidth:"wide"}),day:R({values:Ec,defaultWidth:"wide"}),dayPeriod:R({values:Tc,defaultWidth:"wide"})},Sc=/^(\d+)(ième|ère|ème|er|e)?/i,Ac=/\d+/i,Oc={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},$c={any:[/^av/i,/^ap/i]},Dc={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},Gc={any:[/1/i,/2/i,/3/i,/4/i]},Cc={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},Rc={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,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},Fc={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},Mc={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},xc={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},Nc={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},Wc={ordinalNumber:Ae({matchPattern:Sc,parsePattern:Ac,valueCallback:e=>parseInt(e)}),era:F({matchPatterns:Oc,defaultMatchWidth:"wide",parsePatterns:$c,defaultParseWidth:"any"}),quarter:F({matchPatterns:Dc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Cc,defaultMatchWidth:"wide",parsePatterns:Rc,defaultParseWidth:"any"}),day:F({matchPatterns:Fc,defaultMatchWidth:"wide",parsePatterns:Mc,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:xc,defaultMatchWidth:"any",parsePatterns:Nc,defaultParseWidth:"any"})},Ic={code:"fr",formatDistance:dc,formatLong:gc,formatRelative:vc,localize:kc,match:Wc,options:{weekStartsOn:1,firstWeekContainsDate:4}},Lc={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},jc=(e,t,r)=>{r=r||{};let n;const o=Lc[e];return typeof o=="string"?n=o:t===1?r.addSuffix&&o.oneWithSuffix?n=o.oneWithSuffix:n=o.one:r.addSuffix&&o.otherWithSuffix?n=o.otherWithSuffix.replace("{{count}}",String(t)):n=o.other.replace("{{count}}",String(t)),r.addSuffix?r.comparison&&r.comparison>0?n+"後":n+"前":n},Uc={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},qc={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},zc={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Hc={date:j({formats:Uc,defaultWidth:"full"}),time:j({formats:qc,defaultWidth:"full"}),dateTime:j({formats:zc,defaultWidth:"full"})},Bc={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Vc=(e,t,r,n)=>Bc[e],Xc={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},Kc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},Yc={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},Jc={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Qc={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Zc={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},el={ordinalNumber:(e,t)=>{const r=Number(e);switch(String(t==null?void 0:t.unit)){case"year":return`${r}年`;case"quarter":return`第${r}四半期`;case"month":return`${r}月`;case"week":return`第${r}週`;case"date":return`${r}日`;case"hour":return`${r}時`;case"minute":return`${r}分`;case"second":return`${r}秒`;default:return`${r}`}},era:R({values:Xc,defaultWidth:"wide"}),quarter:R({values:Kc,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:R({values:Yc,defaultWidth:"wide"}),day:R({values:Jc,defaultWidth:"wide"}),dayPeriod:R({values:Qc,defaultWidth:"wide",formattingValues:Zc,defaultFormattingWidth:"wide"})},tl=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,rl=/\d+/i,nl={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},ol={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},sl={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},il={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},al={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},ul={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},cl={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},ll={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},dl={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},pl={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},ml={ordinalNumber:Ae({matchPattern:tl,parsePattern:rl,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:nl,defaultMatchWidth:"wide",parsePatterns:ol,defaultParseWidth:"any"}),quarter:F({matchPatterns:sl,defaultMatchWidth:"wide",parsePatterns:il,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:al,defaultMatchWidth:"wide",parsePatterns:ul,defaultParseWidth:"any"}),day:F({matchPatterns:cl,defaultMatchWidth:"wide",parsePatterns:ll,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:dl,defaultMatchWidth:"any",parsePatterns:pl,defaultParseWidth:"any"})},hl={code:"ja",formatDistance:jc,formatLong:Hc,formatRelative:Vc,localize:el,match:ml,options:{weekStartsOn:0,firstWeekContainsDate:1}},gl={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},fl=(e,t,r)=>{let n;const o=gl[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?n+" 후":n+" 전":n},vl={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},yl={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bl={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},wl={date:j({formats:vl,defaultWidth:"full"}),time:j({formats:yl,defaultWidth:"full"}),dateTime:j({formats:bl,defaultWidth:"full"})},El={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Tl=(e,t,r,n)=>El[e],_l={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Pl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},kl={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},Sl={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},Al={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Ol={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},$l={ordinalNumber:(e,t)=>{const r=Number(e);switch(String(t==null?void 0:t.unit)){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},era:R({values:_l,defaultWidth:"wide"}),quarter:R({values:Pl,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:kl,defaultWidth:"wide"}),day:R({values:Sl,defaultWidth:"wide"}),dayPeriod:R({values:Al,defaultWidth:"wide",formattingValues:Ol,defaultFormattingWidth:"wide"})},Dl=/^(\d+)(일|번째)?/i,Gl=/\d+/i,Cl={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},Rl={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},Fl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Ml={any:[/1/i,/2/i,/3/i,/4/i]},xl={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Nl={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Wl={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Il={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},Ll={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},jl={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},Ul={ordinalNumber:Ae({matchPattern:Dl,parsePattern:Gl,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:Rl,defaultParseWidth:"any"}),quarter:F({matchPatterns:Fl,defaultMatchWidth:"wide",parsePatterns:Ml,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:xl,defaultMatchWidth:"wide",parsePatterns:Nl,defaultParseWidth:"any"}),day:F({matchPatterns:Wl,defaultMatchWidth:"wide",parsePatterns:Il,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Ll,defaultMatchWidth:"any",parsePatterns:jl,defaultParseWidth:"any"})},ql={code:"ko",formatDistance:fl,formatLong:wl,formatRelative:Tl,localize:$l,match:Ul,options:{weekStartsOn:0,firstWeekContainsDate:1}},zl={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function Hl(e,t){if(t===1)return e.one;const r=t%100;if(r<=20&&r>10)return e.other;const n=r%10;return n>=2&&n<=4?e.twoFour:e.other}function qr(e,t,r){const n=Hl(e,t);return(typeof n=="string"?n:n[r]).replace("{{count}}",String(t))}const Bl=(e,t,r)=>{const n=zl[e];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+qr(n,t,"future"):qr(n,t,"past")+" temu":qr(n,t,"regular")},Vl={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},Xl={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Kl={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yl={date:j({formats:Vl,defaultWidth:"full"}),time:j({formats:Xl,defaultWidth:"full"}),dateTime:j({formats:Kl,defaultWidth:"full"})},Jl={masculine:"ostatni",feminine:"ostatnia"},Ql={masculine:"ten",feminine:"ta"},Zl={masculine:"następny",feminine:"następna"},ed={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function Jo(e,t,r,n){let o;if(St(t,r,n))o=Ql;else if(e==="lastWeek")o=Jl;else if(e==="nextWeek")o=Zl;else throw new Error(`Cannot determine adjectives for token ${e}`);const s=t.getDay(),i=ed[s];return`'${o[i]}' eeee 'o' p`}const td={lastWeek:Jo,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:Jo,other:"P"},rd=(e,t,r,n)=>{const o=td[e];return typeof o=="function"?o(e,t,r,n):o},nd={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},od={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},sd={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},id={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},ad={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},ud={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},cd={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},ld={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},dd={ordinalNumber:(e,t)=>String(e),era:R({values:nd,defaultWidth:"wide"}),quarter:R({values:od,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:sd,defaultWidth:"wide",formattingValues:id,defaultFormattingWidth:"wide"}),day:R({values:ad,defaultWidth:"wide",formattingValues:ud,defaultFormattingWidth:"wide"}),dayPeriod:R({values:cd,defaultWidth:"wide",formattingValues:ld,defaultFormattingWidth:"wide"})},pd=/^(\d+)?/i,md=/\d+/i,hd={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},gd={any:[/^p/i,/^n/i]},fd={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},vd={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},yd={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},bd={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},wd={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},Ed={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},Td={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},_d={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},Pd={ordinalNumber:Ae({matchPattern:pd,parsePattern:md,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:hd,defaultMatchWidth:"wide",parsePatterns:gd,defaultParseWidth:"any"}),quarter:F({matchPatterns:fd,defaultMatchWidth:"wide",parsePatterns:vd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:yd,defaultMatchWidth:"wide",parsePatterns:bd,defaultParseWidth:"any"}),day:F({matchPatterns:wd,defaultMatchWidth:"wide",parsePatterns:Ed,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Td,defaultMatchWidth:"any",parsePatterns:_d,defaultParseWidth:"any"})},kd={code:"pl",formatDistance:Bl,formatLong:Yl,formatRelative:rd,localize:dd,match:Pd,options:{weekStartsOn:1,firstWeekContainsDate:4}};function ct(e,t){if(e.one!==void 0&&t===1)return e.one;const r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function fe(e){return(t,r)=>r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?ct(e.future,t):"через "+ct(e.regular,t):e.past?ct(e.past,t):ct(e.regular,t)+" назад":ct(e.regular,t)}const Sd={lessThanXSeconds:fe({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:fe({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:fe({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:fe({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:fe({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:fe({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:fe({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:fe({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:fe({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:fe({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:fe({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:fe({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:fe({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:fe({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:fe({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Ad=(e,t,r)=>Sd[e](t,r),Od={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},$d={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Dd={any:"{{date}}, {{time}}"},Gd={date:j({formats:Od,defaultWidth:"full"}),time:j({formats:$d,defaultWidth:"full"}),dateTime:j({formats:Dd,defaultWidth:"any"})},zr=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function Cd(e){const t=zr[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function Qo(e){const t=zr[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function Rd(e){const t=zr[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}const Fd={lastWeek:(e,t,r)=>{const n=e.getDay();return St(e,t,r)?Qo(n):Cd(n)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,r)=>{const n=e.getDay();return St(e,t,r)?Qo(n):Rd(n)},other:"P"},Md=(e,t,r,n)=>{const o=Fd[e];return typeof o=="function"?o(t,r,n):o},xd={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},Nd={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Wd={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},Id={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},Ld={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},jd={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},Ud={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},qd={ordinalNumber:(e,t)=>{const r=Number(e),n=t==null?void 0:t.unit;let o;return n==="date"?o="-е":n==="week"||n==="minute"||n==="second"?o="-я":o="-й",r+o},era:R({values:xd,defaultWidth:"wide"}),quarter:R({values:Nd,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Wd,defaultWidth:"wide",formattingValues:Id,defaultFormattingWidth:"wide"}),day:R({values:Ld,defaultWidth:"wide"}),dayPeriod:R({values:jd,defaultWidth:"any",formattingValues:Ud,defaultFormattingWidth:"wide"})},zd=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Hd=/\d+/i,Bd={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Vd={any:[/^д/i,/^н/i]},Xd={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},Kd={any:[/1/i,/2/i,/3/i,/4/i]},Yd={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},Jd={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},Qd={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Zd={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},ep={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},tp={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},rp={ordinalNumber:Ae({matchPattern:zd,parsePattern:Hd,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Bd,defaultMatchWidth:"wide",parsePatterns:Vd,defaultParseWidth:"any"}),quarter:F({matchPatterns:Xd,defaultMatchWidth:"wide",parsePatterns:Kd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Yd,defaultMatchWidth:"wide",parsePatterns:Jd,defaultParseWidth:"any"}),day:F({matchPatterns:Qd,defaultMatchWidth:"wide",parsePatterns:Zd,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:ep,defaultMatchWidth:"wide",parsePatterns:tp,defaultParseWidth:"any"})},np={code:"ru",formatDistance:Ad,formatLong:Gd,formatRelative:Md,localize:qd,match:rp,options:{weekStartsOn:1,firstWeekContainsDate:1}},op={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},sp=(e,t,r)=>{let n;const o=op[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?n+"内":n+"前":n},ip={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},ap={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},up={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},cp={date:j({formats:ip,defaultWidth:"full"}),time:j({formats:ap,defaultWidth:"full"}),dateTime:j({formats:up,defaultWidth:"full"})};function Zo(e,t,r){const n="eeee p";return St(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}const lp={lastWeek:Zo,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Zo,other:"PP p"},dp=(e,t,r,n)=>{const o=lp[e];return typeof o=="function"?o(t,r,n):o},pp={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},mp={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},hp={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},gp={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},fp={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},vp={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},yp={ordinalNumber:(e,t)=>{const r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},era:R({values:pp,defaultWidth:"wide"}),quarter:R({values:mp,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:hp,defaultWidth:"wide"}),day:R({values:gp,defaultWidth:"wide"}),dayPeriod:R({values:fp,defaultWidth:"wide",formattingValues:vp,defaultFormattingWidth:"wide"})},bp=/^(第\s*)?\d+(日|时|分|秒)?/i,wp=/\d+/i,Ep={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Tp={any:[/^(前)/i,/^(公元)/i]},_p={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Pp={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},kp={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Sp={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Ap={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Op={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},$p={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Dp={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Gp={ordinalNumber:Ae({matchPattern:bp,parsePattern:wp,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Ep,defaultMatchWidth:"wide",parsePatterns:Tp,defaultParseWidth:"any"}),quarter:F({matchPatterns:_p,defaultMatchWidth:"wide",parsePatterns:Pp,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:kp,defaultMatchWidth:"wide",parsePatterns:Sp,defaultParseWidth:"any"}),day:F({matchPatterns:Ap,defaultMatchWidth:"wide",parsePatterns:Op,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:$p,defaultMatchWidth:"any",parsePatterns:Dp,defaultParseWidth:"any"})},es={code:"zh-CN",formatDistance:sp,formatLong:cp,formatRelative:dp,localize:yp,match:Gp,options:{weekStartsOn:1,firstWeekContainsDate:4}},Cp={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},Rp=(e,t,r)=>{let n;const o=Cp[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?n+"內":n+"前":n},Fp={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Mp={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},xp={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Np={date:j({formats:Fp,defaultWidth:"full"}),time:j({formats:Mp,defaultWidth:"full"}),dateTime:j({formats:xp,defaultWidth:"full"})},Wp={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},Ip=(e,t,r,n)=>Wp[e],Lp={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},jp={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},Up={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},qp={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zp={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},Hp={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},Bp={ordinalNumber:(e,t)=>{const r=Number(e);switch(t==null?void 0:t.unit){case"date":return r+"日";case"hour":return r+"時";case"minute":return r+"分";case"second":return r+"秒";default:return"第 "+r}},era:R({values:Lp,defaultWidth:"wide"}),quarter:R({values:jp,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Up,defaultWidth:"wide"}),day:R({values:qp,defaultWidth:"wide"}),dayPeriod:R({values:zp,defaultWidth:"wide",formattingValues:Hp,defaultFormattingWidth:"wide"})},Vp=/^(第\s*)?\d+(日|時|分|秒)?/i,Xp=/\d+/i,Kp={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Yp={any:[/^(前)/i,/^(公元)/i]},Jp={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},Qp={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Zp={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},em={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},tm={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},rm={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},nm={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},om={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},sm={ordinalNumber:Ae({matchPattern:Vp,parsePattern:Xp,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Kp,defaultMatchWidth:"wide",parsePatterns:Yp,defaultParseWidth:"any"}),quarter:F({matchPatterns:Jp,defaultMatchWidth:"wide",parsePatterns:Qp,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Zp,defaultMatchWidth:"wide",parsePatterns:em,defaultParseWidth:"any"}),day:F({matchPatterns:tm,defaultMatchWidth:"wide",parsePatterns:rm,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:nm,defaultMatchWidth:"any",parsePatterns:om,defaultParseWidth:"any"})},im={code:"zh-TW",formatDistance:Rp,formatLong:Np,formatRelative:Ip,localize:Bp,match:sm,options:{weekStartsOn:1,firstWeekContainsDate:4}},ts={version:"1.0.0-beta.4",homepage:"https://github.com/LolipopJ/gitalk-react"},am=ts.version,um=ts.homepage,Hr="en",cm=["Gitalk"],lm="https://cdn.jsdelivr.net/npm/gitalk@1/src/assets/icon/github.svg",dm={avatar_url:"//avatars1.githubusercontent.com/u/29697133?s=50",login:"null",html_url:""},lt="GT_ACCESS_TOKEN",rs={zh:es,"zh-CN":es,"zh-TW":im,en:Yo,"es-ES":Fu,fr:Ic,ru:np,de:Da,pl:kd,ko:ql,fa:cc,ja:hl},pm={init:"Gitalking ...","no-found-related":"Zugehöriger %{link} nicht gefunden","please-contact":"Bitte kontaktiere %{user} um den Kommentar zu initialisieren","init-issue":"Initialisiere Issue","leave-a-comment":"Hinterlasse einen Kommentar",preview:"Vorschau",edit:"Editieren",comment:"Kommentieren","support-markdown":"Markdown wird unterstützt","login-with-github":"Mit GitHub-Account anmelden","first-comment-person":"Sei die erste Person, welche einen Kommentar hinterlässt!",commented:"kommentierte","load-more":"Zeige mehr",counts:"%{counts} Kommentar |||| %{counts} Kommentare","sort-asc":"Älteste zuerst","sort-desc":"Neuste zuerst",logout:"Abmelden",anonymous:"Anonym"},mm={init:"Gitalking ...","no-found-related":"Related %{link} not found","please-contact":"Please contact %{user} to initialize the comment","init-issue":"Init Issue","leave-a-comment":"Leave a comment",preview:"Preview",edit:"Edit",comment:"Comment","support-markdown":"Markdown is supported","login-with-github":"Login with GitHub","first-comment-person":"Be the first person to leave a comment!",commented:"commented","load-more":"Load more",counts:"%{counts} comment |||| %{counts} comments","sort-asc":"Sort by Oldest","sort-desc":"Sort by Latest",logout:"Logout",anonymous:"Anonymous"},hm={init:"Gitalking ...","no-found-related":"Link %{link} no encontrado","please-contact":"Por favor contacta con %{user} para inicializar el comentario","init-issue":"Iniciar Issue","leave-a-comment":"Deja un comentario",preview:"Avance",edit:"Editar",comment:"Comentario","support-markdown":"Markdown es soportado","login-with-github":"Entrar con GitHub","first-comment-person":"Sé el primero en dejar un comentario!",commented:"comentó","load-more":"Cargar más",counts:"%{counts} comentario |||| %{counts} comentarios","sort-asc":"Ordenar por Antiguos","sort-desc":"Ordenar por Recientes",logout:"Salir",anonymous:"Anónimo"},gm={init:"بارگزاری ...","no-found-related":"%{link} مرتبط پیدا نشد.","please-contact":"لطفاً با %{user} اطلاع دهید تا اضافه کند.","init-issue":"شروع نظرات","leave-a-comment":"نظرتان را بنویسید",preview:"پیشنمایش",edit:"ویرایش",comment:"ثبت","support-markdown":"پشتیبانی از مارکداون","login-with-github":"ورود با گیتهاب","first-comment-person":"اولین نظر را شما بنویسید!",commented:" - ","load-more":"نظرات بیشتر",counts:"%{counts} نظر |||| %{counts} نظر","sort-asc":"مرتبسازی از قدیمیترین","sort-desc":"مرتبسازی از جدیدترین",logout:"خروج",anonymous:"بینام"},fm={init:"Gitalking ...","no-found-related":"Lien %{link} non trouvé","please-contact":"Veuillez contacter %{user} pour initialiser les commentaires","init-issue":"Initialisation des issues","leave-a-comment":"Laisser un commentaire",preview:"Aperçu",edit:"Modifier",comment:"Commentaire","support-markdown":"Markdown est supporté","login-with-github":"Se connecter avec GitHub","first-comment-person":"Soyez le premier à laisser un commentaire !",commented:"a commenté","load-more":"Charger plus",counts:"%{counts} commentaire |||| %{counts} commentaires","sort-asc":"Trier du plus ancien au plus récent","sort-desc":"Trier du plus récent au plus ancien",logout:"Déconnexion",anonymous:"Anonyme"},vm={init:"Gitalk を読み込んでいます...","no-found-related":"%{link} に関連するものが見当たりません","please-contact":"コメントを初期化するために %{user} に連絡してください","init-issue":"イシューを初期化する","leave-a-comment":"コメントを残す",preview:"プレビュー",edit:"編集する",comment:"コメント","support-markdown":"Markdown 記法をサポートしています","login-with-github":"GitHub にログインする","first-comment-person":"最初にコメントを残しましょう!",commented:"によるコメント","load-more":"もっと見る",counts:"%{counts} つのコメント","sort-asc":"投稿順に並び替え","sort-desc":"最新順で並び替え",logout:"ログアウト",anonymous:"匿名"},ym={init:"초기화 중 ...","no-found-related":"관련 링크를 찾을 수 없습니다: %{link} ","please-contact":"초기화를 위해 %{user} 에게 연락해 주세요","init-issue":"이슈 초기화","leave-a-comment":"댓글을 남겨보세요",preview:"미리보기",edit:"수정하기",comment:"댓글 달기","support-markdown":"마크다운(Markdown) 문법 지원","login-with-github":"GitHub로 로그인하기","first-comment-person":"첫 번째로 댓글을 남겨보세요!",commented:"님이 작성함","load-more":"더 보기",counts:"댓글 %{counts} 개","sort-asc":"오래된 댓글 먼저","sort-desc":"최신 댓글 먼저",logout:"로그아웃",anonymous:"익명"},bm={init:"Gitalking ...","no-found-related":"Nie znaleziono powiązanego zgłoszenia: %{link}","please-contact":"Skontaktuj się z %{user}, aby umożliwić komentowanie","init-issue":"Utwórz zgłoszenie (GitHub Issue)","leave-a-comment":"Skomentuj",preview:"Podgląd",edit:"Edytuj",comment:"Wyślij","support-markdown":"Możesz użyć składni Markdown","login-with-github":"Zaloguj się poprzez GitHub","first-comment-person":"Skomentuj jako pierwszy!",commented:"skomentowany","load-more":"Załaduj więcej",counts:"%{counts} komentarz |||| %{counts} komentarze |||| %{counts} komentarzy","sort-asc":"Sortuj od najstarszych","sort-desc":"Sortuj od najnowszych",logout:"Wyloguj",anonymous:"Anonimowy"},wm={init:"Gitalking ...","no-found-related":"Связанные %{link} не найдены","please-contact":"Пожалуйста, свяжитесь с %{user} чтобы инициализировать комментарий","init-issue":"Выпуск инициализации","leave-a-comment":"Оставить комментарий",preview:"Предварительный просмотр",edit:"Pедактировать",comment:"Комментарий","support-markdown":"Поддерживается Markdown","login-with-github":"Вход через GitHub","first-comment-person":"Будьте первым, кто оставил комментарий",commented:"прокомментированный","load-more":"Загрузить ещё",counts:"%{counts} комментарий |||| %{counts} комментариев","sort-asc":"Сортировать по старым","sort-desc":"Сортировать по последним",logout:"Выход",anonymous:"Анонимный"},ns={init:"Gitalk 加载中 ...","no-found-related":"未找到相关的 %{link} 进行评论","please-contact":"请联系 %{user} 初始化创建","init-issue":"初始化 Issue","leave-a-comment":"说点什么",preview:"预览",edit:"编辑",comment:"评论","support-markdown":"支持 Markdown 语法","login-with-github":"使用 GitHub 登录","first-comment-person":"来做第一个留言的人吧!",commented:"发表于","load-more":"加载更多",counts:"%{counts} 条评论","sort-asc":"从旧到新排序","sort-desc":"从新到旧排序",logout:"注销",anonymous:"未登录用户"},os={zh:ns,"zh-CN":ns,"zh-TW":{init:"Gitalk 載入中…","no-found-related":"未找到相關的 %{link}","please-contact":"請聯絡 %{user} 初始化評論","init-issue":"初始化 Issue","leave-a-comment":"寫點什麼",preview:"預覽",edit:"編輯",comment:"評論","support-markdown":"支援 Markdown 語法","login-with-github":"使用 GitHub 登入","first-comment-person":"成為首個留言的人吧!",commented:"評論於","load-more":"載入更多",counts:"%{counts} 筆評論","sort-asc":"從舊至新排序","sort-desc":"從新至舊排序",logout:"登出",anonymous:"訪客"},en:mm,"es-ES":hm,fr:fm,ru:wm,de:pm,pl:bm,ko:ym,fa:gm,ja:vm},ss=(e=Hr)=>new Zi({phrases:os[e]??os.en,locale:e});var Em=function(e){return function(t,r){var n=P.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},$e=function(){return $e=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$e.apply(this,arguments)};function is(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Tm(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function a(d){try{u(n.next(d))}catch(m){i(m)}}function l(d){try{u(n.throw(d))}catch(m){i(m)}}function u(d){d.done?s(d.value):o(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function _m(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=a(0),i.throw=a(1),i.return=a(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(u){return function(d){return l([u,d])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(s=u[0]&2?o.return:u[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,u[1])).done)return s;switch(o=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(d){u=[6,d],o=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function de(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s}function pe(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var At=function(e){return typeof e=="function"},Ot=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Ye(e){Ot&&(At(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=P.useRef(e);t.current=P.useMemo(function(){return e},[e]);var r=P.useRef();return r.current||(r.current=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t.current.apply(this,n)}),r.current}const Br=Em(P.useEffect);var as=function(e,t){var r=t.manual,n=t.ready,o=n===void 0?!0:n,s=t.defaultParams,i=s===void 0?[]:s,a=t.refreshDeps,l=a===void 0?[]:a,u=t.refreshDepsAction,d=P.useRef(!1);return d.current=!1,Br(function(){!r&&o&&(d.current=!0,e.run.apply(e,pe([],de(i),!1)))},[o]),Br(function(){d.current||r||(d.current=!0,u?u():e.refresh())},pe([],de(l),!1)),{onBefore:function(){if(!o)return{stopNow:!0}}}};as.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function Pm(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function us(e,t){var r=P.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Pm(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function cs(e){var t=P.useRef(e);return t.current=e,t}var Vr=function(e){Ot&&(At(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=cs(e);P.useEffect(function(){return function(){t.current()}},[])},$t=new Map,km=function(e,t,r){var n=$t.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var o=void 0;t>-1&&(o=setTimeout(function(){$t.delete(e)},t)),$t.set(e,$e($e({},r),{timer:o}))},Sm=function(e){return $t.get(e)},Dt=new Map,Am=function(e){return Dt.get(e)},Om=function(e,t){Dt.set(e,t),t.then(function(r){return Dt.delete(e),r}).catch(function(){Dt.delete(e)})},Ue={},$m=function(e,t){Ue[e]&&Ue[e].forEach(function(r){return r(t)})},Xr=function(e,t){return Ue[e]||(Ue[e]=[]),Ue[e].push(t),function(){var n=Ue[e].indexOf(t);Ue[e].splice(n,1)}},Dm=function(e,t){var r=t.cacheKey,n=t.cacheTime,o=n===void 0?5*60*1e3:n,s=t.staleTime,i=s===void 0?0:s,a=t.setCache,l=t.getCache,u=P.useRef(),d=P.useRef(),m=function(f,w){a?a(w):km(f,o,w),$m(f,w.data)},g=function(f,w){return w===void 0&&(w=[]),l?l(w):Sm(f)};return us(function(){if(r){var f=g(r);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(i===-1||new Date().getTime()-f.time<=i)&&(e.state.loading=!1)),u.current=Xr(r,function(w){e.setState({data:w})})}},[]),Vr(function(){var f;(f=u.current)===null||f===void 0||f.call(u)}),r?{onBefore:function(f){var w=g(r,f);return!w||!Object.hasOwnProperty.call(w,"data")?{}:i===-1||new Date().getTime()-w.time<=i?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(f,w){var A=Am(r);return A&&A!==d.current?{servicePromise:A}:(A=f.apply(void 0,pe([],de(w),!1)),d.current=A,Om(r,A),{servicePromise:A})},onSuccess:function(f,w){var A;r&&((A=u.current)===null||A===void 0||A.call(u),m(r,{data:f,params:w,time:new Date().getTime()}),u.current=Xr(r,function(G){e.setState({data:G})}))},onMutate:function(f){var w;r&&((w=u.current)===null||w===void 0||w.call(u),m(r,{data:f,params:e.state.params,time:new Date().getTime()}),u.current=Xr(r,function(A){e.setState({data:A})}))}}:{}},Kr,ls;function Yr(){if(ls)return Kr;ls=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Kr=e,Kr}var Jr,ds;function Gm(){if(ds)return Jr;ds=1;var e=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke;return Jr=e,Jr}var Qr,ps;function ms(){if(ps)return Qr;ps=1;var e=Gm(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Qr=r,Qr}var Zr,hs;function Cm(){if(hs)return Zr;hs=1;var e=ms(),t=function(){return e.Date.now()};return Zr=t,Zr}var en,gs;function Rm(){if(gs)return en;gs=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return en=t,en}var tn,fs;function Fm(){if(fs)return tn;fs=1;var e=Rm(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return tn=r,tn}var rn,vs;function ys(){if(vs)return rn;vs=1;var e=ms(),t=e.Symbol;return rn=t,rn}var nn,bs;function Mm(){if(bs)return nn;bs=1;var e=ys(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function s(i){var a=r.call(i,o),l=i[o];try{i[o]=void 0;var u=!0}catch{}var d=n.call(i);return u&&(a?i[o]=l:delete i[o]),d}return nn=s,nn}var on,ws;function xm(){if(ws)return on;ws=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return on=r,on}var sn,Es;function Nm(){if(Es)return sn;Es=1;var e=ys(),t=Mm(),r=xm(),n="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function i(a){return a==null?a===void 0?o:n:s&&s in Object(a)?t(a):r(a)}return sn=i,sn}var an,Ts;function Wm(){if(Ts)return an;Ts=1;function e(t){return t!=null&&typeof t=="object"}return an=e,an}var un,_s;function Im(){if(_s)return un;_s=1;var e=Nm(),t=Wm(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return un=n,un}var cn,Ps;function Lm(){if(Ps)return cn;Ps=1;var e=Fm(),t=Yr(),r=Im(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var m=s.test(u);return m||i.test(u)?a(u.slice(2),m?2:8):o.test(u)?n:+u}return cn=l,cn}var ln,ks;function Ss(){if(ks)return ln;ks=1;var e=Yr(),t=Cm(),r=Lm(),n="Expected a function",o=Math.max,s=Math.min;function i(a,l,u){var d,m,g,f,w,A,G=0,x=!1,M=!1,y=!0;if(typeof a!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(x=!!u.leading,M="maxWait"in u,g=M?o(r(u.maxWait)||0,l):g,y="trailing"in u?!!u.trailing:y);function E(U){var q=d,ve=m;return d=m=void 0,G=U,f=a.apply(ve,q),f}function S(U){return G=U,w=setTimeout(W,l),x?E(U):f}function O(U){var q=U-A,ve=U-G,me=l-q;return M?s(me,g-ve):me}function C(U){var q=U-A,ve=U-G;return A===void 0||q>=l||q<0||M&&ve>=g}function W(){var U=t();if(C(U))return K(U);w=setTimeout(W,O(U))}function K(U){return w=void 0,y&&d?E(U):(d=m=void 0,f)}function ee(){w!==void 0&&clearTimeout(w),G=0,d=A=m=w=void 0}function ue(){return w===void 0?f:K(t())}function B(){var U=t(),q=C(U);if(d=arguments,m=this,A=U,q){if(w===void 0)return S(A);if(M)return clearTimeout(w),w=setTimeout(W,l),E(A)}return w===void 0&&(w=setTimeout(W,l)),f}return B.cancel=ee,B.flush=ue,B}return ln=i,ln}var jm=Ss();const Um=wt(jm);var qm=function(e,t){var r=t.debounceWait,n=t.debounceLeading,o=t.debounceTrailing,s=t.debounceMaxWait,i=P.useRef(),a=P.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),o!==void 0&&(l.trailing=o),s!==void 0&&(l.maxWait=s),l},[n,o,s]);return P.useEffect(function(){if(r){var l=e.runAsync.bind(e);return i.current=Um(function(u){u()},r,a),e.runAsync=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new Promise(function(m,g){var f;(f=i.current)===null||f===void 0||f.call(i,function(){l.apply(void 0,pe([],de(u),!1)).then(m).catch(g)})})},function(){var u;(u=i.current)===null||u===void 0||u.cancel(),e.runAsync=l}}},[r,a]),r?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel()}}:{}},zm=function(e,t){var r=t.loadingDelay,n=t.ready,o=P.useRef();if(!r)return{};var s=function(){o.current&&clearTimeout(o.current)};return{onBefore:function(){return s(),n!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){s()},onCancel:function(){s()}}},Gt=!!(typeof window<"u"&&window.document&&window.document.createElement);function dn(){return Gt?document.visibilityState!=="hidden":!0}var dt=[];function Hm(e){return dt.push(e),function(){var r=dt.indexOf(e);dt.splice(r,1)}}if(Gt){var Bm=function(){if(dn())for(var e=0;e<dt.length;e++){var t=dt[e];t()}};window.addEventListener("visibilitychange",Bm,!1)}var Vm=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,o=n===void 0?!0:n,s=t.pollingErrorRetryCount,i=s===void 0?-1:s,a=P.useRef(),l=P.useRef(),u=P.useRef(0),d=function(){var m;a.current&&clearTimeout(a.current),(m=l.current)===null||m===void 0||m.call(l)};return Br(function(){r||d()},[r]),r?{onBefore:function(){d()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){i===-1||i!==-1&&u.current<=i?a.current=setTimeout(function(){!o&&!dn()?l.current=Hm(function(){e.refresh()}):e.refresh()},r):u.current=0},onCancel:function(){d()}}:{}};function Xm(e,t){var r=!1;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];r||(r=!0,e.apply(void 0,pe([],de(n),!1)),setTimeout(function(){r=!1},t))}}function Km(){return Gt&&typeof navigator.onLine<"u"?navigator.onLine:!0}var pt=[];function Ym(e){return pt.push(e),function(){var r=pt.indexOf(e);r>-1&&pt.splice(r,1)}}if(Gt){var As=function(){if(!(!dn()||!Km()))for(var e=0;e<pt.length;e++){var t=pt[e];t()}};window.addEventListener("visibilitychange",As,!1),window.addEventListener("focus",As,!1)}var Jm=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,o=n===void 0?5e3:n,s=P.useRef(),i=function(){var a;(a=s.current)===null||a===void 0||a.call(s)};return P.useEffect(function(){if(r){var a=Xm(e.refresh.bind(e),o);s.current=Ym(function(){a()})}return function(){i()}},[r,o]),Vr(function(){i()}),{}},Qm=function(e,t){var r=t.retryInterval,n=t.retryCount,o=P.useRef(),s=P.useRef(0),i=P.useRef(!1);return n?{onBefore:function(){i.current||(s.current=0),i.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){s.current=0},onError:function(){if(s.current+=1,n===-1||s.current<=n){var a=r??Math.min(1e3*Math.pow(2,s.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh()},a)}else s.current=0},onCancel:function(){s.current=0,o.current&&clearTimeout(o.current)}}:{}},pn,Os;function Zm(){if(Os)return pn;Os=1;var e=Ss(),t=Yr(),r="Expected a function";function n(o,s,i){var a=!0,l=!0;if(typeof o!="function")throw new TypeError(r);return t(i)&&(a="leading"in i?!!i.leading:a,l="trailing"in i?!!i.trailing:l),e(o,s,{leading:a,maxWait:s,trailing:l})}return pn=n,pn}var eh=Zm();const th=wt(eh);var rh=function(e,t){var r=t.throttleWait,n=t.throttleLeading,o=t.throttleTrailing,s=P.useRef(),i={};return n!==void 0&&(i.leading=n),o!==void 0&&(i.trailing=o),P.useEffect(function(){if(r){var a=e.runAsync.bind(e);return s.current=th(function(l){l()},r,i),e.runAsync=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new Promise(function(d,m){var g;(g=s.current)===null||g===void 0||g.call(s,function(){a.apply(void 0,pe([],de(l),!1)).then(d).catch(m)})})},function(){var l;e.runAsync=a,(l=s.current)===null||l===void 0||l.cancel()}}},[r,n,o]),r?{onCancel:function(){var a;(a=s.current)===null||a===void 0||a.cancel()}}:{}},nh=function(e){Ot&&(At(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),P.useEffect(function(){e==null||e()},[])},oh=function(){var e=de(P.useState({}),2),t=e[1];return P.useCallback(function(){return t({})},[])},sh=function(){function e(t,r,n,o){o===void 0&&(o={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=$e($e($e({},this.state),{loading:!r.manual}),o)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=$e($e({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.pluginImpls.map(function(s){var i;return(i=s[t])===null||i===void 0?void 0:i.call.apply(i,pe([s],de(r),!1))}).filter(Boolean);return Object.assign.apply(Object,pe([{}],de(o),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Tm(this,void 0,void 0,function(){var n,o,s,i,a,l,u,d,m,g,f,w,A,G,x,M,y,E,S,O,C;return _m(this,function(W){switch(W.label){case 0:if(this.count+=1,n=this.count,o=this.runPluginHandler("onBefore",t),s=o.stopNow,i=s===void 0?!1:s,a=o.returnNow,l=a===void 0?!1:a,u=is(o,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState($e({loading:!0,params:t},u)),l)return[2,Promise.resolve(u.data)];(A=(w=this.options).onBefore)===null||A===void 0||A.call(w,t),W.label=1;case 1:return W.trys.push([1,3,,4]),d=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,d||(d=(f=this.serviceRef).current.apply(f,pe([],de(t),!1))),[4,d];case 2:return m=W.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:m,error:void 0,loading:!1}),(x=(G=this.options).onSuccess)===null||x===void 0||x.call(G,m,t),this.runPluginHandler("onSuccess",m,t),(y=(M=this.options).onFinally)===null||y===void 0||y.call(M,t,m,void 0),n===this.count&&this.runPluginHandler("onFinally",t,m,void 0),[2,m]);case 3:if(g=W.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:g,loading:!1}),(S=(E=this.options).onError)===null||S===void 0||S.call(E,g,t),this.runPluginHandler("onError",g,t),(C=(O=this.options).onFinally)===null||C===void 0||C.call(O,t,void 0,g),n===this.count&&this.runPluginHandler("onFinally",t,void 0,g),g;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,pe([],de(r),!1)).catch(function(o){t.options.onError||console.error(o)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,pe([],de(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,pe([],de(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=At(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function ih(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,o=n===void 0?!1:n,s=t.ready,i=s===void 0?!0:s,a=is(t,["manual","ready"]);Ot&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var l=$e({manual:o,ready:i},a),u=cs(e),d=oh(),m=us(function(){var g=r.map(function(f){var w;return(w=f==null?void 0:f.onInit)===null||w===void 0?void 0:w.call(f,l)}).filter(Boolean);return new sh(u,l,d,Object.assign.apply(Object,pe([{}],de(g),!1)))},[]);return m.options=l,m.pluginImpls=r.map(function(g){return g(m,l)}),nh(function(){if(!o&&i){var g=m.state.params||t.defaultParams||[];m.run.apply(m,pe([],de(g),!1))}}),Vr(function(){m.cancel()}),{loading:m.state.loading,data:m.state.data,error:m.state.error,params:m.state.params||[],cancel:Ye(m.cancel.bind(m)),refresh:Ye(m.refresh.bind(m)),refreshAsync:Ye(m.refreshAsync.bind(m)),run:Ye(m.run.bind(m)),runAsync:Ye(m.runAsync.bind(m)),mutate:Ye(m.mutate.bind(m))}}function We(e,t,r){return ih(e,t,pe(pe([],de([]),!1),[qm,zm,Vm,Jm,rh,as,Dm,Qm],!1))}function Ct(e){var t=!1;return function(){t||(console.warn(e),t=!0)}}var ah=Ct(`
|
|
1
|
+
(function(_,P){typeof exports=="object"&&typeof module<"u"?module.exports=P(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],P):(_=typeof globalThis<"u"?globalThis:_||self,_.Gitalk=P(_.jsx,_.React,_.ReactDOM))})(this,function(_,P,je){"use strict";var cv=Object.defineProperty;var lv=(_,P,je)=>P in _?cv(_,P,{enumerable:!0,configurable:!0,writable:!0,value:je}):_[P]=je;var oe=(_,P,je)=>lv(_,typeof P!="symbol"?P+"":P,je);var Wt;var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut,Cn;function Rn(){if(Cn)return Ut;Cn=1;var e=Object.prototype.toString;return Ut=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},Ut}var qt,Fn;function Ei(){if(Fn)return qt;Fn=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Rn(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(g){var f=g.constructor;return f&&f.prototype===g},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var g in window)try{if(!u["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{l(window[g])}catch{return!0}}catch{return!0}return!1}(),m=function(g){if(typeof window>"u"||!d)return l(g);try{return l(g)}catch{return!1}};e=function(f){var w=f!==null&&typeof f=="object",A=r.call(f)==="[object Function]",G=n(f),x=w&&r.call(f)==="[object String]",M=[];if(!w&&!A&&!G)throw new TypeError("Object.keys called on a non-object");var y=i&&A;if(x&&f.length>0&&!t.call(f,0))for(var E=0;E<f.length;++E)M.push(String(E));if(G&&f.length>0)for(var S=0;S<f.length;++S)M.push(String(S));else for(var O in f)!(y&&O==="prototype")&&t.call(f,O)&&M.push(String(O));if(s)for(var C=m(f),W=0;W<a.length;++W)!(C&&a[W]==="constructor")&&t.call(f,a[W])&&M.push(a[W]);return M}}return qt=e,qt}var zt,Mn;function Ti(){if(Mn)return zt;Mn=1;var e=Array.prototype.slice,t=Rn(),r=Object.keys,n=r?function(i){return r(i)}:Ei(),o=Object.keys;return n.shim=function(){if(Object.keys){var i=function(){var a=Object.keys(arguments);return a&&a.length===arguments.length}(1,2);i||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},zt=n,zt}var Ht,xn;function Et(){if(xn)return Ht;xn=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Ht=e,Ht}var Bt,Nn;function Wn(){return Nn||(Nn=1,Bt=SyntaxError),Bt}var Vt,In;function at(){return In||(In=1,Vt=TypeError),Vt}var Xt,Ln;function _i(){return Ln||(Ln=1,Xt=Object.getOwnPropertyDescriptor),Xt}var Kt,jn;function Tt(){if(jn)return Kt;jn=1;var e=_i();if(e)try{e([],"length")}catch{e=null}return Kt=e,Kt}var Yt,Un;function qn(){if(Un)return Yt;Un=1;var e=Et(),t=Wn(),r=at(),n=Tt();return Yt=function(s,i,a){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,g=!!n&&n(s,i);if(e)e(s,i,{configurable:d===null&&g?g.configurable:!d,enumerable:l===null&&g?g.enumerable:!l,value:a,writable:u===null&&g?g.writable:!u});else if(m||!l&&!u&&!d)s[i]=a;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Yt}var Jt,zn;function Hn(){if(zn)return Jt;zn=1;var e=Et(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Jt=t,Jt}var Qt,Bn;function Vn(){if(Bn)return Qt;Bn=1;var e=Ti(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=qn(),s=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},i=Hn()(),a=function(u,d,m,g){if(d in u){if(g===!0){if(u[d]===m)return}else if(!s(g)||!g())return}i?o(u,d,m,!0):o(u,d,m)},l=function(u,d){var m=arguments.length>2?arguments[2]:{},g=e(d);t&&(g=n.call(g,Object.getOwnPropertySymbols(d)));for(var f=0;f<g.length;f+=1)a(u,g[f],d[g[f]],m[g[f]])};return l.supportsDescriptors=!!i,Qt=l,Qt}var Zt={exports:{}},er,Xn;function Kn(){return Xn||(Xn=1,er=Object),er}var tr,Yn;function Pi(){return Yn||(Yn=1,tr=Error),tr}var rr,Jn;function ki(){return Jn||(Jn=1,rr=EvalError),rr}var nr,Qn;function Si(){return Qn||(Qn=1,nr=RangeError),nr}var or,Zn;function Ai(){return Zn||(Zn=1,or=ReferenceError),or}var sr,eo;function Oi(){return eo||(eo=1,sr=URIError),sr}var ir,to;function $i(){return to||(to=1,ir=Math.abs),ir}var ar,ro;function Di(){return ro||(ro=1,ar=Math.floor),ar}var ur,no;function Gi(){return no||(no=1,ur=Math.max),ur}var cr,oo;function Ci(){return oo||(oo=1,cr=Math.min),cr}var lr,so;function Ri(){return so||(so=1,lr=Math.pow),lr}var dr,io;function Fi(){return io||(io=1,dr=Math.round),dr}var pr,ao;function Mi(){return ao||(ao=1,pr=Number.isNaN||function(t){return t!==t}),pr}var mr,uo;function xi(){if(uo)return mr;uo=1;var e=Mi();return mr=function(r){return e(r)||r===0?r:r<0?-1:1},mr}var hr,co;function Ni(){return co||(co=1,hr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}),hr}var gr,lo;function Wi(){if(lo)return gr;lo=1;var e=typeof Symbol<"u"&&Symbol,t=Ni();return gr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},gr}var fr,po;function mo(){return po||(po=1,fr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),fr}var vr,ho;function go(){if(ho)return vr;ho=1;var e=Kn();return vr=e.getPrototypeOf||null,vr}var yr,fo;function Ii(){if(fo)return yr;fo=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,u){for(var d=[],m=0;m<l.length;m+=1)d[m]=l[m];for(var g=0;g<u.length;g+=1)d[g+l.length]=u[g];return d},s=function(l,u){for(var d=[],m=u,g=0;m<l.length;m+=1,g+=1)d[g]=l[m];return d},i=function(a,l){for(var u="",d=0;d<a.length;d+=1)u+=a[d],d+1<a.length&&(u+=l);return u};return yr=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var d=s(arguments,1),m,g=function(){if(this instanceof m){var x=u.apply(this,o(d,arguments));return Object(x)===x?x:this}return u.apply(l,o(d,arguments))},f=r(0,u.length-d.length),w=[],A=0;A<f;A++)w[A]="$"+A;if(m=Function("binder","return function ("+i(w,",")+"){ return binder.apply(this,arguments); }")(g),u.prototype){var G=function(){};G.prototype=u.prototype,m.prototype=new G,G.prototype=null}return m},yr}var br,vo;function ut(){if(vo)return br;vo=1;var e=Ii();return br=Function.prototype.bind||e,br}var wr,yo;function Er(){return yo||(yo=1,wr=Function.prototype.call),wr}var Tr,bo;function _r(){return bo||(bo=1,Tr=Function.prototype.apply),Tr}var Pr,wo;function Li(){return wo||(wo=1,Pr=typeof Reflect<"u"&&Reflect&&Reflect.apply),Pr}var kr,Eo;function To(){if(Eo)return kr;Eo=1;var e=ut(),t=_r(),r=Er(),n=Li();return kr=n||e.call(r,t),kr}var Sr,_o;function Ar(){if(_o)return Sr;_o=1;var e=ut(),t=at(),r=Er(),n=To();return Sr=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},Sr}var Or,Po;function ji(){if(Po)return Or;Po=1;var e=Ar(),t=Tt(),r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,s=o.getPrototypeOf;return Or=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(a){return s(a==null?a:o(a))}:!1,Or}var $r,ko;function Ui(){if(ko)return $r;ko=1;var e=mo(),t=go(),r=ji();return $r=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,$r}var Dr,So;function Ao(){if(So)return Dr;So=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ut();return Dr=r.call(e,t),Dr}var Gr,Oo;function $o(){if(Oo)return Gr;Oo=1;var e,t=Kn(),r=Pi(),n=ki(),o=Si(),s=Ai(),i=Wn(),a=at(),l=Oi(),u=$i(),d=Di(),m=Gi(),g=Ci(),f=Ri(),w=Fi(),A=xi(),G=Function,x=function(ye){try{return G('"use strict"; return ('+ye+").constructor;")()}catch{}},M=Tt(),y=Et(),E=function(){throw new a},S=M?function(){try{return arguments.callee,E}catch{try{return M(arguments,"callee").get}catch{return E}}}():E,O=Wi()(),C=Ui(),W=go(),K=mo(),ee=_r(),ue=Er(),B={},U=typeof Uint8Array>"u"||!C?e:C(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":O&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":B,"%AsyncGenerator%":B,"%AsyncGeneratorFunction%":B,"%AsyncIteratorPrototype%":B,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":G,"%GeneratorFunction%":B,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":M,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&C?C(""[Symbol.iterator]()):e,"%Symbol%":O?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":S,"%TypedArray%":U,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":ue,"%Function.prototype.apply%":ee,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":W,"%Math.abs%":u,"%Math.floor%":d,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":w,"%Math.sign%":A,"%Reflect.getPrototypeOf%":K};if(C)try{null.error}catch(ye){var ve=C(C(ye));q["%Error.prototype%"]=ve}var me=function ye(H){var Z;if(H==="%AsyncFunction%")Z=x("async function () {}");else if(H==="%GeneratorFunction%")Z=x("function* () {}");else if(H==="%AsyncGeneratorFunction%")Z=x("async function* () {}");else if(H==="%AsyncGenerator%"){var X=ye("%AsyncGeneratorFunction%");X&&(Z=X.prototype)}else if(H==="%AsyncIteratorPrototype%"){var re=ye("%AsyncGenerator%");re&&C&&(Z=C(re.prototype))}return q[H]=Z,Z},De={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ge=ut(),Pe=Ao(),xe=Ge.call(ue,Array.prototype.concat),He=Ge.call(ee,Array.prototype.splice),nt=Ge.call(ue,String.prototype.replace),Fe=Ge.call(ue,String.prototype.slice),Be=Ge.call(ue,RegExp.prototype.exec),ot=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ne=/\\(\\)?/g,Ve=function(H){var Z=Fe(H,0,1),X=Fe(H,-1);if(Z==="%"&&X!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&Z!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var re=[];return nt(H,ot,function(be,Ce,ne,he){re[re.length]=ne?nt(he,Ne,"$1"):Ce||be}),re},ke=function(H,Z){var X=H,re;if(Pe(De,X)&&(re=De[X],X="%"+re[0]+"%"),Pe(q,X)){var be=q[X];if(be===B&&(be=me(X)),typeof be>"u"&&!Z)throw new a("intrinsic "+H+" exists, but is not available. Please file an issue!");return{alias:re,name:X,value:be}}throw new i("intrinsic "+H+" does not exist!")};return Gr=function(H,Z){if(typeof H!="string"||H.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Be(/^%?[^%]*%?$/,H)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=Ve(H),re=X.length>0?X[0]:"",be=ke("%"+re+"%",Z),Ce=be.name,ne=be.value,he=!1,V=be.alias;V&&(re=V[0],He(X,xe([0,1],V)));for(var we=1,Re=!0;we<X.length;we+=1){var ge=X[we],Me=Fe(ge,0,1),se=Fe(ge,-1);if((Me==='"'||Me==="'"||Me==="`"||se==='"'||se==="'"||se==="`")&&Me!==se)throw new i("property names with quotes must have matching quotes");if((ge==="constructor"||!Re)&&(he=!0),re+="."+ge,Ce="%"+re+"%",Pe(q,Ce))ne=q[Ce];else if(ne!=null){if(!(ge in ne)){if(!Z)throw new a("base intrinsic for "+H+" exists, but the property is not available.");return}if(M&&we+1>=X.length){var L=M(ne,ge);Re=!!L,Re&&"get"in L&&!("originalValue"in L.get)?ne=L.get:ne=ne[ge]}else Re=Pe(ne,ge),ne=ne[ge];Re&&!he&&(q[Ce]=ne)}}return ne},Gr}var Cr,Do;function qi(){if(Do)return Cr;Do=1;var e=$o(),t=qn(),r=Hn()(),n=Tt(),o=at(),s=e("%Math.floor%");return Cr=function(a,l){if(typeof a!="function")throw new o("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new o("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],d=!0,m=!0;if("length"in a&&n){var g=n(a,"length");g&&!g.configurable&&(d=!1),g&&!g.writable&&(m=!1)}return(d||m||!u)&&(r?t(a,"length",l,!0,!0):t(a,"length",l)),a},Cr}var Rr,Go;function zi(){if(Go)return Rr;Go=1;var e=ut(),t=_r(),r=To();return Rr=function(){return r(e,t,arguments)},Rr}var Co;function Hi(){return Co||(Co=1,function(e){var t=qi(),r=Et(),n=Ar(),o=zi();e.exports=function(i){var a=n(arguments),l=i.length-(arguments.length-1);return t(a,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Zt)),Zt.exports}var Fr,Ro;function Bi(){if(Ro)return Fr;Ro=1;var e=at();return Fr=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},Fr}var Mr,Fo;function Vi(){if(Fo)return Mr;Fo=1;var e=$o(),t=Ar(),r=t([e("%String.prototype.indexOf%")]);return Mr=function(o,s){var i=e(o,!!s);return typeof i=="function"&&r(o,".prototype.")>-1?t([i]):i},Mr}var xr,Mo;function xo(){if(Mo)return xr;Mo=1;var e=Bi(),t=Vi(),r=t("Object.prototype.propertyIsEnumerable"),n=t("Array.prototype.push");return xr=function(s){var i=e(s),a=[];for(var l in i)r(i,l)&&n(a,[l,i[l]]);return a},xr}var Nr,No;function Wo(){if(No)return Nr;No=1;var e=xo();return Nr=function(){return typeof Object.entries=="function"?Object.entries:e},Nr}var Wr,Io;function Xi(){if(Io)return Wr;Io=1;var e=Wo(),t=Vn();return Wr=function(){var n=e();return t(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},Wr}var Ir,Lo;function Ki(){if(Lo)return Ir;Lo=1;var e=Vn(),t=Hi(),r=xo(),n=Wo(),o=Xi(),s=t(n(),Object);return e(s,{getPolyfill:n,implementation:r,shim:o}),Ir=s,Ir}var Lr,jo;function Yi(){if(jo)return Lr;jo=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var r=function(o,s){var i=arguments.length;s=new Array(i>1?i-1:0);for(var a=1;a<i;a++)s[a-1]=arguments[a];var l=0,u="Warning: "+o.replace(/%s/g,function(){return s[l++]});typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}};t=function(n,o,s){var i=arguments.length;s=new Array(i>2?i-2:0);for(var a=2;a<i;a++)s[a-2]=arguments[a];if(o===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||r.apply(null,[o].concat(s))}}return Lr=t,Lr}var jr,Uo;function Ji(){if(Uo)return jr;Uo=1;var e=Ki(),t=Yi(),r=Ao(),n=function(E){t(!1,E)},o=String.prototype.replace,s=String.prototype.split,i="||||",a=function(y){var E=y%100,S=E%10;return E!==11&&S===1?0:2<=S&&S<=4&&!(E>=12&&E<=14)?1:2},l={pluralTypes:{arabic:function(y){if(y<3)return y;var E=y%100;return E>=3&&E<=10?3:E>=11?4:5},bosnian_serbian:a,chinese:function(){return 0},croatian:a,french:function(y){return y>=2?1:0},german:function(y){return y!==1?1:0},russian:a,lithuanian:function(y){return y%10===1&&y%100!==11?0:y%10>=2&&y%10<=9&&(y%100<11||y%100>19)?1:2},czech:function(y){return y===1?0:y>=2&&y<=4?1:2},polish:function(y){if(y===1)return 0;var E=y%10;return 2<=E&&E<=4&&(y%100<10||y%100>=20)?1:2},icelandic:function(y){return y%10!==1||y%100===11?1:0},slovenian:function(y){var E=y%100;return E===1?0:E===2?1:E===3||E===4?2:3},romanian:function(y){if(y===1)return 0;var E=y%100;return y===0||E>=2&&E<=19?1:2},ukrainian:a},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function u(y){for(var E={},S=e(y),O=0;O<S.length;O+=1)for(var C=S[O][0],W=S[O][1],K=0;K<W.length;K+=1)E[W[K]]=C;return E}function d(y,E){var S=u(y.pluralTypeToLanguages);return S[E]||S[s.call(E,/-/,1)[0]]||S.en}function m(y,E,S){return y.pluralTypes[E](S)}function g(){var y={};return function(E,S){var O=y[S];return O&&!E.pluralTypes[O]&&(O=null,y[S]=O),O||(O=d(E,S),O&&(y[S]=O)),O}}function f(y){return y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(y){var E=y&&y.prefix||"%{",S=y&&y.suffix||"}";if(E===i||S===i)throw new RangeError('"'+i+'" token is reserved for pluralization');return new RegExp(f(E)+"(.*?)"+f(S),"g")}var A=g(),G=/%\{(.*?)\}/g;function x(y,E,S,O,C,W){if(typeof y!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(E==null)return y;var K=y,ee=O||G,ue=W||o,B=typeof E=="number"?{smart_count:E}:E;if(B.smart_count!=null&&y){var U=C||l,q=s.call(y,i),ve=S||"en",me=A(U,ve),De=m(U,me,B.smart_count);K=o.call(q[De]||q[0],/^[^\S]*|[^\S]*$/g,"")}return K=ue.call(K,ee,function(Ge,Pe){return!r(B,Pe)||B[Pe]==null?Ge:B[Pe]}),K}function M(y){var E=y||{};this.phrases={},this.extend(E.phrases||{}),this.currentLocale=E.locale||"en";var S=E.allowMissing?x:null;this.onMissingKey=typeof E.onMissingKey=="function"?E.onMissingKey:S,this.warn=E.warn||n,this.replaceImplementation=E.replace||o,this.tokenRegex=w(E.interpolation),this.pluralRules=E.pluralRules||l}return M.prototype.locale=function(y){return y&&(this.currentLocale=y),this.currentLocale},M.prototype.extend=function(y,E){for(var S=e(y||{}),O=0;O<S.length;O+=1){var C=S[O][0],W=S[O][1],K=E?E+"."+C:C;typeof W=="object"?this.extend(W,K):this.phrases[K]=W}},M.prototype.unset=function(y,E){if(typeof y=="string")delete this.phrases[y];else for(var S=e(y||{}),O=0;O<S.length;O+=1){var C=S[O][0],W=S[O][1],K=E?E+"."+C:C;typeof W=="object"?this.unset(W,K):delete this.phrases[K]}},M.prototype.clear=function(){this.phrases={}},M.prototype.replace=function(y){this.clear(),this.extend(y)},M.prototype.t=function(y,E){var S,O,C=E??{};if(typeof this.phrases[y]=="string")S=this.phrases[y];else if(typeof C._=="string")S=C._;else if(this.onMissingKey){var W=this.onMissingKey;O=W(y,C,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+y+'"'),O=y;return typeof S=="string"&&(O=x(S,C,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),O},M.prototype.has=function(y){return r(this.phrases,y)},M.transformPhrase=function(E,S,O){return x(E,S,O)},jr=M,jr}var Qi=Ji();const Zi=wt(Qi);function j(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}function R(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}function F(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const i=s[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?ta(a,m=>m.test(i)):ea(a,m=>m.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function ea(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function ta(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Ae(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=r.valueCallback?r.valueCallback(i):i;const a=t.slice(o.length);return{value:i,rest:a}}}const qo=6e4,zo=36e5,_t=43200,Ho=1440,Bo=Symbol.for("constructDateFrom");function Pt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Bo in e?e[Bo](t):e instanceof Date?new e.constructor(t):new Date(t)}function kt(e,...t){const r=Pt.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}let ra={};function Vo(){return ra}function Oe(e,t){return Pt(t||e,e)}function Xo(e,t){var a,l,u,d;const r=Vo(),n=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,o=Oe(e,t==null?void 0:t.in),s=o.getDay(),i=(s<n?7:0)+s-n;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function St(e,t,r){const[n,o]=kt(r==null?void 0:r.in,e,t);return+Xo(n,r)==+Xo(o,r)}const Ko={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},na=(e,t,r)=>{let n;const o=r!=null&&r.addSuffix?Ko[e].withPreposition:Ko[e].standalone;return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:"vor "+n:n},oa={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},sa={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ia={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},aa={date:j({formats:oa,defaultWidth:"full"}),time:j({formats:sa,defaultWidth:"full"}),dateTime:j({formats:ia,defaultWidth:"full"})},ua={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},ca=(e,t,r,n)=>ua[e],la={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},da={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Ur={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},pa={narrow:Ur.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Ur.wide},ma={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},ha={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},ga={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},fa={ordinalNumber:e=>Number(e)+".",era:R({values:la,defaultWidth:"wide"}),quarter:R({values:da,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Ur,formattingValues:pa,defaultWidth:"wide"}),day:R({values:ma,defaultWidth:"wide"}),dayPeriod:R({values:ha,defaultWidth:"wide",formattingValues:ga,defaultFormattingWidth:"wide"})},va=/^(\d+)(\.)?/i,ya=/\d+/i,ba={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},wa={any:[/^v/i,/^n/i]},Ea={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},Ta={any:[/1/i,/2/i,/3/i,/4/i]},_a={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},Pa={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:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ka={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Sa={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Aa={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Oa={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},$a={ordinalNumber:Ae({matchPattern:va,parsePattern:ya,valueCallback:e=>parseInt(e)}),era:F({matchPatterns:ba,defaultMatchWidth:"wide",parsePatterns:wa,defaultParseWidth:"any"}),quarter:F({matchPatterns:Ea,defaultMatchWidth:"wide",parsePatterns:Ta,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:_a,defaultMatchWidth:"wide",parsePatterns:Pa,defaultParseWidth:"any"}),day:F({matchPatterns:ka,defaultMatchWidth:"wide",parsePatterns:Sa,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Aa,defaultMatchWidth:"wide",parsePatterns:Oa,defaultParseWidth:"any"})},Da={code:"de",formatDistance:na,formatLong:aa,formatRelative:ca,localize:fa,match:$a,options:{weekStartsOn:1,firstWeekContainsDate:4}},Ga={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"}},Ca=(e,t,r)=>{let n;const o=Ga[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},Ra={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fa=(e,t,r,n)=>Ra[e],Ma={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xa={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Na={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"]},Ia={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"}},La={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"}},ja={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:R({values:Ma,defaultWidth:"wide"}),quarter:R({values:xa,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Na,defaultWidth:"wide"}),day:R({values:Wa,defaultWidth:"wide"}),dayPeriod:R({values:Ia,defaultWidth:"wide",formattingValues:La,defaultFormattingWidth:"wide"})},Ua=/^(\d+)(th|st|nd|rd)?/i,qa=/\d+/i,za={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},Ha={any:[/^b/i,/^(a|c)/i]},Ba={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Va={any:[/1/i,/2/i,/3/i,/4/i]},Xa={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},Ka={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]},Ya={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},Ja={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]},Qa={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},Za={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}},eu={ordinalNumber:Ae({matchPattern:Ua,parsePattern:qa,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:za,defaultMatchWidth:"wide",parsePatterns:Ha,defaultParseWidth:"any"}),quarter:F({matchPatterns:Ba,defaultMatchWidth:"wide",parsePatterns:Va,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Xa,defaultMatchWidth:"wide",parsePatterns:Ka,defaultParseWidth:"any"}),day:F({matchPatterns:Ya,defaultMatchWidth:"wide",parsePatterns:Ja,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Qa,defaultMatchWidth:"any",parsePatterns:Za,defaultParseWidth:"any"})},tu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ru={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ou={date:j({formats:tu,defaultWidth:"full"}),time:j({formats:ru,defaultWidth:"full"}),dateTime:j({formats:nu,defaultWidth:"full"})},Yo={code:"en-US",formatDistance:Ca,formatLong:ou,formatRelative:Fa,localize:ja,match:eu,options:{weekStartsOn:0,firstWeekContainsDate:1}},su={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},iu=(e,t,r)=>{let n;const o=su[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+n:"hace "+n:n},au={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},uu={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},cu={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lu={date:j({formats:au,defaultWidth:"full"}),time:j({formats:uu,defaultWidth:"full"}),dateTime:j({formats:cu,defaultWidth:"full"})},du={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},pu={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},mu=(e,t,r,n)=>t.getHours()!==1?pu[e]:du[e],hu={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},gu={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},fu={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},vu={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},yu={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},bu={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},wu={ordinalNumber:(e,t)=>Number(e)+"º",era:R({values:hu,defaultWidth:"wide"}),quarter:R({values:gu,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:R({values:fu,defaultWidth:"wide"}),day:R({values:vu,defaultWidth:"wide"}),dayPeriod:R({values:yu,defaultWidth:"wide",formattingValues:bu,defaultFormattingWidth:"wide"})},Eu=/^(\d+)(º)?/i,Tu=/\d+/i,_u={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},Pu={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},ku={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Su={any:[/1/i,/2/i,/3/i,/4/i]},Au={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},Ou={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},$u={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Du={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},Gu={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},Cu={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Ru={ordinalNumber:Ae({matchPattern:Eu,parsePattern:Tu,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:_u,defaultMatchWidth:"wide",parsePatterns:Pu,defaultParseWidth:"any"}),quarter:F({matchPatterns:ku,defaultMatchWidth:"wide",parsePatterns:Su,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Au,defaultMatchWidth:"wide",parsePatterns:Ou,defaultParseWidth:"any"}),day:F({matchPatterns:$u,defaultMatchWidth:"wide",parsePatterns:Du,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Gu,defaultMatchWidth:"any",parsePatterns:Cu,defaultParseWidth:"any"})},Fu={code:"es",formatDistance:iu,formatLong:lu,formatRelative:mu,localize:wu,match:Ru,options:{weekStartsOn:1,firstWeekContainsDate:1}},Mu={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},xu=(e,t,r)=>{let n;const o=Mu[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"در "+n:n+" قبل":n},Nu={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},Wu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Iu={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lu={date:j({formats:Nu,defaultWidth:"full"}),time:j({formats:Wu,defaultWidth:"full"}),dateTime:j({formats:Iu,defaultWidth:"full"})},ju={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},Uu=(e,t,r,n)=>ju[e],qu={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},zu={narrow:["1","2","3","4"],abbreviated:["سم1","سم2","سم3","سم4"],wide:["سهماهه 1","سهماهه 2","سهماهه 3","سهماهه 4"]},Hu={narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},Bu={narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},Vu={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمهشب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبلازظهر",pm:"بعدازظهر",midnight:"نیمهشب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},Xu={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمهشب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبلازظهر",pm:"بعدازظهر",midnight:"نیمهشب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},Ku={ordinalNumber:(e,t)=>String(e),era:R({values:qu,defaultWidth:"wide"}),quarter:R({values:zu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Hu,defaultWidth:"wide"}),day:R({values:Bu,defaultWidth:"wide"}),dayPeriod:R({values:Vu,defaultWidth:"wide",formattingValues:Xu,defaultFormattingWidth:"wide"})},Yu=/^(\d+)(th|st|nd|rd)?/i,Ju=/\d+/i,Qu={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},Zu={any:[/^قبل/i,/^بعد/i]},ec={narrow:/^[1234]/i,abbreviated:/^سم[1234]/i,wide:/^سهماهه [1234]/i},tc={any:[/1/i,/2/i,/3/i,/4/i]},rc={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},nc={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},oc={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سهشنبه|چهارشنبه|پنجشنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سهشنبه|چهارشنبه|پنجشنبه|جمعه|شنبه)/i},sc={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سهشنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},ic={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمهشب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبلازظهر|نیمهشب|ظهر|صبح|بعدازظهر|عصر|شب)/i},ac={any:{am:/^(ق|ق.ظ.|قبلازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(نیمهشب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},uc={ordinalNumber:Ae({matchPattern:Yu,parsePattern:Ju,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Qu,defaultMatchWidth:"wide",parsePatterns:Zu,defaultParseWidth:"any"}),quarter:F({matchPatterns:ec,defaultMatchWidth:"wide",parsePatterns:tc,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:rc,defaultMatchWidth:"wide",parsePatterns:nc,defaultParseWidth:"any"}),day:F({matchPatterns:oc,defaultMatchWidth:"wide",parsePatterns:sc,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:ic,defaultMatchWidth:"wide",parsePatterns:ac,defaultParseWidth:"any"})},cc={code:"fa-IR",formatDistance:xu,formatLong:Lu,formatRelative:Uu,localize:Ku,match:uc,options:{weekStartsOn:6,firstWeekContainsDate:1}},lc={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},dc=(e,t,r)=>{let n;const o=lc[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+n:"il y a "+n:n},pc={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},mc={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},hc={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gc={date:j({formats:pc,defaultWidth:"full"}),time:j({formats:mc,defaultWidth:"full"}),dateTime:j({formats:hc,defaultWidth:"full"})},fc={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},vc=(e,t,r,n)=>fc[e],yc={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},bc={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},wc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},Ec={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},Tc={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},_c=(e,t)=>{const r=Number(e),n=t==null?void 0:t.unit;if(r===0)return"0";const o=["year","week","hour","minute","second"];let s;return r===1?s=n&&o.includes(n)?"ère":"er":s="ème",r+s},Pc=["MMM","MMMM"],kc={preprocessor:(e,t)=>e.getDate()===1||!t.some(n=>n.isToken&&Pc.includes(n.value))?t:t.map(n=>n.isToken&&n.value==="do"?{isToken:!0,value:"d"}:n),ordinalNumber:_c,era:R({values:yc,defaultWidth:"wide"}),quarter:R({values:bc,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:wc,defaultWidth:"wide"}),day:R({values:Ec,defaultWidth:"wide"}),dayPeriod:R({values:Tc,defaultWidth:"wide"})},Sc=/^(\d+)(ième|ère|ème|er|e)?/i,Ac=/\d+/i,Oc={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},$c={any:[/^av/i,/^ap/i]},Dc={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},Gc={any:[/1/i,/2/i,/3/i,/4/i]},Cc={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},Rc={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,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},Fc={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},Mc={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},xc={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},Nc={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},Wc={ordinalNumber:Ae({matchPattern:Sc,parsePattern:Ac,valueCallback:e=>parseInt(e)}),era:F({matchPatterns:Oc,defaultMatchWidth:"wide",parsePatterns:$c,defaultParseWidth:"any"}),quarter:F({matchPatterns:Dc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Cc,defaultMatchWidth:"wide",parsePatterns:Rc,defaultParseWidth:"any"}),day:F({matchPatterns:Fc,defaultMatchWidth:"wide",parsePatterns:Mc,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:xc,defaultMatchWidth:"any",parsePatterns:Nc,defaultParseWidth:"any"})},Ic={code:"fr",formatDistance:dc,formatLong:gc,formatRelative:vc,localize:kc,match:Wc,options:{weekStartsOn:1,firstWeekContainsDate:4}},Lc={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},jc=(e,t,r)=>{r=r||{};let n;const o=Lc[e];return typeof o=="string"?n=o:t===1?r.addSuffix&&o.oneWithSuffix?n=o.oneWithSuffix:n=o.one:r.addSuffix&&o.otherWithSuffix?n=o.otherWithSuffix.replace("{{count}}",String(t)):n=o.other.replace("{{count}}",String(t)),r.addSuffix?r.comparison&&r.comparison>0?n+"後":n+"前":n},Uc={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},qc={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},zc={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Hc={date:j({formats:Uc,defaultWidth:"full"}),time:j({formats:qc,defaultWidth:"full"}),dateTime:j({formats:zc,defaultWidth:"full"})},Bc={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Vc=(e,t,r,n)=>Bc[e],Xc={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},Kc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},Yc={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},Jc={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Qc={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Zc={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},el={ordinalNumber:(e,t)=>{const r=Number(e);switch(String(t==null?void 0:t.unit)){case"year":return`${r}年`;case"quarter":return`第${r}四半期`;case"month":return`${r}月`;case"week":return`第${r}週`;case"date":return`${r}日`;case"hour":return`${r}時`;case"minute":return`${r}分`;case"second":return`${r}秒`;default:return`${r}`}},era:R({values:Xc,defaultWidth:"wide"}),quarter:R({values:Kc,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:R({values:Yc,defaultWidth:"wide"}),day:R({values:Jc,defaultWidth:"wide"}),dayPeriod:R({values:Qc,defaultWidth:"wide",formattingValues:Zc,defaultFormattingWidth:"wide"})},tl=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,rl=/\d+/i,nl={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},ol={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},sl={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},il={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},al={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},ul={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},cl={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},ll={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},dl={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},pl={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},ml={ordinalNumber:Ae({matchPattern:tl,parsePattern:rl,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:nl,defaultMatchWidth:"wide",parsePatterns:ol,defaultParseWidth:"any"}),quarter:F({matchPatterns:sl,defaultMatchWidth:"wide",parsePatterns:il,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:al,defaultMatchWidth:"wide",parsePatterns:ul,defaultParseWidth:"any"}),day:F({matchPatterns:cl,defaultMatchWidth:"wide",parsePatterns:ll,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:dl,defaultMatchWidth:"any",parsePatterns:pl,defaultParseWidth:"any"})},hl={code:"ja",formatDistance:jc,formatLong:Hc,formatRelative:Vc,localize:el,match:ml,options:{weekStartsOn:0,firstWeekContainsDate:1}},gl={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},fl=(e,t,r)=>{let n;const o=gl[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?n+" 후":n+" 전":n},vl={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},yl={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bl={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},wl={date:j({formats:vl,defaultWidth:"full"}),time:j({formats:yl,defaultWidth:"full"}),dateTime:j({formats:bl,defaultWidth:"full"})},El={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Tl=(e,t,r,n)=>El[e],_l={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Pl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},kl={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},Sl={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},Al={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Ol={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},$l={ordinalNumber:(e,t)=>{const r=Number(e);switch(String(t==null?void 0:t.unit)){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},era:R({values:_l,defaultWidth:"wide"}),quarter:R({values:Pl,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:kl,defaultWidth:"wide"}),day:R({values:Sl,defaultWidth:"wide"}),dayPeriod:R({values:Al,defaultWidth:"wide",formattingValues:Ol,defaultFormattingWidth:"wide"})},Dl=/^(\d+)(일|번째)?/i,Gl=/\d+/i,Cl={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},Rl={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},Fl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Ml={any:[/1/i,/2/i,/3/i,/4/i]},xl={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Nl={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Wl={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Il={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},Ll={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},jl={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},Ul={ordinalNumber:Ae({matchPattern:Dl,parsePattern:Gl,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:Rl,defaultParseWidth:"any"}),quarter:F({matchPatterns:Fl,defaultMatchWidth:"wide",parsePatterns:Ml,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:xl,defaultMatchWidth:"wide",parsePatterns:Nl,defaultParseWidth:"any"}),day:F({matchPatterns:Wl,defaultMatchWidth:"wide",parsePatterns:Il,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Ll,defaultMatchWidth:"any",parsePatterns:jl,defaultParseWidth:"any"})},ql={code:"ko",formatDistance:fl,formatLong:wl,formatRelative:Tl,localize:$l,match:Ul,options:{weekStartsOn:0,firstWeekContainsDate:1}},zl={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function Hl(e,t){if(t===1)return e.one;const r=t%100;if(r<=20&&r>10)return e.other;const n=r%10;return n>=2&&n<=4?e.twoFour:e.other}function qr(e,t,r){const n=Hl(e,t);return(typeof n=="string"?n:n[r]).replace("{{count}}",String(t))}const Bl=(e,t,r)=>{const n=zl[e];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+qr(n,t,"future"):qr(n,t,"past")+" temu":qr(n,t,"regular")},Vl={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},Xl={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Kl={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yl={date:j({formats:Vl,defaultWidth:"full"}),time:j({formats:Xl,defaultWidth:"full"}),dateTime:j({formats:Kl,defaultWidth:"full"})},Jl={masculine:"ostatni",feminine:"ostatnia"},Ql={masculine:"ten",feminine:"ta"},Zl={masculine:"następny",feminine:"następna"},ed={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function Jo(e,t,r,n){let o;if(St(t,r,n))o=Ql;else if(e==="lastWeek")o=Jl;else if(e==="nextWeek")o=Zl;else throw new Error(`Cannot determine adjectives for token ${e}`);const s=t.getDay(),i=ed[s];return`'${o[i]}' eeee 'o' p`}const td={lastWeek:Jo,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:Jo,other:"P"},rd=(e,t,r,n)=>{const o=td[e];return typeof o=="function"?o(e,t,r,n):o},nd={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},od={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},sd={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},id={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},ad={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},ud={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},cd={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},ld={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},dd={ordinalNumber:(e,t)=>String(e),era:R({values:nd,defaultWidth:"wide"}),quarter:R({values:od,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:sd,defaultWidth:"wide",formattingValues:id,defaultFormattingWidth:"wide"}),day:R({values:ad,defaultWidth:"wide",formattingValues:ud,defaultFormattingWidth:"wide"}),dayPeriod:R({values:cd,defaultWidth:"wide",formattingValues:ld,defaultFormattingWidth:"wide"})},pd=/^(\d+)?/i,md=/\d+/i,hd={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},gd={any:[/^p/i,/^n/i]},fd={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},vd={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},yd={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},bd={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},wd={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},Ed={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},Td={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},_d={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},Pd={ordinalNumber:Ae({matchPattern:pd,parsePattern:md,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:hd,defaultMatchWidth:"wide",parsePatterns:gd,defaultParseWidth:"any"}),quarter:F({matchPatterns:fd,defaultMatchWidth:"wide",parsePatterns:vd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:yd,defaultMatchWidth:"wide",parsePatterns:bd,defaultParseWidth:"any"}),day:F({matchPatterns:wd,defaultMatchWidth:"wide",parsePatterns:Ed,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Td,defaultMatchWidth:"any",parsePatterns:_d,defaultParseWidth:"any"})},kd={code:"pl",formatDistance:Bl,formatLong:Yl,formatRelative:rd,localize:dd,match:Pd,options:{weekStartsOn:1,firstWeekContainsDate:4}};function ct(e,t){if(e.one!==void 0&&t===1)return e.one;const r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function fe(e){return(t,r)=>r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?ct(e.future,t):"через "+ct(e.regular,t):e.past?ct(e.past,t):ct(e.regular,t)+" назад":ct(e.regular,t)}const Sd={lessThanXSeconds:fe({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:fe({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:fe({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:fe({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:fe({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:fe({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:fe({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:fe({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:fe({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:fe({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:fe({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:fe({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:fe({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:fe({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:fe({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Ad=(e,t,r)=>Sd[e](t,r),Od={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},$d={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Dd={any:"{{date}}, {{time}}"},Gd={date:j({formats:Od,defaultWidth:"full"}),time:j({formats:$d,defaultWidth:"full"}),dateTime:j({formats:Dd,defaultWidth:"any"})},zr=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function Cd(e){const t=zr[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function Qo(e){const t=zr[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function Rd(e){const t=zr[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}const Fd={lastWeek:(e,t,r)=>{const n=e.getDay();return St(e,t,r)?Qo(n):Cd(n)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,r)=>{const n=e.getDay();return St(e,t,r)?Qo(n):Rd(n)},other:"P"},Md=(e,t,r,n)=>{const o=Fd[e];return typeof o=="function"?o(t,r,n):o},xd={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},Nd={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Wd={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},Id={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},Ld={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},jd={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},Ud={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},qd={ordinalNumber:(e,t)=>{const r=Number(e),n=t==null?void 0:t.unit;let o;return n==="date"?o="-е":n==="week"||n==="minute"||n==="second"?o="-я":o="-й",r+o},era:R({values:xd,defaultWidth:"wide"}),quarter:R({values:Nd,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Wd,defaultWidth:"wide",formattingValues:Id,defaultFormattingWidth:"wide"}),day:R({values:Ld,defaultWidth:"wide"}),dayPeriod:R({values:jd,defaultWidth:"any",formattingValues:Ud,defaultFormattingWidth:"wide"})},zd=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Hd=/\d+/i,Bd={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Vd={any:[/^д/i,/^н/i]},Xd={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},Kd={any:[/1/i,/2/i,/3/i,/4/i]},Yd={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},Jd={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},Qd={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Zd={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},ep={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},tp={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},rp={ordinalNumber:Ae({matchPattern:zd,parsePattern:Hd,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Bd,defaultMatchWidth:"wide",parsePatterns:Vd,defaultParseWidth:"any"}),quarter:F({matchPatterns:Xd,defaultMatchWidth:"wide",parsePatterns:Kd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Yd,defaultMatchWidth:"wide",parsePatterns:Jd,defaultParseWidth:"any"}),day:F({matchPatterns:Qd,defaultMatchWidth:"wide",parsePatterns:Zd,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:ep,defaultMatchWidth:"wide",parsePatterns:tp,defaultParseWidth:"any"})},np={code:"ru",formatDistance:Ad,formatLong:Gd,formatRelative:Md,localize:qd,match:rp,options:{weekStartsOn:1,firstWeekContainsDate:1}},op={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},sp=(e,t,r)=>{let n;const o=op[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?n+"内":n+"前":n},ip={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},ap={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},up={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},cp={date:j({formats:ip,defaultWidth:"full"}),time:j({formats:ap,defaultWidth:"full"}),dateTime:j({formats:up,defaultWidth:"full"})};function Zo(e,t,r){const n="eeee p";return St(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}const lp={lastWeek:Zo,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Zo,other:"PP p"},dp=(e,t,r,n)=>{const o=lp[e];return typeof o=="function"?o(t,r,n):o},pp={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},mp={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},hp={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},gp={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},fp={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},vp={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},yp={ordinalNumber:(e,t)=>{const r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},era:R({values:pp,defaultWidth:"wide"}),quarter:R({values:mp,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:hp,defaultWidth:"wide"}),day:R({values:gp,defaultWidth:"wide"}),dayPeriod:R({values:fp,defaultWidth:"wide",formattingValues:vp,defaultFormattingWidth:"wide"})},bp=/^(第\s*)?\d+(日|时|分|秒)?/i,wp=/\d+/i,Ep={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Tp={any:[/^(前)/i,/^(公元)/i]},_p={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Pp={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},kp={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Sp={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Ap={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Op={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},$p={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Dp={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Gp={ordinalNumber:Ae({matchPattern:bp,parsePattern:wp,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Ep,defaultMatchWidth:"wide",parsePatterns:Tp,defaultParseWidth:"any"}),quarter:F({matchPatterns:_p,defaultMatchWidth:"wide",parsePatterns:Pp,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:kp,defaultMatchWidth:"wide",parsePatterns:Sp,defaultParseWidth:"any"}),day:F({matchPatterns:Ap,defaultMatchWidth:"wide",parsePatterns:Op,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:$p,defaultMatchWidth:"any",parsePatterns:Dp,defaultParseWidth:"any"})},es={code:"zh-CN",formatDistance:sp,formatLong:cp,formatRelative:dp,localize:yp,match:Gp,options:{weekStartsOn:1,firstWeekContainsDate:4}},Cp={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},Rp=(e,t,r)=>{let n;const o=Cp[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?n+"內":n+"前":n},Fp={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Mp={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},xp={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Np={date:j({formats:Fp,defaultWidth:"full"}),time:j({formats:Mp,defaultWidth:"full"}),dateTime:j({formats:xp,defaultWidth:"full"})},Wp={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},Ip=(e,t,r,n)=>Wp[e],Lp={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},jp={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},Up={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},qp={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zp={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},Hp={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},Bp={ordinalNumber:(e,t)=>{const r=Number(e);switch(t==null?void 0:t.unit){case"date":return r+"日";case"hour":return r+"時";case"minute":return r+"分";case"second":return r+"秒";default:return"第 "+r}},era:R({values:Lp,defaultWidth:"wide"}),quarter:R({values:jp,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:Up,defaultWidth:"wide"}),day:R({values:qp,defaultWidth:"wide"}),dayPeriod:R({values:zp,defaultWidth:"wide",formattingValues:Hp,defaultFormattingWidth:"wide"})},Vp=/^(第\s*)?\d+(日|時|分|秒)?/i,Xp=/\d+/i,Kp={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Yp={any:[/^(前)/i,/^(公元)/i]},Jp={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},Qp={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Zp={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},em={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},tm={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},rm={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},nm={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},om={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},sm={ordinalNumber:Ae({matchPattern:Vp,parsePattern:Xp,valueCallback:e=>parseInt(e,10)}),era:F({matchPatterns:Kp,defaultMatchWidth:"wide",parsePatterns:Yp,defaultParseWidth:"any"}),quarter:F({matchPatterns:Jp,defaultMatchWidth:"wide",parsePatterns:Qp,defaultParseWidth:"any",valueCallback:e=>e+1}),month:F({matchPatterns:Zp,defaultMatchWidth:"wide",parsePatterns:em,defaultParseWidth:"any"}),day:F({matchPatterns:tm,defaultMatchWidth:"wide",parsePatterns:rm,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:nm,defaultMatchWidth:"any",parsePatterns:om,defaultParseWidth:"any"})},im={code:"zh-TW",formatDistance:Rp,formatLong:Np,formatRelative:Ip,localize:Bp,match:sm,options:{weekStartsOn:1,firstWeekContainsDate:4}},ts={version:"1.0.0-beta.5",homepage:"https://github.com/LolipopJ/gitalk-react"},am=ts.version,um=ts.homepage,Hr="en",cm=["Gitalk"],lm="https://cdn.jsdelivr.net/npm/gitalk@1/src/assets/icon/github.svg",dm={avatar_url:"//avatars1.githubusercontent.com/u/29697133?s=50",login:"null",html_url:""},lt="GT_ACCESS_TOKEN",rs={zh:es,"zh-CN":es,"zh-TW":im,en:Yo,"es-ES":Fu,fr:Ic,ru:np,de:Da,pl:kd,ko:ql,fa:cc,ja:hl},pm={init:"Gitalking ...","no-found-related":"Zugehöriger %{link} nicht gefunden","please-contact":"Bitte kontaktiere %{user} um den Kommentar zu initialisieren","init-issue":"Initialisiere Issue","leave-a-comment":"Hinterlasse einen Kommentar",preview:"Vorschau",edit:"Editieren",comment:"Kommentieren","support-markdown":"Markdown wird unterstützt","login-with-github":"Mit GitHub-Account anmelden","first-comment-person":"Sei die erste Person, welche einen Kommentar hinterlässt!",commented:"kommentierte","load-more":"Zeige mehr",counts:"%{counts} Kommentar |||| %{counts} Kommentare","sort-asc":"Älteste zuerst","sort-desc":"Neuste zuerst",logout:"Abmelden",anonymous:"Anonym"},mm={init:"Gitalking ...","no-found-related":"Related %{link} not found","please-contact":"Please contact %{user} to initialize the comment","init-issue":"Init Issue","leave-a-comment":"Leave a comment",preview:"Preview",edit:"Edit",comment:"Comment","support-markdown":"Markdown is supported","login-with-github":"Login with GitHub","first-comment-person":"Be the first person to leave a comment!",commented:"commented","load-more":"Load more",counts:"%{counts} comment |||| %{counts} comments","sort-asc":"Sort by Oldest","sort-desc":"Sort by Latest",logout:"Logout",anonymous:"Anonymous"},hm={init:"Gitalking ...","no-found-related":"Link %{link} no encontrado","please-contact":"Por favor contacta con %{user} para inicializar el comentario","init-issue":"Iniciar Issue","leave-a-comment":"Deja un comentario",preview:"Avance",edit:"Editar",comment:"Comentario","support-markdown":"Markdown es soportado","login-with-github":"Entrar con GitHub","first-comment-person":"Sé el primero en dejar un comentario!",commented:"comentó","load-more":"Cargar más",counts:"%{counts} comentario |||| %{counts} comentarios","sort-asc":"Ordenar por Antiguos","sort-desc":"Ordenar por Recientes",logout:"Salir",anonymous:"Anónimo"},gm={init:"بارگزاری ...","no-found-related":"%{link} مرتبط پیدا نشد.","please-contact":"لطفاً با %{user} اطلاع دهید تا اضافه کند.","init-issue":"شروع نظرات","leave-a-comment":"نظرتان را بنویسید",preview:"پیشنمایش",edit:"ویرایش",comment:"ثبت","support-markdown":"پشتیبانی از مارکداون","login-with-github":"ورود با گیتهاب","first-comment-person":"اولین نظر را شما بنویسید!",commented:" - ","load-more":"نظرات بیشتر",counts:"%{counts} نظر |||| %{counts} نظر","sort-asc":"مرتبسازی از قدیمیترین","sort-desc":"مرتبسازی از جدیدترین",logout:"خروج",anonymous:"بینام"},fm={init:"Gitalking ...","no-found-related":"Lien %{link} non trouvé","please-contact":"Veuillez contacter %{user} pour initialiser les commentaires","init-issue":"Initialisation des issues","leave-a-comment":"Laisser un commentaire",preview:"Aperçu",edit:"Modifier",comment:"Commentaire","support-markdown":"Markdown est supporté","login-with-github":"Se connecter avec GitHub","first-comment-person":"Soyez le premier à laisser un commentaire !",commented:"a commenté","load-more":"Charger plus",counts:"%{counts} commentaire |||| %{counts} commentaires","sort-asc":"Trier du plus ancien au plus récent","sort-desc":"Trier du plus récent au plus ancien",logout:"Déconnexion",anonymous:"Anonyme"},vm={init:"Gitalk を読み込んでいます...","no-found-related":"%{link} に関連するものが見当たりません","please-contact":"コメントを初期化するために %{user} に連絡してください","init-issue":"イシューを初期化する","leave-a-comment":"コメントを残す",preview:"プレビュー",edit:"編集する",comment:"コメント","support-markdown":"Markdown 記法をサポートしています","login-with-github":"GitHub にログインする","first-comment-person":"最初にコメントを残しましょう!",commented:"によるコメント","load-more":"もっと見る",counts:"%{counts} つのコメント","sort-asc":"投稿順に並び替え","sort-desc":"最新順で並び替え",logout:"ログアウト",anonymous:"匿名"},ym={init:"초기화 중 ...","no-found-related":"관련 링크를 찾을 수 없습니다: %{link} ","please-contact":"초기화를 위해 %{user} 에게 연락해 주세요","init-issue":"이슈 초기화","leave-a-comment":"댓글을 남겨보세요",preview:"미리보기",edit:"수정하기",comment:"댓글 달기","support-markdown":"마크다운(Markdown) 문법 지원","login-with-github":"GitHub로 로그인하기","first-comment-person":"첫 번째로 댓글을 남겨보세요!",commented:"님이 작성함","load-more":"더 보기",counts:"댓글 %{counts} 개","sort-asc":"오래된 댓글 먼저","sort-desc":"최신 댓글 먼저",logout:"로그아웃",anonymous:"익명"},bm={init:"Gitalking ...","no-found-related":"Nie znaleziono powiązanego zgłoszenia: %{link}","please-contact":"Skontaktuj się z %{user}, aby umożliwić komentowanie","init-issue":"Utwórz zgłoszenie (GitHub Issue)","leave-a-comment":"Skomentuj",preview:"Podgląd",edit:"Edytuj",comment:"Wyślij","support-markdown":"Możesz użyć składni Markdown","login-with-github":"Zaloguj się poprzez GitHub","first-comment-person":"Skomentuj jako pierwszy!",commented:"skomentowany","load-more":"Załaduj więcej",counts:"%{counts} komentarz |||| %{counts} komentarze |||| %{counts} komentarzy","sort-asc":"Sortuj od najstarszych","sort-desc":"Sortuj od najnowszych",logout:"Wyloguj",anonymous:"Anonimowy"},wm={init:"Gitalking ...","no-found-related":"Связанные %{link} не найдены","please-contact":"Пожалуйста, свяжитесь с %{user} чтобы инициализировать комментарий","init-issue":"Выпуск инициализации","leave-a-comment":"Оставить комментарий",preview:"Предварительный просмотр",edit:"Pедактировать",comment:"Комментарий","support-markdown":"Поддерживается Markdown","login-with-github":"Вход через GitHub","first-comment-person":"Будьте первым, кто оставил комментарий",commented:"прокомментированный","load-more":"Загрузить ещё",counts:"%{counts} комментарий |||| %{counts} комментариев","sort-asc":"Сортировать по старым","sort-desc":"Сортировать по последним",logout:"Выход",anonymous:"Анонимный"},ns={init:"Gitalk 加载中 ...","no-found-related":"未找到相关的 %{link} 进行评论","please-contact":"请联系 %{user} 初始化创建","init-issue":"初始化 Issue","leave-a-comment":"说点什么",preview:"预览",edit:"编辑",comment:"评论","support-markdown":"支持 Markdown 语法","login-with-github":"使用 GitHub 登录","first-comment-person":"来做第一个留言的人吧!",commented:"发表于","load-more":"加载更多",counts:"%{counts} 条评论","sort-asc":"从旧到新排序","sort-desc":"从新到旧排序",logout:"注销",anonymous:"未登录用户"},os={zh:ns,"zh-CN":ns,"zh-TW":{init:"Gitalk 載入中…","no-found-related":"未找到相關的 %{link}","please-contact":"請聯絡 %{user} 初始化評論","init-issue":"初始化 Issue","leave-a-comment":"寫點什麼",preview:"預覽",edit:"編輯",comment:"評論","support-markdown":"支援 Markdown 語法","login-with-github":"使用 GitHub 登入","first-comment-person":"成為首個留言的人吧!",commented:"評論於","load-more":"載入更多",counts:"%{counts} 筆評論","sort-asc":"從舊至新排序","sort-desc":"從新至舊排序",logout:"登出",anonymous:"訪客"},en:mm,"es-ES":hm,fr:fm,ru:wm,de:pm,pl:bm,ko:ym,fa:gm,ja:vm},ss=(e=Hr)=>new Zi({phrases:os[e]??os.en,locale:e});var Em=function(e){return function(t,r){var n=P.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},$e=function(){return $e=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$e.apply(this,arguments)};function is(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Tm(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function a(d){try{u(n.next(d))}catch(m){i(m)}}function l(d){try{u(n.throw(d))}catch(m){i(m)}}function u(d){d.done?s(d.value):o(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function _m(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=a(0),i.throw=a(1),i.return=a(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(u){return function(d){return l([u,d])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(s=u[0]&2?o.return:u[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,u[1])).done)return s;switch(o=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(d){u=[6,d],o=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function de(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s}function pe(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var At=function(e){return typeof e=="function"},Ot=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Ye(e){Ot&&(At(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=P.useRef(e);t.current=P.useMemo(function(){return e},[e]);var r=P.useRef();return r.current||(r.current=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t.current.apply(this,n)}),r.current}const Br=Em(P.useEffect);var as=function(e,t){var r=t.manual,n=t.ready,o=n===void 0?!0:n,s=t.defaultParams,i=s===void 0?[]:s,a=t.refreshDeps,l=a===void 0?[]:a,u=t.refreshDepsAction,d=P.useRef(!1);return d.current=!1,Br(function(){!r&&o&&(d.current=!0,e.run.apply(e,pe([],de(i),!1)))},[o]),Br(function(){d.current||r||(d.current=!0,u?u():e.refresh())},pe([],de(l),!1)),{onBefore:function(){if(!o)return{stopNow:!0}}}};as.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function Pm(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function us(e,t){var r=P.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Pm(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function cs(e){var t=P.useRef(e);return t.current=e,t}var Vr=function(e){Ot&&(At(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=cs(e);P.useEffect(function(){return function(){t.current()}},[])},$t=new Map,km=function(e,t,r){var n=$t.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var o=void 0;t>-1&&(o=setTimeout(function(){$t.delete(e)},t)),$t.set(e,$e($e({},r),{timer:o}))},Sm=function(e){return $t.get(e)},Dt=new Map,Am=function(e){return Dt.get(e)},Om=function(e,t){Dt.set(e,t),t.then(function(r){return Dt.delete(e),r}).catch(function(){Dt.delete(e)})},Ue={},$m=function(e,t){Ue[e]&&Ue[e].forEach(function(r){return r(t)})},Xr=function(e,t){return Ue[e]||(Ue[e]=[]),Ue[e].push(t),function(){var n=Ue[e].indexOf(t);Ue[e].splice(n,1)}},Dm=function(e,t){var r=t.cacheKey,n=t.cacheTime,o=n===void 0?5*60*1e3:n,s=t.staleTime,i=s===void 0?0:s,a=t.setCache,l=t.getCache,u=P.useRef(),d=P.useRef(),m=function(f,w){a?a(w):km(f,o,w),$m(f,w.data)},g=function(f,w){return w===void 0&&(w=[]),l?l(w):Sm(f)};return us(function(){if(r){var f=g(r);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(i===-1||new Date().getTime()-f.time<=i)&&(e.state.loading=!1)),u.current=Xr(r,function(w){e.setState({data:w})})}},[]),Vr(function(){var f;(f=u.current)===null||f===void 0||f.call(u)}),r?{onBefore:function(f){var w=g(r,f);return!w||!Object.hasOwnProperty.call(w,"data")?{}:i===-1||new Date().getTime()-w.time<=i?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(f,w){var A=Am(r);return A&&A!==d.current?{servicePromise:A}:(A=f.apply(void 0,pe([],de(w),!1)),d.current=A,Om(r,A),{servicePromise:A})},onSuccess:function(f,w){var A;r&&((A=u.current)===null||A===void 0||A.call(u),m(r,{data:f,params:w,time:new Date().getTime()}),u.current=Xr(r,function(G){e.setState({data:G})}))},onMutate:function(f){var w;r&&((w=u.current)===null||w===void 0||w.call(u),m(r,{data:f,params:e.state.params,time:new Date().getTime()}),u.current=Xr(r,function(A){e.setState({data:A})}))}}:{}},Kr,ls;function Yr(){if(ls)return Kr;ls=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Kr=e,Kr}var Jr,ds;function Gm(){if(ds)return Jr;ds=1;var e=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke;return Jr=e,Jr}var Qr,ps;function ms(){if(ps)return Qr;ps=1;var e=Gm(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Qr=r,Qr}var Zr,hs;function Cm(){if(hs)return Zr;hs=1;var e=ms(),t=function(){return e.Date.now()};return Zr=t,Zr}var en,gs;function Rm(){if(gs)return en;gs=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return en=t,en}var tn,fs;function Fm(){if(fs)return tn;fs=1;var e=Rm(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return tn=r,tn}var rn,vs;function ys(){if(vs)return rn;vs=1;var e=ms(),t=e.Symbol;return rn=t,rn}var nn,bs;function Mm(){if(bs)return nn;bs=1;var e=ys(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function s(i){var a=r.call(i,o),l=i[o];try{i[o]=void 0;var u=!0}catch{}var d=n.call(i);return u&&(a?i[o]=l:delete i[o]),d}return nn=s,nn}var on,ws;function xm(){if(ws)return on;ws=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return on=r,on}var sn,Es;function Nm(){if(Es)return sn;Es=1;var e=ys(),t=Mm(),r=xm(),n="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function i(a){return a==null?a===void 0?o:n:s&&s in Object(a)?t(a):r(a)}return sn=i,sn}var an,Ts;function Wm(){if(Ts)return an;Ts=1;function e(t){return t!=null&&typeof t=="object"}return an=e,an}var un,_s;function Im(){if(_s)return un;_s=1;var e=Nm(),t=Wm(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return un=n,un}var cn,Ps;function Lm(){if(Ps)return cn;Ps=1;var e=Fm(),t=Yr(),r=Im(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var m=s.test(u);return m||i.test(u)?a(u.slice(2),m?2:8):o.test(u)?n:+u}return cn=l,cn}var ln,ks;function Ss(){if(ks)return ln;ks=1;var e=Yr(),t=Cm(),r=Lm(),n="Expected a function",o=Math.max,s=Math.min;function i(a,l,u){var d,m,g,f,w,A,G=0,x=!1,M=!1,y=!0;if(typeof a!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(x=!!u.leading,M="maxWait"in u,g=M?o(r(u.maxWait)||0,l):g,y="trailing"in u?!!u.trailing:y);function E(U){var q=d,ve=m;return d=m=void 0,G=U,f=a.apply(ve,q),f}function S(U){return G=U,w=setTimeout(W,l),x?E(U):f}function O(U){var q=U-A,ve=U-G,me=l-q;return M?s(me,g-ve):me}function C(U){var q=U-A,ve=U-G;return A===void 0||q>=l||q<0||M&&ve>=g}function W(){var U=t();if(C(U))return K(U);w=setTimeout(W,O(U))}function K(U){return w=void 0,y&&d?E(U):(d=m=void 0,f)}function ee(){w!==void 0&&clearTimeout(w),G=0,d=A=m=w=void 0}function ue(){return w===void 0?f:K(t())}function B(){var U=t(),q=C(U);if(d=arguments,m=this,A=U,q){if(w===void 0)return S(A);if(M)return clearTimeout(w),w=setTimeout(W,l),E(A)}return w===void 0&&(w=setTimeout(W,l)),f}return B.cancel=ee,B.flush=ue,B}return ln=i,ln}var jm=Ss();const Um=wt(jm);var qm=function(e,t){var r=t.debounceWait,n=t.debounceLeading,o=t.debounceTrailing,s=t.debounceMaxWait,i=P.useRef(),a=P.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),o!==void 0&&(l.trailing=o),s!==void 0&&(l.maxWait=s),l},[n,o,s]);return P.useEffect(function(){if(r){var l=e.runAsync.bind(e);return i.current=Um(function(u){u()},r,a),e.runAsync=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new Promise(function(m,g){var f;(f=i.current)===null||f===void 0||f.call(i,function(){l.apply(void 0,pe([],de(u),!1)).then(m).catch(g)})})},function(){var u;(u=i.current)===null||u===void 0||u.cancel(),e.runAsync=l}}},[r,a]),r?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel()}}:{}},zm=function(e,t){var r=t.loadingDelay,n=t.ready,o=P.useRef();if(!r)return{};var s=function(){o.current&&clearTimeout(o.current)};return{onBefore:function(){return s(),n!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){s()},onCancel:function(){s()}}},Gt=!!(typeof window<"u"&&window.document&&window.document.createElement);function dn(){return Gt?document.visibilityState!=="hidden":!0}var dt=[];function Hm(e){return dt.push(e),function(){var r=dt.indexOf(e);dt.splice(r,1)}}if(Gt){var Bm=function(){if(dn())for(var e=0;e<dt.length;e++){var t=dt[e];t()}};window.addEventListener("visibilitychange",Bm,!1)}var Vm=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,o=n===void 0?!0:n,s=t.pollingErrorRetryCount,i=s===void 0?-1:s,a=P.useRef(),l=P.useRef(),u=P.useRef(0),d=function(){var m;a.current&&clearTimeout(a.current),(m=l.current)===null||m===void 0||m.call(l)};return Br(function(){r||d()},[r]),r?{onBefore:function(){d()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){i===-1||i!==-1&&u.current<=i?a.current=setTimeout(function(){!o&&!dn()?l.current=Hm(function(){e.refresh()}):e.refresh()},r):u.current=0},onCancel:function(){d()}}:{}};function Xm(e,t){var r=!1;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];r||(r=!0,e.apply(void 0,pe([],de(n),!1)),setTimeout(function(){r=!1},t))}}function Km(){return Gt&&typeof navigator.onLine<"u"?navigator.onLine:!0}var pt=[];function Ym(e){return pt.push(e),function(){var r=pt.indexOf(e);r>-1&&pt.splice(r,1)}}if(Gt){var As=function(){if(!(!dn()||!Km()))for(var e=0;e<pt.length;e++){var t=pt[e];t()}};window.addEventListener("visibilitychange",As,!1),window.addEventListener("focus",As,!1)}var Jm=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,o=n===void 0?5e3:n,s=P.useRef(),i=function(){var a;(a=s.current)===null||a===void 0||a.call(s)};return P.useEffect(function(){if(r){var a=Xm(e.refresh.bind(e),o);s.current=Ym(function(){a()})}return function(){i()}},[r,o]),Vr(function(){i()}),{}},Qm=function(e,t){var r=t.retryInterval,n=t.retryCount,o=P.useRef(),s=P.useRef(0),i=P.useRef(!1);return n?{onBefore:function(){i.current||(s.current=0),i.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){s.current=0},onError:function(){if(s.current+=1,n===-1||s.current<=n){var a=r??Math.min(1e3*Math.pow(2,s.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh()},a)}else s.current=0},onCancel:function(){s.current=0,o.current&&clearTimeout(o.current)}}:{}},pn,Os;function Zm(){if(Os)return pn;Os=1;var e=Ss(),t=Yr(),r="Expected a function";function n(o,s,i){var a=!0,l=!0;if(typeof o!="function")throw new TypeError(r);return t(i)&&(a="leading"in i?!!i.leading:a,l="trailing"in i?!!i.trailing:l),e(o,s,{leading:a,maxWait:s,trailing:l})}return pn=n,pn}var eh=Zm();const th=wt(eh);var rh=function(e,t){var r=t.throttleWait,n=t.throttleLeading,o=t.throttleTrailing,s=P.useRef(),i={};return n!==void 0&&(i.leading=n),o!==void 0&&(i.trailing=o),P.useEffect(function(){if(r){var a=e.runAsync.bind(e);return s.current=th(function(l){l()},r,i),e.runAsync=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new Promise(function(d,m){var g;(g=s.current)===null||g===void 0||g.call(s,function(){a.apply(void 0,pe([],de(l),!1)).then(d).catch(m)})})},function(){var l;e.runAsync=a,(l=s.current)===null||l===void 0||l.cancel()}}},[r,n,o]),r?{onCancel:function(){var a;(a=s.current)===null||a===void 0||a.cancel()}}:{}},nh=function(e){Ot&&(At(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),P.useEffect(function(){e==null||e()},[])},oh=function(){var e=de(P.useState({}),2),t=e[1];return P.useCallback(function(){return t({})},[])},sh=function(){function e(t,r,n,o){o===void 0&&(o={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=$e($e($e({},this.state),{loading:!r.manual}),o)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=$e($e({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.pluginImpls.map(function(s){var i;return(i=s[t])===null||i===void 0?void 0:i.call.apply(i,pe([s],de(r),!1))}).filter(Boolean);return Object.assign.apply(Object,pe([{}],de(o),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Tm(this,void 0,void 0,function(){var n,o,s,i,a,l,u,d,m,g,f,w,A,G,x,M,y,E,S,O,C;return _m(this,function(W){switch(W.label){case 0:if(this.count+=1,n=this.count,o=this.runPluginHandler("onBefore",t),s=o.stopNow,i=s===void 0?!1:s,a=o.returnNow,l=a===void 0?!1:a,u=is(o,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState($e({loading:!0,params:t},u)),l)return[2,Promise.resolve(u.data)];(A=(w=this.options).onBefore)===null||A===void 0||A.call(w,t),W.label=1;case 1:return W.trys.push([1,3,,4]),d=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,d||(d=(f=this.serviceRef).current.apply(f,pe([],de(t),!1))),[4,d];case 2:return m=W.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:m,error:void 0,loading:!1}),(x=(G=this.options).onSuccess)===null||x===void 0||x.call(G,m,t),this.runPluginHandler("onSuccess",m,t),(y=(M=this.options).onFinally)===null||y===void 0||y.call(M,t,m,void 0),n===this.count&&this.runPluginHandler("onFinally",t,m,void 0),[2,m]);case 3:if(g=W.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:g,loading:!1}),(S=(E=this.options).onError)===null||S===void 0||S.call(E,g,t),this.runPluginHandler("onError",g,t),(C=(O=this.options).onFinally)===null||C===void 0||C.call(O,t,void 0,g),n===this.count&&this.runPluginHandler("onFinally",t,void 0,g),g;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,pe([],de(r),!1)).catch(function(o){t.options.onError||console.error(o)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,pe([],de(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,pe([],de(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=At(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function ih(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,o=n===void 0?!1:n,s=t.ready,i=s===void 0?!0:s,a=is(t,["manual","ready"]);Ot&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var l=$e({manual:o,ready:i},a),u=cs(e),d=oh(),m=us(function(){var g=r.map(function(f){var w;return(w=f==null?void 0:f.onInit)===null||w===void 0?void 0:w.call(f,l)}).filter(Boolean);return new sh(u,l,d,Object.assign.apply(Object,pe([{}],de(g),!1)))},[]);return m.options=l,m.pluginImpls=r.map(function(g){return g(m,l)}),nh(function(){if(!o&&i){var g=m.state.params||t.defaultParams||[];m.run.apply(m,pe([],de(g),!1))}}),Vr(function(){m.cancel()}),{loading:m.state.loading,data:m.state.data,error:m.state.error,params:m.state.params||[],cancel:Ye(m.cancel.bind(m)),refresh:Ye(m.refresh.bind(m)),refreshAsync:Ye(m.refreshAsync.bind(m)),run:Ye(m.run.bind(m)),runAsync:Ye(m.runAsync.bind(m)),mutate:Ye(m.mutate.bind(m))}}function We(e,t,r){return ih(e,t,pe(pe([],de([]),!1),[qm,zm,Vm,Jm,rh,as,Dm,Qm],!1))}function Ct(e){var t=!1;return function(){t||(console.warn(e),t=!0)}}var ah=Ct(`
|
|
2
2
|
>> Error, via react-flip-move <<
|
|
3
3
|
|
|
4
4
|
You provided a stateless functional component as a child to <FlipMove>. Unfortunately, SFCs aren't supported, because Flip Move needs access to the backing instances via refs, and SFCs don't have a public instance that holds that info.
|
|
@@ -120,4 +120,4 @@ Please note that this will cause animations to break in Internet Explorer 11 and
|
|
|
120
120
|
|
|
121
121
|
`+(((yi=document==null?void 0:document.querySelector('meta[name="description"]'))==null?void 0:yi.getAttribute("content"))??""),language:m=navigator.language,perPage:g=10,pagerDirection:f="last",createIssueManually:w=!1,enableHotKey:A=!0,distractionFreeMode:G=!1,flipMoveOptions:x={staggerDelayBy:150,appearAnimation:"accordionVertical",enterAnimation:"accordionVertical",leaveAnimation:"accordionVertical"},proxy:M="https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token",defaultUser:y,defaultAuthor:E,updateCountCallback:S,onCreateIssue:O,onCreateComment:C,className:W="",...K}=e,[ee,ue]=P.useState(),B=P.useMemo(()=>a&&a>0?a:void 0,[a]),U=P.useMemo(()=>i.slice(0,50),[i]),q=P.useMemo(()=>l.concat([U]),[l,U]),ve=P.useRef(null),[me,De]=P.useState(""),[Ge,Pe]=P.useState(!1),[xe,He]=P.useState(!1),[nt,Fe]=P.useState(0),[Be,ot]=P.useState(""),[Ne,Ve]=P.useState(1),ke=P.useMemo(()=>g>100?100:g<0?10:g,[g]),[ye,H]=P.useState(!1),[Z,X]=P.useState(f),re=P.useMemo(()=>y||(E?{avatar_url:E.avatarUrl,login:E.login,html_url:E.url}:dm),[E,y]),[be,Ce]=P.useState(!1),[ne,he]=P.useState(""),V=P.useMemo(()=>ss(m),[m]),{data:we=localStorage.getItem(lt)??void 0,mutate:Re,loading:ge,run:Me}=We(async k=>await Lf({url:M,code:k,clientID:t,clientSecret:r}),{manual:!0,ready:!!M&&!!t&&!!r,onSuccess:k=>{localStorage.setItem(lt,k),I.s("Get access token successfully:",k)},onError:k=>{he(`An error occurred while getting access token: ${k}`),I.e("An error occurred while getting access token:",k)}});P.useEffect(()=>{const k=Wf(),N=k.code;if(N&&!we){delete k.code;const Q=`${window.location.origin}${window.location.pathname}?${fi(k)}${window.location.hash}`;history.replaceState(null,"",Q),Me(N)}},[we,Me]);const se=P.useMemo(()=>Nf(we),[we]),{data:L,mutate:bt,loading:_e}=We(async()=>{const k=await se.request("GET /user");if(k.status===200){const N=k.data;return I.s("Login successfully:",N),N}else{localStorage.removeItem(lt),Re(void 0),I.e("Get user details with access token failed:",k);return}},{ready:!!we,refreshDeps:[we]}),Ie=P.useMemo(()=>L&&!!s.find(k=>k.toLowerCase()===L.login.toLocaleLowerCase()),[s,L]),{loading:st,run:it}=We(async()=>{I.i("Creating issue...");const k=await se.request("POST /repos/{owner}/{repo}/issues",{owner:n,repo:o,title:u,labels:q,body:d});if(k.status===201){const N=k.data;I.s("Create issue successfully:",N),O==null||O(N),ue(N)}else he(`Create issue failed: ${k}`),I.e("Create issue failed:",k)},{manual:!0,ready:!!Ie&&!!n&&!!o&&!!u&&!!q.length}),{loading:D}=We(async()=>{if(B){const k=await se.request("GET /repos/{owner}/{repo}/issues/{issue_number}",{owner:n,repo:o,issue_number:B});if(k.status===200){const N=k.data;I.s(`Locate issue ${B} in repository ${n}/${o} successfully:`,N),ue(N)}else k.status===404?(I.w(`Issue ${B} in repository ${n}/${o} was not found.`),Ie&&!w&&it()):(he(`Get issue ${B} in repository ${n}/${o} failed: ${k}`),I.e(`Get issue ${B} in repository ${n}/${o} failed:`,k))}else if(U){const k=await se.request("GET /repos/{owner}/{repo}/issues",{owner:n,repo:o,labels:q.join(","),per_page:1}),{status:N,data:Q=[]}=k;if(N===200)if(Q.length){const te=Q[0];I.s(`Locate issue with labels ${q} in repository ${n}/${o} successfully:`,te),ue(te)}else I.w(`Issue with labels ${q} in repository ${n}/${o} was not found.`),Ie&&!w&&it();else N===404?(I.w(`Issue with labels ${q} in repository ${n}/${o} was not found.`),Ie&&!w&&it()):(he(`Get issue with labels ${q} in repository ${n}/${o} failed: ${k}`),I.e(`Get issue with labels ${q} in repository ${n}/${o} failed:`,k))}},{ready:!!n&&!!o&&(!!B||!!U),refreshDeps:[n,o,B,U],onBefore:()=>{ue(void 0)}}),{data:p=[],mutate:c,loading:h}=We(async()=>{const{number:k}=ee,N=(Ne-1)*ke+1,Q=Ne*ke;if(L){const te=mg({pagerDirection:f}),ae=await se.graphql(te,{owner:n,repo:o,id:k,pageSize:ke,...Be?{cursor:Be}:{}});if(ae.repository){const ce=ae.repository.issue.comments.nodes.map(Y=>{var Se;return{...Y,id:Y.databaseId,user:{...re,avatar_url:Y.author.avatarUrl,login:Y.author.login,html_url:Y.author.url},body_html:Y.bodyHTML,created_at:Y.createdAt,html_url:Y.resourcePath,reactions:{heart:((Se=Y.reactions)==null?void 0:Se.totalCount)??0},reactionsHeart:Y.reactions}});return I.s(`Get comments from ${N} to ${Q} successfully:`,ce),ce.length<ke&&H(!0),f==="last"?[...ce,...p]:[...p,...ce]}else he(`Get comments from ${N} to ${Q} failed: ${ae}`),I.e(`Get comments from ${N} to ${Q} failed:`,ae)}else{const te=await se.request("GET /repos/{owner}/{repo}/issues/{issue_number}/comments",{owner:n,repo:o,issue_number:k,page:Ne,per_page:ke,headers:{accept:"application/vnd.github.v3.full+json"}});if(te.status===200){const ae=te.data.map(ce=>{var Se;const Y=((Se=ce.reactions)==null?void 0:Se.heart)??0;return{...re,...ce,reactionsHeart:{totalCount:Y,viewerHasReacted:!1,nodes:[]}}});return I.s(`Get comments from ${N} to ${Q} successfully:`,ae),ae.length<ke&&H(!0),[...p,...ae]}else he(`Get comments from ${N} to ${Q} failed: ${te}`),I.e(`Get comments from ${N} to ${Q} failed:`,te)}return p},{ready:!!n&&!!o&&!!ee&&!_e&&!ye,refreshDeps:[Ne,ee,L,f]}),{data:v=[],mutate:b,loading:T,run:$}=We(async()=>{const{number:k}=ee,N=await se.request("POST /repos/{owner}/{repo}/issues/{issue_number}/comments",{owner:n,repo:o,issue_number:k,body:me,headers:{accept:"application/vnd.github.v3.full+json"}});if(N.status===201){const Q={...re,...N.data,reactions:{heart:0},reactionsHeart:{totalCount:0,viewerHasReacted:!1,nodes:[]}};return I.s("Create issue comment successfully."),De(""),C==null||C(Q),v.concat([Q])}else return he(`Create issue comment failed: ${N}`),I.e("Create issue comment failed:",N),v},{manual:!0,ready:!!n&&!!o&&!!ee&&!!me});P.useEffect(()=>{c([]),Fe(0),ot(""),Ve(1),H(!1),b([]),ee&&Fe(ee.comments)},[ee,L,f,c,b]);const z=P.useMemo(()=>{const k=p.concat(v);return Z==="last"&&L&&k.reverse(),k},[p,Z,v,L]),J=nt+(v??[]).length;P.useEffect(()=>{S==null||S(J)},[J,S]);const{data:ie="",mutate:Xe,loading:$n,run:It,cancel:zf}=We(async()=>{const k=await se.request("POST /markdown",{text:me});return k.status===200?k.data:(he(`Preview rendered comment failed: ${k}`),I.e("Preview rendered comment failed:",k),"")},{manual:!0,onBefore:()=>{Xe("")}}),{loading:Hf,run:Bf}=We(async(k,N,Q)=>{var Se,jt;const te=Q;let ae=-1;if(k){const le=await se.request("POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{owner:n,repo:o,comment_id:N,content:"heart"});if(le.status===201)I.s("You like the comment!"),ae=le.data.id;else if(le.status===200)I.i("You already liked the comment!");else{I.e("Failed to like the comment.");return}}else if(Q)if((await se.request("DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{owner:n,repo:o,comment_id:N,reaction_id:Q})).status===204)I.s("You unlike the comment.");else{I.e("Failed to unlike the comment.");return}else{I.e("Reaction ID is not provided.");return}let ce=!1,Y=p.find(le=>le.id===N);if(Y||(Y=v.find(le=>le.id===N),ce=!0),Y){const le=L.login,Le=((Se=Y.reactions)==null?void 0:Se.heart)??0,bi=k?Le+1:Le-1,wi=((jt=Y.reactionsHeart)==null?void 0:jt.nodes)??[],av=k?wi.concat([{databaseId:ae,user:{login:le}}]):wi.filter(uv=>uv.databaseId!==te);Y.reactions={heart:bi},Y.reactionsHeart={totalCount:bi,viewerHasReacted:k,nodes:av}}ce?b(le=>[...le??[]]):c(le=>[...le??[]])},{manual:!0,ready:!!n&&!!o&&!!L}),Dn=P.useMemo(()=>!ge&&!_e&&!st&&!D,[st,ge,D,_e]),Vf=P.useMemo(()=>Dn&&!!ee,[Dn,ee]),Gn=P.useCallback(k=>{const N=k.target;N&&vi(N,"gt-user","gt-popup")||(document.removeEventListener("click",Gn),Ce(!1))},[]),Xf=k=>{k.preventDefault(),k.stopPropagation(),Ce(N=>(N?document.removeEventListener("click",Gn):document.addEventListener("click",Gn),!N))},Lt=()=>{const k=If(t);window.location.href=k},Kf=()=>{Re(void 0),localStorage.removeItem(lt),bt(void 0)},Yf=k=>{if(!G)return k.preventDefault();Pe(!0)},Jf=k=>{if(!G)return k.preventDefault();Pe(!1)},Qf=k=>{A&&(k.metaKey||k.ctrlKey)&&k.keyCode===13&&$()},Zf=()=>{xe?(He(!1),zf()):(He(!0),It())},ev=k=>{var Y;const{body:N="",user:Q}=k;let te=N.split(`
|
|
122
122
|
`);const ae=Q==null?void 0:Q.login;ae&&te.unshift(`@${ae}`),te=te.map(Se=>`> ${Se}`),me&&te.unshift("",""),te.push("","");const ce=`${me}${te.join(`
|
|
123
|
-
`)}`;De(ce),(Y=ve.current)==null||Y.focus()};if(!qf)return I.e("Gitalk React can only be rendered well in modern browser that supports CSS variables and ES2020.","If you have compatibility requirements, please consider using the original project which is compatible with older browsers: https://github.com/gitalk/gitalk"),null;if(!(t&&r))return I.e("You must specify the `clientId` and `clientSecret` of Github APP"),null;if(!(o&&n))return I.e("You must specify the `owner` and `repo` of Github"),null;if(!(Array.isArray(s)&&s.length>0))return I.e("You must specify the `admin` for the Github repository"),null;const tv=()=>_.jsxs("div",{className:"gt-initing",children:[_.jsx("i",{className:"gt-loader"}),_.jsx("p",{className:"gt-initing-text",children:V.t("init")})]}),rv=()=>_.jsxs("div",{className:"gt-no-init",children:[_.jsx("p",{dangerouslySetInnerHTML:{__html:V.t("no-found-related",{link:`<a href="https://github.com/${n}/${o}/issues" target="_blank" rel="noopener noreferrer">Issues</a>`})}}),_.jsx("p",{children:V.t("please-contact",{user:s.map(k=>`@${k}`).join(" ")})}),Ie?_.jsx("p",{children:_.jsx(Qe,{onClick:it,isLoading:st,text:V.t("init-issue")})}):null,!L&&_.jsx(Qe,{className:"gt-btn-login",onClick:Lt,text:V.t("login-with-github")})]},"no-init"),nv=()=>_.jsxs("div",{className:"gt-header",children:[L?_.jsx(Fs,{className:"gt-header-avatar",src:L.avatar_url,alt:L.login,href:L.html_url}):_.jsx("a",{className:"gt-avatar-github",onClick:Lt,children:_.jsx(Ze,{className:"gt-ico-github",icon:Rh})}),_.jsxs("div",{className:"gt-header-comment",children:[_.jsx("textarea",{ref:ve,className:"gt-header-textarea",style:{display:xe?"none":void 0},value:me,onChange:k=>De(k.target.value),onFocus:Yf,onBlur:Jf,onKeyDown:Qf,placeholder:V.t("leave-a-comment")}),_.jsx("div",{className:"gt-header-preview markdown-body",style:{display:xe?void 0:"none"},dangerouslySetInnerHTML:{__html:ie}}),_.jsxs("div",{className:"gt-header-controls",children:[_.jsx("a",{className:"gt-header-controls-tip",href:"https://guides.github.com/features/mastering-markdown/",target:"_blank",rel:"noopener noreferrer",children:_.jsx(Ze,{className:"gt-ico-tip",icon:Fh,text:V.t("support-markdown")})}),_.jsx(Qe,{className:"gt-btn-preview gt-btn--secondary",onClick:Zf,text:xe?V.t("edit"):V.t("preview"),isLoading:$n,disabled:!1}),L?_.jsx(Qe,{className:"gt-btn-public",onClick:$,text:V.t("comment"),isLoading:T,disabled:T||!me}):_.jsx(Qe,{className:"gt-btn-login",onClick:Lt,text:V.t("login-with-github")})]})]})]},"header"),ov=P.forwardRef(({comment:k},N)=>{var le;const{id:Q,user:te,reactionsHeart:ae}=k,ce=te==null?void 0:te.login,Y=!!L&&!!ce&&L.login===ce,Se=!!ce&&!!s.find(Le=>Le.toLowerCase()===ce.toLowerCase()),jt=(le=ae==null?void 0:ae.nodes.find(Le=>Le.user.login===(L==null?void 0:L.login)))==null?void 0:le.databaseId;return _.jsx("div",{ref:N,children:_.jsx(pg,{comment:k,isAuthor:Y,isAdmin:Se,onReply:ev,onLike:Le=>{Bf(Le,Q,jt)},likeLoading:Hf})})}),sv=()=>_.jsxs("div",{className:"gt-comments",children:[_.jsx(Gh,{...x,children:z.map(k=>_.jsx(ov,{comment:k},k.id))}),!J&&_.jsx("p",{className:"gt-comments-null",children:V.t("first-comment-person")}),!ye&&J?_.jsx("div",{className:"gt-comments-controls",children:_.jsx(Qe,{className:"gt-btn-loadmore",onClick:()=>Ve(k=>k+1),isLoading:h,text:V.t("load-more")})}):null]},"comments"),iv=()=>{const k=Z==="last";return _.jsxs("div",{className:"gt-meta",children:[_.jsx("span",{className:"gt-counts",dangerouslySetInnerHTML:{__html:V.t("counts",{counts:`<a class="gt-link gt-link-counts" href="${ee==null?void 0:ee.html_url}" target="_blank" rel="noopener noreferrer">${J}</a>`,smart_count:J})}}),be&&_.jsxs("div",{className:"gt-popup",children:[L?[_.jsx(fn,{className:`gt-action-sortasc${k?"":" is--active"}`,onClick:()=>X("first"),text:V.t("sort-asc")},"sort-asc"),_.jsx(fn,{className:`gt-action-sortdesc${k?" is--active":""}`,onClick:()=>X("last"),text:V.t("sort-desc")},"sort-desc")]:null,L?_.jsx(fn,{className:"gt-action-logout",onClick:Kf,text:V.t("logout")}):_.jsx("a",{className:"gt-action gt-action-login",onClick:Lt,children:V.t("login-with-github")}),_.jsxs("div",{className:"gt-copyright",children:[_.jsx("a",{className:"gt-link gt-link-project",href:um,target:"_blank",rel:"noopener noreferrer",children:"GitalkR"}),_.jsx("span",{className:"gt-version",children:am})]})]}),_.jsx("div",{className:"gt-user",children:_.jsxs("div",{className:`gt-user-inner${be?" is--poping":""}`,onClick:Xf,children:[_.jsx("span",{className:"gt-user-name",children:(L==null?void 0:L.login)??V.t("anonymous")}),_.jsx(Ze,{className:"gt-ico-arrdown",icon:Ch})]})})]},"meta")};return _.jsx(Ns.Provider,{value:{language:m,polyglot:V,dateFnsLocaleMap:rs},children:_.jsxs("div",{className:`gt-container
|
|
123
|
+
`)}`;De(ce),(Y=ve.current)==null||Y.focus()};if(!qf)return I.e("Gitalk React can only be rendered well in modern browser that supports CSS variables and ES2020.","If you have compatibility requirements, please consider using the original project which is compatible with older browsers: https://github.com/gitalk/gitalk"),null;if(!(t&&r))return I.e("You must specify the `clientId` and `clientSecret` of Github APP"),null;if(!(o&&n))return I.e("You must specify the `owner` and `repo` of Github"),null;if(!(Array.isArray(s)&&s.length>0))return I.e("You must specify the `admin` for the Github repository"),null;const tv=()=>_.jsxs("div",{className:"gt-initing",children:[_.jsx("i",{className:"gt-loader"}),_.jsx("p",{className:"gt-initing-text",children:V.t("init")})]}),rv=()=>_.jsxs("div",{className:"gt-no-init",children:[_.jsx("p",{dangerouslySetInnerHTML:{__html:V.t("no-found-related",{link:`<a href="https://github.com/${n}/${o}/issues" target="_blank" rel="noopener noreferrer">Issues</a>`})}}),_.jsx("p",{children:V.t("please-contact",{user:s.map(k=>`@${k}`).join(" ")})}),Ie?_.jsx("p",{children:_.jsx(Qe,{onClick:it,isLoading:st,text:V.t("init-issue")})}):null,!L&&_.jsx(Qe,{className:"gt-btn-login",onClick:Lt,text:V.t("login-with-github")})]},"no-init"),nv=()=>_.jsxs("div",{className:"gt-header",children:[L?_.jsx(Fs,{className:"gt-header-avatar",src:L.avatar_url,alt:L.login,href:L.html_url}):_.jsx("a",{className:"gt-avatar-github",onClick:Lt,children:_.jsx(Ze,{className:"gt-ico-github",icon:Rh})}),_.jsxs("div",{className:"gt-header-comment",children:[_.jsx("textarea",{ref:ve,className:"gt-header-textarea",style:{display:xe?"none":void 0},value:me,onChange:k=>De(k.target.value),onFocus:Yf,onBlur:Jf,onKeyDown:Qf,placeholder:V.t("leave-a-comment")}),_.jsx("div",{className:"gt-header-preview markdown-body",style:{display:xe?void 0:"none"},dangerouslySetInnerHTML:{__html:ie}}),_.jsxs("div",{className:"gt-header-controls",children:[_.jsx("a",{className:"gt-header-controls-tip",href:"https://guides.github.com/features/mastering-markdown/",target:"_blank",rel:"noopener noreferrer",children:_.jsx(Ze,{className:"gt-ico-tip",icon:Fh,text:V.t("support-markdown")})}),_.jsx(Qe,{className:"gt-btn-preview gt-btn--secondary",onClick:Zf,text:xe?V.t("edit"):V.t("preview"),isLoading:$n,disabled:!1}),L?_.jsx(Qe,{className:"gt-btn-public",onClick:$,text:V.t("comment"),isLoading:T,disabled:T||!me}):_.jsx(Qe,{className:"gt-btn-login",onClick:Lt,text:V.t("login-with-github")})]})]})]},"header"),ov=P.forwardRef(({comment:k},N)=>{var le;const{id:Q,user:te,reactionsHeart:ae}=k,ce=te==null?void 0:te.login,Y=!!L&&!!ce&&L.login===ce,Se=!!ce&&!!s.find(Le=>Le.toLowerCase()===ce.toLowerCase()),jt=(le=ae==null?void 0:ae.nodes.find(Le=>Le.user.login===(L==null?void 0:L.login)))==null?void 0:le.databaseId;return _.jsx("div",{ref:N,children:_.jsx(pg,{comment:k,isAuthor:Y,isAdmin:Se,onReply:ev,onLike:Le=>{Bf(Le,Q,jt)},likeLoading:Hf})})}),sv=()=>_.jsxs("div",{className:"gt-comments",children:[_.jsx(Gh,{...x,children:z.map(k=>_.jsx(ov,{comment:k},k.id))}),!J&&_.jsx("p",{className:"gt-comments-null",children:V.t("first-comment-person")}),!ye&&J?_.jsx("div",{className:"gt-comments-controls",children:_.jsx(Qe,{className:"gt-btn-loadmore",onClick:()=>Ve(k=>k+1),isLoading:h,text:V.t("load-more")})}):null]},"comments"),iv=()=>{const k=Z==="last";return _.jsxs("div",{className:"gt-meta",children:[_.jsx("span",{className:"gt-counts",dangerouslySetInnerHTML:{__html:V.t("counts",{counts:`<a class="gt-link gt-link-counts" href="${ee==null?void 0:ee.html_url}" target="_blank" rel="noopener noreferrer">${J}</a>`,smart_count:J})}}),be&&_.jsxs("div",{className:"gt-popup",children:[L?[_.jsx(fn,{className:`gt-action-sortasc${k?"":" is--active"}`,onClick:()=>X("first"),text:V.t("sort-asc")},"sort-asc"),_.jsx(fn,{className:`gt-action-sortdesc${k?" is--active":""}`,onClick:()=>X("last"),text:V.t("sort-desc")},"sort-desc")]:null,L?_.jsx(fn,{className:"gt-action-logout",onClick:Kf,text:V.t("logout")}):_.jsx("a",{className:"gt-action gt-action-login",onClick:Lt,children:V.t("login-with-github")}),_.jsxs("div",{className:"gt-copyright",children:[_.jsx("a",{className:"gt-link gt-link-project",href:um,target:"_blank",rel:"noopener noreferrer",children:"GitalkR"}),_.jsx("span",{className:"gt-version",children:am})]})]}),_.jsx("div",{className:"gt-user",children:_.jsxs("div",{className:`gt-user-inner${be?" is--poping":""}`,onClick:Xf,children:[_.jsx("span",{className:"gt-user-name",children:(L==null?void 0:L.login)??V.t("anonymous")}),_.jsx(Ze,{className:"gt-ico-arrdown",icon:Ch})]})})]},"meta")};return _.jsx(Ns.Provider,{value:{language:m,polyglot:V,dateFnsLocaleMap:rs},children:_.jsxs("div",{className:`gt-container${Ge?" gt-input-focused":""} ${W}`,...K,children:[ne&&_.jsx("div",{className:"gt-error",children:ne}),Dn?Vf?[iv(),nv(),sv()]:rv():tv()]})})}});
|