gitalk-react 1.0.0 → 1.1.0
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 +152 -53
- package/README.md +132 -34
- package/dist/gitalk-dark.css +1 -1
- package/dist/gitalk-light.css +1 -1
- package/dist/gitalk.browser.full.js +102 -0
- package/dist/gitalk.browser.js +94 -0
- package/dist/gitalk.cjs +94 -0
- package/dist/gitalk.d.cts +14 -0
- package/dist/gitalk.d.mts +174 -0
- package/dist/gitalk.js +2737 -10382
- package/package.json +61 -41
- package/proxy-server/.env.example +6 -0
- package/proxy-server/README.md +38 -0
- package/proxy-server/server.mjs +110 -0
- package/dist/gitalk.d.ts +0 -623
- package/dist/gitalk.umd.cjs +0 -126
- package/lib/assets/arrow-down.svg +0 -1
- package/lib/assets/edit.svg +0 -3
- package/lib/assets/github.svg +0 -3
- package/lib/assets/heart-filled.svg +0 -3
- package/lib/assets/heart.svg +0 -3
- package/lib/assets/reply.svg +0 -3
- package/lib/assets/tip.svg +0 -8
- package/lib/components/action.tsx +0 -21
- package/lib/components/avatar.tsx +0 -42
- package/lib/components/button.tsx +0 -35
- package/lib/components/comment-textarea.tsx +0 -166
- package/lib/components/comment.tsx +0 -204
- package/lib/components/comments-list.tsx +0 -112
- package/lib/components/meta.tsx +0 -133
- package/lib/components/svg.tsx +0 -29
- package/lib/constants/index.ts +0 -71
- package/lib/contexts/I18nContext.ts +0 -20
- package/lib/gitalk.tsx +0 -891
- package/lib/i18n/ar.json +0 -20
- package/lib/i18n/bn.json +0 -20
- package/lib/i18n/de.json +0 -20
- package/lib/i18n/en.json +0 -20
- package/lib/i18n/es.json +0 -20
- package/lib/i18n/fa.json +0 -20
- package/lib/i18n/fr.json +0 -20
- package/lib/i18n/hi.json +0 -20
- package/lib/i18n/index.ts +0 -53
- package/lib/i18n/ja.json +0 -20
- package/lib/i18n/ko.json +0 -20
- package/lib/i18n/pl.json +0 -21
- package/lib/i18n/pt.json +0 -20
- package/lib/i18n/ru.json +0 -20
- package/lib/i18n/ur.json +0 -20
- package/lib/i18n/zh-CN.json +0 -20
- package/lib/i18n/zh-TW.json +0 -20
- package/lib/interfaces/index.ts +0 -198
- package/lib/services/graphql/comment.ts +0 -84
- package/lib/services/request.ts +0 -24
- package/lib/services/user.ts +0 -40
- package/lib/themes/base.scss +0 -630
- package/lib/themes/gitalk-dark.scss +0 -28
- package/lib/themes/gitalk-light.scss +0 -28
- package/lib/utils/compatibility.ts +0 -35
- package/lib/utils/dom.ts +0 -15
- package/lib/utils/logger.ts +0 -66
- package/lib/utils/query.ts +0 -19
- package/lib/vite-env.d.ts +0 -1
package/dist/gitalk.umd.cjs
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react/jsx-runtime`),require(`react-dom`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Gitalk={},e.React,e.jsx,e.ReactDOM))})(this,function(e,t,n,r){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e));t=f(t),r=f(r);var p=u(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){var t=n.call(e),r=t===`[object Arguments]`;return r||=t!==`[object Array]`&&typeof e==`object`&&!!e&&typeof e.length==`number`&&e.length>=0&&n.call(e.callee)===`[object Function]`,r}})),m=u(((e,t)=>{var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=p(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},`toString`),c=o.call(function(){},`prototype`),l=[`toString`,`toLocaleString`,`valueOf`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`constructor`],u=function(e){var t=e.constructor;return t&&t.prototype===e},d={$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},f=function(){if(typeof window>`u`)return!1;for(var e in window)try{if(!d[`$`+e]&&r.call(window,e)&&window[e]!==null&&typeof window[e]==`object`)try{u(window[e])}catch{return!0}}catch{return!0}return!1}(),m=function(e){if(typeof window>`u`||!f)return u(e);try{return u(e)}catch{return!1}};n=function(e){var t=typeof e==`object`&&!!e,n=i.call(e)===`[object Function]`,o=a(e),u=t&&i.call(e)===`[object String]`,d=[];if(!t&&!n&&!o)throw TypeError(`Object.keys called on a non-object`);var f=c&&n;if(u&&e.length>0&&!r.call(e,0))for(var p=0;p<e.length;++p)d.push(String(p));if(o&&e.length>0)for(var h=0;h<e.length;++h)d.push(String(h));else for(var g in e)!(f&&g===`prototype`)&&r.call(e,g)&&d.push(String(g));if(s)for(var _=m(e),v=0;v<l.length;++v)!(_&&l[v]===`constructor`)&&r.call(e,l[v])&&d.push(l[v]);return d}}t.exports=n})),h=u(((e,t)=>{var n=Array.prototype.slice,r=p(),i=Object.keys,a=i?function(e){return i(e)}:m(),o=Object.keys;a.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return r(e)?o(n.call(e)):o(e)}):Object.keys=a,Object.keys||a},t.exports=a})),g=u(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),_=u(((e,t)=>{t.exports=SyntaxError})),v=u(((e,t)=>{t.exports=TypeError})),y=u(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),b=u(((e,t)=>{var n=y();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),x=u(((e,t)=>{var n=g(),r=_(),i=v(),a=b();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),S=u(((e,t)=>{var n=g(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),C=u(((e,t)=>{var n=h(),r=typeof Symbol==`function`&&typeof Symbol(`foo`)==`symbol`,i=Object.prototype.toString,a=Array.prototype.concat,o=x(),s=function(e){return typeof e==`function`&&i.call(e)===`[object Function]`},c=S()(),l=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!s(r)||!r())return}c?o(e,t,n,!0):o(e,t,n)},u=function(e,t){var i=arguments.length>2?arguments[2]:{},o=n(t);r&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)l(e,o[s],t[o[s]],i[o[s]])};u.supportsDescriptors=!!c,t.exports=u})),ee=u(((e,t)=>{t.exports=Object})),te=u(((e,t)=>{t.exports=Error})),ne=u(((e,t)=>{t.exports=EvalError})),re=u(((e,t)=>{t.exports=RangeError})),ie=u(((e,t)=>{t.exports=ReferenceError})),ae=u(((e,t)=>{t.exports=URIError})),w=u(((e,t)=>{t.exports=Math.abs})),oe=u(((e,t)=>{t.exports=Math.floor})),T=u(((e,t)=>{t.exports=Math.max})),E=u(((e,t)=>{t.exports=Math.min})),D=u(((e,t)=>{t.exports=Math.pow})),se=u(((e,t)=>{t.exports=Math.round})),O=u(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),ce=u(((e,t)=>{var n=O();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),le=u(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),ue=u(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=le();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),de=u(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),fe=u(((e,t)=>{t.exports=ee().getPrototypeOf||null})),pe=u(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),k=u(((e,t)=>{var n=pe();t.exports=Function.prototype.bind||n})),A=u(((e,t)=>{t.exports=Function.prototype.call})),me=u(((e,t)=>{t.exports=Function.prototype.apply})),he=u(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),j=u(((e,t)=>{var n=k(),r=me(),i=A();t.exports=he()||n.call(i,r)})),M=u(((e,t)=>{var n=k(),r=v(),i=A(),a=j();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),ge=u(((e,t)=>{var n=M(),r=b(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),_e=u(((e,t)=>{var n=de(),r=fe(),i=ge();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),N=u(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=k().call(n,r)})),P=u(((e,t)=>{var n,r=ee(),i=te(),a=ne(),o=re(),s=ie(),c=_(),l=v(),u=ae(),d=w(),f=oe(),p=T(),m=E(),h=D(),y=se(),x=ce(),S=Function,C=function(e){try{return S(`"use strict"; return (`+e+`).constructor;`)()}catch{}},O=b(),le=g(),pe=function(){throw new l},he=O?function(){try{return arguments.callee,pe}catch{try{return O(arguments,`callee`).get}catch{return pe}}}():pe,j=ue()(),M=_e(),ge=fe(),P=de(),F=me(),ve=A(),I={},ye=typeof Uint8Array>`u`||!M?n:M(Uint8Array),L={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":j&&M?M([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&M?M(M([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!j||!M?n:M(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!j||!M?n:M(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&M?M(``[Symbol.iterator]()):n,"%Symbol%":j?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":he,"%TypedArray%":ye,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":ve,"%Function.prototype.apply%":F,"%Object.defineProperty%":le,"%Object.getPrototypeOf%":ge,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":y,"%Math.sign%":x,"%Reflect.getPrototypeOf%":P};if(M)try{null.error}catch(e){L[`%Error.prototype%`]=M(M(e))}var be=function e(t){var n;if(t===`%AsyncFunction%`)n=C(`async function () {}`);else if(t===`%GeneratorFunction%`)n=C(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=C(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&M&&(n=M(i.prototype))}return L[t]=n,n},R={__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`]},z=k(),xe=N(),Se=z.call(ve,Array.prototype.concat),Ce=z.call(F,Array.prototype.splice),B=z.call(ve,String.prototype.replace),V=z.call(ve,String.prototype.slice),H=z.call(ve,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,we=/\\(\\)?/g,W=function(e){var t=V(e,0,1),n=V(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,U,function(e,t,n,i){r[r.length]=n?B(i,we,`$1`):t||e}),r},Te=function(e,t){var n=e,r;if(xe(R,n)&&(r=R[n],n=`%`+r[0]+`%`),xe(L,n)){var i=L[n];if(i===I&&(i=be(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(H(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=W(e),r=n.length>0?n[0]:``,i=Te(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],Ce(n,Se([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=V(p,0,1),h=V(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,xe(L,a))o=L[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(O&&d+1>=n.length){var g=O(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=xe(o,p),o=o[p];f&&!s&&(L[a]=o)}}return o}})),F=u(((e,t)=>{var n=P(),r=x(),i=S()(),a=b(),o=v(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),ve=u(((e,t)=>{var n=k(),r=me(),i=j();t.exports=function(){return i(n,r,arguments)}})),I=u(((e,t)=>{var n=F(),r=g(),i=M(),a=ve();t.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),ye=u(((e,t)=>{var n=v();t.exports=function(e){if(e==null)throw new n(arguments.length>0&&arguments[1]||`Cannot call method on `+e);return e}})),L=u(((e,t)=>{var n=P(),r=M(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),be=u(((e,t)=>{var n=ye(),r=L(),i=r(`Object.prototype.propertyIsEnumerable`),a=r(`Array.prototype.push`);t.exports=function(e){var t=n(e),r=[];for(var o in t)i(t,o)&&a(r,[o,t[o]]);return r}})),R=u(((e,t)=>{var n=be();t.exports=function(){return typeof Object.entries==`function`?Object.entries:n}})),z=u(((e,t)=>{var n=R(),r=C();t.exports=function(){var e=n();return r(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}})),xe=u(((e,t)=>{var n=C(),r=I(),i=be(),a=R(),o=z(),s=r(a(),Object);n(s,{getPolyfill:a,implementation:i,shim:o}),t.exports=s})),Se=u(((e,t)=>{var n=process.env.NODE_ENV!==`production`,r=function(){};if(n){var i=function(e,t){var n=arguments.length;t=Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,a=`Warning: `+e.replace(/%s/g,function(){return t[i++]});typeof console<`u`&&console.error(a);try{throw Error(a)}catch{}};r=function(e,t,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw Error("`warning(condition, format, ...args)` requires a warning message argument");e||i.apply(null,[t].concat(n))}}t.exports=r})),Ce=u(((e,t)=>{var n=xe(),r=Se(),i=N(),a=function(e){r(!1,e)},o=String.prototype.replace,s=String.prototype.split,c=`||||`,l=function(e){var t=e%100,n=t%10;return t!==11&&n===1?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},u={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:l,chinese:function(){return 0},croatian:l,french:function(e){return e>=2?1:0},german:function(e){return e===1?0:1},russian:l,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:l},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 d(e){for(var t={},r=n(e),i=0;i<r.length;i+=1)for(var a=r[i][0],o=r[i][1],s=0;s<o.length;s+=1)t[o[s]]=a;return t}function f(e,t){var n=d(e.pluralTypeToLanguages);return n[t]||n[s.call(t,/-/,1)[0]]||n.en}function p(e,t,n){return e.pluralTypes[t](n)}function m(){var e={};return function(t,n){var r=e[n];return r&&!t.pluralTypes[r]&&(r=null,e[n]=r),r||(r=f(t,n),r&&(e[n]=r)),r}}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function g(e){var t=e&&e.prefix||`%{`,n=e&&e.suffix||`}`;if(t===c||n===c)throw RangeError(`"`+c+`" token is reserved for pluralization`);return RegExp(h(t)+`(.*?)`+h(n),`g`)}var _=m(),v=/%\{(.*?)\}/g;function y(e,t,n,r,a,l){if(typeof e!=`string`)throw TypeError(`Polyglot.transformPhrase expects argument #1 to be string`);if(t==null)return e;var d=e,f=r||v,m=l||o,h=typeof t==`number`?{smart_count:t}:t;if(h.smart_count!=null&&e){var g=a||u,y=s.call(e,c),b=p(g,_(g,n||`en`),h.smart_count);d=o.call(y[b]||y[0],/^[^\S]*|[^\S]*$/g,``)}return d=m.call(d,f,function(e,t){return!i(h,t)||h[t]==null?e:h[t]}),d}function b(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||`en`;var n=t.allowMissing?y:null;this.onMissingKey=typeof t.onMissingKey==`function`?t.onMissingKey:n,this.warn=t.warn||a,this.replaceImplementation=t.replace||o,this.tokenRegex=g(t.interpolation),this.pluralRules=t.pluralRules||u}b.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},b.prototype.extend=function(e,t){for(var r=n(e||{}),i=0;i<r.length;i+=1){var a=r[i][0],o=r[i][1],s=t?t+`.`+a:a;typeof o==`object`?this.extend(o,s):this.phrases[s]=o}},b.prototype.unset=function(e,t){if(typeof e==`string`)delete this.phrases[e];else for(var r=n(e||{}),i=0;i<r.length;i+=1){var a=r[i][0],o=r[i][1],s=t?t+`.`+a:a;typeof o==`object`?this.unset(o,s):delete this.phrases[s]}},b.prototype.clear=function(){this.phrases={}},b.prototype.replace=function(e){this.clear(),this.extend(e)},b.prototype.t=function(e,t){var n,r,i=t??{};if(typeof this.phrases[e]==`string`)n=this.phrases[e];else if(typeof i._==`string`)n=i._;else if(this.onMissingKey){var a=this.onMissingKey;r=a(e,i,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn(`Missing translation for key: "`+e+`"`),r=e;return typeof n==`string`&&(r=y(n,i,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),r},b.prototype.has=function(e){return i(this.phrases,e)},b.transformPhrase=function(e,t,n){return y(e,t,n)},t.exports=b}));function B(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function V(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function H(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?we(s,e=>e.test(o)):U(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function U(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function we(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function W(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Te={lessThanXSeconds:{one:`أقل من ثانية`,two:`أقل من ثانيتين`,threeToTen:`أقل من {{count}} ثواني`,other:`أقل من {{count}} ثانية`},xSeconds:{one:`ثانية واحدة`,two:`ثانيتان`,threeToTen:`{{count}} ثواني`,other:`{{count}} ثانية`},halfAMinute:`نصف دقيقة`,lessThanXMinutes:{one:`أقل من دقيقة`,two:`أقل من دقيقتين`,threeToTen:`أقل من {{count}} دقائق`,other:`أقل من {{count}} دقيقة`},xMinutes:{one:`دقيقة واحدة`,two:`دقيقتان`,threeToTen:`{{count}} دقائق`,other:`{{count}} دقيقة`},aboutXHours:{one:`ساعة واحدة تقريباً`,two:`ساعتين تقريبا`,threeToTen:`{{count}} ساعات تقريباً`,other:`{{count}} ساعة تقريباً`},xHours:{one:`ساعة واحدة`,two:`ساعتان`,threeToTen:`{{count}} ساعات`,other:`{{count}} ساعة`},xDays:{one:`يوم واحد`,two:`يومان`,threeToTen:`{{count}} أيام`,other:`{{count}} يوم`},aboutXWeeks:{one:`أسبوع واحد تقريبا`,two:`أسبوعين تقريبا`,threeToTen:`{{count}} أسابيع تقريبا`,other:`{{count}} أسبوعا تقريبا`},xWeeks:{one:`أسبوع واحد`,two:`أسبوعان`,threeToTen:`{{count}} أسابيع`,other:`{{count}} أسبوعا`},aboutXMonths:{one:`شهر واحد تقريباً`,two:`شهرين تقريبا`,threeToTen:`{{count}} أشهر تقريبا`,other:`{{count}} شهرا تقريباً`},xMonths:{one:`شهر واحد`,two:`شهران`,threeToTen:`{{count}} أشهر`,other:`{{count}} شهرا`},aboutXYears:{one:`سنة واحدة تقريباً`,two:`سنتين تقريبا`,threeToTen:`{{count}} سنوات تقريباً`,other:`{{count}} سنة تقريباً`},xYears:{one:`سنة واحد`,two:`سنتان`,threeToTen:`{{count}} سنوات`,other:`{{count}} سنة`},overXYears:{one:`أكثر من سنة`,two:`أكثر من سنتين`,threeToTen:`أكثر من {{count}} سنوات`,other:`أكثر من {{count}} سنة`},almostXYears:{one:`ما يقارب سنة واحدة`,two:`ما يقارب سنتين`,threeToTen:`ما يقارب {{count}} سنوات`,other:`ما يقارب {{count}} سنة`}},Ee=(e,t,n)=>{let r=Te[e],i;return i=typeof r==`string`?r:t===1?r.one:t===2?r.two:t<=10?r.threeToTen.replace(`{{count}}`,String(t)):r.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`خلال `+i:`منذ `+i:i},De={date:B({formats:{full:`EEEE، do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:B({formats:{full:`HH:mm:ss`,long:`HH:mm:ss`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} 'عند الساعة' {{time}}`,long:`{{date}} 'عند الساعة' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Oe={lastWeek:`eeee 'الماضي عند الساعة' p`,yesterday:`'الأمس عند الساعة' p`,today:`'اليوم عند الساعة' p`,tomorrow:`'غدا عند الساعة' p`,nextWeek:`eeee 'القادم عند الساعة' p`,other:`P`},ke={code:`ar`,formatDistance:Ee,formatLong:De,formatRelative:e=>Oe[e],localize:{ordinalNumber:e=>String(e),era:V({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:V({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:V({values:{narrow:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`},abbreviated:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`},wide:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`},abbreviated:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`},wide:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:`wide`,parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^[أيفمسند]/,abbreviated:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{narrow:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/,any:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/منتصف الليل/,noon:/الظهر/,afternoon:/بعد الظهر/,morning:/في الصباح/,evening:/في المساء/,night:/في الليل/}},defaultParseWidth:`any`})},options:{weekStartsOn:6,firstWeekContainsDate:1}},Ae=365.2425,je=6e4,Me=36e5,Ne=43200,Pe=1440,Fe=3600*24;Fe*7,Fe*Ae/12*3;var Ie=Symbol.for(`constructDateFrom`);function Le(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ie in e?e[Ie](t):e instanceof Date?new e.constructor(t):new Date(t)}function Re(e,...t){let n=Le.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var ze={};function Be(){return ze}function G(e,t){return Le(t||e,e)}function Ve(e,t){let n=Be(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=G(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function He(e,t,n){let[r,i]=Re(n?.in,e,t);return+Ve(r,n)==+Ve(i,n)}var Ue={locale:{1:`১`,2:`২`,3:`৩`,4:`৪`,5:`৫`,6:`৬`,7:`৭`,8:`৮`,9:`৯`,0:`০`},number:{"১":`1`,"২":`2`,"৩":`3`,"৪":`4`,"৫":`5`,"৬":`6`,"৭":`7`,"৮":`8`,"৯":`9`,"০":`0`}},We={narrow:[`খ্রিঃপূঃ`,`খ্রিঃ`],abbreviated:[`খ্রিঃপূর্ব`,`খ্রিঃ`],wide:[`খ্রিস্টপূর্ব`,`খ্রিস্টাব্দ`]},Ge={narrow:[`১`,`২`,`৩`,`৪`],abbreviated:[`১ত্রৈ`,`২ত্রৈ`,`৩ত্রৈ`,`৪ত্রৈ`],wide:[`১ম ত্রৈমাসিক`,`২য় ত্রৈমাসিক`,`৩য় ত্রৈমাসিক`,`৪র্থ ত্রৈমাসিক`]},Ke={narrow:[`জানু`,`ফেব্রু`,`মার্চ`,`এপ্রিল`,`মে`,`জুন`,`জুলাই`,`আগস্ট`,`সেপ্ট`,`অক্টো`,`নভে`,`ডিসে`],abbreviated:[`জানু`,`ফেব্রু`,`মার্চ`,`এপ্রিল`,`মে`,`জুন`,`জুলাই`,`আগস্ট`,`সেপ্ট`,`অক্টো`,`নভে`,`ডিসে`],wide:[`জানুয়ারি`,`ফেব্রুয়ারি`,`মার্চ`,`এপ্রিল`,`মে`,`জুন`,`জুলাই`,`আগস্ট`,`সেপ্টেম্বর`,`অক্টোবর`,`নভেম্বর`,`ডিসেম্বর`]},qe={narrow:[`র`,`সো`,`ম`,`বু`,`বৃ`,`শু`,`শ`],short:[`রবি`,`সোম`,`মঙ্গল`,`বুধ`,`বৃহ`,`শুক্র`,`শনি`],abbreviated:[`রবি`,`সোম`,`মঙ্গল`,`বুধ`,`বৃহ`,`শুক্র`,`শনি`],wide:[`রবিবার`,`সোমবার`,`মঙ্গলবার`,`বুধবার`,`বৃহস্পতিবার `,`শুক্রবার`,`শনিবার`]},Je={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:`রাত`}},Ye={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:`রাত`}};function Xe(e,t){if(e>18&&e<=31)return t+`শে`;switch(e){case 1:return t+`লা`;case 2:case 3:return t+`রা`;case 4:return t+`ঠা`;default:return t+`ই`}}var Ze=(e,t)=>{let n=Number(e),r=Qe(n);if(t?.unit===`date`)return Xe(n,r);if(n>10||n===0)return r+`তম`;switch(n%10){case 2:case 3:return r+`য়`;case 4:return r+`র্থ`;case 6:return r+`ষ্ঠ`;default:return r+`ম`}};function Qe(e){return e.toString().replace(/\d/g,function(e){return Ue.locale[e]})}var $e={ordinalNumber:Ze,era:V({values:We,defaultWidth:`wide`}),quarter:V({values:Ge,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:Ke,defaultWidth:`wide`}),day:V({values:qe,defaultWidth:`wide`}),dayPeriod:V({values:Je,defaultWidth:`wide`,formattingValues:Ye,defaultFormattingWidth:`wide`})},et={lessThanXSeconds:{one:`প্রায় ১ সেকেন্ড`,other:`প্রায় {{count}} সেকেন্ড`},xSeconds:{one:`১ সেকেন্ড`,other:`{{count}} সেকেন্ড`},halfAMinute:`আধ মিনিট`,lessThanXMinutes:{one:`প্রায় ১ মিনিট`,other:`প্রায় {{count}} মিনিট`},xMinutes:{one:`১ মিনিট`,other:`{{count}} মিনিট`},aboutXHours:{one:`প্রায় ১ ঘন্টা`,other:`প্রায় {{count}} ঘন্টা`},xHours:{one:`১ ঘন্টা`,other:`{{count}} ঘন্টা`},xDays:{one:`১ দিন`,other:`{{count}} দিন`},aboutXWeeks:{one:`প্রায় ১ সপ্তাহ`,other:`প্রায় {{count}} সপ্তাহ`},xWeeks:{one:`১ সপ্তাহ`,other:`{{count}} সপ্তাহ`},aboutXMonths:{one:`প্রায় ১ মাস`,other:`প্রায় {{count}} মাস`},xMonths:{one:`১ মাস`,other:`{{count}} মাস`},aboutXYears:{one:`প্রায় ১ বছর`,other:`প্রায় {{count}} বছর`},xYears:{one:`১ বছর`,other:`{{count}} বছর`},overXYears:{one:`১ বছরের বেশি`,other:`{{count}} বছরের বেশি`},almostXYears:{one:`প্রায় ১ বছর`,other:`প্রায় {{count}} বছর`}},tt=(e,t,n)=>{let r,i=et[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,Qe(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+` এর মধ্যে`:r+` আগে`:r},nt={date:B({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:B({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} {{time}} 'সময়'`,long:`{{date}} {{time}} 'সময়'`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},rt={lastWeek:`'গত' eeee 'সময়' p`,yesterday:`'গতকাল' 'সময়' p`,today:`'আজ' 'সময়' p`,tomorrow:`'আগামীকাল' 'সময়' p`,nextWeek:`eeee 'সময়' p`,other:`P`},it={code:`bn`,formatDistance:tt,formatLong:nt,formatRelative:(e,t,n,r)=>rt[e],localize:$e,match:{ordinalNumber:W({matchPattern:/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},defaultParseWidth:`wide`}),quarter:H({matchPatterns:{narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/১/i,/২/i,/৩/i,/৪/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},defaultParseWidth:`wide`}),dayPeriod:H({matchPatterns:{narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},at={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`}}},ot=(e,t,n)=>{let r,i=n?.addSuffix?at[e].withPreposition:at[e].standalone;return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:`vor `+r:r},st={date:B({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:B({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ct={lastWeek:`'letzten' eeee 'um' p`,yesterday:`'gestern um' p`,today:`'heute um' p`,tomorrow:`'morgen um' p`,nextWeek:`eeee 'um' p`,other:`P`},lt=(e,t,n,r)=>ct[e],ut={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},dt={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},ft={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`]},pt={narrow:ft.narrow,abbreviated:[`Jan.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:ft.wide},mt={code:`de`,formatDistance:ot,formatLong:st,formatRelative:lt,localize:{ordinalNumber:e=>Number(e)+`.`,era:V({values:ut,defaultWidth:`wide`}),quarter:V({values:dt,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:ft,formattingValues:pt,defaultWidth:`wide`}),day:V({values:{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`]},defaultWidth:`wide`}),dayPeriod:V({values:{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`}},defaultWidth:`wide`,formattingValues:{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`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:H({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ht={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`}},gt=(e,t,n)=>{let r,i=ht[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},_t={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},vt=(e,t,n,r)=>_t[e],yt={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:V({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{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`]},defaultWidth:`wide`}),day:V({values:{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`]},defaultWidth:`wide`}),dayPeriod:V({values:{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`}},defaultWidth:`wide`,formattingValues:{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`}},defaultFormattingWidth:`wide`})},bt={ordinalNumber:W({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{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},defaultMatchWidth:`any`,parsePatterns:{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}},defaultParseWidth:`any`})},xt={code:`en-US`,formatDistance:gt,formatLong:{date:B({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:B({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:vt,localize:yt,match:bt,options:{weekStartsOn:0,firstWeekContainsDate:1}},St={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`}},Ct=(e,t,n)=>{let r,i=St[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`en `+r:`hace `+r:r},wt={date:B({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:B({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} 'a las' {{time}}`,long:`{{date}} 'a las' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Tt={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`},Et={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`},Dt={code:`es`,formatDistance:Ct,formatLong:wt,formatRelative:(e,t,n,r)=>t.getHours()===1?Tt[e]:Et[e],localize:{ordinalNumber:(e,t)=>Number(e)+`º`,era:V({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`después de cristo`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:e=>Number(e)-1}),month:V({values:{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`]},defaultWidth:`wide`}),day:V({values:{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`]},defaultWidth:`wide`}),dayPeriod:V({values:{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`}},defaultWidth:`wide`,formattingValues:{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`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{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},defaultMatchWidth:`any`,parsePatterns:{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}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ot={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}} سال`}},kt=(e,t,n)=>{let r,i=Ot[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`در `+r:r+` قبل`:r},At={date:B({formats:{full:`EEEE do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:B({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} 'در' {{time}}`,long:`{{date}} 'در' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},jt={lastWeek:`eeee 'گذشته در' p`,yesterday:`'دیروز در' p`,today:`'امروز در' p`,tomorrow:`'فردا در' p`,nextWeek:`eeee 'در' p`,other:`P`},Mt={code:`fa-IR`,formatDistance:kt,formatLong:At,formatRelative:(e,t,n,r)=>jt[e],localize:{ordinalNumber:(e,t)=>String(e),era:V({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل از میلاد`,`بعد از میلاد`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`سم1`,`سم2`,`سم3`,`سم4`],wide:[`سهماهه 1`,`سهماهه 2`,`سهماهه 3`,`سهماهه 4`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{narrow:[`ژ`,`ف`,`م`,`آ`,`م`,`ج`,`ج`,`آ`,`س`,`ا`,`ن`,`د`],abbreviated:[`ژانـ`,`فور`,`مارس`,`آپر`,`می`,`جون`,`جولـ`,`آگو`,`سپتـ`,`اکتـ`,`نوامـ`,`دسامـ`],wide:[`ژانویه`,`فوریه`,`مارس`,`آپریل`,`می`,`جون`,`جولای`,`آگوست`,`سپتامبر`,`اکتبر`,`نوامبر`,`دسامبر`]},defaultWidth:`wide`}),day:V({values:{narrow:[`ی`,`د`,`س`,`چ`,`پ`,`ج`,`ش`],short:[`1ش`,`2ش`,`3ش`,`4ش`,`5ش`,`ج`,`ش`],abbreviated:[`یکشنبه`,`دوشنبه`,`سهشنبه`,`چهارشنبه`,`پنجشنبه`,`جمعه`,`شنبه`],wide:[`یکشنبه`,`دوشنبه`,`سهشنبه`,`چهارشنبه`,`پنجشنبه`,`جمعه`,`شنبه`]},defaultWidth:`wide`}),dayPeriod:V({values:{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:`شب`}},defaultWidth:`wide`,formattingValues:{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:`شب`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^سم[1234]/i,wide:/^سهماهه [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سهشنبه|چهارشنبه|پنجشنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سهشنبه|چهارشنبه|پنجشنبه|جمعه|شنبه)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سهشنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمهشب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبلازظهر|نیمهشب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^(ق|ق.ظ.|قبلازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(نیمهشب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:6,firstWeekContainsDate:1}},Nt={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`}},Pt=(e,t,n)=>{let r,i=Nt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`dans `+r:`il y a `+r:r},Ft={date:B({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:B({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},It={lastWeek:`eeee 'dernier à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'prochain à' p`,other:`P`},Lt=(e,t,n,r)=>It[e],Rt={narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},zt={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`]},Bt={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`]},Vt={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`]},Ht={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`}},Ut=(e,t)=>{let n=Number(e),r=t?.unit;if(n===0)return`0`;let i=[`year`,`week`,`hour`,`minute`,`second`],a;return a=n===1?r&&i.includes(r)?`ère`:`er`:`ème`,n+a},Wt=[`MMM`,`MMMM`],Gt={code:`fr`,formatDistance:Pt,formatLong:Ft,formatRelative:Lt,localize:{preprocessor:(e,t)=>e.getDate()===1||!t.some(e=>e.isToken&&Wt.includes(e.value))?t:t.map(e=>e.isToken&&e.value===`do`?{isToken:!0,value:`d`}:e),ordinalNumber:Ut,era:V({values:Rt,defaultWidth:`wide`}),quarter:V({values:zt,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:Bt,defaultWidth:`wide`}),day:V({values:Vt,defaultWidth:`wide`}),dayPeriod:V({values:Ht,defaultWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{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},defaultMatchWidth:`any`,parsePatterns:{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}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Kt={locale:{1:`१`,2:`२`,3:`३`,4:`४`,5:`५`,6:`६`,7:`७`,8:`८`,9:`९`,0:`०`},number:{"१":`1`,"२":`2`,"३":`3`,"४":`4`,"५":`5`,"६":`6`,"७":`7`,"८":`8`,"९":`9`,"०":`0`}},qt={narrow:[`ईसा-पूर्व`,`ईस्वी`],abbreviated:[`ईसा-पूर्व`,`ईस्वी`],wide:[`ईसा-पूर्व`,`ईसवी सन`]},Jt={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ति1`,`ति2`,`ति3`,`ति4`],wide:[`पहली तिमाही`,`दूसरी तिमाही`,`तीसरी तिमाही`,`चौथी तिमाही`]},Yt={narrow:[`ज`,`फ़`,`मा`,`अ`,`मई`,`जू`,`जु`,`अग`,`सि`,`अक्टू`,`न`,`दि`],abbreviated:[`जन`,`फ़र`,`मार्च`,`अप्रैल`,`मई`,`जून`,`जुल`,`अग`,`सित`,`अक्टू`,`नव`,`दिस`],wide:[`जनवरी`,`फ़रवरी`,`मार्च`,`अप्रैल`,`मई`,`जून`,`जुलाई`,`अगस्त`,`सितंबर`,`अक्टूबर`,`नवंबर`,`दिसंबर`]},Xt={narrow:[`र`,`सो`,`मं`,`बु`,`गु`,`शु`,`श`],short:[`र`,`सो`,`मं`,`बु`,`गु`,`शु`,`श`],abbreviated:[`रवि`,`सोम`,`मंगल`,`बुध`,`गुरु`,`शुक्र`,`शनि`],wide:[`रविवार`,`सोमवार`,`मंगलवार`,`बुधवार`,`गुरुवार`,`शुक्रवार`,`शनिवार`]},Zt={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:`रात`}},Qt={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:`रात`}},$t=(e,t)=>tn(Number(e));function en(e){let t=e.toString().replace(/[१२३४५६७८९०]/g,function(e){return Kt.number[e]});return Number(t)}function tn(e){return e.toString().replace(/\d/g,function(e){return Kt.locale[e]})}var nn={ordinalNumber:$t,era:V({values:qt,defaultWidth:`wide`}),quarter:V({values:Jt,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:Yt,defaultWidth:`wide`}),day:V({values:Xt,defaultWidth:`wide`}),dayPeriod:V({values:Zt,defaultWidth:`wide`,formattingValues:Qt,defaultFormattingWidth:`wide`})},rn={lessThanXSeconds:{one:`१ सेकंड से कम`,other:`{{count}} सेकंड से कम`},xSeconds:{one:`१ सेकंड`,other:`{{count}} सेकंड`},halfAMinute:`आधा मिनट`,lessThanXMinutes:{one:`१ मिनट से कम`,other:`{{count}} मिनट से कम`},xMinutes:{one:`१ मिनट`,other:`{{count}} मिनट`},aboutXHours:{one:`लगभग १ घंटा`,other:`लगभग {{count}} घंटे`},xHours:{one:`१ घंटा`,other:`{{count}} घंटे`},xDays:{one:`१ दिन`,other:`{{count}} दिन`},aboutXWeeks:{one:`लगभग १ सप्ताह`,other:`लगभग {{count}} सप्ताह`},xWeeks:{one:`१ सप्ताह`,other:`{{count}} सप्ताह`},aboutXMonths:{one:`लगभग १ महीना`,other:`लगभग {{count}} महीने`},xMonths:{one:`१ महीना`,other:`{{count}} महीने`},aboutXYears:{one:`लगभग १ वर्ष`,other:`लगभग {{count}} वर्ष`},xYears:{one:`१ वर्ष`,other:`{{count}} वर्ष`},overXYears:{one:`१ वर्ष से अधिक`,other:`{{count}} वर्ष से अधिक`},almostXYears:{one:`लगभग १ वर्ष`,other:`लगभग {{count}} वर्ष`}},an=(e,t,n)=>{let r,i=rn[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,tn(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`मे `:r+` पहले`:r},on={date:B({formats:{full:`EEEE, do MMMM, y`,long:`do MMMM, y`,medium:`d MMM, y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:B({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} 'को' {{time}}`,long:`{{date}} 'को' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},sn={lastWeek:`'पिछले' eeee p`,yesterday:`'कल' p`,today:`'आज' p`,tomorrow:`'कल' p`,nextWeek:`eeee 'को' p`,other:`P`},cn={code:`hi`,formatDistance:an,formatLong:on,formatRelative:(e,t,n,r)=>sn[e],localize:nn,match:{ordinalNumber:W({matchPattern:/^[०१२३४५६७८९]+/i,parsePattern:/^[०१२३४५६७८९]+/i,valueCallback:en}),era:H({matchPatterns:{narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:4}},ln={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}}年近く`}},un=(e,t,n)=>{n||={};let r,i=ln[e];return r=typeof i==`string`?i:t===1?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+`後`:r+`前`:r},dn={date:B({formats:{full:`y年M月d日EEEE`,long:`y年M月d日`,medium:`y/MM/dd`,short:`y/MM/dd`},defaultWidth:`full`}),time:B({formats:{full:`H時mm分ss秒 zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},fn={lastWeek:`先週のeeeeのp`,yesterday:`昨日のp`,today:`今日のp`,tomorrow:`明日のp`,nextWeek:`翌週のeeeeのp`,other:`P`},pn={code:`ja`,formatDistance:un,formatLong:dn,formatRelative:(e,t,n,r)=>fn[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(String(t?.unit)){case`year`:return`${n}年`;case`quarter`:return`第${n}四半期`;case`month`:return`${n}月`;case`week`:return`第${n}週`;case`date`:return`${n}日`;case`hour`:return`${n}時`;case`minute`:return`${n}分`;case`second`:return`${n}秒`;default:return`${n}`}},era:V({values:{narrow:[`BC`,`AC`],abbreviated:[`紀元前`,`西暦`],wide:[`紀元前`,`西暦`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`第1四半期`,`第2四半期`,`第3四半期`,`第4四半期`]},defaultWidth:`wide`,argumentCallback:e=>Number(e)-1}),month:V({values:{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月`]},defaultWidth:`wide`}),day:V({values:{narrow:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],short:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],abbreviated:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],wide:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`]},defaultWidth:`wide`}),dayPeriod:V({values:{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:`深夜`}},defaultWidth:`wide`,formattingValues:{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:`深夜`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:H({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},mn={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}}년`}},hn=(e,t,n)=>{let r,i=mn[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+` 후`:r+` 전`:r},gn={date:B({formats:{full:`y년 M월 d일 EEEE`,long:`y년 M월 d일`,medium:`y.MM.dd`,short:`y.MM.dd`},defaultWidth:`full`}),time:B({formats:{full:`a H시 mm분 ss초 zzzz`,long:`a H:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},_n={lastWeek:`'지난' eeee p`,yesterday:`'어제' p`,today:`'오늘' p`,tomorrow:`'내일' p`,nextWeek:`'다음' eeee p`,other:`P`},vn={code:`ko`,formatDistance:hn,formatLong:gn,formatRelative:(e,t,n,r)=>_n[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(String(t?.unit)){case`minute`:case`second`:return String(n);case`date`:return n+`일`;default:return n+`번째`}},era:V({values:{narrow:[`BC`,`AD`],abbreviated:[`BC`,`AD`],wide:[`기원전`,`서기`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1분기`,`2분기`,`3분기`,`4분기`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{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월`]},defaultWidth:`wide`}),day:V({values:{narrow:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],short:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],abbreviated:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],wide:[`일요일`,`월요일`,`화요일`,`수요일`,`목요일`,`금요일`,`토요일`]},defaultWidth:`wide`}),dayPeriod:V({values:{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:`밤`}},defaultWidth:`wide`,formattingValues:{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:`밤`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},yn={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 bn(e,t){if(t===1)return e.one;let n=t%100;if(n<=20&&n>10)return e.other;let r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function xn(e,t,n){let r=bn(e,t);return(typeof r==`string`?r:r[n]).replace(`{{count}}`,String(t))}var Sn=(e,t,n)=>{let r=yn[e];return n?.addSuffix?n.comparison&&n.comparison>0?`za `+xn(r,t,`future`):xn(r,t,`past`)+` temu`:xn(r,t,`regular`)},Cn={date:B({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:B({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},wn={masculine:`ostatni`,feminine:`ostatnia`},Tn={masculine:`ten`,feminine:`ta`},En={masculine:`następny`,feminine:`następna`},Dn={0:`feminine`,1:`masculine`,2:`masculine`,3:`feminine`,4:`masculine`,5:`masculine`,6:`feminine`};function On(e,t,n,r){let i;if(He(t,n,r))i=Tn;else if(e===`lastWeek`)i=wn;else if(e===`nextWeek`)i=En;else throw Error(`Cannot determine adjectives for token ${e}`);let a=Dn[t.getDay()];return`'${i[a]}' eeee 'o' p`}var kn={lastWeek:On,yesterday:`'wczoraj o' p`,today:`'dzisiaj o' p`,tomorrow:`'jutro o' p`,nextWeek:On,other:`P`},An={code:`pl`,formatDistance:Sn,formatLong:Cn,formatRelative:(e,t,n,r)=>{let i=kn[e];return typeof i==`function`?i(e,t,n,r):i},localize:{ordinalNumber:(e,t)=>String(e),era:V({values:{narrow:[`p.n.e.`,`n.e.`],abbreviated:[`p.n.e.`,`n.e.`],wide:[`przed naszą erą`,`naszej ery`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I kw.`,`II kw.`,`III kw.`,`IV kw.`],wide:[`I kwartał`,`II kwartał`,`III kwartał`,`IV kwartał`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{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ń`]},defaultWidth:`wide`,formattingValues:{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`]},defaultFormattingWidth:`wide`}),day:V({values:{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`]},defaultWidth:`wide`,formattingValues:{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`]},defaultFormattingWidth:`wide`}),dayPeriod:V({values:{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`}},defaultWidth:`wide`,formattingValues:{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`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{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},defaultMatchWidth:`any`,parsePatterns:{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}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},jn={lessThanXSeconds:{one:`menos de um segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`meio minuto`,lessThanXMinutes:{one:`menos de um minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`aproximadamente 1 hora`,other:`aproximadamente {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 dia`,other:`{{count}} dias`},aboutXWeeks:{one:`aproximadamente 1 semana`,other:`aproximadamente {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`aproximadamente 1 mês`,other:`aproximadamente {{count}} meses`},xMonths:{one:`1 mês`,other:`{{count}} meses`},aboutXYears:{one:`aproximadamente 1 ano`,other:`aproximadamente {{count}} anos`},xYears:{one:`1 ano`,other:`{{count}} anos`},overXYears:{one:`mais de 1 ano`,other:`mais de {{count}} anos`},almostXYears:{one:`quase 1 ano`,other:`quase {{count}} anos`}},Mn=(e,t,n)=>{let r,i=jn[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`daqui a `+r:`há `+r:r},Nn={date:B({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d 'de' MMM 'de' y`,short:`dd/MM/y`},defaultWidth:`full`}),time:B({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} 'às' {{time}}`,long:`{{date}} 'às' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Pn={lastWeek:e=>{let t=e.getDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' p`,other:`P`},Fn={code:`pt`,formatDistance:Mn,formatLong:Nn,formatRelative:(e,t,n,r)=>{let i=Pn[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:(e,t)=>Number(e)+`º`,era:V({values:{narrow:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`antes de Cristo`,`depois de Cristo`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:V({values:{narrow:[`d`,`s`,`t`,`q`,`q`,`s`,`s`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],abbreviated:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:V({values:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{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 da era comum|depois de cristo|era comum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:`wide`,parsePatterns:{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,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function In(e,t){if(e.one!==void 0&&t===1)return e.one;let n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function K(e){return(t,n)=>n?.addSuffix?n.comparison&&n.comparison>0?e.future?In(e.future,t):`через `+In(e.regular,t):e.past?In(e.past,t):In(e.regular,t)+` назад`:In(e.regular,t)}var Ln={lessThanXSeconds:K({regular:{one:`меньше секунды`,singularNominative:`меньше {{count}} секунды`,singularGenitive:`меньше {{count}} секунд`,pluralGenitive:`меньше {{count}} секунд`},future:{one:`меньше, чем через секунду`,singularNominative:`меньше, чем через {{count}} секунду`,singularGenitive:`меньше, чем через {{count}} секунды`,pluralGenitive:`меньше, чем через {{count}} секунд`}}),xSeconds:K({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?.addSuffix?t.comparison&&t.comparison>0?`через полминуты`:`полминуты назад`:`полминуты`,lessThanXMinutes:K({regular:{one:`меньше минуты`,singularNominative:`меньше {{count}} минуты`,singularGenitive:`меньше {{count}} минут`,pluralGenitive:`меньше {{count}} минут`},future:{one:`меньше, чем через минуту`,singularNominative:`меньше, чем через {{count}} минуту`,singularGenitive:`меньше, чем через {{count}} минуты`,pluralGenitive:`меньше, чем через {{count}} минут`}}),xMinutes:K({regular:{singularNominative:`{{count}} минута`,singularGenitive:`{{count}} минуты`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минуту назад`,singularGenitive:`{{count}} минуты назад`,pluralGenitive:`{{count}} минут назад`},future:{singularNominative:`через {{count}} минуту`,singularGenitive:`через {{count}} минуты`,pluralGenitive:`через {{count}} минут`}}),aboutXHours:K({regular:{singularNominative:`около {{count}} часа`,singularGenitive:`около {{count}} часов`,pluralGenitive:`около {{count}} часов`},future:{singularNominative:`приблизительно через {{count}} час`,singularGenitive:`приблизительно через {{count}} часа`,pluralGenitive:`приблизительно через {{count}} часов`}}),xHours:K({regular:{singularNominative:`{{count}} час`,singularGenitive:`{{count}} часа`,pluralGenitive:`{{count}} часов`}}),xDays:K({regular:{singularNominative:`{{count}} день`,singularGenitive:`{{count}} дня`,pluralGenitive:`{{count}} дней`}}),aboutXWeeks:K({regular:{singularNominative:`около {{count}} недели`,singularGenitive:`около {{count}} недель`,pluralGenitive:`около {{count}} недель`},future:{singularNominative:`приблизительно через {{count}} неделю`,singularGenitive:`приблизительно через {{count}} недели`,pluralGenitive:`приблизительно через {{count}} недель`}}),xWeeks:K({regular:{singularNominative:`{{count}} неделя`,singularGenitive:`{{count}} недели`,pluralGenitive:`{{count}} недель`}}),aboutXMonths:K({regular:{singularNominative:`около {{count}} месяца`,singularGenitive:`около {{count}} месяцев`,pluralGenitive:`около {{count}} месяцев`},future:{singularNominative:`приблизительно через {{count}} месяц`,singularGenitive:`приблизительно через {{count}} месяца`,pluralGenitive:`приблизительно через {{count}} месяцев`}}),xMonths:K({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяца`,pluralGenitive:`{{count}} месяцев`}}),aboutXYears:K({regular:{singularNominative:`около {{count}} года`,singularGenitive:`около {{count}} лет`,pluralGenitive:`около {{count}} лет`},future:{singularNominative:`приблизительно через {{count}} год`,singularGenitive:`приблизительно через {{count}} года`,pluralGenitive:`приблизительно через {{count}} лет`}}),xYears:K({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} года`,pluralGenitive:`{{count}} лет`}}),overXYears:K({regular:{singularNominative:`больше {{count}} года`,singularGenitive:`больше {{count}} лет`,pluralGenitive:`больше {{count}} лет`},future:{singularNominative:`больше, чем через {{count}} год`,singularGenitive:`больше, чем через {{count}} года`,pluralGenitive:`больше, чем через {{count}} лет`}}),almostXYears:K({regular:{singularNominative:`почти {{count}} год`,singularGenitive:`почти {{count}} года`,pluralGenitive:`почти {{count}} лет`},future:{singularNominative:`почти через {{count}} год`,singularGenitive:`почти через {{count}} года`,pluralGenitive:`почти через {{count}} лет`}})},Rn=(e,t,n)=>Ln[e](t,n),zn={date:B({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:B({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:B({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},Bn=[`воскресенье`,`понедельник`,`вторник`,`среду`,`четверг`,`пятницу`,`субботу`];function Vn(e){let t=Bn[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 Hn(e){let t=Bn[e];return e===2?`'во `+t+` в' p`:`'в `+t+` в' p`}function Un(e){let t=Bn[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`}}var Wn={lastWeek:(e,t,n)=>{let r=e.getDay();return He(e,t,n)?Hn(r):Vn(r)},yesterday:`'вчера в' p`,today:`'сегодня в' p`,tomorrow:`'завтра в' p`,nextWeek:(e,t,n)=>{let r=e.getDay();return He(e,t,n)?Hn(r):Un(r)},other:`P`},Gn={code:`ru`,formatDistance:Rn,formatLong:zn,formatRelative:(e,t,n,r)=>{let i=Wn[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=t?.unit,i;return i=r===`date`?`-е`:r===`week`||r===`minute`||r===`second`?`-я`:`-й`,n+i},era:V({values:{narrow:[`до н.э.`,`н.э.`],abbreviated:[`до н. э.`,`н. э.`],wide:[`до нашей эры`,`нашей эры`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-й кв.`,`2-й кв.`,`3-й кв.`,`4-й кв.`],wide:[`1-й квартал`,`2-й квартал`,`3-й квартал`,`4-й квартал`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв.`,`фев.`,`март`,`апр.`,`май`,`июнь`,`июль`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],wide:[`январь`,`февраль`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`]},defaultWidth:`wide`,formattingValues:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв.`,`фев.`,`мар.`,`апр.`,`мая`,`июн.`,`июл.`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],wide:[`января`,`февраля`,`марта`,`апреля`,`мая`,`июня`,`июля`,`августа`,`сентября`,`октября`,`ноября`,`декабря`]},defaultFormattingWidth:`wide`}),day:V({values:{narrow:[`В`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`вс`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],abbreviated:[`вск`,`пнд`,`втр`,`срд`,`чтв`,`птн`,`суб`],wide:[`воскресенье`,`понедельник`,`вторник`,`среда`,`четверг`,`пятница`,`суббота`]},defaultWidth:`wide`}),dayPeriod:V({values:{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:`ночь`}},defaultWidth:`any`,formattingValues:{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:`ночи`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Kn={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}} 年`}},qn=(e,t,n)=>{let r,i=Kn[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`内`:r+`前`:r},Jn={date:B({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:B({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};function Yn(e,t,n){let r=`eeee p`;return He(e,t,n)?r:e.getTime()>t.getTime()?`'下个'`+r:`'上个'`+r}var Xn={lastWeek:Yn,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:Yn,other:`PP p`},Zn={code:`zh-CN`,formatDistance:qn,formatLong:Jn,formatRelative:(e,t,n,r)=>{let i=Xn[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n.toString()+`日`;case`hour`:return n.toString()+`时`;case`minute`:return n.toString()+`分`;case`second`:return n.toString()+`秒`;default:return`第 `+n.toString()}},era:V({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一季`,`第二季`,`第三季`,`第四季`],wide:[`第一季度`,`第二季度`,`第三季度`,`第四季度`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:V({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:V({values:{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:`夜间`}},defaultWidth:`wide`,formattingValues:{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:`夜间`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Qn={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}} 年`}},$n=(e,t,n)=>{let r,i=Qn[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`內`:r+`前`:r},er={date:B({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:B({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:B({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},tr={lastWeek:`'上個'eeee p`,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:`'下個'eeee p`,other:`P`},nr={code:`zh-TW`,formatDistance:$n,formatLong:er,formatRelative:(e,t,n,r)=>tr[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n+`日`;case`hour`:return n+`時`;case`minute`:return n+`分`;case`second`:return n+`秒`;default:return`第 `+n}},era:V({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:V({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一刻`,`第二刻`,`第三刻`,`第四刻`],wide:[`第一刻鐘`,`第二刻鐘`,`第三刻鐘`,`第四刻鐘`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:V({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:V({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:V({values:{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:`夜間`}},defaultWidth:`wide`,formattingValues:{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:`夜間`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:W({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:H({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:H({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:H({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:H({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},rr=f(Ce(),1),ir={name:`gitalk-react`,version:`1.0.0`,private:!1,author:{name:`LolipopJ`,email:`mail@towind.fun`,url:`https://github.com/LolipopJ`},repository:{type:`git`,url:`https://github.com/LolipopJ/gitalk-react.git`},homepage:`https://lolipopj.github.io/gitalk-react`,license:`MIT`,type:`module`,files:[`dist`,`lib`,`LICENSE`,`package.json`,`README-zh-CN.md`,`README.md`],main:`./dist/gitalk.umd.cjs`,module:`./dist/gitalk.js`,exports:{".":{import:`./dist/gitalk.js`,require:`./dist/gitalk.umd.cjs`},"./gitalk.css":`./dist/gitalk-light.css`,"./light.css":`./dist/gitalk-light.css`,"./gitalk-light.css":`./dist/gitalk-light.css`,"./dark.css":`./dist/gitalk-dark.css`,"./gitalk-dark.css":`./dist/gitalk-dark.css`},types:`./dist/gitalk.d.ts`,scripts:{dev:`vite --config vite.config.preview.ts`,build:`npm run build:lib && npm run build:preview`,"build:lib":`npm run build:ts && npm run build:scss`,"build:ts":`tsc -b && vite build`,"build:scss":`vite build --config vite.config.scss.ts`,"build:preview":`vite build --config vite.config.preview.ts`,lint:`npm run lint:ts && npm run lint:scss`,"lint:ts":`eslint . --fix`,"lint:scss":`stylelint **/*.scss --fix`},dependencies:{ahooks:`^3.0.0`,classnames:`^2.0.0`,"date-fns":`^4.0.0`,"node-polyglot":`^2.0.0`,octokit:`^5.0.0`,"react-flip-move":`^3.0.0`},peerDependencies:{react:`>=16.8.0`,"react-dom":`>=16.8.0`},devDependencies:{"@eslint/js":`^9.39.4`,"@octokit/types":`^16.0.0`,"@types/node":`^24.0.0`,"@types/node-polyglot":`^2.5.0`,"@types/react":`^16.14.69`,"@types/react-dom":`^16.9.25`,"@vitejs/plugin-react":`^6.0.1`,eslint:`^9.39.4`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-prettier":`^5.5.5`,"eslint-plugin-react":`^7.37.5`,"eslint-plugin-react-hooks":`^7.0.1`,"eslint-plugin-react-refresh":`^0.5.2`,"eslint-plugin-simple-import-sort":`^12.1.1`,"github-markdown-css":`^5.9.0`,globals:`^17.4.0`,postcss:`^8.5.8`,prettier:`^3.8.1`,react:`^16.14.0`,"react-dom":`^16.14.0`,"rollup-plugin-visualizer":`^7.0.1`,"sass-embedded":`^1.98.0`,stylelint:`^17.5.0`,"stylelint-config-recess-order":`^7.7.0`,"stylelint-config-standard-scss":`^17.0.0`,"stylelint-order":`^8.1.1`,typescript:`~5.9.3`,"typescript-eslint":`^8.57.1`,vite:`^8.0.1`,"vite-plugin-dts":`^4.5.4`}},ar=ir.version,or=ir.homepage,sr=[`Gitalk`],cr={staggerDelayBy:150,appearAnimation:`accordionVertical`,enterAnimation:`accordionVertical`,leaveAnimation:`accordionVertical`},lr=`https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token`,ur=`https://cdn.jsdelivr.net/npm/gitalk@1/src/assets/icon/github.svg`,dr={avatar_url:`//avatars1.githubusercontent.com/u/29697133?s=50`,login:`null`,html_url:``},fr=`GT_ACCESS_TOKEN`,pr={en:xt,zh:Zn,"zh-CN":Zn,"zh-SG":Zn,"zh-TW":nr,"zh-HK":nr,"zh-MO":nr,hi:cn,es:Dt,fr:Gt,ar:ke,bn:it,ru:Gn,pt:Fn,ur:xt,ko:vn,ja:pn,de:mt,pl:An,fa:Mt},mr=`جارٍ تحميل Gitalk ...`,hr=`معاينة`,gr=`تعديل`,_r=`تعليق`,vr=`علق`,yr=`%{counts} تعليق |||| %{counts} تعليقات`,br=`تسجيل الخروج`,xr=`مجهول`,Sr={init:mr,"no-found-related":`لم يتم العثور على %{link} ذي صلة للتعليق`,"please-contact":`يرجى الاتصال بـ %{user} لتهيئة التعليق`,"init-issue":`إنشاء المشكلة`,"leave-a-comment":`اترك تعليقًا`,preview:hr,edit:gr,comment:_r,"support-markdown":`يدعم Markdown`,"login-with-github":`تسجيل الدخول عبر GitHub`,"first-comment-person":`كن أول من يترك تعليقًا!`,commented:vr,"load-more":`تحميل المزيد`,counts:yr,"sort-asc":`الترتيب من الأقدم`,"sort-desc":`الترتيب من الأحدث`,logout:br,anonymous:xr},Cr=`Gitalk লোড হচ্ছে ...`,wr=`পূর্বরূপ`,Tr=`সম্পাদনা`,Er=`মন্তব্য`,Dr=`মন্তব্য করেছে`,Or=`%{counts} মন্তব্য`,kr=`লগ আউট`,Ar=`নামবিহীন`,jr={init:Cr,"no-found-related":`মতামত করার জন্য সম্পর্কিত %{link} পাওয়া যায়নি`,"please-contact":`মন্তব্য আরম্ভ করতে %{user}-এর সাথে যোগাযোগ করুন`,"init-issue":`সমস্যা তৈরি করুন`,"leave-a-comment":`মন্তব্য করুন`,preview:wr,edit:Tr,comment:Er,"support-markdown":`Markdown সমর্থিত`,"login-with-github":`GitHub দিয়ে লগইন`,"first-comment-person":`প্রথম মন্তব্যকারী হন!`,commented:Dr,"load-more":`আরও লোড করুন`,counts:Or,"sort-asc":`প্রাচীন থেকে নতুন ক্রমানুসারে`,"sort-desc":`নতুন থেকে পুরাতন ক্রমানুসারে`,logout:kr,anonymous:Ar},Mr=`Gitalking ...`,Nr=`Vorschau`,Pr=`Editieren`,Fr=`Kommentieren`,Ir=`kommentierte`,Lr=`%{counts} Kommentar |||| %{counts} Kommentare`,Rr=`Abmelden`,zr=`Anonym`,Br={init:Mr,"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:Nr,edit:Pr,comment:Fr,"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:Ir,"load-more":`Zeige mehr`,counts:Lr,"sort-asc":`Älteste zuerst`,"sort-desc":`Neuste zuerst`,logout:Rr,anonymous:zr},Vr=`Gitalking ...`,Hr=`Preview`,Ur=`Edit`,Wr=`Comment`,Gr=`commented`,Kr=`%{counts} comment |||| %{counts} comments`,qr=`Logout`,Jr=`Anonymous`,Yr={init:Vr,"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:Hr,edit:Ur,comment:Wr,"support-markdown":`Markdown is supported`,"login-with-github":`Login with GitHub`,"first-comment-person":`Be the first person to leave a comment!`,commented:Gr,"load-more":`Load more`,counts:Kr,"sort-asc":`Sort by Oldest`,"sort-desc":`Sort by Latest`,logout:qr,anonymous:Jr},Xr=`Gitalking ...`,Zr=`Avance`,Qr=`Editar`,$r=`Comentario`,ei=`comentó`,ti=`%{counts} comentario |||| %{counts} comentarios`,ni=`Salir`,ri=`Anónimo`,ii={init:Xr,"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:Zr,edit:Qr,comment:$r,"support-markdown":`Markdown es soportado`,"login-with-github":`Entrar con GitHub`,"first-comment-person":`Sé el primero en dejar un comentario!`,commented:ei,"load-more":`Cargar más`,counts:ti,"sort-asc":`Ordenar por Antiguos`,"sort-desc":`Ordenar por Recientes`,logout:ni,anonymous:ri},ai=`بارگزاری ...`,oi=`پیشنمایش`,si=`ویرایش`,ci=`ثبت`,li=`%{counts} نظر |||| %{counts} نظر`,ui=`خروج`,di=`بینام`,fi={init:ai,"no-found-related":`%{link} مرتبط پیدا نشد.`,"please-contact":`لطفاً با %{user} اطلاع دهید تا اضافه کند.`,"init-issue":`شروع نظرات`,"leave-a-comment":`نظرتان را بنویسید`,preview:oi,edit:si,comment:ci,"support-markdown":`پشتیبانی از مارکداون`,"login-with-github":`ورود با گیتهاب`,"first-comment-person":`اولین نظر را شما بنویسید!`,commented:` - `,"load-more":`نظرات بیشتر`,counts:li,"sort-asc":`مرتبسازی از قدیمیترین`,"sort-desc":`مرتبسازی از جدیدترین`,logout:ui,anonymous:di},pi=`Gitalking ...`,mi=`Aperçu`,hi=`Modifier`,gi=`Commentaire`,_i=`a commenté`,vi=`%{counts} commentaire |||| %{counts} commentaires`,yi=`Déconnexion`,bi=`Anonyme`,xi={init:pi,"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:mi,edit:hi,comment:gi,"support-markdown":`Markdown est supporté`,"login-with-github":`Se connecter avec GitHub`,"first-comment-person":`Soyez le premier à laisser un commentaire !`,commented:_i,"load-more":`Charger plus`,counts:vi,"sort-asc":`Trier du plus ancien au plus récent`,"sort-desc":`Trier du plus récent au plus ancien`,logout:yi,anonymous:bi},Si=`Gitalk लोड हो रहा है ...`,Ci=`पूर्वावलोकन`,wi=`संपादित करें`,Ti=`टिप्पणी`,Ei=`टिप्पणी की`,Di=`%{counts} टिप्पणी |||| %{counts} टिप्पणियाँ`,Oi=`लॉगआउट`,ki=`अनाम`,Ai={init:Si,"no-found-related":`टिप्पणी के लिए संबंधित %{link} नहीं मिला`,"please-contact":`कृपया टिप्पणी आरंभ करने के लिए %{user} से संपर्क करें`,"init-issue":`समस्या बनाएँ`,"leave-a-comment":`एक टिप्पणी छोड़ें`,preview:Ci,edit:wi,comment:Ti,"support-markdown":`Markdown समर्थित है`,"login-with-github":`GitHub से लॉगिन करें`,"first-comment-person":`पहला टिप्पणी करने वाला बनें!`,commented:Ei,"load-more":`और लोड करें`,counts:Di,"sort-asc":`पुराने से नए क्रम में`,"sort-desc":`नए से पुराने क्रम में`,logout:Oi,anonymous:ki},ji=`Gitalk を読み込んでいます...`,Mi=`プレビュー`,Ni=`編集する`,Pi=`コメント`,Fi=`によるコメント`,Ii=`%{counts} つのコメント`,Li=`ログアウト`,Ri=`匿名`,zi={init:ji,"no-found-related":`%{link} に関連するものが見当たりません`,"please-contact":`コメントを初期化するために %{user} に連絡してください`,"init-issue":`イシューを初期化する`,"leave-a-comment":`コメントを残す`,preview:Mi,edit:Ni,comment:Pi,"support-markdown":`Markdown 記法をサポートしています`,"login-with-github":`GitHub にログインする`,"first-comment-person":`最初にコメントを残しましょう!`,commented:Fi,"load-more":`もっと見る`,counts:Ii,"sort-asc":`投稿順に並び替え`,"sort-desc":`最新順で並び替え`,logout:Li,anonymous:Ri},Bi=`초기화 중 ...`,Vi=`미리보기`,Hi=`수정하기`,Ui=`댓글 달기`,Wi=`님이 작성함`,Gi=`댓글 %{counts} 개`,Ki=`로그아웃`,qi=`익명`,Ji={init:Bi,"no-found-related":`관련 링크를 찾을 수 없습니다: %{link} `,"please-contact":`초기화를 위해 %{user} 에게 연락해 주세요`,"init-issue":`이슈 초기화`,"leave-a-comment":`댓글을 남겨보세요`,preview:Vi,edit:Hi,comment:Ui,"support-markdown":`마크다운(Markdown) 문법 지원`,"login-with-github":`GitHub로 로그인하기`,"first-comment-person":`첫 번째로 댓글을 남겨보세요!`,commented:Wi,"load-more":`더 보기`,counts:Gi,"sort-asc":`오래된 댓글 먼저`,"sort-desc":`최신 댓글 먼저`,logout:Ki,anonymous:qi},Yi=`Gitalking ...`,Xi=`Podgląd`,Zi=`Edytuj`,Qi=`Wyślij`,$i=`skomentowany`,ea=`%{counts} komentarz |||| %{counts} komentarze |||| %{counts} komentarzy`,ta=`Wyloguj`,na=`Anonimowy`,ra={init:Yi,"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:Xi,edit:Zi,comment:Qi,"support-markdown":`Możesz użyć składni Markdown`,"login-with-github":`Zaloguj się poprzez GitHub`,"first-comment-person":`Skomentuj jako pierwszy!`,commented:$i,"load-more":`Załaduj więcej`,counts:ea,"sort-asc":`Sortuj od najstarszych`,"sort-desc":`Sortuj od najnowszych`,logout:ta,anonymous:na},ia=`Carregando Gitalk ...`,aa=`Pré-visualizar`,oa=`Editar`,sa=`Comentar`,ca=`comentou`,la=`%{counts} comentário |||| %{counts} comentários`,ua=`Sair`,da=`Anônimo`,fa={init:ia,"no-found-related":`Não foi encontrado %{link} relacionado para comentar`,"please-contact":`Por favor contate %{user} para inicializar o comentário`,"init-issue":`Criar problema`,"leave-a-comment":`Deixe um comentário`,preview:aa,edit:oa,comment:sa,"support-markdown":`Suporta Markdown`,"login-with-github":`Entrar com GitHub`,"first-comment-person":`Seja a primeira pessoa a deixar um comentário!`,commented:ca,"load-more":`Carregar mais`,counts:la,"sort-asc":`Ordenar do mais antigo`,"sort-desc":`Ordenar do mais recente`,logout:ua,anonymous:da},pa=`Gitalking ...`,ma=`Предварительный просмотр`,ha=`Pедактировать`,ga=`Комментарий`,_a=`прокомментированный`,va=`%{counts} комментарий |||| %{counts} комментариев`,ya=`Выход`,ba=`Анонимный`,xa={init:pa,"no-found-related":`Связанные %{link} не найдены`,"please-contact":`Пожалуйста, свяжитесь с %{user} чтобы инициализировать комментарий`,"init-issue":`Выпуск инициализации`,"leave-a-comment":`Оставить комментарий`,preview:ma,edit:ha,comment:ga,"support-markdown":`Поддерживается Markdown`,"login-with-github":`Вход через GitHub`,"first-comment-person":`Будьте первым, кто оставил комментарий`,commented:_a,"load-more":`Загрузить ещё`,counts:va,"sort-asc":`Сортировать по старым`,"sort-desc":`Сортировать по последним`,logout:ya,anonymous:ba},Sa=`Gitalk لوڈ ہو رہا ہے ...`,Ca=`پیش نظارہ`,wa=`ترمیم کریں`,Ta=`تبصرہ`,Ea=`نے تبصرہ کیا`,Da=`%{counts} تبصرہ |||| %{counts} تبصرے`,Oa=`لاگ آؤٹ`,ka=`گمنام`,Aa={init:Sa,"no-found-related":`تبصرہ کرنے کے لیے متعلقہ %{link} نہیں ملا`,"please-contact":`تبصرہ شروع کرنے کے لیے براہ کرم %{user} سے رابطہ کریں`,"init-issue":`مسئلہ بنائیں`,"leave-a-comment":`ایک تبصرہ چھوڑیں`,preview:Ca,edit:wa,comment:Ta,"support-markdown":`Markdown کی حمایت کرتا ہے`,"login-with-github":`GitHub کے ساتھ لاگ ان کریں`,"first-comment-person":`پہلا تبصرہ کرنے والا بنیں!`,commented:Ea,"load-more":`مزید لوڈ کریں`,counts:Da,"sort-asc":`سب سے پرانے سے ترتیب`,"sort-desc":`سب سے نئے سے ترتیب`,logout:Oa,anonymous:ka},ja=`Gitalk 加载中 ...`,Ma=`预览`,Na=`编辑`,Pa=`评论`,Fa=`发表于`,Ia=`%{counts} 条评论`,La=`注销`,Ra=`未登录用户`,za={init:ja,"no-found-related":`未找到相关的 %{link} 进行评论`,"please-contact":`请联系 %{user} 初始化创建`,"init-issue":`初始化 Issue`,"leave-a-comment":`说点什么`,preview:Ma,edit:Na,comment:Pa,"support-markdown":`支持 Markdown 语法`,"login-with-github":`使用 GitHub 登录`,"first-comment-person":`来做第一个留言的人吧!`,commented:Fa,"load-more":`加载更多`,counts:Ia,"sort-asc":`从旧到新排序`,"sort-desc":`从新到旧排序`,logout:La,anonymous:Ra},Ba=`Gitalk 載入中…`,Va=`預覽`,Ha=`編輯`,Ua=`評論`,Wa=`評論於`,Ga=`%{counts} 筆評論`,Ka=`登出`,qa=`訪客`,Ja={init:Ba,"no-found-related":`未找到相關的 %{link}`,"please-contact":`請聯絡 %{user} 初始化評論`,"init-issue":`初始化 Issue`,"leave-a-comment":`寫點什麼`,preview:Va,edit:Ha,comment:Ua,"support-markdown":`支援 Markdown 語法`,"login-with-github":`使用 GitHub 登入`,"first-comment-person":`成為首個留言的人吧!`,commented:Wa,"load-more":`載入更多`,counts:Ga,"sort-asc":`從舊至新排序`,"sort-desc":`從新至舊排序`,logout:Ka,anonymous:qa},Ya={en:Yr,zh:za,"zh-CN":za,"zh-SG":za,"zh-TW":Ja,"zh-HK":Ja,"zh-MO":Ja,hi:Ai,es:ii,fr:xi,ar:Sr,bn:jr,ru:xa,pt:fa,ur:Aa,ko:Ji,ja:zi,de:Br,pl:ra,fa:fi},Xa=(e=`en`)=>new rr.default({phrases:Ya[e]??Ya.en,locale:e}),Za=function(e){return function(n,r){var i=(0,t.useRef)(!1);e(function(){return function(){i.current=!1}},[]),e(function(){if(!i.current)i.current=!0;else return n()},r)}},q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},q.apply(this,arguments)};function Qa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function $a(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function eo(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function J(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Y(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var to=function(e){return typeof e==`function`},no=process.env.NODE_ENV===`development`||process.env.NODE_ENV===`test`,ro=function(e){no&&(to(e)||console.error(`useMemoizedFn expected parameter is a function, got ${typeof e}`));var n=(0,t.useRef)(e);n.current=(0,t.useMemo)(function(){return e},[e]);var r=(0,t.useRef)(void 0);return r.current||=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.current.apply(this,e)},r.current},io=Za(t.useEffect),ao=function(e,n){var r=n.manual,i=n.ready,a=i===void 0?!0:i,o=n.defaultParams,s=o===void 0?[]:o,c=n.refreshDeps,l=c===void 0?[]:c,u=n.refreshDepsAction,d=(0,t.useRef)(!1);return d.current=!1,io(function(){!r&&a&&(d.current=!0,e.run.apply(e,Y([],J(s),!1)))},[a]),io(function(){d.current||r||(d.current=!0,u?u():e.refresh())},Y([],J(l),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};ao.onInit=function(e){var t=e.ready,n=t===void 0?!0:t;return{loading:!e.manual&&n}};function oo(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var so=function(e,n){var r=(0,t.useRef)({deps:n,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!oo(r.deps,n))&&(r.deps=n,r.obj=e(),r.initialized=!0),r.obj};function co(e){var n=(0,t.useRef)(e);return n.current=e,n}var lo=function(e){no&&(to(e)||console.error(`useUnmount expected parameter is a function, got ${typeof e}`));var n=co(e);(0,t.useEffect)(function(){return function(){n.current()}},[])},uo=new Map,fo=function(e,t,n){var r=uo.get(e);r?.timer&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout(function(){uo.delete(e)},t)),uo.set(e,q(q({},n),{timer:i}))},po=function(e){return uo.get(e)},mo=new Map,ho=function(e){return mo.get(e)},go=function(e,t){mo.set(e,t),t.then(function(t){return mo.delete(e),t}).catch(function(){mo.delete(e)})},_o={},vo=function(e,t){_o[e]&&_o[e].forEach(function(e){return e(t)})},yo=function(e,t){return _o[e]||(_o[e]=[]),_o[e].push(t),function(){var n=_o[e].indexOf(t);_o[e].splice(n,1)}},bo=function(e,n){var r=n.cacheKey,i=n.cacheTime,a=i===void 0?300*1e3:i,o=n.staleTime,s=o===void 0?0:o,c=n.setCache,l=n.getCache,u=(0,t.useRef)(void 0),d=(0,t.useRef)(void 0),f=function(e,t){c?c(t):fo(e,a,t),vo(e,t.data)},p=function(e,t){return t===void 0&&(t=[]),l?l(t):po(e)};return so(function(){if(r){var t=p(r);t&&Object.hasOwnProperty.call(t,`data`)&&(e.state.data=t.data,e.state.params=t.params,(s===-1||Date.now()-t.time<=s)&&(e.state.loading=!1)),u.current=yo(r,function(t){e.setState({data:t})})}},[]),lo(function(){var e;(e=u.current)==null||e.call(u)}),r?{onBefore:function(e){var t=p(r,e);return!t||!Object.hasOwnProperty.call(t,`data`)?{}:s===-1||Date.now()-t.time<=s?{loading:!1,data:t?.data,error:void 0,returnNow:!0}:{data:t?.data,error:void 0}},onRequest:function(e,t){var n=ho(r);return n&&n!==d.current?{servicePromise:n}:(n=e.apply(void 0,Y([],J(t),!1)),d.current=n,go(r,n),{servicePromise:n})},onSuccess:function(t,n){var i;r&&((i=u.current)==null||i.call(u),f(r,{data:t,params:n,time:Date.now()}),u.current=yo(r,function(t){e.setState({data:t})}))},onMutate:function(t){var n;r&&((n=u.current)==null||n.call(u),f(r,{data:t,params:e.state.params,time:Date.now()}),u.current=yo(r,function(t){e.setState({data:t})}))}}:{}},xo=u(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),So=u(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Co=u(((e,t)=>{var n=So(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),wo=u(((e,t)=>{var n=Co();t.exports=function(){return n.Date.now()}})),To=u(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),Eo=u(((e,t)=>{var n=To(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),Do=u(((e,t)=>{t.exports=Co().Symbol})),Oo=u(((e,t)=>{var n=Do(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),ko=u(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Ao=u(((e,t)=>{var n=Do(),r=Oo(),i=ko(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),jo=u(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Mo=u(((e,t)=>{var n=Ao(),r=jo(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),No=u(((e,t)=>{var n=Eo(),r=xo(),i=Mo(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),Po=u(((e,t)=>{var n=xo(),r=wo(),i=No(),a=`Expected a function`,o=Math.max,s=Math.min;function c(e,t,c){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(a);t=i(t)||0,n(c)&&(g=!!c.leading,_=`maxWait`in c,d=_?o(i(c.maxWait)||0,t):d,v=`trailing`in c?!!c.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?s(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return ee(e);p=setTimeout(C,x(e))}function ee(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function te(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function ne(){return p===void 0?f:ee(r())}function re(){var e=r(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return re.cancel=te,re.flush=ne,re}t.exports=c})),Fo=f(Po()),Io=function(e,n){var r=n.debounceWait,i=n.debounceLeading,a=n.debounceTrailing,o=n.debounceMaxWait,s=(0,t.useRef)(void 0),c=(0,t.useMemo)(function(){var e={};return i!==void 0&&(e.leading=i),a!==void 0&&(e.trailing=a),o!==void 0&&(e.maxWait=o),e},[i,a,o]);return(0,t.useEffect)(function(){if(r){var t=e.runAsync.bind(e);return s.current=(0,Fo.default)(function(e){e()},r,c),e.runAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise(function(n,r){var i;(i=s.current)==null||i.call(s,function(){t.apply(void 0,Y([],J(e),!1)).then(n).catch(r)})})},function(){var n;(n=s.current)==null||n.cancel(),e.runAsync=t}}},[r,c]),r?{onCancel:function(){var e;(e=s.current)==null||e.cancel()}}:{}},Lo=function(e,n){var r=n.loadingDelay,i=n.ready,a=(0,t.useRef)(void 0);if(!r)return{};var o=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return o(),i!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},Ro=!!(typeof window<`u`&&window.document&&window.document.createElement);function zo(){return Ro?document.visibilityState!==`hidden`:!0}var Bo=new Set;function Vo(e){return Bo.add(e),function(){Bo.has(e)&&Bo.delete(e)}}Ro&&window.addEventListener(`visibilitychange`,function(){zo()&&Bo.forEach(function(e){return e()})},!1);var Ho=function(e,n){var r=n.pollingInterval,i=n.pollingWhenHidden,a=i===void 0?!0:i,o=n.pollingErrorRetryCount,s=o===void 0?-1:o,c=(0,t.useRef)(void 0),l=(0,t.useRef)(void 0),u=(0,t.useRef)(0),d=function(){var e;c.current&&clearTimeout(c.current),(e=l.current)==null||e.call(l)};return io(function(){r||d()},[r]),r?{onBefore:function(){d()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){s===-1||s!==-1&&u.current<=s?c.current=setTimeout(function(){!a&&!zo()?l.current=Vo(function(){e.refresh()}):e.refresh()},r):u.current=0},onCancel:function(){d()}}:{}};function Uo(e,t){var n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n||(n=!0,e.apply(void 0,Y([],J(r),!1)),setTimeout(function(){n=!1},t))}}var Wo=function(){return Ro&&navigator.onLine!==void 0?navigator.onLine:!0},Go=new Set;function Ko(e){return Go.add(e),function(){Go.has(e)&&Go.delete(e)}}if(Ro){var qo=function(){!zo()||!Wo()||Go.forEach(function(e){return e()})};window.addEventListener(`visibilitychange`,qo,!1),window.addEventListener(`focus`,qo,!1)}var Jo=function(e,n){var r=n.refreshOnWindowFocus,i=n.focusTimespan,a=i===void 0?5e3:i,o=(0,t.useRef)(void 0),s=function(){var e;(e=o.current)==null||e.call(o)};return(0,t.useEffect)(function(){if(r){var t=Uo(e.refresh.bind(e),a);o.current=Ko(function(){t()})}return function(){s()}},[r,a]),lo(function(){s()}),{}},Yo=function(e,n){var r=n.retryInterval,i=n.retryCount,a=(0,t.useRef)(void 0),o=(0,t.useRef)(0),s=(0,t.useRef)(!1);return i?{onBefore:function(){s.current||(o.current=0),s.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,i===-1||o.current<=i){var t=r??Math.min(1e3*2**o.current,3e4);a.current=setTimeout(function(){s.current=!0,e.refresh()},t)}else o.current=0},onCancel:function(){o.current=0,a.current&&clearTimeout(a.current)}}:{}},Xo=f(u(((e,t)=>{var n=Po(),r=xo(),i=`Expected a function`;function a(e,t,a){var o=!0,s=!0;if(typeof e!=`function`)throw TypeError(i);return r(a)&&(o=`leading`in a?!!a.leading:o,s=`trailing`in a?!!a.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}t.exports=a}))()),Zo=function(e,n){var r=n.throttleWait,i=n.throttleLeading,a=n.throttleTrailing,o=(0,t.useRef)(void 0),s={};return i!==void 0&&(s.leading=i),a!==void 0&&(s.trailing=a),(0,t.useEffect)(function(){if(r){var t=e.runAsync.bind(e);return o.current=(0,Xo.default)(function(e){e()},r,s),e.runAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise(function(n,r){var i;(i=o.current)==null||i.call(o,function(){t.apply(void 0,Y([],J(e),!1)).then(n).catch(r)})})},function(){var n;e.runAsync=t,(n=o.current)==null||n.cancel()}}},[r,i,a]),r?{onCancel:function(){var e;(e=o.current)==null||e.cancel()}}:{}},Qo=function(e){no&&(to(e)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof e}".`)),(0,t.useEffect)(function(){var t=e?.();if(!(t&&typeof t==`object`&&typeof t.then==`function`))return t},[])},$o=function(){var e=J((0,t.useState)({}),2)[1];return(0,t.useCallback)(function(){return e({})},[])},es=function(){function e(e,t,n,r){r===void 0&&(r={}),this.serviceRef=e,this.options=t,this.subscribe=n,this.initState=r,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=q(q(q({},this.state),{loading:!t.manual}),r)}return e.prototype.setState=function(e){e===void 0&&(e={}),this.state=q(q({},this.state),e),this.subscribe()},e.prototype.runPluginHandler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.pluginImpls.map(function(n){var r;return(r=n[e])?.call.apply(r,Y([n],J(t),!1))}).filter(Boolean);return Object.assign.apply(Object,Y([{}],J(r),!1))},e.prototype.runAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $a(this,void 0,void 0,function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;return eo(this,function(S){switch(S.label){case 0:if(this.count+=1,t=this.count,n=this.runPluginHandler(`onBefore`,e),r=n.stopNow,i=r===void 0?!1:r,a=n.returnNow,o=a===void 0?!1:a,s=Qa(n,[`stopNow`,`returnNow`]),i)return[2,new Promise(function(){})];if(this.setState(q({loading:!0,params:e},s)),o)return[2,Promise.resolve(s.data)];(p=(f=this.options).onBefore)==null||p.call(f,e),S.label=1;case 1:return S.trys.push([1,3,,4]),c=this.runPluginHandler(`onRequest`,this.serviceRef.current,e).servicePromise,c||=(d=this.serviceRef).current.apply(d,Y([],J(e),!1)),[4,c];case 2:return l=S.sent(),t===this.count?(this.setState({data:l,error:void 0,loading:!1}),(h=(m=this.options).onSuccess)==null||h.call(m,l,e),this.runPluginHandler(`onSuccess`,l,e),(_=(g=this.options).onFinally)==null||_.call(g,e,l,void 0),t===this.count&&this.runPluginHandler(`onFinally`,e,l,void 0),[2,l]):[2,new Promise(function(){})];case 3:if(u=S.sent(),t!==this.count)return[2,new Promise(function(){})];throw this.setState({error:u,loading:!1}),(y=(v=this.options).onError)==null||y.call(v,u,e),this.runPluginHandler(`onError`,u,e),(x=(b=this.options).onFinally)==null||x.call(b,e,void 0,u),t===this.count&&this.runPluginHandler(`onFinally`,e,void 0,u),u;case 4:return[2]}})})},e.prototype.run=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,Y([],J(t),!1)).catch(function(t){e.options.onError||console.error(t)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler(`onCancel`)},e.prototype.refresh=function(){this.run.apply(this,Y([],J(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Y([],J(this.state.params||[]),!1))},e.prototype.mutate=function(e){var t=to(e)?e(this.state.data):e;this.runPluginHandler(`onMutate`,t),this.setState({data:t})},e}();function ts(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,i=r===void 0?!1:r,a=t.ready,o=a===void 0?!0:a,s=Qa(t,[`manual`,`ready`]);no&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn(`expected defaultParams is array, got ${typeof t.defaultParams}`);var c=q({manual:i,ready:o},s),l=co(e),u=$o(),d=so(function(){var e=n.map(function(e){return(e?.onInit)?.call(e,c)}).filter(Boolean);return new es(l,c,u,Object.assign.apply(Object,Y([{}],J(e),!1)))},[]);return d.options=c,d.pluginImpls=n.map(function(e){return e(d,c)}),Qo(function(){if(!i&&o){var e=d.state.params||t.defaultParams||[];d.run.apply(d,Y([],J(e),!1))}}),lo(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:ro(d.cancel.bind(d)),refresh:ro(d.refresh.bind(d)),refreshAsync:ro(d.refreshAsync.bind(d)),run:ro(d.run.bind(d)),runAsync:ro(d.runAsync.bind(d)),mutate:ro(d.mutate.bind(d))}}function ns(e,t,n){return ts(e,t,Y(Y([],J(n||[]),!1),[Io,Lo,Ho,Jo,Zo,ao,bo,Yo],!1))}var rs=ns,is=f(u(((e,t)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))(),1),as=({text:e,isLoading:t=!1,className:r=``,style:i,disabled:a,...o})=>{let s=a===void 0?t:a;return(0,n.jsxs)(`button`,{className:(0,is.default)(`gt-btn`,r),style:{cursor:s?`not-allowed`:void 0,...i},disabled:s,...o,children:[(0,n.jsx)(`span`,{className:`gt-btn-text`,children:e}),t&&(0,n.jsx)(`span`,{className:`gt-btn-loading gt-spinner`})]})},os=`<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M64 524C64 719.602 189.356 885.926 364.113 947.017 387.65799 953 384 936.115 384 924.767L384 847.107C248.118 863.007 242.674 773.052 233.5 758.001 215 726.501 171.5 718.501 184.5 703.501 215.5 687.501 247 707.501 283.5 761.501 309.956 800.642 361.366 794.075 387.658 787.497 393.403 763.997 405.637 743.042 422.353 726.638 281.774 701.609 223 615.67 223 513.5 223 464.053 239.322 418.406 271.465 381.627 251.142 320.928 273.421 269.19 276.337 261.415 334.458 256.131 394.888 302.993 399.549 306.685 432.663 297.835 470.341 293 512.5 293 554.924 293 592.81 297.896 626.075 306.853 637.426 298.219 693.46 258.054 747.5 262.966 750.382 270.652 772.185 321.292 753.058 381.083 785.516 417.956 802 463.809 802 513.5 802 615.874 742.99 701.953 601.803 726.786 625.381 750.003 640 782.295 640 818.008L640 930.653C640.752 939.626 640 948.664978 655.086 948.665 832.344 888.962 960 721.389 960 524 960 276.576 759.424 76 512 76 264.577 76 64 276.576 64 524Z"></path>
|
|
3
|
-
</svg>
|
|
4
|
-
`,ss=`<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M512 366.949535c-16.065554 0-29.982212 13.405016-29.982212 29.879884l0 359.070251c0 16.167882 13.405016 29.879884 29.982212 29.879884 15.963226 0 29.879884-13.405016 29.879884-29.879884L541.879884 396.829419C541.879884 380.763865 528.474868 366.949535 512 366.949535L512 366.949535z"
|
|
6
|
-
p-id="3083"></path>
|
|
7
|
-
<path d="M482.017788 287.645048c0-7.776956 3.274508-15.553912 8.80024-21.181973 5.525732-5.525732 13.302688-8.80024 21.181973-8.80024 7.776956 0 15.553912 3.274508 21.079644 8.80024 5.525732 5.62806 8.80024 13.405016 8.80024 21.181973 0 7.776956-3.274508 15.656241-8.80024 21.181973-5.525732 5.525732-13.405016 8.697911-21.079644 8.697911-7.879285 0-15.656241-3.274508-21.181973-8.697911C485.292295 303.301289 482.017788 295.524333 482.017788 287.645048L482.017788 287.645048z"
|
|
8
|
-
p-id="3084"></path>
|
|
9
|
-
<path d="M512 946.844409c-239.8577 0-434.895573-195.037873-434.895573-434.895573 0-239.8577 195.037873-434.895573 434.895573-434.895573 239.755371 0 434.895573 195.037873 434.895573 434.895573C946.895573 751.806535 751.755371 946.844409 512 946.844409zM512 126.17088c-212.740682 0-385.880284 173.037274-385.880284 385.777955 0 212.740682 173.037274 385.777955 385.880284 385.777955 212.740682 0 385.777955-173.037274 385.777955-385.777955C897.777955 299.208154 724.740682 126.17088 512 126.17088z"
|
|
10
|
-
p-id="3085"></path>
|
|
11
|
-
</svg>
|
|
12
|
-
`,cs=(0,t.createContext)({language:`en`,polyglot:Xa(`en`),dateFnsLocaleMap:pr}),ls=({src:e,alt:r,defaultSrc:i=ur,className:a=``,...o})=>{let[s,c]=(0,t.useState)(e??i);return(0,n.jsx)(`a`,{className:(0,is.default)(`gt-avatar`,a),target:`_blank`,rel:`noopener noreferrer`,...o,children:(0,n.jsx)(`img`,{src:s,alt:`@${r}`,onError:()=>{c(i)}})})},us=({icon:e,text:t,className:r=``,...i})=>(0,n.jsxs)(`span`,{className:(0,is.default)(`gt-ico`,r),...i,children:[(0,n.jsx)(`span`,{className:`gt-svg`,dangerouslySetInnerHTML:{__html:e}}),t&&(0,n.jsx)(`span`,{className:`gt-ico-text`,children:t})]}),ds=(0,t.forwardRef)((e,r)=>{let{value:i,octokit:a,user:o,onLogin:s,onCreateComment:c,createCommentLoading:l,onPreviewError:u,...d}=e,{polyglot:f}=(0,t.useContext)(cs),[p,m]=(0,t.useState)(!1),h=(0,t.useRef)(),g=(0,t.useRef)(``),{data:_=``,loading:v,run:y}=rs(async()=>{if(h.current===i)return g.current;let e=await a.request(`POST /markdown`,{text:i});if(e.status===200){h.current=i;let t=e.data;return g.current=t,t}else return u(e),``},{manual:!0}),b=()=>{p?m(!1):(m(!0),y())};return(0,n.jsxs)(`div`,{className:`gt-header`,children:[o?(0,n.jsx)(ls,{className:`gt-header-avatar`,src:o.avatar_url,alt:o.login,href:o.html_url}):(0,n.jsx)(`a`,{className:`gt-avatar-github`,onClick:s,children:(0,n.jsx)(us,{className:`gt-ico-github`,icon:os})}),(0,n.jsxs)(`div`,{className:`gt-header-comment`,children:[(0,n.jsx)(`textarea`,{...d,ref:r,value:i,className:`gt-header-textarea`,style:{display:p?`none`:void 0}}),(0,n.jsx)(`div`,{className:`gt-header-preview markdown-body`,style:{display:p?void 0:`none`},dangerouslySetInnerHTML:{__html:v?`<span>Loading preview...</span>`:_}}),(0,n.jsxs)(`div`,{className:`gt-header-controls`,children:[(0,n.jsx)(`a`,{className:`gt-header-controls-tip`,href:`https://guides.github.com/features/mastering-markdown/`,target:`_blank`,rel:`noopener noreferrer`,children:(0,n.jsx)(us,{className:`gt-ico-tip`,icon:ss,text:f.t(`support-markdown`)})}),(0,n.jsx)(as,{className:`gt-btn-preview gt-btn--secondary`,onClick:b,text:p?f.t(`edit`):f.t(`preview`),isLoading:v,disabled:!1}),o?(0,n.jsx)(as,{className:`gt-btn-public`,onClick:async()=>{await c(i),m(!1)},text:f.t(`comment`),isLoading:l,disabled:l||!i}):(0,n.jsx)(as,{className:`gt-btn-login`,onClick:s,text:f.t(`login-with-github`)})]})]})]},`header`)});function fs(e){var t=!1;return function(){t||=(console.warn(e),!0)}}var ps=fs(`
|
|
13
|
-
>> Error, via react-flip-move <<
|
|
14
|
-
|
|
15
|
-
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.
|
|
16
|
-
|
|
17
|
-
Please wrap your components in a native element (eg. <div>), or a non-functional component.
|
|
18
|
-
`),ms=fs(`
|
|
19
|
-
>> Error, via react-flip-move <<
|
|
20
|
-
|
|
21
|
-
You provided a primitive (text or number) node as a child to <FlipMove>. Flip Move needs containers with unique keys to move children around.
|
|
22
|
-
|
|
23
|
-
Please wrap your value in a native element (eg. <span>), or a component.
|
|
24
|
-
`),hs=function(e){return console.error(`
|
|
25
|
-
>> Error, via react-flip-move <<
|
|
26
|
-
|
|
27
|
-
The prop you provided for '`+e.prop+`' is invalid. It needs to be a positive integer, or a string that can be resolved to a number. The value you provided is '`+e.value+`'.
|
|
28
|
-
|
|
29
|
-
As a result, the default value for this parameter will be used, which is '`+e.defaultValue+`'.
|
|
30
|
-
`)},gs=function(e){return console.error(`
|
|
31
|
-
>> Error, via react-flip-move <<
|
|
32
|
-
|
|
33
|
-
The enter/leave preset you provided is invalid. We don't currently have a '`+e.value+` preset.'
|
|
34
|
-
|
|
35
|
-
Acceptable values are `+e.acceptableValues+`. The default value of '`+e.defaultValue+`' will be used.
|
|
36
|
-
`)},_s=fs(`
|
|
37
|
-
>> Warning, via react-flip-move <<
|
|
38
|
-
|
|
39
|
-
When using "wrapperless" mode (by supplying 'typeName' of 'null'), strange things happen when the direct parent has the default "static" position.
|
|
40
|
-
|
|
41
|
-
FlipMove has added 'position: relative' to this node, to ensure Flip Move animates correctly.
|
|
42
|
-
|
|
43
|
-
To avoid seeing this warning, simply apply a non-static position to that parent node.
|
|
44
|
-
`),vs=fs(`
|
|
45
|
-
>> Warning, via react-flip-move <<
|
|
46
|
-
|
|
47
|
-
One or more of Flip Move's child elements have the html attribute 'disabled' set to true.
|
|
48
|
-
|
|
49
|
-
Please note that this will cause animations to break in Internet Explorer 11 and below. Either remove the disabled attribute or set 'animation' to false.
|
|
50
|
-
`),ys={elevator:{from:{transform:`scale(0)`,opacity:`0`},to:{transform:``,opacity:``}},fade:{from:{opacity:`0`},to:{opacity:``}},accordionVertical:{from:{transform:`scaleY(0)`,transformOrigin:`center top`},to:{transform:``,transformOrigin:`center top`}},accordionHorizontal:{from:{transform:`scaleX(0)`,transformOrigin:`left center`},to:{transform:``,transformOrigin:`left center`}},none:null},bs={elevator:{from:{transform:`scale(1)`,opacity:`1`},to:{transform:`scale(0)`,opacity:`0`}},fade:{from:{opacity:`1`},to:{opacity:`0`}},accordionVertical:{from:{transform:`scaleY(1)`,transformOrigin:`center top`},to:{transform:`scaleY(0)`,transformOrigin:`center top`}},accordionHorizontal:{from:{transform:`scaleX(1)`,transformOrigin:`left center`},to:{transform:`scaleX(0)`,transformOrigin:`left center`}},none:null},xs=ys,Ss=`elevator`,Cs=`none`,ws=function(e,t){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return t[n]},Ts=function(e,t){for(var n=0;n<t.length;n++)if(!e(t[n],n,t))return!1;return!0},Es=function(e){return Es=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`},Es(e)},Ds=function(e){return typeof e.type==`string`?!1:typeof e.type==`function`&&!e.type.prototype.isReactComponent};function Os(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function ks(e,t){if(e===t)return!0;var n=!Es(e)||!Es(t),r=e.length!==t.length;return n||r?!1:Ts(function(e,n){return e===t[n]},e)}function As(e){var t={};return function(n){return t[n]||(t[n]=e(n)),t[n]}}var js=As(function(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()}),Ms=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ns=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ps=function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Fs=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e};function Is(e){var n,r;return r=n=function(n){Ps(r,n);function r(){return Ns(this,r),Fs(this,n.apply(this,arguments))}return r.prototype.checkChildren=function(e){process.env.NODE_ENV!==`production`&&t.Children.forEach(e,function(e){if(!(e==null||typeof e==`boolean`)){if((e===void 0?`undefined`:Ms(e))!==`object`){ms();return}Ds(e)&&e.key!=null&&ps()}})},r.prototype.convertProps=function(e){var t={children:e.children,easing:e.easing,onStart:e.onStart,onFinish:e.onFinish,onStartAll:e.onStartAll,onFinishAll:e.onFinishAll,typeName:e.typeName,disableAllAnimations:e.disableAllAnimations,getPosition:e.getPosition,maintainContainerHeight:e.maintainContainerHeight,verticalAlignment:e.verticalAlignment,duration:this.convertTimingProp(`duration`),delay:this.convertTimingProp(`delay`),staggerDurationBy:this.convertTimingProp(`staggerDurationBy`),staggerDelayBy:this.convertTimingProp(`staggerDelayBy`),appearAnimation:this.convertAnimationProp(e.appearAnimation,xs),enterAnimation:this.convertAnimationProp(e.enterAnimation,ys),leaveAnimation:this.convertAnimationProp(e.leaveAnimation,bs),delegated:{}};this.checkChildren(t.children);var n=Object.keys(t),r=Os(this.props,n);return r.style=X({position:`relative`},r.style),t.delegated=r,t},r.prototype.convertTimingProp=function(e){var t=this.props[e],n=typeof t==`number`?t:parseInt(t,10);if(isNaN(n)){var i=r.defaultProps[e];return process.env.NODE_ENV!==`production`&&hs({prop:e,value:t,defaultValue:i}),i}return n},r.prototype.convertAnimationProp=function(e,t){switch(e===void 0?`undefined`:Ms(e)){case`boolean`:return t[e?Ss:Cs];case`string`:var n=Object.keys(t);return n.indexOf(e)===-1?(process.env.NODE_ENV!==`production`&&gs({value:e,acceptableValues:n.join(`, `),defaultValue:Ss}),t[Ss]):t[e];default:return e}},r.prototype.render=function(){return t.default.createElement(e,this.convertProps(this.props))},r}(t.Component),n.defaultProps={easing:`ease-in-out`,duration:350,delay:0,staggerDurationBy:0,staggerDelayBy:0,typeName:`div`,enterAnimation:Ss,leaveAnimation:Ss,disableAllAnimations:!1,getPosition:function(e){return e.getBoundingClientRect()},maintainContainerHeight:!1,verticalAlignment:`top`},r}function Ls(e){var t=e.domNode,n=e.styles;Object.keys(n).forEach(function(e){t.style.setProperty(js(e),n[e])})}function Rs(){var e={transition:`transitionend`,"-o-transition":`oTransitionEnd`,"-moz-transition":`transitionend`,"-webkit-transition":`webkitTransitionEnd`};if(typeof document>`u`)return``;var t=document.createElement(`fakeelement`),n=ws(function(e){return t.style.getPropertyValue(e)!==void 0},Object.keys(e));return n?e[n]:``}var zs=function(e){var t=e.childDomNode,n=e.parentDomNode,r=e.getPosition,i=r(n),a=r(t),o=a.top,s=a.left,c=a.right,l=a.bottom,u=a.width,d=a.height;return{top:o-i.top,left:s-i.left,right:i.right-c,bottom:i.bottom-l,width:u,height:d}},Bs=function(e){var t=e.childDomNode,n=e.childBoundingBox,r=e.parentBoundingBox,i=e.getPosition,a={top:0,left:0,right:0,bottom:0,height:0,width:0},o=n||a,s=r||a,c=i(t),l={top:c.top-s.top,left:c.left-s.left};return[o.left-l.left,o.top-l.top]},Vs=function(e,t){var n=e.domNode,r=e.boundingBox;if(!(!n||!r)){var i=window.getComputedStyle(n),a=[`margin-top`,`margin-left`,`margin-right`].reduce(function(e,t){var n,r=i.getPropertyValue(t);return X({},e,(n={},n[t]=Number(r.replace(`px`,``)),n))},{});Ls({domNode:n,styles:{position:`absolute`,top:(t===`bottom`?r.top-r.height:r.top)-a[`margin-top`]+`px`,left:r.left-a[`margin-left`]+`px`,right:r.right-a[`margin-right`]+`px`}})}},Hs=function(e){var t=e.domNode,n=e.parentData,r=e.getPosition,i=n.domNode,a=n.boundingBox;if(!(!i||!a)){Ls({domNode:t,styles:{height:`0`}});var o=a.height-r(i).height;Ls({domNode:t,styles:{height:o>0?o+`px`:`0`}})}},Us=function(e){if(typeof HTMLElement>`u`)return null;if(e instanceof HTMLElement)return e;var t=(0,r.findDOMNode)(e);return t&&t.nodeType===Node.TEXT_NODE?null:t},Ws=function(e,t){var n=t.delay,r=t.duration,i=t.staggerDurationBy,a=t.staggerDelayBy,o=t.easing;return n+=e*a,r+=e*i,[`transform`,`opacity`].map(function(e){return e+` `+r+`ms `+o+` `+n+`ms`}).join(`, `)},Gs=Rs(),Ks=!Gs;function Z(e){return e.key||``}function qs(e){return t.Children.toArray(e)}var Js=Is(function(e){Ps(n,e);function n(){var t,i,a;Ns(this,n);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return a=(t=(i=Fs(this,e.call.apply(e,[this].concat(s))),i),i.state={children:qs(i.props?i.props.children:[]).map(function(e){return X({},e,{element:e,appearing:!0})})},i.childrenData={},i.parentData={domNode:null,boundingBox:null},i.heightPlaceholderData={domNode:null},i.remainingAnimations=0,i.childrenToAnimate=[],i.findDOMContainer=function(){var e=r.default.findDOMNode(i),t=e&&e.parentNode;!t||!(t instanceof HTMLElement)||(window.getComputedStyle(t).position===`static`&&(t.style.position=`relative`,_s()),i.parentData.domNode=t)},i.runAnimation=function(){var e=i.state.children.filter(i.doesChildNeedToBeAnimated),t=e.map(function(e){return i.computeInitialStyles(e)});e.forEach(function(e,n){i.remainingAnimations+=1,i.childrenToAnimate.push(Z(e)),i.animateChild(e,n,t[n])}),typeof i.props.onStartAll==`function`&&i.callChildrenHook(i.props.onStartAll)},i.doesChildNeedToBeAnimated=function(e){if(!Z(e))return!1;var t=i.getChildData(Z(e)),n=t.domNode,r=t.boundingBox,a=i.parentData.boundingBox;if(!n)return!1;var o=i.props,s=o.appearAnimation,c=o.enterAnimation,l=o.leaveAnimation,u=o.getPosition,d=e.appearing&&s,f=e.entering&&c,p=e.leaving&&l;if(d||f||p)return!0;var m=Bs({childDomNode:n,childBoundingBox:r,parentBoundingBox:a,getPosition:u}),h=m[0],g=m[1];return h!==0||g!==0},t),Fs(i,a)}return n.prototype.componentDidMount=function(){this.props.typeName===null&&this.findDOMContainer(),this.props.appearAnimation&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},n.prototype.componentDidUpdate=function(e){this.props.typeName===null&&this.findDOMContainer(),!ks(qs(this.props.children).map(function(e){return e.key}),qs(e.children).map(function(e){return e.key}))&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},n.prototype.calculateNextSetOfChildren=function(e){var t=this,n=e.map(function(e){var n=t.findChildByKey(e.key);return X({},e,{element:e,entering:!n||n.leaving})}),r=0;return this.state.children.forEach(function(i,a){if(!(ws(function(e){return e.key===Z(i)},e)||!t.props.leaveAnimation)){var o=X({},i,{leaving:!0}),s=a+r;n.splice(s,0,o),r+=1}}),n},n.prototype.prepForAnimation=function(){var e=this,t=this.props,n=t.leaveAnimation,r=t.maintainContainerHeight,i=t.getPosition;n&&(this.state.children.filter(function(e){return e.leaving}).forEach(function(t){var n=e.getChildData(Z(t));!e.isAnimationDisabled(e.props)&&n.domNode&&n.domNode.disabled&&vs(),n.boundingBox&&Vs(n,e.props.verticalAlignment)}),r&&this.heightPlaceholderData.domNode&&Hs({domNode:this.heightPlaceholderData.domNode,parentData:this.parentData,getPosition:i})),this.state.children.forEach(function(t){var n=e.getChildData(Z(t)).domNode;n&&!t.entering&&!t.leaving&&Ls({domNode:n,styles:{transition:``}})})},n.prototype.UNSAFE_componentWillReceiveProps=function(e){this.updateBoundingBoxCaches();var t=qs(e.children);this.setState({children:this.isAnimationDisabled(e)?t.map(function(e){return X({},e,{element:e})}):this.calculateNextSetOfChildren(t)})},n.prototype.animateChild=function(e,t,n){var r=this,i=this.getChildData(Z(e)).domNode;i&&(Ls({domNode:i,styles:n}),this.props.onStart&&this.props.onStart(e,i),requestAnimationFrame(function(){requestAnimationFrame(function(){var n={transition:Ws(t,r.props),transform:``,opacity:``};e.appearing&&r.props.appearAnimation?n=X({},n,r.props.appearAnimation.to):e.entering&&r.props.enterAnimation?n=X({},n,r.props.enterAnimation.to):e.leaving&&r.props.leaveAnimation&&(n=X({},n,r.props.leaveAnimation.to)),Ls({domNode:i,styles:n})})}),this.bindTransitionEndHandler(e))},n.prototype.bindTransitionEndHandler=function(e){var t=this,n=this.getChildData(Z(e)).domNode;n&&n.addEventListener(Gs,function r(i){i.target===n&&(n.style.transition=``,t.triggerFinishHooks(e,n),n.removeEventListener(Gs,r),e.leaving&&t.removeChildData(Z(e)))})},n.prototype.triggerFinishHooks=function(e,t){var n=this;if(this.props.onFinish&&this.props.onFinish(e,t),--this.remainingAnimations,this.remainingAnimations===0){var r=this.state.children.filter(function(e){return!e.leaving}).map(function(e){return X({},e,{element:e.element,appearing:!1,entering:!1})});this.setState({children:r},function(){typeof n.props.onFinishAll==`function`&&n.callChildrenHook(n.props.onFinishAll),n.childrenToAnimate=[]}),this.heightPlaceholderData.domNode&&(this.heightPlaceholderData.domNode.style.height=`0`)}},n.prototype.callChildrenHook=function(e){var t=this,n=[],r=[];this.childrenToAnimate.forEach(function(e){var i=t.findChildByKey(e);i&&(n.push(i),t.hasChildData(e)&&r.push(t.getChildData(e).domNode))}),e(n,r)},n.prototype.updateBoundingBoxCaches=function(){var e=this,t=this.parentData.domNode;if(t){this.parentData.boundingBox=this.props.getPosition(t);var n=[];this.state.children.forEach(function(r){var i=Z(r);if(!i){n.push(null);return}if(!e.hasChildData(i)){n.push(null);return}var a=e.getChildData(i);if(!a.domNode||!r){n.push(null);return}n.push(zs({childDomNode:a.domNode,parentDomNode:t,getPosition:e.props.getPosition}))}),this.state.children.forEach(function(t,r){var i=Z(t),a=n[r];i&&e.setChildData(i,{boundingBox:a})})}},n.prototype.computeInitialStyles=function(e){if(e.appearing)return this.props.appearAnimation?this.props.appearAnimation.from:{};if(e.entering)return this.props.enterAnimation?X({position:``,top:``,left:``,right:``,bottom:``},this.props.enterAnimation.from):{};if(e.leaving)return this.props.leaveAnimation?this.props.leaveAnimation.from:{};var t=this.getChildData(Z(e)),n=t.domNode,r=t.boundingBox,i=this.parentData.boundingBox;if(!n)return{};var a=Bs({childDomNode:n,childBoundingBox:r,parentBoundingBox:i,getPosition:this.props.getPosition}),o=a[0],s=a[1];return{transform:`translate(`+o+`px, `+s+`px)`}},n.prototype.isAnimationDisabled=function(e){return Ks||e.disableAllAnimations||e.duration===0&&e.delay===0&&e.staggerDurationBy===0&&e.staggerDelayBy===0},n.prototype.findChildByKey=function(e){return ws(function(t){return Z(t)===e},this.state.children)},n.prototype.hasChildData=function(e){return Object.prototype.hasOwnProperty.call(this.childrenData,e)},n.prototype.getChildData=function(e){return this.hasChildData(e)?this.childrenData[e]:{}},n.prototype.setChildData=function(e,t){this.childrenData[e]=X({},this.getChildData(e),t)},n.prototype.removeChildData=function(e){delete this.childrenData[e],this.setState(function(t){return X({},t,{children:t.children.filter(function(t){return t.element.key!==e})})})},n.prototype.createHeightPlaceholder=function(){var e=this,n=this.props.typeName;return(0,t.createElement)(n===`ul`||n===`ol`?`li`:`div`,{key:`height-placeholder`,ref:function(t){e.heightPlaceholderData.domNode=t},style:{visibility:`hidden`,height:0}})},n.prototype.childrenWithRefs=function(){var e=this;return this.state.children.map(function(n){return(0,t.cloneElement)(n.element,{ref:function(t){if(t){var r=Us(t);e.setChildData(Z(n),{domNode:r})}}})})},n.prototype.render=function(){var e=this,n=this.props,r=n.typeName,i=n.delegated,a=n.leaveAnimation,o=n.maintainContainerHeight,s=this.childrenWithRefs();return a&&o&&s.push(this.createHeightPlaceholder()),r?(0,t.createElement)(r,X({},i,{children:s,ref:function(t){e.parentData.domNode=t}})):s},n}(t.Component));function Ys(e){let t=G(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Xs(e,t){let n=G(e)-+G(t);return n<0?-1:n>0?1:n}function Zs(e){return Le(e,Date.now())}function Qs(e,t,n){let[r,i]=Re(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function $s(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function ec(e,t){return G(e)-+G(t)}function tc(e,t){let n=G(e,t?.in);return n.setHours(23,59,59,999),n}function nc(e,t){let n=G(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function rc(e,t){let n=G(e,t?.in);return+tc(n,t)==+nc(n,t)}function ic(e,t,n){let[r,i,a]=Re(n?.in,e,e,t),o=Xs(i,a),s=Math.abs(Qs(i,a));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*s);let c=Xs(i,a)===-o;rc(r)&&s===1&&Xs(r,a)===1&&(c=!1);let l=o*(s-+c);return l===0?0:l}function ac(e,t,n){let r=ec(e,t)/1e3;return $s(n?.roundingMethod)(r)}function oc(e,t,n){let r=Be(),i=n?.locale??r.locale??xt,a=Xs(e,t);if(isNaN(a))throw RangeError(`Invalid time value`);let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:a}),[s,c]=Re(n?.in,...a>0?[t,e]:[e,t]),l=ac(c,s),u=(Ys(c)-Ys(s))/1e3,d=Math.round((l-u)/60),f;if(d<2)return n?.includeSeconds?l<5?i.formatDistance(`lessThanXSeconds`,5,o):l<10?i.formatDistance(`lessThanXSeconds`,10,o):l<20?i.formatDistance(`lessThanXSeconds`,20,o):l<40?i.formatDistance(`halfAMinute`,0,o):l<60?i.formatDistance(`lessThanXMinutes`,1,o):i.formatDistance(`xMinutes`,1,o):d===0?i.formatDistance(`lessThanXMinutes`,1,o):i.formatDistance(`xMinutes`,d,o);if(d<45)return i.formatDistance(`xMinutes`,d,o);if(d<90)return i.formatDistance(`aboutXHours`,1,o);if(d<1440){let e=Math.round(d/60);return i.formatDistance(`aboutXHours`,e,o)}else if(d<2520)return i.formatDistance(`xDays`,1,o);else if(d<43200){let e=Math.round(d/Pe);return i.formatDistance(`xDays`,e,o)}else if(d<43200*2)return f=Math.round(d/Ne),i.formatDistance(`aboutXMonths`,f,o);if(f=ic(c,s),f<12){let e=Math.round(d/Ne);return i.formatDistance(`xMonths`,e,o)}else{let e=f%12,t=Math.trunc(f/12);return e<3?i.formatDistance(`aboutXYears`,t,o):e<9?i.formatDistance(`overXYears`,t,o):i.formatDistance(`almostXYears`,t+1,o)}}function sc(e,t){return oc(e,Zs(e),t)}function cc(e,t){let n=()=>Le(t?.in,NaN),r=t?.additionalDigits??2,i=pc(e),a;if(i.date){let e=mc(i.date,r);a=hc(e.restDateString,e.year)}if(!a||isNaN(+a))return n();let o=+a,s=0,c;if(i.time&&(s=_c(i.time),isNaN(s)))return n();if(i.timezone){if(c=yc(i.timezone),isNaN(c))return n()}else{let e=new Date(o+s),n=G(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return G(o+s+c,t?.in)}var lc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},uc=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,dc=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,fc=/^([+-])(\d{2})(?::?(\d{2}))?$/;function pc(e){let t={},n=e.split(lc.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],lc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(lc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){let e=lc.timezone.exec(r);e?(t.time=r.replace(e[1],``),t.timezone=e[1]):t.time=r}return t}function mc(e,t){let n=RegExp(`^(?:(\\d{4}|[+-]\\d{`+(4+t)+`})|(\\d{2}|[+-]\\d{`+(2+t)+`})$)`),r=e.match(n);if(!r)return{year:NaN,restDateString:``};let i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function hc(e,t){if(t===null)return new Date(NaN);let n=e.match(uc);if(!n)return new Date(NaN);let r=!!n[4],i=gc(n[1]),a=gc(n[2])-1,o=gc(n[3]),s=gc(n[4]),c=gc(n[5])-1;if(r)return Tc(t,s,c)?bc(t,s,c):new Date(NaN);{let e=new Date(0);return!Cc(t,a,o)||!wc(t,i)?new Date(NaN):(e.setUTCFullYear(t,a,Math.max(i,o)),e)}}function gc(e){return e?parseInt(e):1}function _c(e){let t=e.match(dc);if(!t)return NaN;let n=vc(t[1]),r=vc(t[2]),i=vc(t[3]);return Ec(n,r,i)?n*Me+r*je+i*1e3:NaN}function vc(e){return e&&parseFloat(e.replace(`,`,`.`))||0}function yc(e){if(e===`Z`)return 0;let t=e.match(fc);if(!t)return 0;let n=t[1]===`+`?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Dc(r,i)?n*(r*Me+i*je):NaN}function bc(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var xc=[31,null,31,30,31,30,31,31,30,31,30,31];function Sc(e){return e%400==0||e%4==0&&e%100!=0}function Cc(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(xc[t]||(Sc(e)?29:28))}function wc(e,t){return t>=1&&t<=(Sc(e)?366:365)}function Tc(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Ec(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Dc(e,t){return t>=0&&t<=59}var Oc=`<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="1619"><path d="M511.872 676.8c-0.003 0-0.006 0-0.008 0-9.137 0-17.379-3.829-23.21-9.97l-251.277-265.614c-5.415-5.72-8.743-13.464-8.744-21.984 0-17.678 14.33-32.008 32.008-32.008 9.157 0 17.416 3.845 23.25 10.009l228.045 241.103 228.224-241.088c5.855-6.165 14.113-10.001 23.266-10.001 8.516 0 16.256 3.32 21.998 8.736 12.784 12.145 13.36 32.434 1.264 45.233l-251.52 265.6c-5.844 6.155-14.086 9.984-23.223 9.984-0.025 0-0.051 0-0.076 0z" p-id="1620"></path></svg>`,kc=`<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
51
|
-
<path d="M527.061333 166.528A277.333333 277.333333 0 0 1 1000.618667 362.666667a277.333333 277.333333 0 0 1-81.28 196.138666l-377.173334 377.173334a42.666667 42.666667 0 0 1-60.330666 0l-377.173334-377.173334a277.376 277.376 0 0 1 392.277334-392.277333l15.061333 15.061333 15.061333-15.061333z m286.72 377.173333l45.226667-45.226666a192 192 0 0 0-135.808-327.893334 192 192 0 0 0-135.808 56.32l-45.226667 45.226667a42.666667 42.666667 0 0 1-60.330666 0l-45.226667-45.226667a192.042667 192.042667 0 0 0-271.616 271.573334L512 845.482667l301.781333-301.781334z"></path>
|
|
52
|
-
</svg>
|
|
53
|
-
`,Ac=`<svg t="1512463363724" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
54
|
-
<path d="M527.061333 166.528A277.333333 277.333333 0 0 1 1000.618667 362.666667a277.333333 277.333333 0 0 1-81.28 196.138666l-377.173334 377.173334a42.666667 42.666667 0 0 1-60.330666 0l-377.173334-377.173334a277.376 277.376 0 0 1 392.277334-392.277333l15.061333 15.061333 15.061333-15.061333z"></path>
|
|
55
|
-
</svg>
|
|
56
|
-
`,jc=`<svg viewBox="0 0 1332 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
57
|
-
<path d="M529.066665 273.066666 529.066665 0 51.2 477.866666 529.066665 955.733335 529.066665 675.84C870.4 675.84 1109.333335 785.066665 1280 1024 1211.733335 682.666665 1006.933335 341.333334 529.066665 273.066666"></path>
|
|
58
|
-
</svg>
|
|
59
|
-
`,Mc=({comment:e,isAuthor:r,isAdmin:i,onReply:a,onLike:o,likeLoading:s,collapsedHeight:c,highlightAdminComment:l,className:u=``,...d})=>{let f=(0,t.useRef)(null),[p,m]=(0,t.useState)(!1),{language:h,polyglot:g,dateFnsLocaleMap:_}=(0,t.useContext)(cs),{body_html:v,created_at:y,user:b,reactionsHeart:x,html_url:S}=e,C=S.includes(`github.com`)?S:`https://github.com/${S}`,ee=(0,t.useMemo)(()=>{let e=x?.totalCount??0;return e>100?`100+`:String(e)},[x]);return(0,t.useEffect)(()=>{let e=f.current;if(e){let t=e.querySelector(`.email-hidden-toggle>a`);if(t){let n=t=>{t.preventDefault(),e?.querySelector(`.email-hidden-reply`)?.classList.toggle(`expanded`)};return t.addEventListener(`click`,n,!0),()=>t.removeEventListener(`click`,n,!0)}}return()=>{}},[]),(0,t.useLayoutEffect)(()=>{let e=f.current;e&&c&&e.clientHeight>c&&m(!0)},[c]),(0,n.jsxs)(`div`,{ref:f,className:(0,is.default)(`gt-comment`,{"gt-comment-admin":i,"gt-comment-admin--highlight":i&&l},u),...d,children:[(0,n.jsx)(ls,{className:`gt-comment-avatar`,src:b?.avatar_url,alt:b?.login,href:b?.html_url}),(0,n.jsxs)(`div`,{className:`gt-comment-content`,style:p?{maxHeight:c,overflow:`hidden`}:{},children:[(0,n.jsxs)(`div`,{className:`gt-comment-header`,children:[(0,n.jsx)(`a`,{className:`gt-comment-username`,href:b?.html_url,target:`_blank`,rel:`noopener noreferrer`,children:b?.login}),(0,n.jsxs)(`div`,{className:`gt-comment-date`,title:y,children:[(0,n.jsx)(`span`,{className:`gt-comment-date__prefix`,children:g.t(`commented`)}),(0,n.jsx)(`span`,{className:`gt-comment-date__time`,children:sc(cc(y),{addSuffix:!0,locale:_[h]??xt})})]}),(0,n.jsxs)(`div`,{className:`gt-comment-actions`,children:[(0,n.jsx)(`a`,{className:`gt-comment-like`,title:`Like`,onClick:()=>{x&&!s&&o(!x.viewerHasReacted,e)},children:(0,n.jsx)(us,{className:`gt-ico-heart`,icon:x?.viewerHasReacted?Ac:kc,text:ee})}),r&&(0,n.jsx)(`a`,{href:C,className:`gt-comment-edit`,title:`Edit`,target:`_blank`,rel:`noopener noreferrer`,children:(0,n.jsx)(us,{className:`gt-ico-edit`,icon:`<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
60
|
-
<path d="M785.333333 85.333333C774.666667 85.333333 763.2 90.133333 754.666667 98.666667L682.666667 170.666667 853.333333 341.333333 925.333333 269.333333C942.4 252.266667 942.4 222.133333 925.333333 209.333333L814.666667 98.666667C806.133333 90.133333 796 85.333333 785.333333 85.333333zM640 217.333333 85.333333 768 85.333333 938.666667 256 938.666667 806.666667 384 640 217.333333z"></path>
|
|
61
|
-
</svg>
|
|
62
|
-
`})}),(0,n.jsx)(`a`,{className:`gt-comment-reply`,title:`Reply`,onClick:()=>a(e),children:(0,n.jsx)(us,{className:`gt-ico-reply`,icon:jc})})]})]}),(0,n.jsx)(`div`,{className:`gt-comment-body markdown-body`,dangerouslySetInnerHTML:{__html:v??``}}),p&&(0,n.jsx)(`div`,{className:`gt-comment-collapse`,onClick:()=>m(!1),children:(0,n.jsx)(us,{className:`gt-ico-collapse`,icon:`<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="1619"><path d="M511.872 676.8c-0.003 0-0.006 0-0.008 0-9.137 0-17.379-3.829-23.21-9.97l-251.277-265.614c-5.415-5.72-8.743-13.464-8.744-21.984 0-17.678 14.33-32.008 32.008-32.008 9.157 0 17.416 3.845 23.25 10.009l228.045 241.103 228.224-241.088c5.855-6.165 14.113-10.001 23.266-10.001 8.516 0 16.256 3.32 21.998 8.736 12.784 12.145 13.36 32.434 1.264 45.233l-251.52 265.6c-5.844 6.155-14.086 9.984-23.223 9.984-0.025 0-0.051 0-0.076 0z" p-id="1620"></path></svg>`})})]})]})},Nc=(0,t.forwardRef)(({comment:e,user:t,admin:r,onLike:i,...a},o)=>{let{id:s,user:c,reactionsHeart:l}=e,u=c?.login,d=!!t&&!!u&&t.login===u,f=!!u&&!!r.find(e=>e.toLowerCase()===u.toLowerCase()),p=l?.nodes.find(e=>e.user.login===t?.login)?.databaseId;return(0,n.jsx)(`div`,{ref:o,children:(0,n.jsx)(Mc,{...a,comment:e,isAuthor:d,isAdmin:f,onLike:e=>{i(e,s,p)}})})}),Pc=e=>{let{comments:r,commentsCount:i,onGetComments:a,getCommentsLoading:o,flipMoveOptions:s,...c}=e,{polyglot:l}=(0,t.useContext)(cs);return(0,n.jsxs)(`div`,{className:`gt-comments`,children:[(0,n.jsx)(Js,{...s,children:r.map(e=>(0,t.createElement)(Nc,{...c,key:e.id,comment:e}))}),!i&&(0,n.jsx)(`p`,{className:`gt-comments-null`,children:l.t(`first-comment-person`)}),i>r.length?(0,n.jsx)(`div`,{className:`gt-comments-controls`,children:(0,n.jsx)(as,{className:`gt-btn-loadmore`,onClick:a,isLoading:o,text:l.t(`load-more`)})}):null]},`comments`)},Fc=(e,...t)=>{if(!e||e.className===void 0)return!1;let n=!1,r=e.className.split(` `);return t.forEach(e=>{n||=r.indexOf(e)>=0}),n||Fc(e.parentNode,...t)},Ic=({text:e,className:t=``,...r})=>(0,n.jsx)(`a`,{className:(0,is.default)(`gt-action`,t),...r,children:(0,n.jsx)(`span`,{className:`gt-action-text`,children:e})}),Lc=e=>{let{issue:r,user:i,commentsCount:a,pagerDirection:o,onPagerDirectionChange:s,onLogin:c,onLogout:l}=e,{polyglot:u}=(0,t.useContext)(cs),[d,f]=(0,t.useState)(!1);function p(e){let t=e.target;t&&Fc(t,`gt-user`,`gt-popup`)||(document.removeEventListener(`click`,p),f(!1))}let m=e=>{e.preventDefault(),e.stopPropagation(),f(e=>(e?document.removeEventListener(`click`,p):document.addEventListener(`click`,p),!e))};return(0,n.jsxs)(`div`,{className:`gt-meta`,children:[(0,n.jsx)(`span`,{className:`gt-counts`,dangerouslySetInnerHTML:{__html:u.t(`counts`,{counts:`<a class="gt-link gt-link-counts" href="${r?.html_url}" target="_blank" rel="noopener noreferrer">${a}</a>`,smart_count:a})}}),d&&(0,n.jsxs)(`div`,{className:`gt-popup`,children:[i?[(0,n.jsx)(Ic,{className:(0,is.default)(`gt-action-sortasc`,{"is--active":o===`first`}),onClick:()=>s(`first`),text:u.t(`sort-asc`)},`sort-asc`),(0,n.jsx)(Ic,{className:(0,is.default)(`gt-action-sortdesc`,{"is--active":o===`last`}),onClick:()=>s(`last`),text:u.t(`sort-desc`)},`sort-desc`)]:null,i?(0,n.jsx)(Ic,{className:`gt-action-logout`,onClick:l,text:u.t(`logout`)}):(0,n.jsx)(`a`,{className:`gt-action gt-action-login`,onClick:c,children:u.t(`login-with-github`)}),(0,n.jsxs)(`div`,{className:`gt-copyright`,children:[(0,n.jsx)(`a`,{className:`gt-link gt-link-project`,href:or,target:`_blank`,rel:`noopener noreferrer`,children:`GitalkR`}),(0,n.jsx)(`span`,{className:`gt-version`,children:ar})]})]}),(0,n.jsx)(`div`,{className:`gt-user`,children:(0,n.jsxs)(`div`,{className:(0,is.default)(`gt-user-inner`,{"is--poping":d}),onClick:m,children:[(0,n.jsx)(`span`,{className:`gt-user-name`,children:i?.login??u.t(`anonymous`)}),(0,n.jsx)(us,{className:`gt-ico-arrdown`,icon:Oc})]})})]},`meta`)},Rc=({pagerDirection:e})=>{let t=e===`last`?`before`:`after`;return`
|
|
63
|
-
query getIssueAndComments(
|
|
64
|
-
$owner: String!,
|
|
65
|
-
$repo: String!,
|
|
66
|
-
$id: Int!,
|
|
67
|
-
$cursor: String,
|
|
68
|
-
$pageSize: Int!
|
|
69
|
-
) {
|
|
70
|
-
repository(owner: $owner, name: $repo) {
|
|
71
|
-
issue(number: $id) {
|
|
72
|
-
comments(${e}: $pageSize, ${t}: $cursor) {
|
|
73
|
-
totalCount
|
|
74
|
-
pageInfo {
|
|
75
|
-
${e===`last`?`hasPreviousPage`:`hasNextPage`}
|
|
76
|
-
${t===`before`?`startCursor`:`endCursor`}
|
|
77
|
-
}
|
|
78
|
-
nodes {
|
|
79
|
-
databaseId
|
|
80
|
-
author {
|
|
81
|
-
avatarUrl
|
|
82
|
-
login
|
|
83
|
-
url
|
|
84
|
-
}
|
|
85
|
-
body
|
|
86
|
-
bodyHTML
|
|
87
|
-
createdAt
|
|
88
|
-
resourcePath
|
|
89
|
-
reactions(first: 100, content: HEART) {
|
|
90
|
-
totalCount
|
|
91
|
-
viewerHasReacted
|
|
92
|
-
pageInfo {
|
|
93
|
-
hasNextPage
|
|
94
|
-
}
|
|
95
|
-
nodes {
|
|
96
|
-
databaseId
|
|
97
|
-
user {
|
|
98
|
-
login
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
`};function zc(){return typeof navigator==`object`&&`userAgent`in navigator?navigator.userAgent:typeof process==`object`&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:`<environment undetectable>`}function Bc(e,t,n,r){if(typeof n!=`function`)throw Error(`method for before hook must be a function`);return r||={},Array.isArray(t)?t.reverse().reduce((t,n)=>Bc.bind(null,e,n,t,r),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,r),n)():n(r))}function Vc(e,t,n,r){let i=r;e.registry[n]||(e.registry[n]=[]),t===`before`&&(r=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))),t===`after`&&(r=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then(e=>(n=e,i(n,t))).then(()=>n)}),t===`error`&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>i(e,t))),e.registry[n].push({hook:r,orig:i})}function Hc(e,t,n){if(!e.registry[t])return;let r=e.registry[t].map(e=>e.orig).indexOf(n);r!==-1&&e.registry[t].splice(r,1)}var Uc=Function.bind,Wc=Uc.bind(Uc);function Gc(e,t,n){let r=Wc(Hc,null).apply(null,n?[t,n]:[t]);e.api={remove:r},e.remove=r,[`before`,`error`,`after`,`wrap`].forEach(r=>{let i=n?[t,r,n]:[t,r];e[r]=e.api[r]=Wc(Vc,null).apply(null,i)})}function Kc(){let e=Symbol(`Singular`),t={registry:{}},n=Bc.bind(null,t,e);return Gc(n,t,e),n}function qc(){let e={registry:{}},t=Bc.bind(null,e);return Gc(t,e),t}var Jc={Singular:Kc,Collection:qc},Yc=`octokit-endpoint.js/0.0.0-development ${zc()}`,Xc={method:`GET`,baseUrl:`https://api.github.com`,headers:{accept:`application/vnd.github.v3+json`,"user-agent":Yc},mediaType:{format:``}};function Zc(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function Qc(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function $c(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(r=>{Qc(t[r])&&r in e?n[r]=$c(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}function el(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function tl(e,t,n){if(typeof t==`string`){let[e,r]=t.split(` `);n=Object.assign(r?{method:e,url:r}:{url:e},n)}else n=Object.assign({},t);n.headers=Zc(n.headers),el(n),el(n.headers);let r=$c(e||{},n);return n.url===`/graphql`&&(e&&e.mediaType.previews?.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=(r.mediaType.previews||[]).map(e=>e.replace(/-preview/,``))),r}function nl(e,t){let n=/\?/.test(e)?`&`:`?`,r=Object.keys(t);return r.length===0?e:e+n+r.map(e=>e===`q`?`q=`+t.q.split(`+`).map(encodeURIComponent).join(`+`):`${e}=${encodeURIComponent(t[e])}`).join(`&`)}var rl=/\{[^{}}]+\}/g;function il(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,``).split(/,/)}function al(e){let t=e.match(rl);return t?t.map(il).reduce((e,t)=>e.concat(t),[]):[]}function ol(e,t){let n={__proto__:null};for(let r of Object.keys(e))t.indexOf(r)===-1&&(n[r]=e[r]);return n}function sl(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`)),e}).join(``)}function cl(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function ll(e,t,n){return t=e===`+`||e===`#`?sl(t):cl(t),n?cl(n)+`=`+t:t}function ul(e){return e!=null}function dl(e){return e===`;`||e===`&`||e===`?`}function fl(e,t,n,r){var i=e[n],a=[];if(ul(i)&&i!==``)if(typeof i==`string`||typeof i==`number`||typeof i==`bigint`||typeof i==`boolean`)i=i.toString(),r&&r!==`*`&&(i=i.substring(0,parseInt(r,10))),a.push(ll(t,i,dl(t)?n:``));else if(r===`*`)Array.isArray(i)?i.filter(ul).forEach(function(e){a.push(ll(t,e,dl(t)?n:``))}):Object.keys(i).forEach(function(e){ul(i[e])&&a.push(ll(t,i[e],e))});else{let e=[];Array.isArray(i)?i.filter(ul).forEach(function(n){e.push(ll(t,n))}):Object.keys(i).forEach(function(n){ul(i[n])&&(e.push(cl(n)),e.push(ll(t,i[n].toString())))}),dl(t)?a.push(cl(n)+`=`+e.join(`,`)):e.length!==0&&a.push(e.join(`,`))}else t===`;`?ul(i)&&a.push(cl(n)):i===``&&(t===`&`||t===`?`)?a.push(cl(n)+`=`):i===``&&a.push(``);return a}function pl(e){return{expand:ml.bind(null,e)}}function ml(e,t){var n=[`+`,`#`,`.`,`/`,`;`,`?`,`&`];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e=``,i=[];if(n.indexOf(r.charAt(0))!==-1&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(fl(t,e,r[1],r[2]||r[3]))}),e&&e!==`+`){var a=`,`;return e===`?`?a=`&`:e!==`#`&&(a=e),(i.length===0?``:e)+i.join(a)}else return i.join(`,`)}else return sl(i)}),e===`/`?e:e.replace(/\/$/,``)}function hl(e){let t=e.method.toUpperCase(),n=(e.url||`/`).replace(/:([a-z]\w+)/g,`{$1}`),r=Object.assign({},e.headers),i,a=ol(e,[`method`,`baseUrl`,`url`,`headers`,`request`,`mediaType`]),o=al(n);n=pl(n).expand(a),/^http/.test(n)||(n=e.baseUrl+n);let s=ol(a,Object.keys(e).filter(e=>o.includes(e)).concat(`baseUrl`));return/application\/octet-stream/i.test(r.accept)||(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(`,`)),n.endsWith(`/graphql`)&&e.mediaType.previews?.length&&(r.accept=(r.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[]).concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:`+json`}`).join(`,`))),[`GET`,`HEAD`].includes(t)?n=nl(n,s):`data`in s?i=s.data:Object.keys(s).length&&(i=s),!r[`content-type`]&&i!==void 0&&(r[`content-type`]=`application/json; charset=utf-8`),[`PATCH`,`PUT`].includes(t)&&i===void 0&&(i=``),Object.assign({method:t,url:n,headers:r},i===void 0?null:{body:i},e.request?{request:e.request}:null)}function gl(e,t,n){return hl(tl(e,t,n))}function _l(e,t){let n=tl(e,t),r=gl.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:_l.bind(null,n),merge:tl.bind(null,n),parse:hl})}var vl=_l(null,Xc),yl=u(((e,t)=>{var n=function(){};n.prototype=Object.create(null);var r=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,i=/\\([\v\u0020-\u00ff])/gu,a=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,o={type:``,parameters:new n};Object.freeze(o.parameters),Object.freeze(o);function s(e){if(typeof e!=`string`)throw TypeError(`argument header is required and must be a string`);let t=e.indexOf(`;`),o=t===-1?e.trim():e.slice(0,t).trim();if(a.test(o)===!1)throw TypeError(`invalid media type`);let s={type:o.toLowerCase(),parameters:new n};if(t===-1)return s;let c,l,u;for(r.lastIndex=t;l=r.exec(e);){if(l.index!==t)throw TypeError(`invalid parameter format`);t+=l[0].length,c=l[1].toLowerCase(),u=l[2],u[0]===`"`&&(u=u.slice(1,u.length-1),i.test(u)&&(u=u.replace(i,`$1`))),s.parameters[c]=u}if(t!==e.length)throw TypeError(`invalid parameter format`);return s}function c(e){if(typeof e!=`string`)return o;let t=e.indexOf(`;`),s=t===-1?e.trim():e.slice(0,t).trim();if(a.test(s)===!1)return o;let c={type:s.toLowerCase(),parameters:new n};if(t===-1)return c;let l,u,d;for(r.lastIndex=t;u=r.exec(e);){if(u.index!==t)return o;t+=u[0].length,l=u[1].toLowerCase(),d=u[2],d[0]===`"`&&(d=d.slice(1,d.length-1),i.test(d)&&(d=d.replace(i,`$1`))),c.parameters[l]=d}return t===e.length?c:o}t.exports.default={parse:s,safeParse:c},t.exports.parse=s,t.exports.safeParse=c,t.exports.defaultContentType=o}))(),bl=/^-?\d+$/,xl=/^-?\d+n+$/,Sl=JSON.stringify,Cl=JSON.parse,wl=/^-?\d+n$/,Tl=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,El=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,Dl=(e,t,n)=>`rawJSON`in JSON?Sl(e,(e,n)=>typeof n==`bigint`?JSON.rawJSON(n.toString()):typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n):e?Sl(e,(e,n)=>typeof n==`string`&&xl.test(n)||typeof n==`bigint`?n.toString()+`n`:typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n).replace(Tl,`$1$2$3`).replace(El,`$1$2$3`):Sl(e,t,n),Ol=new Map,kl=()=>{let e=JSON.parse.toString();if(Ol.has(e))return Ol.get(e);try{let t=JSON.parse(`1`,(e,t,n)=>!!n?.source&&n.source===`1`);return Ol.set(e,t),t}catch{return Ol.set(e,!1),!1}},Al=(e,t,n,r)=>typeof t==`string`&&wl.test(t)?BigInt(t.slice(0,-1)):typeof t==`string`&&xl.test(t)?t.slice(0,-1):typeof r==`function`?r(e,t,n):t,jl=(e,t)=>JSON.parse(e,(e,n,r)=>{let i=typeof n==`number`&&(n>2**53-1||n<-(2**53-1)),a=r&&bl.test(r.source);return i&&a?BigInt(r.source):typeof t==`function`?t(e,n,r):n}),Ml=(2**53-1).toString(),Nl=Ml.length,Pl=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,Fl=/^"-?\d+n+"$/,Il=(e,t)=>e?kl()?jl(e,t):Cl(e.replace(Pl,(e,t,n,r)=>{let i=e[0]===`"`;if(i&&Fl.test(e))return e.substring(0,e.length-1)+`n"`;let a=n||r,o=t&&(t.length<Nl||t.length===Nl&&t<=Ml);return i||a||o?e:`"`+e+`n"`}),(e,n,r)=>Al(e,n,r,t)):Cl(e,t),Ll=class extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause}),this.name=`HttpError`,this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),`response`in n&&(this.response=n.response);let r=Object.assign({},n.request);n.request.headers.authorization&&(r.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/,` [REDACTED]`)})),r.url=r.url.replace(/\bclient_secret=\w+/g,`client_secret=[REDACTED]`).replace(/\baccess_token=\w+/g,`access_token=[REDACTED]`),this.request=r}},Rl=`10.0.8`,zl={headers:{"user-agent":`octokit-request.js/${Rl} ${zc()}`}};function Bl(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var Vl=()=>``;async function Hl(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw Error(`fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing`);let n=e.request?.log||console,r=e.request?.parseSuccessResponseBody!==!1,i=Bl(e.body)||Array.isArray(e.body)?Dl(e.body):e.body,a=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)])),o;try{o=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:a,signal:e.request?.signal,...e.body&&{duplex:`half`}})}catch(t){let n=`Unknown Error`;if(t instanceof Error){if(t.name===`AbortError`)throw t.status=500,t;n=t.message,t.name===`TypeError`&&`cause`in t&&(t.cause instanceof Error?n=t.cause.message:typeof t.cause==`string`&&(n=t.cause))}let r=new Ll(n,500,{request:e});throw r.cause=t,r}let s=o.status,c=o.url,l={};for(let[e,t]of o.headers)l[e]=t;let u={url:c,status:s,headers:l,data:``};if(`deprecation`in l){let t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/),r=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${r?`. See ${r}`:``}`)}if(s===204||s===205)return u;if(e.method===`HEAD`){if(s<400)return u;throw new Ll(o.statusText,s,{response:u,request:e})}if(s===304)throw u.data=await Ul(o),new Ll(`Not modified`,s,{response:u,request:e});if(s>=400)throw u.data=await Ul(o),new Ll(Gl(u.data),s,{response:u,request:e});return u.data=r?await Ul(o):o.body,u}async function Ul(e){let t=e.headers.get(`content-type`);if(!t)return e.text().catch(Vl);let n=(0,yl.safeParse)(t);if(Wl(n)){let t=``;try{return t=await e.text(),Il(t)}catch{return t}}else if(n.type.startsWith(`text/`)||n.parameters.charset?.toLowerCase()===`utf-8`)return e.text().catch(Vl);else return e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function Wl(e){return e.type===`application/json`||e.type===`application/scim+json`}function Gl(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return`Unknown error`;if(`message`in e){let t=`documentation_url`in e?` - ${e.documentation_url}`:``;return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(`, `)}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function Kl(e,t){let n=e.defaults(t);return Object.assign(function(e,t){let r=n.merge(e,t);if(!r.request||!r.request.hook)return Hl(n.parse(r));let i=(e,t)=>Hl(n.parse(n.merge(e,t)));return Object.assign(i,{endpoint:n,defaults:Kl.bind(null,n)}),r.request.hook(i,r)},{endpoint:n,defaults:Kl.bind(null,n)})}var Q=Kl(vl,zl),ql=`0.0.0-development`;function Jl(e){return`Request failed due to following response errors:
|
|
108
|
-
`+e.errors.map(e=>` - ${e.message}`).join(`
|
|
109
|
-
`)}var Yl=class extends Error{constructor(e,t,n){super(Jl(n)),this.request=e,this.headers=t,this.response=n,this.errors=n.errors,this.data=n.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`GraphqlResponseError`;errors;data},Xl=[`method`,`baseUrl`,`url`,`headers`,`request`,`query`,`mediaType`,`operationName`],Zl=[`query`,`method`,`url`],Ql=/\/api\/v3\/?$/;function $l(e,t,n){if(n){if(typeof t==`string`&&`query`in n)return Promise.reject(Error(`[@octokit/graphql] "query" cannot be used as variable name`));for(let e in n)if(Zl.includes(e))return Promise.reject(Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}let r=typeof t==`string`?Object.assign({query:t},n):t,i=Object.keys(r).reduce((e,t)=>Xl.includes(t)?(e[t]=r[t],e):(e.variables||={},e.variables[t]=r[t],e),{}),a=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Ql.test(a)&&(i.url=a.replace(Ql,`/api/graphql`)),e(i).then(e=>{if(e.data.errors){let t={};for(let n of Object.keys(e.headers))t[n]=e.headers[n];throw new Yl(i,t,e.data)}return e.data.data})}function eu(e,t){let n=e.defaults(t);return Object.assign((e,t)=>$l(n,e,t),{defaults:eu.bind(null,n),endpoint:n.endpoint})}eu(Q,{headers:{"user-agent":`octokit-graphql.js/${ql} ${zc()}`},method:`POST`,url:`/graphql`});function tu(e){return eu(e,{method:`POST`,url:`/graphql`})}var nu=`(?:[a-zA-Z0-9_-]+)`,ru=`\\.`,iu=RegExp(`^${nu}${ru}${nu}${ru}${nu}$`),au=iu.test.bind(iu);async function ou(e){let t=au(e),n=e.startsWith(`v1.`)||e.startsWith(`ghs_`),r=e.startsWith(`ghu_`);return{type:`token`,token:e,tokenType:t?`app`:n?`installation`:r?`user-to-server`:`oauth`}}function su(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function cu(e,t,n,r){let i=t.endpoint.merge(n,r);return i.headers.authorization=su(e),t(i)}var lu=function(e){if(!e)throw Error(`[@octokit/auth-token] No token passed to createTokenAuth`);if(typeof e!=`string`)throw Error(`[@octokit/auth-token] Token passed to createTokenAuth is not a string`);return e=e.replace(/^(token|bearer) +/i,``),Object.assign(ou.bind(null,e),{hook:cu.bind(null,e)})},uu=`7.0.6`,du=()=>{},fu=console.warn.bind(console),pu=console.error.bind(console);function mu(e={}){return typeof e.debug!=`function`&&(e.debug=du),typeof e.info!=`function`&&(e.info=du),typeof e.warn!=`function`&&(e.warn=fu),typeof e.error!=`function`&&(e.error=pu),e}var hu=`octokit-core.js/${uu} ${zc()}`,gu=class{static VERSION=uu;static defaults(e){return class extends this{constructor(...t){let n=t[0]||{};if(typeof e==`function`){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let t=this.plugins;return class extends this{static plugins=t.concat(e.filter(e=>!t.includes(e)))}}constructor(e={}){let t=new Jc.Collection,n={baseUrl:Q.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,`request`)}),mediaType:{previews:[],format:``}};if(n.headers[`user-agent`]=e.userAgent?`${e.userAgent} ${hu}`:hu,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers[`time-zone`]=e.timeZone),this.request=Q.defaults(n),this.graphql=tu(this.request).defaults(n),this.log=mu(e.log),this.hook=t,e.authStrategy){let{authStrategy:n,...r}=e,i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap(`request`,i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:`unauthenticated`});else{let n=lu(e.auth);t.wrap(`request`,n.hook),this.auth=n}let r=this.constructor;for(let t=0;t<r.plugins.length;++t)Object.assign(this,r.plugins[t](this,e))}request;graphql;log;hook;auth},_u=`0.0.0-development`;function vu(e){if(!e.data)return{...e,data:[]};if(!((`total_count`in e.data||`total_commits`in e.data)&&!(`url`in e.data)))return e;let t=e.data.incomplete_results,n=e.data.repository_selection,r=e.data.total_count,i=e.data.total_commits;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count,delete e.data.total_commits;let a=Object.keys(e.data)[0];return e.data=e.data[a],t!==void 0&&(e.data.incomplete_results=t),n!==void 0&&(e.data.repository_selection=n),e.data.total_count=r,e.data.total_commits=i,e}function yu(e,t,n){let r=typeof t==`function`?t.endpoint(n):e.request.endpoint(t,n),i=typeof t==`function`?t:e.request,a=r.method,o=r.headers,s=r.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0};try{let e=vu(await i({method:a,url:s,headers:o}));if(s=((e.headers.link||``).match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!s&&`total_commits`in e.data){let t=new URL(e.url),n=t.searchParams,r=parseInt(n.get(`page`)||`1`,10);r*parseInt(n.get(`per_page`)||`250`,10)<e.data.total_commits&&(n.set(`page`,String(r+1)),s=t.toString())}return{value:e}}catch(e){if(e.status!==409)throw e;return s=``,{value:{status:200,headers:{},data:[]}}}}})}}function bu(e,t,n,r){return typeof n==`function`&&(r=n,n=void 0),xu(e,[],yu(e,t,n)[Symbol.asyncIterator](),r)}function xu(e,t,n,r){return n.next().then(i=>{if(i.done)return t;let a=!1;function o(){a=!0}return t=t.concat(r?r(i.value,o):i.value.data),a?t:xu(e,t,n,r)})}var Su=Object.assign(bu,{iterator:yu});function Cu(e){return{paginate:Object.assign(bu.bind(null,e),{iterator:yu.bind(null,e)})}}Cu.VERSION=_u;var wu=(e,t)=>`The cursor at "${e.join(`,`)}" did not change its value "${t}" after a page transition. Please make sure your that your query is set up correctly.`,Tu=class extends Error{constructor(e,t){super(wu(e.pathInQuery,t)),this.pageInfo=e,this.cursorValue=t,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`MissingCursorChangeError`},Eu=class extends Error{constructor(e){super(`No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: ${JSON.stringify(e,null,2)}`),this.response=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`MissingPageInfo`},Du=e=>Object.prototype.toString.call(e)===`[object Object]`;function Ou(e){let t=ku(e,`pageInfo`);if(t.length===0)throw new Eu(e);return t}var ku=(e,t,n=[])=>{for(let r of Object.keys(e)){let i=[...n,r],a=e[r];if(Du(a)){if(a.hasOwnProperty(t))return i;let e=ku(a,t,i);if(e.length>0)return e}}return[]},Au=(e,t)=>t.reduce((e,t)=>e[t],e),ju=(e,t,n)=>{let r=t[t.length-1],i=Au(e,[...t].slice(0,-1));typeof n==`function`?i[r]=n(i[r]):i[r]=n},Mu=e=>{let t=Ou(e);return{pathInQuery:t,pageInfo:Au(e,[...t,`pageInfo`])}},Nu=e=>e.hasOwnProperty(`hasNextPage`),Pu=e=>Nu(e)?e.endCursor:e.startCursor,Fu=e=>Nu(e)?e.hasNextPage:e.hasPreviousPage,Iu=e=>(t,n={})=>{let r=!0,i={...n};return{[Symbol.asyncIterator]:()=>({async next(){if(!r)return{done:!0,value:{}};let n=await e.graphql(t,i),a=Mu(n),o=Pu(a.pageInfo);if(r=Fu(a.pageInfo),r&&o===i.cursor)throw new Tu(a,o);return i={...i,cursor:o},{done:!1,value:n}}})}},Lu=(e,t)=>{if(Object.keys(e).length===0)return Object.assign(e,t);let n=Ou(e),r=[...n,`nodes`],i=Au(t,r);i&&ju(e,r,e=>[...e,...i]);let a=[...n,`edges`],o=Au(t,a);o&&ju(e,a,e=>[...e,...o]);let s=[...n,`pageInfo`];return ju(e,s,Au(t,s)),e},Ru=e=>{let t=Iu(e);return async(e,n={})=>{let r={};for await(let i of t(e,n))r=Lu(r,i);return r}};function zu(e){return{graphql:Object.assign(e.graphql,{paginate:Object.assign(Ru(e),{iterator:Iu(e)})})}}var Bu=`17.0.0`,Vu={actions:{addCustomLabelsToSelfHostedRunnerForOrg:[`POST /orgs/{org}/actions/runners/{runner_id}/labels`],addCustomLabelsToSelfHostedRunnerForRepo:[`POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`],addRepoAccessToSelfHostedRunnerGroupInOrg:[`PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`],addSelectedRepoToOrgSecret:[`PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`],addSelectedRepoToOrgVariable:[`PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`],approveWorkflowRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve`],cancelWorkflowRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`],createEnvironmentVariable:[`POST /repos/{owner}/{repo}/environments/{environment_name}/variables`],createHostedRunnerForOrg:[`POST /orgs/{org}/actions/hosted-runners`],createOrUpdateEnvironmentSecret:[`PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`],createOrUpdateOrgSecret:[`PUT /orgs/{org}/actions/secrets/{secret_name}`],createOrUpdateRepoSecret:[`PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}`],createOrgVariable:[`POST /orgs/{org}/actions/variables`],createRegistrationTokenForOrg:[`POST /orgs/{org}/actions/runners/registration-token`],createRegistrationTokenForRepo:[`POST /repos/{owner}/{repo}/actions/runners/registration-token`],createRemoveTokenForOrg:[`POST /orgs/{org}/actions/runners/remove-token`],createRemoveTokenForRepo:[`POST /repos/{owner}/{repo}/actions/runners/remove-token`],createRepoVariable:[`POST /repos/{owner}/{repo}/actions/variables`],createWorkflowDispatch:[`POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`],deleteActionsCacheById:[`DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}`],deleteActionsCacheByKey:[`DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}`],deleteArtifact:[`DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`],deleteCustomImageFromOrg:[`DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}`],deleteCustomImageVersionFromOrg:[`DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}`],deleteEnvironmentSecret:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`],deleteEnvironmentVariable:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`],deleteHostedRunnerForOrg:[`DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`],deleteOrgSecret:[`DELETE /orgs/{org}/actions/secrets/{secret_name}`],deleteOrgVariable:[`DELETE /orgs/{org}/actions/variables/{name}`],deleteRepoSecret:[`DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}`],deleteRepoVariable:[`DELETE /repos/{owner}/{repo}/actions/variables/{name}`],deleteSelfHostedRunnerFromOrg:[`DELETE /orgs/{org}/actions/runners/{runner_id}`],deleteSelfHostedRunnerFromRepo:[`DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`],deleteWorkflowRun:[`DELETE /repos/{owner}/{repo}/actions/runs/{run_id}`],deleteWorkflowRunLogs:[`DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs`],disableSelectedRepositoryGithubActionsOrganization:[`DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}`],disableWorkflow:[`PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable`],downloadArtifact:[`GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}`],downloadJobLogsForWorkflowRun:[`GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs`],downloadWorkflowRunAttemptLogs:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs`],downloadWorkflowRunLogs:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs`],enableSelectedRepositoryGithubActionsOrganization:[`PUT /orgs/{org}/actions/permissions/repositories/{repository_id}`],enableWorkflow:[`PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`],forceCancelWorkflowRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel`],generateRunnerJitconfigForOrg:[`POST /orgs/{org}/actions/runners/generate-jitconfig`],generateRunnerJitconfigForRepo:[`POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig`],getActionsCacheList:[`GET /repos/{owner}/{repo}/actions/caches`],getActionsCacheUsage:[`GET /repos/{owner}/{repo}/actions/cache/usage`],getActionsCacheUsageByRepoForOrg:[`GET /orgs/{org}/actions/cache/usage-by-repository`],getActionsCacheUsageForOrg:[`GET /orgs/{org}/actions/cache/usage`],getAllowedActionsOrganization:[`GET /orgs/{org}/actions/permissions/selected-actions`],getAllowedActionsRepository:[`GET /repos/{owner}/{repo}/actions/permissions/selected-actions`],getArtifact:[`GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`],getCustomImageForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}`],getCustomImageVersionForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}`],getCustomOidcSubClaimForRepo:[`GET /repos/{owner}/{repo}/actions/oidc/customization/sub`],getEnvironmentPublicKey:[`GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key`],getEnvironmentSecret:[`GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`],getEnvironmentVariable:[`GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`],getGithubActionsDefaultWorkflowPermissionsOrganization:[`GET /orgs/{org}/actions/permissions/workflow`],getGithubActionsDefaultWorkflowPermissionsRepository:[`GET /repos/{owner}/{repo}/actions/permissions/workflow`],getGithubActionsPermissionsOrganization:[`GET /orgs/{org}/actions/permissions`],getGithubActionsPermissionsRepository:[`GET /repos/{owner}/{repo}/actions/permissions`],getHostedRunnerForOrg:[`GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`],getHostedRunnersGithubOwnedImagesForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/github-owned`],getHostedRunnersLimitsForOrg:[`GET /orgs/{org}/actions/hosted-runners/limits`],getHostedRunnersMachineSpecsForOrg:[`GET /orgs/{org}/actions/hosted-runners/machine-sizes`],getHostedRunnersPartnerImagesForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/partner`],getHostedRunnersPlatformsForOrg:[`GET /orgs/{org}/actions/hosted-runners/platforms`],getJobForWorkflowRun:[`GET /repos/{owner}/{repo}/actions/jobs/{job_id}`],getOrgPublicKey:[`GET /orgs/{org}/actions/secrets/public-key`],getOrgSecret:[`GET /orgs/{org}/actions/secrets/{secret_name}`],getOrgVariable:[`GET /orgs/{org}/actions/variables/{name}`],getPendingDeploymentsForRun:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`],getRepoPermissions:[`GET /repos/{owner}/{repo}/actions/permissions`,{},{renamed:[`actions`,`getGithubActionsPermissionsRepository`]}],getRepoPublicKey:[`GET /repos/{owner}/{repo}/actions/secrets/public-key`],getRepoSecret:[`GET /repos/{owner}/{repo}/actions/secrets/{secret_name}`],getRepoVariable:[`GET /repos/{owner}/{repo}/actions/variables/{name}`],getReviewsForRun:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals`],getSelfHostedRunnerForOrg:[`GET /orgs/{org}/actions/runners/{runner_id}`],getSelfHostedRunnerForRepo:[`GET /repos/{owner}/{repo}/actions/runners/{runner_id}`],getWorkflow:[`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}`],getWorkflowAccessToRepository:[`GET /repos/{owner}/{repo}/actions/permissions/access`],getWorkflowRun:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}`],getWorkflowRunAttempt:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}`],getWorkflowRunUsage:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing`],getWorkflowUsage:[`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing`],listArtifactsForRepo:[`GET /repos/{owner}/{repo}/actions/artifacts`],listCustomImageVersionsForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions`],listCustomImagesForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/custom`],listEnvironmentSecrets:[`GET /repos/{owner}/{repo}/environments/{environment_name}/secrets`],listEnvironmentVariables:[`GET /repos/{owner}/{repo}/environments/{environment_name}/variables`],listGithubHostedRunnersInGroupForOrg:[`GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners`],listHostedRunnersForOrg:[`GET /orgs/{org}/actions/hosted-runners`],listJobsForWorkflowRun:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs`],listJobsForWorkflowRunAttempt:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs`],listLabelsForSelfHostedRunnerForOrg:[`GET /orgs/{org}/actions/runners/{runner_id}/labels`],listLabelsForSelfHostedRunnerForRepo:[`GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`],listOrgSecrets:[`GET /orgs/{org}/actions/secrets`],listOrgVariables:[`GET /orgs/{org}/actions/variables`],listRepoOrganizationSecrets:[`GET /repos/{owner}/{repo}/actions/organization-secrets`],listRepoOrganizationVariables:[`GET /repos/{owner}/{repo}/actions/organization-variables`],listRepoSecrets:[`GET /repos/{owner}/{repo}/actions/secrets`],listRepoVariables:[`GET /repos/{owner}/{repo}/actions/variables`],listRepoWorkflows:[`GET /repos/{owner}/{repo}/actions/workflows`],listRunnerApplicationsForOrg:[`GET /orgs/{org}/actions/runners/downloads`],listRunnerApplicationsForRepo:[`GET /repos/{owner}/{repo}/actions/runners/downloads`],listSelectedReposForOrgSecret:[`GET /orgs/{org}/actions/secrets/{secret_name}/repositories`],listSelectedReposForOrgVariable:[`GET /orgs/{org}/actions/variables/{name}/repositories`],listSelectedRepositoriesEnabledGithubActionsOrganization:[`GET /orgs/{org}/actions/permissions/repositories`],listSelfHostedRunnersForOrg:[`GET /orgs/{org}/actions/runners`],listSelfHostedRunnersForRepo:[`GET /repos/{owner}/{repo}/actions/runners`],listWorkflowRunArtifacts:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`],listWorkflowRuns:[`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs`],listWorkflowRunsForRepo:[`GET /repos/{owner}/{repo}/actions/runs`],reRunJobForWorkflowRun:[`POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun`],reRunWorkflow:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun`],reRunWorkflowFailedJobs:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs`],removeAllCustomLabelsFromSelfHostedRunnerForOrg:[`DELETE /orgs/{org}/actions/runners/{runner_id}/labels`],removeAllCustomLabelsFromSelfHostedRunnerForRepo:[`DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`],removeCustomLabelFromSelfHostedRunnerForOrg:[`DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}`],removeCustomLabelFromSelfHostedRunnerForRepo:[`DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}`],removeSelectedRepoFromOrgSecret:[`DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`],removeSelectedRepoFromOrgVariable:[`DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`],reviewCustomGatesForRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule`],reviewPendingDeploymentsForRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`],setAllowedActionsOrganization:[`PUT /orgs/{org}/actions/permissions/selected-actions`],setAllowedActionsRepository:[`PUT /repos/{owner}/{repo}/actions/permissions/selected-actions`],setCustomLabelsForSelfHostedRunnerForOrg:[`PUT /orgs/{org}/actions/runners/{runner_id}/labels`],setCustomLabelsForSelfHostedRunnerForRepo:[`PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`],setCustomOidcSubClaimForRepo:[`PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`],setGithubActionsDefaultWorkflowPermissionsOrganization:[`PUT /orgs/{org}/actions/permissions/workflow`],setGithubActionsDefaultWorkflowPermissionsRepository:[`PUT /repos/{owner}/{repo}/actions/permissions/workflow`],setGithubActionsPermissionsOrganization:[`PUT /orgs/{org}/actions/permissions`],setGithubActionsPermissionsRepository:[`PUT /repos/{owner}/{repo}/actions/permissions`],setSelectedReposForOrgSecret:[`PUT /orgs/{org}/actions/secrets/{secret_name}/repositories`],setSelectedReposForOrgVariable:[`PUT /orgs/{org}/actions/variables/{name}/repositories`],setSelectedRepositoriesEnabledGithubActionsOrganization:[`PUT /orgs/{org}/actions/permissions/repositories`],setWorkflowAccessToRepository:[`PUT /repos/{owner}/{repo}/actions/permissions/access`],updateEnvironmentVariable:[`PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`],updateHostedRunnerForOrg:[`PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`],updateOrgVariable:[`PATCH /orgs/{org}/actions/variables/{name}`],updateRepoVariable:[`PATCH /repos/{owner}/{repo}/actions/variables/{name}`]},activity:{checkRepoIsStarredByAuthenticatedUser:[`GET /user/starred/{owner}/{repo}`],deleteRepoSubscription:[`DELETE /repos/{owner}/{repo}/subscription`],deleteThreadSubscription:[`DELETE /notifications/threads/{thread_id}/subscription`],getFeeds:[`GET /feeds`],getRepoSubscription:[`GET /repos/{owner}/{repo}/subscription`],getThread:[`GET /notifications/threads/{thread_id}`],getThreadSubscriptionForAuthenticatedUser:[`GET /notifications/threads/{thread_id}/subscription`],listEventsForAuthenticatedUser:[`GET /users/{username}/events`],listNotificationsForAuthenticatedUser:[`GET /notifications`],listOrgEventsForAuthenticatedUser:[`GET /users/{username}/events/orgs/{org}`],listPublicEvents:[`GET /events`],listPublicEventsForRepoNetwork:[`GET /networks/{owner}/{repo}/events`],listPublicEventsForUser:[`GET /users/{username}/events/public`],listPublicOrgEvents:[`GET /orgs/{org}/events`],listReceivedEventsForUser:[`GET /users/{username}/received_events`],listReceivedPublicEventsForUser:[`GET /users/{username}/received_events/public`],listRepoEvents:[`GET /repos/{owner}/{repo}/events`],listRepoNotificationsForAuthenticatedUser:[`GET /repos/{owner}/{repo}/notifications`],listReposStarredByAuthenticatedUser:[`GET /user/starred`],listReposStarredByUser:[`GET /users/{username}/starred`],listReposWatchedByUser:[`GET /users/{username}/subscriptions`],listStargazersForRepo:[`GET /repos/{owner}/{repo}/stargazers`],listWatchedReposForAuthenticatedUser:[`GET /user/subscriptions`],listWatchersForRepo:[`GET /repos/{owner}/{repo}/subscribers`],markNotificationsAsRead:[`PUT /notifications`],markRepoNotificationsAsRead:[`PUT /repos/{owner}/{repo}/notifications`],markThreadAsDone:[`DELETE /notifications/threads/{thread_id}`],markThreadAsRead:[`PATCH /notifications/threads/{thread_id}`],setRepoSubscription:[`PUT /repos/{owner}/{repo}/subscription`],setThreadSubscription:[`PUT /notifications/threads/{thread_id}/subscription`],starRepoForAuthenticatedUser:[`PUT /user/starred/{owner}/{repo}`],unstarRepoForAuthenticatedUser:[`DELETE /user/starred/{owner}/{repo}`]},apps:{addRepoToInstallation:[`PUT /user/installations/{installation_id}/repositories/{repository_id}`,{},{renamed:[`apps`,`addRepoToInstallationForAuthenticatedUser`]}],addRepoToInstallationForAuthenticatedUser:[`PUT /user/installations/{installation_id}/repositories/{repository_id}`],checkToken:[`POST /applications/{client_id}/token`],createFromManifest:[`POST /app-manifests/{code}/conversions`],createInstallationAccessToken:[`POST /app/installations/{installation_id}/access_tokens`],deleteAuthorization:[`DELETE /applications/{client_id}/grant`],deleteInstallation:[`DELETE /app/installations/{installation_id}`],deleteToken:[`DELETE /applications/{client_id}/token`],getAuthenticated:[`GET /app`],getBySlug:[`GET /apps/{app_slug}`],getInstallation:[`GET /app/installations/{installation_id}`],getOrgInstallation:[`GET /orgs/{org}/installation`],getRepoInstallation:[`GET /repos/{owner}/{repo}/installation`],getSubscriptionPlanForAccount:[`GET /marketplace_listing/accounts/{account_id}`],getSubscriptionPlanForAccountStubbed:[`GET /marketplace_listing/stubbed/accounts/{account_id}`],getUserInstallation:[`GET /users/{username}/installation`],getWebhookConfigForApp:[`GET /app/hook/config`],getWebhookDelivery:[`GET /app/hook/deliveries/{delivery_id}`],listAccountsForPlan:[`GET /marketplace_listing/plans/{plan_id}/accounts`],listAccountsForPlanStubbed:[`GET /marketplace_listing/stubbed/plans/{plan_id}/accounts`],listInstallationReposForAuthenticatedUser:[`GET /user/installations/{installation_id}/repositories`],listInstallationRequestsForAuthenticatedApp:[`GET /app/installation-requests`],listInstallations:[`GET /app/installations`],listInstallationsForAuthenticatedUser:[`GET /user/installations`],listPlans:[`GET /marketplace_listing/plans`],listPlansStubbed:[`GET /marketplace_listing/stubbed/plans`],listReposAccessibleToInstallation:[`GET /installation/repositories`],listSubscriptionsForAuthenticatedUser:[`GET /user/marketplace_purchases`],listSubscriptionsForAuthenticatedUserStubbed:[`GET /user/marketplace_purchases/stubbed`],listWebhookDeliveries:[`GET /app/hook/deliveries`],redeliverWebhookDelivery:[`POST /app/hook/deliveries/{delivery_id}/attempts`],removeRepoFromInstallation:[`DELETE /user/installations/{installation_id}/repositories/{repository_id}`,{},{renamed:[`apps`,`removeRepoFromInstallationForAuthenticatedUser`]}],removeRepoFromInstallationForAuthenticatedUser:[`DELETE /user/installations/{installation_id}/repositories/{repository_id}`],resetToken:[`PATCH /applications/{client_id}/token`],revokeInstallationAccessToken:[`DELETE /installation/token`],scopeToken:[`POST /applications/{client_id}/token/scoped`],suspendInstallation:[`PUT /app/installations/{installation_id}/suspended`],unsuspendInstallation:[`DELETE /app/installations/{installation_id}/suspended`],updateWebhookConfigForApp:[`PATCH /app/hook/config`]},billing:{getGithubActionsBillingOrg:[`GET /orgs/{org}/settings/billing/actions`],getGithubActionsBillingUser:[`GET /users/{username}/settings/billing/actions`],getGithubBillingPremiumRequestUsageReportOrg:[`GET /organizations/{org}/settings/billing/premium_request/usage`],getGithubBillingPremiumRequestUsageReportUser:[`GET /users/{username}/settings/billing/premium_request/usage`],getGithubBillingUsageReportOrg:[`GET /organizations/{org}/settings/billing/usage`],getGithubBillingUsageReportUser:[`GET /users/{username}/settings/billing/usage`],getGithubPackagesBillingOrg:[`GET /orgs/{org}/settings/billing/packages`],getGithubPackagesBillingUser:[`GET /users/{username}/settings/billing/packages`],getSharedStorageBillingOrg:[`GET /orgs/{org}/settings/billing/shared-storage`],getSharedStorageBillingUser:[`GET /users/{username}/settings/billing/shared-storage`]},campaigns:{createCampaign:[`POST /orgs/{org}/campaigns`],deleteCampaign:[`DELETE /orgs/{org}/campaigns/{campaign_number}`],getCampaignSummary:[`GET /orgs/{org}/campaigns/{campaign_number}`],listOrgCampaigns:[`GET /orgs/{org}/campaigns`],updateCampaign:[`PATCH /orgs/{org}/campaigns/{campaign_number}`]},checks:{create:[`POST /repos/{owner}/{repo}/check-runs`],createSuite:[`POST /repos/{owner}/{repo}/check-suites`],get:[`GET /repos/{owner}/{repo}/check-runs/{check_run_id}`],getSuite:[`GET /repos/{owner}/{repo}/check-suites/{check_suite_id}`],listAnnotations:[`GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations`],listForRef:[`GET /repos/{owner}/{repo}/commits/{ref}/check-runs`],listForSuite:[`GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs`],listSuitesForRef:[`GET /repos/{owner}/{repo}/commits/{ref}/check-suites`],rerequestRun:[`POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`],rerequestSuite:[`POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`],setSuitesPreferences:[`PATCH /repos/{owner}/{repo}/check-suites/preferences`],update:[`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`]},codeScanning:{commitAutofix:[`POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits`],createAutofix:[`POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`],createVariantAnalysis:[`POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses`],deleteAnalysis:[`DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}`],deleteCodeqlDatabase:[`DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`],getAlert:[`GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`,{},{renamedParameters:{alert_id:`alert_number`}}],getAnalysis:[`GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`],getAutofix:[`GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`],getCodeqlDatabase:[`GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`],getDefaultSetup:[`GET /repos/{owner}/{repo}/code-scanning/default-setup`],getSarif:[`GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}`],getVariantAnalysis:[`GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}`],getVariantAnalysisRepoTask:[`GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}`],listAlertInstances:[`GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances`],listAlertsForOrg:[`GET /orgs/{org}/code-scanning/alerts`],listAlertsForRepo:[`GET /repos/{owner}/{repo}/code-scanning/alerts`],listAlertsInstances:[`GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances`,{},{renamed:[`codeScanning`,`listAlertInstances`]}],listCodeqlDatabases:[`GET /repos/{owner}/{repo}/code-scanning/codeql/databases`],listRecentAnalyses:[`GET /repos/{owner}/{repo}/code-scanning/analyses`],updateAlert:[`PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`],updateDefaultSetup:[`PATCH /repos/{owner}/{repo}/code-scanning/default-setup`],uploadSarif:[`POST /repos/{owner}/{repo}/code-scanning/sarifs`]},codeSecurity:{attachConfiguration:[`POST /orgs/{org}/code-security/configurations/{configuration_id}/attach`],attachEnterpriseConfiguration:[`POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach`],createConfiguration:[`POST /orgs/{org}/code-security/configurations`],createConfigurationForEnterprise:[`POST /enterprises/{enterprise}/code-security/configurations`],deleteConfiguration:[`DELETE /orgs/{org}/code-security/configurations/{configuration_id}`],deleteConfigurationForEnterprise:[`DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}`],detachConfiguration:[`DELETE /orgs/{org}/code-security/configurations/detach`],getConfiguration:[`GET /orgs/{org}/code-security/configurations/{configuration_id}`],getConfigurationForRepository:[`GET /repos/{owner}/{repo}/code-security-configuration`],getConfigurationsForEnterprise:[`GET /enterprises/{enterprise}/code-security/configurations`],getConfigurationsForOrg:[`GET /orgs/{org}/code-security/configurations`],getDefaultConfigurations:[`GET /orgs/{org}/code-security/configurations/defaults`],getDefaultConfigurationsForEnterprise:[`GET /enterprises/{enterprise}/code-security/configurations/defaults`],getRepositoriesForConfiguration:[`GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`],getRepositoriesForEnterpriseConfiguration:[`GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories`],getSingleConfigurationForEnterprise:[`GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}`],setConfigurationAsDefault:[`PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults`],setConfigurationAsDefaultForEnterprise:[`PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults`],updateConfiguration:[`PATCH /orgs/{org}/code-security/configurations/{configuration_id}`],updateEnterpriseConfiguration:[`PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}`]},codesOfConduct:{getAllCodesOfConduct:[`GET /codes_of_conduct`],getConductCode:[`GET /codes_of_conduct/{key}`]},codespaces:{addRepositoryForSecretForAuthenticatedUser:[`PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`],addSelectedRepoToOrgSecret:[`PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`],checkPermissionsForDevcontainer:[`GET /repos/{owner}/{repo}/codespaces/permissions_check`],codespaceMachinesForAuthenticatedUser:[`GET /user/codespaces/{codespace_name}/machines`],createForAuthenticatedUser:[`POST /user/codespaces`],createOrUpdateOrgSecret:[`PUT /orgs/{org}/codespaces/secrets/{secret_name}`],createOrUpdateRepoSecret:[`PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`],createOrUpdateSecretForAuthenticatedUser:[`PUT /user/codespaces/secrets/{secret_name}`],createWithPrForAuthenticatedUser:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces`],createWithRepoForAuthenticatedUser:[`POST /repos/{owner}/{repo}/codespaces`],deleteForAuthenticatedUser:[`DELETE /user/codespaces/{codespace_name}`],deleteFromOrganization:[`DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`],deleteOrgSecret:[`DELETE /orgs/{org}/codespaces/secrets/{secret_name}`],deleteRepoSecret:[`DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`],deleteSecretForAuthenticatedUser:[`DELETE /user/codespaces/secrets/{secret_name}`],exportForAuthenticatedUser:[`POST /user/codespaces/{codespace_name}/exports`],getCodespacesForUserInOrg:[`GET /orgs/{org}/members/{username}/codespaces`],getExportDetailsForAuthenticatedUser:[`GET /user/codespaces/{codespace_name}/exports/{export_id}`],getForAuthenticatedUser:[`GET /user/codespaces/{codespace_name}`],getOrgPublicKey:[`GET /orgs/{org}/codespaces/secrets/public-key`],getOrgSecret:[`GET /orgs/{org}/codespaces/secrets/{secret_name}`],getPublicKeyForAuthenticatedUser:[`GET /user/codespaces/secrets/public-key`],getRepoPublicKey:[`GET /repos/{owner}/{repo}/codespaces/secrets/public-key`],getRepoSecret:[`GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`],getSecretForAuthenticatedUser:[`GET /user/codespaces/secrets/{secret_name}`],listDevcontainersInRepositoryForAuthenticatedUser:[`GET /repos/{owner}/{repo}/codespaces/devcontainers`],listForAuthenticatedUser:[`GET /user/codespaces`],listInOrganization:[`GET /orgs/{org}/codespaces`,{},{renamedParameters:{org_id:`org`}}],listInRepositoryForAuthenticatedUser:[`GET /repos/{owner}/{repo}/codespaces`],listOrgSecrets:[`GET /orgs/{org}/codespaces/secrets`],listRepoSecrets:[`GET /repos/{owner}/{repo}/codespaces/secrets`],listRepositoriesForSecretForAuthenticatedUser:[`GET /user/codespaces/secrets/{secret_name}/repositories`],listSecretsForAuthenticatedUser:[`GET /user/codespaces/secrets`],listSelectedReposForOrgSecret:[`GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories`],preFlightWithRepoForAuthenticatedUser:[`GET /repos/{owner}/{repo}/codespaces/new`],publishForAuthenticatedUser:[`POST /user/codespaces/{codespace_name}/publish`],removeRepositoryForSecretForAuthenticatedUser:[`DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`],removeSelectedRepoFromOrgSecret:[`DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`],repoMachinesForAuthenticatedUser:[`GET /repos/{owner}/{repo}/codespaces/machines`],setRepositoriesForSecretForAuthenticatedUser:[`PUT /user/codespaces/secrets/{secret_name}/repositories`],setSelectedReposForOrgSecret:[`PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories`],startForAuthenticatedUser:[`POST /user/codespaces/{codespace_name}/start`],stopForAuthenticatedUser:[`POST /user/codespaces/{codespace_name}/stop`],stopInOrganization:[`POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop`],updateForAuthenticatedUser:[`PATCH /user/codespaces/{codespace_name}`]},copilot:{addCopilotSeatsForTeams:[`POST /orgs/{org}/copilot/billing/selected_teams`],addCopilotSeatsForUsers:[`POST /orgs/{org}/copilot/billing/selected_users`],cancelCopilotSeatAssignmentForTeams:[`DELETE /orgs/{org}/copilot/billing/selected_teams`],cancelCopilotSeatAssignmentForUsers:[`DELETE /orgs/{org}/copilot/billing/selected_users`],copilotMetricsForOrganization:[`GET /orgs/{org}/copilot/metrics`],copilotMetricsForTeam:[`GET /orgs/{org}/team/{team_slug}/copilot/metrics`],getCopilotOrganizationDetails:[`GET /orgs/{org}/copilot/billing`],getCopilotSeatDetailsForUser:[`GET /orgs/{org}/members/{username}/copilot`],listCopilotSeats:[`GET /orgs/{org}/copilot/billing/seats`]},credentials:{revoke:[`POST /credentials/revoke`]},dependabot:{addSelectedRepoToOrgSecret:[`PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`],createOrUpdateOrgSecret:[`PUT /orgs/{org}/dependabot/secrets/{secret_name}`],createOrUpdateRepoSecret:[`PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`],deleteOrgSecret:[`DELETE /orgs/{org}/dependabot/secrets/{secret_name}`],deleteRepoSecret:[`DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`],getAlert:[`GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`],getOrgPublicKey:[`GET /orgs/{org}/dependabot/secrets/public-key`],getOrgSecret:[`GET /orgs/{org}/dependabot/secrets/{secret_name}`],getRepoPublicKey:[`GET /repos/{owner}/{repo}/dependabot/secrets/public-key`],getRepoSecret:[`GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`],listAlertsForEnterprise:[`GET /enterprises/{enterprise}/dependabot/alerts`],listAlertsForOrg:[`GET /orgs/{org}/dependabot/alerts`],listAlertsForRepo:[`GET /repos/{owner}/{repo}/dependabot/alerts`],listOrgSecrets:[`GET /orgs/{org}/dependabot/secrets`],listRepoSecrets:[`GET /repos/{owner}/{repo}/dependabot/secrets`],listSelectedReposForOrgSecret:[`GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories`],removeSelectedRepoFromOrgSecret:[`DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`],repositoryAccessForOrg:[`GET /organizations/{org}/dependabot/repository-access`],setRepositoryAccessDefaultLevel:[`PUT /organizations/{org}/dependabot/repository-access/default-level`],setSelectedReposForOrgSecret:[`PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories`],updateAlert:[`PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`],updateRepositoryAccessForOrg:[`PATCH /organizations/{org}/dependabot/repository-access`]},dependencyGraph:{createRepositorySnapshot:[`POST /repos/{owner}/{repo}/dependency-graph/snapshots`],diffRange:[`GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}`],exportSbom:[`GET /repos/{owner}/{repo}/dependency-graph/sbom`]},emojis:{get:[`GET /emojis`]},enterpriseTeamMemberships:{add:[`PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}`],bulkAdd:[`POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add`],bulkRemove:[`POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove`],get:[`GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}`],list:[`GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships`],remove:[`DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}`]},enterpriseTeamOrganizations:{add:[`PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}`],bulkAdd:[`POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add`],bulkRemove:[`POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove`],delete:[`DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}`],getAssignment:[`GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}`],getAssignments:[`GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations`]},enterpriseTeams:{create:[`POST /enterprises/{enterprise}/teams`],delete:[`DELETE /enterprises/{enterprise}/teams/{team_slug}`],get:[`GET /enterprises/{enterprise}/teams/{team_slug}`],list:[`GET /enterprises/{enterprise}/teams`],update:[`PATCH /enterprises/{enterprise}/teams/{team_slug}`]},gists:{checkIsStarred:[`GET /gists/{gist_id}/star`],create:[`POST /gists`],createComment:[`POST /gists/{gist_id}/comments`],delete:[`DELETE /gists/{gist_id}`],deleteComment:[`DELETE /gists/{gist_id}/comments/{comment_id}`],fork:[`POST /gists/{gist_id}/forks`],get:[`GET /gists/{gist_id}`],getComment:[`GET /gists/{gist_id}/comments/{comment_id}`],getRevision:[`GET /gists/{gist_id}/{sha}`],list:[`GET /gists`],listComments:[`GET /gists/{gist_id}/comments`],listCommits:[`GET /gists/{gist_id}/commits`],listForUser:[`GET /users/{username}/gists`],listForks:[`GET /gists/{gist_id}/forks`],listPublic:[`GET /gists/public`],listStarred:[`GET /gists/starred`],star:[`PUT /gists/{gist_id}/star`],unstar:[`DELETE /gists/{gist_id}/star`],update:[`PATCH /gists/{gist_id}`],updateComment:[`PATCH /gists/{gist_id}/comments/{comment_id}`]},git:{createBlob:[`POST /repos/{owner}/{repo}/git/blobs`],createCommit:[`POST /repos/{owner}/{repo}/git/commits`],createRef:[`POST /repos/{owner}/{repo}/git/refs`],createTag:[`POST /repos/{owner}/{repo}/git/tags`],createTree:[`POST /repos/{owner}/{repo}/git/trees`],deleteRef:[`DELETE /repos/{owner}/{repo}/git/refs/{ref}`],getBlob:[`GET /repos/{owner}/{repo}/git/blobs/{file_sha}`],getCommit:[`GET /repos/{owner}/{repo}/git/commits/{commit_sha}`],getRef:[`GET /repos/{owner}/{repo}/git/ref/{ref}`],getTag:[`GET /repos/{owner}/{repo}/git/tags/{tag_sha}`],getTree:[`GET /repos/{owner}/{repo}/git/trees/{tree_sha}`],listMatchingRefs:[`GET /repos/{owner}/{repo}/git/matching-refs/{ref}`],updateRef:[`PATCH /repos/{owner}/{repo}/git/refs/{ref}`]},gitignore:{getAllTemplates:[`GET /gitignore/templates`],getTemplate:[`GET /gitignore/templates/{name}`]},hostedCompute:{createNetworkConfigurationForOrg:[`POST /orgs/{org}/settings/network-configurations`],deleteNetworkConfigurationFromOrg:[`DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}`],getNetworkConfigurationForOrg:[`GET /orgs/{org}/settings/network-configurations/{network_configuration_id}`],getNetworkSettingsForOrg:[`GET /orgs/{org}/settings/network-settings/{network_settings_id}`],listNetworkConfigurationsForOrg:[`GET /orgs/{org}/settings/network-configurations`],updateNetworkConfigurationForOrg:[`PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}`]},interactions:{getRestrictionsForAuthenticatedUser:[`GET /user/interaction-limits`],getRestrictionsForOrg:[`GET /orgs/{org}/interaction-limits`],getRestrictionsForRepo:[`GET /repos/{owner}/{repo}/interaction-limits`],getRestrictionsForYourPublicRepos:[`GET /user/interaction-limits`,{},{renamed:[`interactions`,`getRestrictionsForAuthenticatedUser`]}],removeRestrictionsForAuthenticatedUser:[`DELETE /user/interaction-limits`],removeRestrictionsForOrg:[`DELETE /orgs/{org}/interaction-limits`],removeRestrictionsForRepo:[`DELETE /repos/{owner}/{repo}/interaction-limits`],removeRestrictionsForYourPublicRepos:[`DELETE /user/interaction-limits`,{},{renamed:[`interactions`,`removeRestrictionsForAuthenticatedUser`]}],setRestrictionsForAuthenticatedUser:[`PUT /user/interaction-limits`],setRestrictionsForOrg:[`PUT /orgs/{org}/interaction-limits`],setRestrictionsForRepo:[`PUT /repos/{owner}/{repo}/interaction-limits`],setRestrictionsForYourPublicRepos:[`PUT /user/interaction-limits`,{},{renamed:[`interactions`,`setRestrictionsForAuthenticatedUser`]}]},issues:{addAssignees:[`POST /repos/{owner}/{repo}/issues/{issue_number}/assignees`],addBlockedByDependency:[`POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by`],addLabels:[`POST /repos/{owner}/{repo}/issues/{issue_number}/labels`],addSubIssue:[`POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`],checkUserCanBeAssigned:[`GET /repos/{owner}/{repo}/assignees/{assignee}`],checkUserCanBeAssignedToIssue:[`GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}`],create:[`POST /repos/{owner}/{repo}/issues`],createComment:[`POST /repos/{owner}/{repo}/issues/{issue_number}/comments`],createLabel:[`POST /repos/{owner}/{repo}/labels`],createMilestone:[`POST /repos/{owner}/{repo}/milestones`],deleteComment:[`DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}`],deleteLabel:[`DELETE /repos/{owner}/{repo}/labels/{name}`],deleteMilestone:[`DELETE /repos/{owner}/{repo}/milestones/{milestone_number}`],get:[`GET /repos/{owner}/{repo}/issues/{issue_number}`],getComment:[`GET /repos/{owner}/{repo}/issues/comments/{comment_id}`],getEvent:[`GET /repos/{owner}/{repo}/issues/events/{event_id}`],getLabel:[`GET /repos/{owner}/{repo}/labels/{name}`],getMilestone:[`GET /repos/{owner}/{repo}/milestones/{milestone_number}`],getParent:[`GET /repos/{owner}/{repo}/issues/{issue_number}/parent`],list:[`GET /issues`],listAssignees:[`GET /repos/{owner}/{repo}/assignees`],listComments:[`GET /repos/{owner}/{repo}/issues/{issue_number}/comments`],listCommentsForRepo:[`GET /repos/{owner}/{repo}/issues/comments`],listDependenciesBlockedBy:[`GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by`],listDependenciesBlocking:[`GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking`],listEvents:[`GET /repos/{owner}/{repo}/issues/{issue_number}/events`],listEventsForRepo:[`GET /repos/{owner}/{repo}/issues/events`],listEventsForTimeline:[`GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`],listForAuthenticatedUser:[`GET /user/issues`],listForOrg:[`GET /orgs/{org}/issues`],listForRepo:[`GET /repos/{owner}/{repo}/issues`],listLabelsForMilestone:[`GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels`],listLabelsForRepo:[`GET /repos/{owner}/{repo}/labels`],listLabelsOnIssue:[`GET /repos/{owner}/{repo}/issues/{issue_number}/labels`],listMilestones:[`GET /repos/{owner}/{repo}/milestones`],listSubIssues:[`GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`],lock:[`PUT /repos/{owner}/{repo}/issues/{issue_number}/lock`],removeAllLabels:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels`],removeAssignees:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees`],removeDependencyBlockedBy:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}`],removeLabel:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}`],removeSubIssue:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue`],reprioritizeSubIssue:[`PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority`],setLabels:[`PUT /repos/{owner}/{repo}/issues/{issue_number}/labels`],unlock:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock`],update:[`PATCH /repos/{owner}/{repo}/issues/{issue_number}`],updateComment:[`PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}`],updateLabel:[`PATCH /repos/{owner}/{repo}/labels/{name}`],updateMilestone:[`PATCH /repos/{owner}/{repo}/milestones/{milestone_number}`]},licenses:{get:[`GET /licenses/{license}`],getAllCommonlyUsed:[`GET /licenses`],getForRepo:[`GET /repos/{owner}/{repo}/license`]},markdown:{render:[`POST /markdown`],renderRaw:[`POST /markdown/raw`,{headers:{"content-type":`text/plain; charset=utf-8`}}]},meta:{get:[`GET /meta`],getAllVersions:[`GET /versions`],getOctocat:[`GET /octocat`],getZen:[`GET /zen`],root:[`GET /`]},migrations:{deleteArchiveForAuthenticatedUser:[`DELETE /user/migrations/{migration_id}/archive`],deleteArchiveForOrg:[`DELETE /orgs/{org}/migrations/{migration_id}/archive`],downloadArchiveForOrg:[`GET /orgs/{org}/migrations/{migration_id}/archive`],getArchiveForAuthenticatedUser:[`GET /user/migrations/{migration_id}/archive`],getStatusForAuthenticatedUser:[`GET /user/migrations/{migration_id}`],getStatusForOrg:[`GET /orgs/{org}/migrations/{migration_id}`],listForAuthenticatedUser:[`GET /user/migrations`],listForOrg:[`GET /orgs/{org}/migrations`],listReposForAuthenticatedUser:[`GET /user/migrations/{migration_id}/repositories`],listReposForOrg:[`GET /orgs/{org}/migrations/{migration_id}/repositories`],listReposForUser:[`GET /user/migrations/{migration_id}/repositories`,{},{renamed:[`migrations`,`listReposForAuthenticatedUser`]}],startForAuthenticatedUser:[`POST /user/migrations`],startForOrg:[`POST /orgs/{org}/migrations`],unlockRepoForAuthenticatedUser:[`DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock`],unlockRepoForOrg:[`DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock`]},oidc:{getOidcCustomSubTemplateForOrg:[`GET /orgs/{org}/actions/oidc/customization/sub`],updateOidcCustomSubTemplateForOrg:[`PUT /orgs/{org}/actions/oidc/customization/sub`]},orgs:{addSecurityManagerTeam:[`PUT /orgs/{org}/security-managers/teams/{team_slug}`,{},{deprecated:`octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team`}],assignTeamToOrgRole:[`PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`],assignUserToOrgRole:[`PUT /orgs/{org}/organization-roles/users/{username}/{role_id}`],blockUser:[`PUT /orgs/{org}/blocks/{username}`],cancelInvitation:[`DELETE /orgs/{org}/invitations/{invitation_id}`],checkBlockedUser:[`GET /orgs/{org}/blocks/{username}`],checkMembershipForUser:[`GET /orgs/{org}/members/{username}`],checkPublicMembershipForUser:[`GET /orgs/{org}/public_members/{username}`],convertMemberToOutsideCollaborator:[`PUT /orgs/{org}/outside_collaborators/{username}`],createArtifactStorageRecord:[`POST /orgs/{org}/artifacts/metadata/storage-record`],createInvitation:[`POST /orgs/{org}/invitations`],createIssueType:[`POST /orgs/{org}/issue-types`],createWebhook:[`POST /orgs/{org}/hooks`],customPropertiesForOrgsCreateOrUpdateOrganizationValues:[`PATCH /organizations/{org}/org-properties/values`],customPropertiesForOrgsGetOrganizationValues:[`GET /organizations/{org}/org-properties/values`],customPropertiesForReposCreateOrUpdateOrganizationDefinition:[`PUT /orgs/{org}/properties/schema/{custom_property_name}`],customPropertiesForReposCreateOrUpdateOrganizationDefinitions:[`PATCH /orgs/{org}/properties/schema`],customPropertiesForReposCreateOrUpdateOrganizationValues:[`PATCH /orgs/{org}/properties/values`],customPropertiesForReposDeleteOrganizationDefinition:[`DELETE /orgs/{org}/properties/schema/{custom_property_name}`],customPropertiesForReposGetOrganizationDefinition:[`GET /orgs/{org}/properties/schema/{custom_property_name}`],customPropertiesForReposGetOrganizationDefinitions:[`GET /orgs/{org}/properties/schema`],customPropertiesForReposGetOrganizationValues:[`GET /orgs/{org}/properties/values`],delete:[`DELETE /orgs/{org}`],deleteAttestationsBulk:[`POST /orgs/{org}/attestations/delete-request`],deleteAttestationsById:[`DELETE /orgs/{org}/attestations/{attestation_id}`],deleteAttestationsBySubjectDigest:[`DELETE /orgs/{org}/attestations/digest/{subject_digest}`],deleteIssueType:[`DELETE /orgs/{org}/issue-types/{issue_type_id}`],deleteWebhook:[`DELETE /orgs/{org}/hooks/{hook_id}`],disableSelectedRepositoryImmutableReleasesOrganization:[`DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}`],enableSelectedRepositoryImmutableReleasesOrganization:[`PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}`],get:[`GET /orgs/{org}`],getImmutableReleasesSettings:[`GET /orgs/{org}/settings/immutable-releases`],getImmutableReleasesSettingsRepositories:[`GET /orgs/{org}/settings/immutable-releases/repositories`],getMembershipForAuthenticatedUser:[`GET /user/memberships/orgs/{org}`],getMembershipForUser:[`GET /orgs/{org}/memberships/{username}`],getOrgRole:[`GET /orgs/{org}/organization-roles/{role_id}`],getOrgRulesetHistory:[`GET /orgs/{org}/rulesets/{ruleset_id}/history`],getOrgRulesetVersion:[`GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}`],getWebhook:[`GET /orgs/{org}/hooks/{hook_id}`],getWebhookConfigForOrg:[`GET /orgs/{org}/hooks/{hook_id}/config`],getWebhookDelivery:[`GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}`],list:[`GET /organizations`],listAppInstallations:[`GET /orgs/{org}/installations`],listArtifactStorageRecords:[`GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records`],listAttestationRepositories:[`GET /orgs/{org}/attestations/repositories`],listAttestations:[`GET /orgs/{org}/attestations/{subject_digest}`],listAttestationsBulk:[`POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}`],listBlockedUsers:[`GET /orgs/{org}/blocks`],listFailedInvitations:[`GET /orgs/{org}/failed_invitations`],listForAuthenticatedUser:[`GET /user/orgs`],listForUser:[`GET /users/{username}/orgs`],listInvitationTeams:[`GET /orgs/{org}/invitations/{invitation_id}/teams`],listIssueTypes:[`GET /orgs/{org}/issue-types`],listMembers:[`GET /orgs/{org}/members`],listMembershipsForAuthenticatedUser:[`GET /user/memberships/orgs`],listOrgRoleTeams:[`GET /orgs/{org}/organization-roles/{role_id}/teams`],listOrgRoleUsers:[`GET /orgs/{org}/organization-roles/{role_id}/users`],listOrgRoles:[`GET /orgs/{org}/organization-roles`],listOrganizationFineGrainedPermissions:[`GET /orgs/{org}/organization-fine-grained-permissions`],listOutsideCollaborators:[`GET /orgs/{org}/outside_collaborators`],listPatGrantRepositories:[`GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories`],listPatGrantRequestRepositories:[`GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories`],listPatGrantRequests:[`GET /orgs/{org}/personal-access-token-requests`],listPatGrants:[`GET /orgs/{org}/personal-access-tokens`],listPendingInvitations:[`GET /orgs/{org}/invitations`],listPublicMembers:[`GET /orgs/{org}/public_members`],listSecurityManagerTeams:[`GET /orgs/{org}/security-managers`,{},{deprecated:`octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams`}],listWebhookDeliveries:[`GET /orgs/{org}/hooks/{hook_id}/deliveries`],listWebhooks:[`GET /orgs/{org}/hooks`],pingWebhook:[`POST /orgs/{org}/hooks/{hook_id}/pings`],redeliverWebhookDelivery:[`POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`],removeMember:[`DELETE /orgs/{org}/members/{username}`],removeMembershipForUser:[`DELETE /orgs/{org}/memberships/{username}`],removeOutsideCollaborator:[`DELETE /orgs/{org}/outside_collaborators/{username}`],removePublicMembershipForAuthenticatedUser:[`DELETE /orgs/{org}/public_members/{username}`],removeSecurityManagerTeam:[`DELETE /orgs/{org}/security-managers/teams/{team_slug}`,{},{deprecated:`octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team`}],reviewPatGrantRequest:[`POST /orgs/{org}/personal-access-token-requests/{pat_request_id}`],reviewPatGrantRequestsInBulk:[`POST /orgs/{org}/personal-access-token-requests`],revokeAllOrgRolesTeam:[`DELETE /orgs/{org}/organization-roles/teams/{team_slug}`],revokeAllOrgRolesUser:[`DELETE /orgs/{org}/organization-roles/users/{username}`],revokeOrgRoleTeam:[`DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`],revokeOrgRoleUser:[`DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}`],setImmutableReleasesSettings:[`PUT /orgs/{org}/settings/immutable-releases`],setImmutableReleasesSettingsRepositories:[`PUT /orgs/{org}/settings/immutable-releases/repositories`],setMembershipForUser:[`PUT /orgs/{org}/memberships/{username}`],setPublicMembershipForAuthenticatedUser:[`PUT /orgs/{org}/public_members/{username}`],unblockUser:[`DELETE /orgs/{org}/blocks/{username}`],update:[`PATCH /orgs/{org}`],updateIssueType:[`PUT /orgs/{org}/issue-types/{issue_type_id}`],updateMembershipForAuthenticatedUser:[`PATCH /user/memberships/orgs/{org}`],updatePatAccess:[`POST /orgs/{org}/personal-access-tokens/{pat_id}`],updatePatAccesses:[`POST /orgs/{org}/personal-access-tokens`],updateWebhook:[`PATCH /orgs/{org}/hooks/{hook_id}`],updateWebhookConfigForOrg:[`PATCH /orgs/{org}/hooks/{hook_id}/config`]},packages:{deletePackageForAuthenticatedUser:[`DELETE /user/packages/{package_type}/{package_name}`],deletePackageForOrg:[`DELETE /orgs/{org}/packages/{package_type}/{package_name}`],deletePackageForUser:[`DELETE /users/{username}/packages/{package_type}/{package_name}`],deletePackageVersionForAuthenticatedUser:[`DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}`],deletePackageVersionForOrg:[`DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`],deletePackageVersionForUser:[`DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`],getAllPackageVersionsForAPackageOwnedByAnOrg:[`GET /orgs/{org}/packages/{package_type}/{package_name}/versions`,{},{renamed:[`packages`,`getAllPackageVersionsForPackageOwnedByOrg`]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:[`GET /user/packages/{package_type}/{package_name}/versions`,{},{renamed:[`packages`,`getAllPackageVersionsForPackageOwnedByAuthenticatedUser`]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:[`GET /user/packages/{package_type}/{package_name}/versions`],getAllPackageVersionsForPackageOwnedByOrg:[`GET /orgs/{org}/packages/{package_type}/{package_name}/versions`],getAllPackageVersionsForPackageOwnedByUser:[`GET /users/{username}/packages/{package_type}/{package_name}/versions`],getPackageForAuthenticatedUser:[`GET /user/packages/{package_type}/{package_name}`],getPackageForOrganization:[`GET /orgs/{org}/packages/{package_type}/{package_name}`],getPackageForUser:[`GET /users/{username}/packages/{package_type}/{package_name}`],getPackageVersionForAuthenticatedUser:[`GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}`],getPackageVersionForOrganization:[`GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`],getPackageVersionForUser:[`GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`],listDockerMigrationConflictingPackagesForAuthenticatedUser:[`GET /user/docker/conflicts`],listDockerMigrationConflictingPackagesForOrganization:[`GET /orgs/{org}/docker/conflicts`],listDockerMigrationConflictingPackagesForUser:[`GET /users/{username}/docker/conflicts`],listPackagesForAuthenticatedUser:[`GET /user/packages`],listPackagesForOrganization:[`GET /orgs/{org}/packages`],listPackagesForUser:[`GET /users/{username}/packages`],restorePackageForAuthenticatedUser:[`POST /user/packages/{package_type}/{package_name}/restore{?token}`],restorePackageForOrg:[`POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}`],restorePackageForUser:[`POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}`],restorePackageVersionForAuthenticatedUser:[`POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`],restorePackageVersionForOrg:[`POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`],restorePackageVersionForUser:[`POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`]},privateRegistries:{createOrgPrivateRegistry:[`POST /orgs/{org}/private-registries`],deleteOrgPrivateRegistry:[`DELETE /orgs/{org}/private-registries/{secret_name}`],getOrgPrivateRegistry:[`GET /orgs/{org}/private-registries/{secret_name}`],getOrgPublicKey:[`GET /orgs/{org}/private-registries/public-key`],listOrgPrivateRegistries:[`GET /orgs/{org}/private-registries`],updateOrgPrivateRegistry:[`PATCH /orgs/{org}/private-registries/{secret_name}`]},projects:{addItemForOrg:[`POST /orgs/{org}/projectsV2/{project_number}/items`],addItemForUser:[`POST /users/{username}/projectsV2/{project_number}/items`],deleteItemForOrg:[`DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}`],deleteItemForUser:[`DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}`],getFieldForOrg:[`GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}`],getFieldForUser:[`GET /users/{username}/projectsV2/{project_number}/fields/{field_id}`],getForOrg:[`GET /orgs/{org}/projectsV2/{project_number}`],getForUser:[`GET /users/{username}/projectsV2/{project_number}`],getOrgItem:[`GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}`],getUserItem:[`GET /users/{username}/projectsV2/{project_number}/items/{item_id}`],listFieldsForOrg:[`GET /orgs/{org}/projectsV2/{project_number}/fields`],listFieldsForUser:[`GET /users/{username}/projectsV2/{project_number}/fields`],listForOrg:[`GET /orgs/{org}/projectsV2`],listForUser:[`GET /users/{username}/projectsV2`],listItemsForOrg:[`GET /orgs/{org}/projectsV2/{project_number}/items`],listItemsForUser:[`GET /users/{username}/projectsV2/{project_number}/items`],updateItemForOrg:[`PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}`],updateItemForUser:[`PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}`]},pulls:{checkIfMerged:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/merge`],create:[`POST /repos/{owner}/{repo}/pulls`],createReplyForReviewComment:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies`],createReview:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews`],createReviewComment:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/comments`],deletePendingReview:[`DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`],deleteReviewComment:[`DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}`],dismissReview:[`PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals`],get:[`GET /repos/{owner}/{repo}/pulls/{pull_number}`],getReview:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`],getReviewComment:[`GET /repos/{owner}/{repo}/pulls/comments/{comment_id}`],list:[`GET /repos/{owner}/{repo}/pulls`],listCommentsForReview:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments`],listCommits:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/commits`],listFiles:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/files`],listRequestedReviewers:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`],listReviewComments:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/comments`],listReviewCommentsForRepo:[`GET /repos/{owner}/{repo}/pulls/comments`],listReviews:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews`],merge:[`PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge`],removeRequestedReviewers:[`DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`],requestReviewers:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`],submitReview:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events`],update:[`PATCH /repos/{owner}/{repo}/pulls/{pull_number}`],updateBranch:[`PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch`],updateReview:[`PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`],updateReviewComment:[`PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}`]},rateLimit:{get:[`GET /rate_limit`]},reactions:{createForCommitComment:[`POST /repos/{owner}/{repo}/comments/{comment_id}/reactions`],createForIssue:[`POST /repos/{owner}/{repo}/issues/{issue_number}/reactions`],createForIssueComment:[`POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`],createForPullRequestReviewComment:[`POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`],createForRelease:[`POST /repos/{owner}/{repo}/releases/{release_id}/reactions`],createForTeamDiscussionCommentInOrg:[`POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`],createForTeamDiscussionInOrg:[`POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`],deleteForCommitComment:[`DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}`],deleteForIssue:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}`],deleteForIssueComment:[`DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}`],deleteForPullRequestComment:[`DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}`],deleteForRelease:[`DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}`],deleteForTeamDiscussion:[`DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}`],deleteForTeamDiscussionComment:[`DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}`],listForCommitComment:[`GET /repos/{owner}/{repo}/comments/{comment_id}/reactions`],listForIssue:[`GET /repos/{owner}/{repo}/issues/{issue_number}/reactions`],listForIssueComment:[`GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`],listForPullRequestReviewComment:[`GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`],listForRelease:[`GET /repos/{owner}/{repo}/releases/{release_id}/reactions`],listForTeamDiscussionCommentInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`],listForTeamDiscussionInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`]},repos:{acceptInvitation:[`PATCH /user/repository_invitations/{invitation_id}`,{},{renamed:[`repos`,`acceptInvitationForAuthenticatedUser`]}],acceptInvitationForAuthenticatedUser:[`PATCH /user/repository_invitations/{invitation_id}`],addAppAccessRestrictions:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`,{},{mapToData:`apps`}],addCollaborator:[`PUT /repos/{owner}/{repo}/collaborators/{username}`],addStatusCheckContexts:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`,{},{mapToData:`contexts`}],addTeamAccessRestrictions:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`,{},{mapToData:`teams`}],addUserAccessRestrictions:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`,{},{mapToData:`users`}],cancelPagesDeployment:[`POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel`],checkAutomatedSecurityFixes:[`GET /repos/{owner}/{repo}/automated-security-fixes`],checkCollaborator:[`GET /repos/{owner}/{repo}/collaborators/{username}`],checkImmutableReleases:[`GET /repos/{owner}/{repo}/immutable-releases`],checkPrivateVulnerabilityReporting:[`GET /repos/{owner}/{repo}/private-vulnerability-reporting`],checkVulnerabilityAlerts:[`GET /repos/{owner}/{repo}/vulnerability-alerts`],codeownersErrors:[`GET /repos/{owner}/{repo}/codeowners/errors`],compareCommits:[`GET /repos/{owner}/{repo}/compare/{base}...{head}`],compareCommitsWithBasehead:[`GET /repos/{owner}/{repo}/compare/{basehead}`],createAttestation:[`POST /repos/{owner}/{repo}/attestations`],createAutolink:[`POST /repos/{owner}/{repo}/autolinks`],createCommitComment:[`POST /repos/{owner}/{repo}/commits/{commit_sha}/comments`],createCommitSignatureProtection:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`],createCommitStatus:[`POST /repos/{owner}/{repo}/statuses/{sha}`],createDeployKey:[`POST /repos/{owner}/{repo}/keys`],createDeployment:[`POST /repos/{owner}/{repo}/deployments`],createDeploymentBranchPolicy:[`POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`],createDeploymentProtectionRule:[`POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`],createDeploymentStatus:[`POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`],createDispatchEvent:[`POST /repos/{owner}/{repo}/dispatches`],createForAuthenticatedUser:[`POST /user/repos`],createFork:[`POST /repos/{owner}/{repo}/forks`],createInOrg:[`POST /orgs/{org}/repos`],createOrUpdateEnvironment:[`PUT /repos/{owner}/{repo}/environments/{environment_name}`],createOrUpdateFileContents:[`PUT /repos/{owner}/{repo}/contents/{path}`],createOrgRuleset:[`POST /orgs/{org}/rulesets`],createPagesDeployment:[`POST /repos/{owner}/{repo}/pages/deployments`],createPagesSite:[`POST /repos/{owner}/{repo}/pages`],createRelease:[`POST /repos/{owner}/{repo}/releases`],createRepoRuleset:[`POST /repos/{owner}/{repo}/rulesets`],createUsingTemplate:[`POST /repos/{template_owner}/{template_repo}/generate`],createWebhook:[`POST /repos/{owner}/{repo}/hooks`],customPropertiesForReposCreateOrUpdateRepositoryValues:[`PATCH /repos/{owner}/{repo}/properties/values`],customPropertiesForReposGetRepositoryValues:[`GET /repos/{owner}/{repo}/properties/values`],declineInvitation:[`DELETE /user/repository_invitations/{invitation_id}`,{},{renamed:[`repos`,`declineInvitationForAuthenticatedUser`]}],declineInvitationForAuthenticatedUser:[`DELETE /user/repository_invitations/{invitation_id}`],delete:[`DELETE /repos/{owner}/{repo}`],deleteAccessRestrictions:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`],deleteAdminBranchProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`],deleteAnEnvironment:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}`],deleteAutolink:[`DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}`],deleteBranchProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection`],deleteCommitComment:[`DELETE /repos/{owner}/{repo}/comments/{comment_id}`],deleteCommitSignatureProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`],deleteDeployKey:[`DELETE /repos/{owner}/{repo}/keys/{key_id}`],deleteDeployment:[`DELETE /repos/{owner}/{repo}/deployments/{deployment_id}`],deleteDeploymentBranchPolicy:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`],deleteFile:[`DELETE /repos/{owner}/{repo}/contents/{path}`],deleteInvitation:[`DELETE /repos/{owner}/{repo}/invitations/{invitation_id}`],deleteOrgRuleset:[`DELETE /orgs/{org}/rulesets/{ruleset_id}`],deletePagesSite:[`DELETE /repos/{owner}/{repo}/pages`],deletePullRequestReviewProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`],deleteRelease:[`DELETE /repos/{owner}/{repo}/releases/{release_id}`],deleteReleaseAsset:[`DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}`],deleteRepoRuleset:[`DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}`],deleteWebhook:[`DELETE /repos/{owner}/{repo}/hooks/{hook_id}`],disableAutomatedSecurityFixes:[`DELETE /repos/{owner}/{repo}/automated-security-fixes`],disableDeploymentProtectionRule:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`],disableImmutableReleases:[`DELETE /repos/{owner}/{repo}/immutable-releases`],disablePrivateVulnerabilityReporting:[`DELETE /repos/{owner}/{repo}/private-vulnerability-reporting`],disableVulnerabilityAlerts:[`DELETE /repos/{owner}/{repo}/vulnerability-alerts`],downloadArchive:[`GET /repos/{owner}/{repo}/zipball/{ref}`,{},{renamed:[`repos`,`downloadZipballArchive`]}],downloadTarballArchive:[`GET /repos/{owner}/{repo}/tarball/{ref}`],downloadZipballArchive:[`GET /repos/{owner}/{repo}/zipball/{ref}`],enableAutomatedSecurityFixes:[`PUT /repos/{owner}/{repo}/automated-security-fixes`],enableImmutableReleases:[`PUT /repos/{owner}/{repo}/immutable-releases`],enablePrivateVulnerabilityReporting:[`PUT /repos/{owner}/{repo}/private-vulnerability-reporting`],enableVulnerabilityAlerts:[`PUT /repos/{owner}/{repo}/vulnerability-alerts`],generateReleaseNotes:[`POST /repos/{owner}/{repo}/releases/generate-notes`],get:[`GET /repos/{owner}/{repo}`],getAccessRestrictions:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`],getAdminBranchProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`],getAllDeploymentProtectionRules:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`],getAllEnvironments:[`GET /repos/{owner}/{repo}/environments`],getAllStatusCheckContexts:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`],getAllTopics:[`GET /repos/{owner}/{repo}/topics`],getAppsWithAccessToProtectedBranch:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`],getAutolink:[`GET /repos/{owner}/{repo}/autolinks/{autolink_id}`],getBranch:[`GET /repos/{owner}/{repo}/branches/{branch}`],getBranchProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection`],getBranchRules:[`GET /repos/{owner}/{repo}/rules/branches/{branch}`],getClones:[`GET /repos/{owner}/{repo}/traffic/clones`],getCodeFrequencyStats:[`GET /repos/{owner}/{repo}/stats/code_frequency`],getCollaboratorPermissionLevel:[`GET /repos/{owner}/{repo}/collaborators/{username}/permission`],getCombinedStatusForRef:[`GET /repos/{owner}/{repo}/commits/{ref}/status`],getCommit:[`GET /repos/{owner}/{repo}/commits/{ref}`],getCommitActivityStats:[`GET /repos/{owner}/{repo}/stats/commit_activity`],getCommitComment:[`GET /repos/{owner}/{repo}/comments/{comment_id}`],getCommitSignatureProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`],getCommunityProfileMetrics:[`GET /repos/{owner}/{repo}/community/profile`],getContent:[`GET /repos/{owner}/{repo}/contents/{path}`],getContributorsStats:[`GET /repos/{owner}/{repo}/stats/contributors`],getCustomDeploymentProtectionRule:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`],getDeployKey:[`GET /repos/{owner}/{repo}/keys/{key_id}`],getDeployment:[`GET /repos/{owner}/{repo}/deployments/{deployment_id}`],getDeploymentBranchPolicy:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`],getDeploymentStatus:[`GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}`],getEnvironment:[`GET /repos/{owner}/{repo}/environments/{environment_name}`],getLatestPagesBuild:[`GET /repos/{owner}/{repo}/pages/builds/latest`],getLatestRelease:[`GET /repos/{owner}/{repo}/releases/latest`],getOrgRuleSuite:[`GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}`],getOrgRuleSuites:[`GET /orgs/{org}/rulesets/rule-suites`],getOrgRuleset:[`GET /orgs/{org}/rulesets/{ruleset_id}`],getOrgRulesets:[`GET /orgs/{org}/rulesets`],getPages:[`GET /repos/{owner}/{repo}/pages`],getPagesBuild:[`GET /repos/{owner}/{repo}/pages/builds/{build_id}`],getPagesDeployment:[`GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}`],getPagesHealthCheck:[`GET /repos/{owner}/{repo}/pages/health`],getParticipationStats:[`GET /repos/{owner}/{repo}/stats/participation`],getPullRequestReviewProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`],getPunchCardStats:[`GET /repos/{owner}/{repo}/stats/punch_card`],getReadme:[`GET /repos/{owner}/{repo}/readme`],getReadmeInDirectory:[`GET /repos/{owner}/{repo}/readme/{dir}`],getRelease:[`GET /repos/{owner}/{repo}/releases/{release_id}`],getReleaseAsset:[`GET /repos/{owner}/{repo}/releases/assets/{asset_id}`],getReleaseByTag:[`GET /repos/{owner}/{repo}/releases/tags/{tag}`],getRepoRuleSuite:[`GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}`],getRepoRuleSuites:[`GET /repos/{owner}/{repo}/rulesets/rule-suites`],getRepoRuleset:[`GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`],getRepoRulesetHistory:[`GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history`],getRepoRulesetVersion:[`GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}`],getRepoRulesets:[`GET /repos/{owner}/{repo}/rulesets`],getStatusChecksProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`],getTeamsWithAccessToProtectedBranch:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`],getTopPaths:[`GET /repos/{owner}/{repo}/traffic/popular/paths`],getTopReferrers:[`GET /repos/{owner}/{repo}/traffic/popular/referrers`],getUsersWithAccessToProtectedBranch:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`],getViews:[`GET /repos/{owner}/{repo}/traffic/views`],getWebhook:[`GET /repos/{owner}/{repo}/hooks/{hook_id}`],getWebhookConfigForRepo:[`GET /repos/{owner}/{repo}/hooks/{hook_id}/config`],getWebhookDelivery:[`GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}`],listActivities:[`GET /repos/{owner}/{repo}/activity`],listAttestations:[`GET /repos/{owner}/{repo}/attestations/{subject_digest}`],listAutolinks:[`GET /repos/{owner}/{repo}/autolinks`],listBranches:[`GET /repos/{owner}/{repo}/branches`],listBranchesForHeadCommit:[`GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head`],listCollaborators:[`GET /repos/{owner}/{repo}/collaborators`],listCommentsForCommit:[`GET /repos/{owner}/{repo}/commits/{commit_sha}/comments`],listCommitCommentsForRepo:[`GET /repos/{owner}/{repo}/comments`],listCommitStatusesForRef:[`GET /repos/{owner}/{repo}/commits/{ref}/statuses`],listCommits:[`GET /repos/{owner}/{repo}/commits`],listContributors:[`GET /repos/{owner}/{repo}/contributors`],listCustomDeploymentRuleIntegrations:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps`],listDeployKeys:[`GET /repos/{owner}/{repo}/keys`],listDeploymentBranchPolicies:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`],listDeploymentStatuses:[`GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`],listDeployments:[`GET /repos/{owner}/{repo}/deployments`],listForAuthenticatedUser:[`GET /user/repos`],listForOrg:[`GET /orgs/{org}/repos`],listForUser:[`GET /users/{username}/repos`],listForks:[`GET /repos/{owner}/{repo}/forks`],listInvitations:[`GET /repos/{owner}/{repo}/invitations`],listInvitationsForAuthenticatedUser:[`GET /user/repository_invitations`],listLanguages:[`GET /repos/{owner}/{repo}/languages`],listPagesBuilds:[`GET /repos/{owner}/{repo}/pages/builds`],listPublic:[`GET /repositories`],listPullRequestsAssociatedWithCommit:[`GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls`],listReleaseAssets:[`GET /repos/{owner}/{repo}/releases/{release_id}/assets`],listReleases:[`GET /repos/{owner}/{repo}/releases`],listTags:[`GET /repos/{owner}/{repo}/tags`],listTeams:[`GET /repos/{owner}/{repo}/teams`],listWebhookDeliveries:[`GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries`],listWebhooks:[`GET /repos/{owner}/{repo}/hooks`],merge:[`POST /repos/{owner}/{repo}/merges`],mergeUpstream:[`POST /repos/{owner}/{repo}/merge-upstream`],pingWebhook:[`POST /repos/{owner}/{repo}/hooks/{hook_id}/pings`],redeliverWebhookDelivery:[`POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`],removeAppAccessRestrictions:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`,{},{mapToData:`apps`}],removeCollaborator:[`DELETE /repos/{owner}/{repo}/collaborators/{username}`],removeStatusCheckContexts:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`,{},{mapToData:`contexts`}],removeStatusCheckProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`],removeTeamAccessRestrictions:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`,{},{mapToData:`teams`}],removeUserAccessRestrictions:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`,{},{mapToData:`users`}],renameBranch:[`POST /repos/{owner}/{repo}/branches/{branch}/rename`],replaceAllTopics:[`PUT /repos/{owner}/{repo}/topics`],requestPagesBuild:[`POST /repos/{owner}/{repo}/pages/builds`],setAdminBranchProtection:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`],setAppAccessRestrictions:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`,{},{mapToData:`apps`}],setStatusCheckContexts:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`,{},{mapToData:`contexts`}],setTeamAccessRestrictions:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`,{},{mapToData:`teams`}],setUserAccessRestrictions:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`,{},{mapToData:`users`}],testPushWebhook:[`POST /repos/{owner}/{repo}/hooks/{hook_id}/tests`],transfer:[`POST /repos/{owner}/{repo}/transfer`],update:[`PATCH /repos/{owner}/{repo}`],updateBranchProtection:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection`],updateCommitComment:[`PATCH /repos/{owner}/{repo}/comments/{comment_id}`],updateDeploymentBranchPolicy:[`PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`],updateInformationAboutPagesSite:[`PUT /repos/{owner}/{repo}/pages`],updateInvitation:[`PATCH /repos/{owner}/{repo}/invitations/{invitation_id}`],updateOrgRuleset:[`PUT /orgs/{org}/rulesets/{ruleset_id}`],updatePullRequestReviewProtection:[`PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`],updateRelease:[`PATCH /repos/{owner}/{repo}/releases/{release_id}`],updateReleaseAsset:[`PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}`],updateRepoRuleset:[`PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}`],updateStatusCheckPotection:[`PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`,{},{renamed:[`repos`,`updateStatusCheckProtection`]}],updateStatusCheckProtection:[`PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`],updateWebhook:[`PATCH /repos/{owner}/{repo}/hooks/{hook_id}`],updateWebhookConfigForRepo:[`PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config`],uploadReleaseAsset:[`POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}`,{baseUrl:`https://uploads.github.com`}]},search:{code:[`GET /search/code`],commits:[`GET /search/commits`],issuesAndPullRequests:[`GET /search/issues`],labels:[`GET /search/labels`],repos:[`GET /search/repositories`],topics:[`GET /search/topics`],users:[`GET /search/users`]},secretScanning:{createPushProtectionBypass:[`POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses`],getAlert:[`GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`],getScanHistory:[`GET /repos/{owner}/{repo}/secret-scanning/scan-history`],listAlertsForOrg:[`GET /orgs/{org}/secret-scanning/alerts`],listAlertsForRepo:[`GET /repos/{owner}/{repo}/secret-scanning/alerts`],listLocationsForAlert:[`GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations`],listOrgPatternConfigs:[`GET /orgs/{org}/secret-scanning/pattern-configurations`],updateAlert:[`PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`],updateOrgPatternConfigs:[`PATCH /orgs/{org}/secret-scanning/pattern-configurations`]},securityAdvisories:{createFork:[`POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks`],createPrivateVulnerabilityReport:[`POST /repos/{owner}/{repo}/security-advisories/reports`],createRepositoryAdvisory:[`POST /repos/{owner}/{repo}/security-advisories`],createRepositoryAdvisoryCveRequest:[`POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve`],getGlobalAdvisory:[`GET /advisories/{ghsa_id}`],getRepositoryAdvisory:[`GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}`],listGlobalAdvisories:[`GET /advisories`],listOrgRepositoryAdvisories:[`GET /orgs/{org}/security-advisories`],listRepositoryAdvisories:[`GET /repos/{owner}/{repo}/security-advisories`],updateRepositoryAdvisory:[`PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}`]},teams:{addOrUpdateMembershipForUserInOrg:[`PUT /orgs/{org}/teams/{team_slug}/memberships/{username}`],addOrUpdateRepoPermissionsInOrg:[`PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`],checkPermissionsForRepoInOrg:[`GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`],create:[`POST /orgs/{org}/teams`],createDiscussionCommentInOrg:[`POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`],createDiscussionInOrg:[`POST /orgs/{org}/teams/{team_slug}/discussions`],deleteDiscussionCommentInOrg:[`DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`],deleteDiscussionInOrg:[`DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`],deleteInOrg:[`DELETE /orgs/{org}/teams/{team_slug}`],getByName:[`GET /orgs/{org}/teams/{team_slug}`],getDiscussionCommentInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`],getDiscussionInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`],getMembershipForUserInOrg:[`GET /orgs/{org}/teams/{team_slug}/memberships/{username}`],list:[`GET /orgs/{org}/teams`],listChildInOrg:[`GET /orgs/{org}/teams/{team_slug}/teams`],listDiscussionCommentsInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`],listDiscussionsInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions`],listForAuthenticatedUser:[`GET /user/teams`],listMembersInOrg:[`GET /orgs/{org}/teams/{team_slug}/members`],listPendingInvitationsInOrg:[`GET /orgs/{org}/teams/{team_slug}/invitations`],listReposInOrg:[`GET /orgs/{org}/teams/{team_slug}/repos`],removeMembershipForUserInOrg:[`DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}`],removeRepoInOrg:[`DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`],updateDiscussionCommentInOrg:[`PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`],updateDiscussionInOrg:[`PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`],updateInOrg:[`PATCH /orgs/{org}/teams/{team_slug}`]},users:{addEmailForAuthenticated:[`POST /user/emails`,{},{renamed:[`users`,`addEmailForAuthenticatedUser`]}],addEmailForAuthenticatedUser:[`POST /user/emails`],addSocialAccountForAuthenticatedUser:[`POST /user/social_accounts`],block:[`PUT /user/blocks/{username}`],checkBlocked:[`GET /user/blocks/{username}`],checkFollowingForUser:[`GET /users/{username}/following/{target_user}`],checkPersonIsFollowedByAuthenticated:[`GET /user/following/{username}`],createGpgKeyForAuthenticated:[`POST /user/gpg_keys`,{},{renamed:[`users`,`createGpgKeyForAuthenticatedUser`]}],createGpgKeyForAuthenticatedUser:[`POST /user/gpg_keys`],createPublicSshKeyForAuthenticated:[`POST /user/keys`,{},{renamed:[`users`,`createPublicSshKeyForAuthenticatedUser`]}],createPublicSshKeyForAuthenticatedUser:[`POST /user/keys`],createSshSigningKeyForAuthenticatedUser:[`POST /user/ssh_signing_keys`],deleteAttestationsBulk:[`POST /users/{username}/attestations/delete-request`],deleteAttestationsById:[`DELETE /users/{username}/attestations/{attestation_id}`],deleteAttestationsBySubjectDigest:[`DELETE /users/{username}/attestations/digest/{subject_digest}`],deleteEmailForAuthenticated:[`DELETE /user/emails`,{},{renamed:[`users`,`deleteEmailForAuthenticatedUser`]}],deleteEmailForAuthenticatedUser:[`DELETE /user/emails`],deleteGpgKeyForAuthenticated:[`DELETE /user/gpg_keys/{gpg_key_id}`,{},{renamed:[`users`,`deleteGpgKeyForAuthenticatedUser`]}],deleteGpgKeyForAuthenticatedUser:[`DELETE /user/gpg_keys/{gpg_key_id}`],deletePublicSshKeyForAuthenticated:[`DELETE /user/keys/{key_id}`,{},{renamed:[`users`,`deletePublicSshKeyForAuthenticatedUser`]}],deletePublicSshKeyForAuthenticatedUser:[`DELETE /user/keys/{key_id}`],deleteSocialAccountForAuthenticatedUser:[`DELETE /user/social_accounts`],deleteSshSigningKeyForAuthenticatedUser:[`DELETE /user/ssh_signing_keys/{ssh_signing_key_id}`],follow:[`PUT /user/following/{username}`],getAuthenticated:[`GET /user`],getById:[`GET /user/{account_id}`],getByUsername:[`GET /users/{username}`],getContextForUser:[`GET /users/{username}/hovercard`],getGpgKeyForAuthenticated:[`GET /user/gpg_keys/{gpg_key_id}`,{},{renamed:[`users`,`getGpgKeyForAuthenticatedUser`]}],getGpgKeyForAuthenticatedUser:[`GET /user/gpg_keys/{gpg_key_id}`],getPublicSshKeyForAuthenticated:[`GET /user/keys/{key_id}`,{},{renamed:[`users`,`getPublicSshKeyForAuthenticatedUser`]}],getPublicSshKeyForAuthenticatedUser:[`GET /user/keys/{key_id}`],getSshSigningKeyForAuthenticatedUser:[`GET /user/ssh_signing_keys/{ssh_signing_key_id}`],list:[`GET /users`],listAttestations:[`GET /users/{username}/attestations/{subject_digest}`],listAttestationsBulk:[`POST /users/{username}/attestations/bulk-list{?per_page,before,after}`],listBlockedByAuthenticated:[`GET /user/blocks`,{},{renamed:[`users`,`listBlockedByAuthenticatedUser`]}],listBlockedByAuthenticatedUser:[`GET /user/blocks`],listEmailsForAuthenticated:[`GET /user/emails`,{},{renamed:[`users`,`listEmailsForAuthenticatedUser`]}],listEmailsForAuthenticatedUser:[`GET /user/emails`],listFollowedByAuthenticated:[`GET /user/following`,{},{renamed:[`users`,`listFollowedByAuthenticatedUser`]}],listFollowedByAuthenticatedUser:[`GET /user/following`],listFollowersForAuthenticatedUser:[`GET /user/followers`],listFollowersForUser:[`GET /users/{username}/followers`],listFollowingForUser:[`GET /users/{username}/following`],listGpgKeysForAuthenticated:[`GET /user/gpg_keys`,{},{renamed:[`users`,`listGpgKeysForAuthenticatedUser`]}],listGpgKeysForAuthenticatedUser:[`GET /user/gpg_keys`],listGpgKeysForUser:[`GET /users/{username}/gpg_keys`],listPublicEmailsForAuthenticated:[`GET /user/public_emails`,{},{renamed:[`users`,`listPublicEmailsForAuthenticatedUser`]}],listPublicEmailsForAuthenticatedUser:[`GET /user/public_emails`],listPublicKeysForUser:[`GET /users/{username}/keys`],listPublicSshKeysForAuthenticated:[`GET /user/keys`,{},{renamed:[`users`,`listPublicSshKeysForAuthenticatedUser`]}],listPublicSshKeysForAuthenticatedUser:[`GET /user/keys`],listSocialAccountsForAuthenticatedUser:[`GET /user/social_accounts`],listSocialAccountsForUser:[`GET /users/{username}/social_accounts`],listSshSigningKeysForAuthenticatedUser:[`GET /user/ssh_signing_keys`],listSshSigningKeysForUser:[`GET /users/{username}/ssh_signing_keys`],setPrimaryEmailVisibilityForAuthenticated:[`PATCH /user/email/visibility`,{},{renamed:[`users`,`setPrimaryEmailVisibilityForAuthenticatedUser`]}],setPrimaryEmailVisibilityForAuthenticatedUser:[`PATCH /user/email/visibility`],unblock:[`DELETE /user/blocks/{username}`],unfollow:[`DELETE /user/following/{username}`],updateAuthenticated:[`PATCH /user`]}},Hu=new Map;for(let[e,t]of Object.entries(Vu))for(let[n,r]of Object.entries(t)){let[t,i,a]=r,[o,s]=t.split(/ /),c=Object.assign({method:o,url:s},i);Hu.has(e)||Hu.set(e,new Map),Hu.get(e).set(n,{scope:e,methodName:n,endpointDefaults:c,decorations:a})}var Uu={has({scope:e},t){return Hu.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty(e,t,n){return Object.defineProperty(e.cache,t,n),!0},deleteProperty(e,t){return delete e.cache[t],!0},ownKeys({scope:e}){return[...Hu.get(e).keys()]},set(e,t,n){return e.cache[t]=n},get({octokit:e,scope:t,cache:n},r){if(n[r])return n[r];let i=Hu.get(t).get(r);if(!i)return;let{endpointDefaults:a,decorations:o}=i;return o?n[r]=Gu(e,t,r,a,o):n[r]=e.request.defaults(a),n[r]}};function Wu(e){let t={};for(let n of Hu.keys())t[n]=new Proxy({octokit:e,scope:n,cache:{}},Uu);return t}function Gu(e,t,n,r,i){let a=e.request.defaults(r);function o(...r){let o=a.endpoint.merge(...r);if(i.mapToData)return o=Object.assign({},o,{data:o[i.mapToData],[i.mapToData]:void 0}),a(o);if(i.renamed){let[r,a]=i.renamed;e.log.warn(`octokit.${t}.${n}() has been renamed to octokit.${r}.${a}()`)}if(i.deprecated&&e.log.warn(i.deprecated),i.renamedParameters){let o=a.endpoint.merge(...r);for(let[r,a]of Object.entries(i.renamedParameters))r in o&&(e.log.warn(`"${r}" parameter is deprecated for "octokit.${t}.${n}()". Use "${a}" instead`),a in o||(o[a]=o[r]),delete o[r]);return a(o)}return a(...r)}return Object.assign(o,a)}function Ku(e){return{rest:Wu(e)}}Ku.VERSION=Bu;function qu(e){let t=Wu(e);return{...t,rest:t}}qu.VERSION=Bu;var Ju=f(u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){"use strict";var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t<n;t++)if(r=e[t],r.length>0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout<e}computeCapacity(){var e,t;return{maxConcurrent:e,reservoir:t}=this.storeOptions,e!=null&&t!=null?Math.min(e-this._running,t):e==null?t??null:e-this._running}conditionsCheck(e){var t=this.computeCapacity();return t==null||e<=t}async __incrementReservoir__(e){var t;return await this.yieldLoop(),t=this.storeOptions.reservoir+=e,this.instance._drainAll(this.computeCapacity()),t}async __currentReservoir__(){return await this.yieldLoop(),this.storeOptions.reservoir}isBlocked(e){return this._unblockTime>=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n<this.status.length)return this.counts[t]--,this.counts[n]++,this._jobs[e]++;if(t!=null)return this.counts[t]--,delete this._jobs[e]}start(e){var t=0;return this._jobs[e]=t,this.counts[t]++}remove(e){var t=this._jobs[e];return t!=null&&(this.counts[t]--,delete this._jobs[e]),t!=null}jobStatus(e){return this.status[this._jobs[e]]??null}statusJobs(e){var t,n,r,i,a;if(e!=null){if(n=this.status.indexOf(e),n<0)throw new y(`status must be one of ${this.status.join(`, `)}`);for(t in r=this._jobs,i=[],r)a=r[t],a===n&&i.push(t);return i}else return Object.keys(this._jobs)}statusCounts(){return this.counts.reduce(((e,t,n)=>(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,ee=Object.freeze({version:C,default:{version:C}}),te=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),ne=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),re=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),ie,ae,w,oe,T,E=n;ie=i,oe=te,w=ne,T=re,ae=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,E.load(this.limiterOptions,this.defaults,this),this.Events=new ie(this),this.instances={},this.Bottleneck=F,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new oe(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new w(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...T.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r<o;r++)i=n[r],a.push(i.slice(c,-t));return a}_startAutoCleanup(){var e;return clearInterval(this.interval),typeof(e=this.interval=setInterval(async()=>{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(E.overwrite(e,this.defaults,this),E.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var D=ae,se,O,ce=n;O=i,se=(function(){class e{constructor(e={}){this.options=e,ce.load(this.options,this.defaults,this),this.Events=new O(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var le=se,ue=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),de=t(ee),fe,pe,k,A,me,he,j,M,ge,_e,N,P=[].splice;he=10,pe=5,N=n,j=s,A=m,me=v,M=ue,k=i,ge=b,_e=S,fe=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),N.load(t,this.instanceDefaults,this),this._queues=new j(he),this._scheduled={},this._states=new ge([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new k(this),this._submitLock=new _e(`submit`,this.Promise),this._registerLock=new _e(`register`,this.Promise),i=N.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=N.load(t,this.redisStoreDefaults,{}),new M(this,i,r);if(this.datastore===`local`)return r=N.load(t,this.localStoreDefaults,{}),new me(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.prototype.BottleneckError(`Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.`)}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=N.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:he-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=P.call(e,-1),i=N.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=P.call(e,-1),i=N.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new A(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new A(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(N.overwrite(e,this.storeDefaults)),N.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=k,e.version=e.prototype.version=de.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=D,e.RedisConnection=e.prototype.RedisConnection=te,e.IORedisConnection=e.prototype.IORedisConnection=ne,e.Batcher=e.prototype.Batcher=le,e.prototype.jobDefaults={priority:pe,weight:1,expiration:null,id:`<no-id>`},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:`<no-id>`,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var F=fe;return F}))}))(),1),Yu=`0.0.0-development`;function Xu(e){return e.request!==void 0}async function Zu(e,t,n,r){if(!Xu(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function Qu(e,t,n,r){let i=new Ju.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule($u.bind(null,e,t,n),r)}async function $u(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?Zu(e,t,new Ll(i.data.errors[0].message,500,{request:r,response:i}),r):i}function ed(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,Zu.bind(null,n,r)),e.hook.wrap(`request`,Qu.bind(null,n,r))),r}ed.VERSION=Yu;var td=`0.0.0-development`,nd=()=>Promise.resolve();function rd(e,t,n){return e.retryLimiter.schedule(id,e,t,n)}async function id(e,t,n){let{pathname:r}=new URL(n.url,`http://github.test`),i=ad(n.method,r),a=!i&&n.method!==`GET`&&n.method!==`HEAD`,o=n.method===`GET`&&r.startsWith(`/search/`),s=r.startsWith(`/graphql`),c=~~t.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(c.expiration=1e3*60),(a||s)&&await e.write.key(e.id).schedule(c,nd),a&&e.triggersNotification(r)&&await e.notifications.key(e.id).schedule(c,nd),o&&await e.search.key(e.id).schedule(c,nd);let l=(i?e.auth:e.global).key(e.id).schedule(c,t,n);if(s){let e=await l;if(e.data.errors!=null&&e.data.errors.some(e=>e.type===`RATE_LIMITED`))throw Object.assign(Error(`GraphQL Rate Limit Exceeded`),{response:e,data:e.data})}return l}function ad(e,t){return e===`PATCH`&&/^\/applications\/[^/]+\/token\/scoped$/.test(t)||e===`POST`&&(/^\/applications\/[^/]+\/token$/.test(t)||/^\/app\/installations\/[^/]+\/access_tokens$/.test(t)||t===`/login/oauth/access_token`)}var od=[`/orgs/{org}/invitations`,`/orgs/{org}/invitations/{invitation_id}`,`/orgs/{org}/teams/{team_slug}/discussions`,`/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`,`/repos/{owner}/{repo}/collaborators/{username}`,`/repos/{owner}/{repo}/commits/{commit_sha}/comments`,`/repos/{owner}/{repo}/issues`,`/repos/{owner}/{repo}/issues/{issue_number}/comments`,`/repos/{owner}/{repo}/issues/{issue_number}/sub_issue`,`/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority`,`/repos/{owner}/{repo}/pulls`,`/repos/{owner}/{repo}/pulls/{pull_number}/comments`,`/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies`,`/repos/{owner}/{repo}/pulls/{pull_number}/merge`,`/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`,`/repos/{owner}/{repo}/pulls/{pull_number}/reviews`,`/repos/{owner}/{repo}/releases`,`/teams/{team_id}/discussions`,`/teams/{team_id}/discussions/{discussion_number}/comments`];function sd(e){let t=`^(?:${e.map(e=>e.split(`/`).map(e=>e.startsWith(`{`)?`(?:.+?)`:e).join(`/`)).map(e=>`(?:${e})`).join(`|`)})[^/]*$`;return new RegExp(t,`i`)}var cd=sd(od),ld=cd.test.bind(cd),ud={},dd=function(e,t){ud.global=new e.Group({id:`octokit-global`,maxConcurrent:10,...t}),ud.auth=new e.Group({id:`octokit-auth`,maxConcurrent:1,...t}),ud.search=new e.Group({id:`octokit-search`,maxConcurrent:1,minTime:2e3,...t}),ud.write=new e.Group({id:`octokit-write`,maxConcurrent:1,minTime:1e3,...t}),ud.notifications=new e.Group({id:`octokit-notifications`,maxConcurrent:1,minTime:3e3,...t})};function fd(e,t){let{enabled:n=!0,Bottleneck:r=Ju.default,id:i=`no-id`,timeout:a=1e3*60*2,connection:o}=t.throttle||{};if(!n)return{};let s={timeout:a};o!==void 0&&(s.connection=o),ud.global??dd(r,s);let c=Object.assign({clustering:o!=null,triggersNotification:ld,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new r,id:i,...ud},t.throttle);if(typeof c.onSecondaryRateLimit!=`function`||typeof c.onRateLimit!=`function`)throw Error(`octokit/plugin-throttling error:
|
|
110
|
-
You must pass the onSecondaryRateLimit and onRateLimit error handlers.
|
|
111
|
-
See https://octokit.github.io/rest.js/#throttling
|
|
112
|
-
|
|
113
|
-
const octokit = new Octokit({
|
|
114
|
-
throttle: {
|
|
115
|
-
onSecondaryRateLimit: (retryAfter, options) => {/* ... */},
|
|
116
|
-
onRateLimit: (retryAfter, options) => {/* ... */}
|
|
117
|
-
}
|
|
118
|
-
})
|
|
119
|
-
`);let l={},u=new r.Events(l);return l.on(`secondary-limit`,c.onSecondaryRateLimit),l.on(`rate-limit`,c.onRateLimit),l.on(`error`,t=>e.log.warn(`Error in throttling-plugin limit handler`,t)),c.retryLimiter.on(`failed`,async function(t,n){let[r,i,a]=n.args,{pathname:o}=new URL(a.url,`http://github.test`);if(!(o.startsWith(`/graphql`)&&t.status!==401||t.status===403||t.status===429))return;let s=~~i.retryCount;i.retryCount=s,a.request.retryCount=s;let{wantRetry:c,retryAfter:l=0}=await(async function(){if(/\bsecondary rate\b/i.test(t.message)){let n=Number(t.response.headers[`retry-after`])||r.fallbackSecondaryRateRetryAfter;return{wantRetry:await u.trigger(`secondary-limit`,n,a,e,s),retryAfter:n}}if(t.response.headers!=null&&t.response.headers[`x-ratelimit-remaining`]===`0`||(t.response.data?.errors??[]).some(e=>e.type===`RATE_LIMITED`)){let n=new Date(~~t.response.headers[`x-ratelimit-reset`]*1e3).getTime(),r=Math.max(Math.ceil((n-Date.now())/1e3)+1,0);return{wantRetry:await u.trigger(`rate-limit`,r,a,e,s),retryAfter:r}}return{}})();if(c)return i.retryCount++,l*r.retryAfterBaseValue}),e.hook.wrap(`request`,rd.bind(null,c)),{}}fd.VERSION=td,fd.triggersNotification=ld;function pd(e){let t=e.clientType||`oauth-app`,n=e.baseUrl||`https://github.com`,r={clientType:t,allowSignup:e.allowSignup!==!1,clientId:e.clientId,login:e.login||null,redirectUrl:e.redirectUrl||null,state:e.state||Math.random().toString(36).substr(2),url:``};if(t===`oauth-app`){let t=`scopes`in e?e.scopes:[];r.scopes=typeof t==`string`?t.split(/[,\s]+/).filter(Boolean):t}return r.url=md(`${n}/login/oauth/authorize`,r),r}function md(e,t){let n={allowSignup:`allow_signup`,clientId:`client_id`,login:`login`,redirectUrl:`redirect_uri`,scopes:`scope`,state:`state`},r=e;return Object.keys(n).filter(e=>t[e]!==null).filter(e=>e===`scopes`?t.clientType===`github-app`?!1:!Array.isArray(t[e])||t[e].length>0:!0).map(e=>[n[e],`${t[e]}`]).forEach(([e,t],n)=>{r+=n===0?`?`:`&`,r+=`${e}=${encodeURIComponent(t)}`}),r}function hd(e){let t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?`https://github.com`:t.baseUrl.replace(`/api/v3`,``)}async function gd(e,t,n){let r={baseUrl:hd(e),headers:{accept:`application/json`},...n},i=await e(t,r);if(`error`in i.data){let n=new Ll(`${i.data.error_description} (${i.data.error}, ${i.data.error_uri})`,400,{request:e.endpoint.merge(t,r)});throw n.response=i,n}return i}function _d({request:e=Q,...t}){let n=hd(e);return pd({...t,baseUrl:n})}async function vd(e){let t=await gd(e.request||Q,`POST /login/oauth/access_token`,{client_id:e.clientId,client_secret:e.clientSecret,code:e.code,redirect_uri:e.redirectUrl}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.data.access_token,scopes:t.data.scope.split(/\s+/).filter(Boolean)};if(e.clientType===`github-app`){if(`refresh_token`in t.data){let e=new Date(t.headers.date).getTime();n.refreshToken=t.data.refresh_token,n.expiresAt=yd(e,t.data.expires_in),n.refreshTokenExpiresAt=yd(e,t.data.refresh_token_expires_in)}delete n.scopes}return{...t,authentication:n}}function yd(e,t){return new Date(e+t*1e3).toISOString()}async function bd(e){let t=e.request||Q,n={client_id:e.clientId};return`scopes`in e&&Array.isArray(e.scopes)&&(n.scope=e.scopes.join(` `)),gd(t,`POST /login/device/code`,n)}async function xd(e){let t=await gd(e.request||Q,`POST /login/oauth/access_token`,{client_id:e.clientId,device_code:e.code,grant_type:`urn:ietf:params:oauth:grant-type:device_code`}),n={clientType:e.clientType,clientId:e.clientId,token:t.data.access_token,scopes:t.data.scope.split(/\s+/).filter(Boolean)};if(`clientSecret`in e&&(n.clientSecret=e.clientSecret),e.clientType===`github-app`){if(`refresh_token`in t.data){let e=new Date(t.headers.date).getTime();n.refreshToken=t.data.refresh_token,n.expiresAt=Sd(e,t.data.expires_in),n.refreshTokenExpiresAt=Sd(e,t.data.refresh_token_expires_in)}delete n.scopes}return{...t,authentication:n}}function Sd(e,t){return new Date(e+t*1e3).toISOString()}async function Cd(e){let t=await(e.request||Q)(`POST /applications/{client_id}/token`,{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.token,scopes:t.data.scopes};return t.data.expires_at&&(n.expiresAt=t.data.expires_at),e.clientType===`github-app`&&delete n.scopes,{...t,authentication:n}}async function wd(e){let t=await gd(e.request||Q,`POST /login/oauth/access_token`,{client_id:e.clientId,client_secret:e.clientSecret,grant_type:`refresh_token`,refresh_token:e.refreshToken}),n=new Date(t.headers.date).getTime(),r={clientType:`github-app`,clientId:e.clientId,clientSecret:e.clientSecret,token:t.data.access_token,refreshToken:t.data.refresh_token,expiresAt:Td(n,t.data.expires_in),refreshTokenExpiresAt:Td(n,t.data.refresh_token_expires_in)};return{...t,authentication:r}}function Td(e,t){return new Date(e+t*1e3).toISOString()}async function Ed(e){let{request:t,clientType:n,clientId:r,clientSecret:i,token:a,...o}=e,s=await(e.request||Q)(`POST /applications/{client_id}/token/scoped`,{headers:{authorization:`basic ${btoa(`${r}:${i}`)}`},client_id:r,access_token:a,...o}),c=Object.assign({clientType:n,clientId:r,clientSecret:i,token:s.data.token},s.data.expires_at?{expiresAt:s.data.expires_at}:{});return{...s,authentication:c}}async function Dd(e){let t=await(e.request||Q)(`PATCH /applications/{client_id}/token`,{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.data.token,scopes:t.data.scopes};return t.data.expires_at&&(n.expiresAt=t.data.expires_at),e.clientType===`github-app`&&delete n.scopes,{...t,authentication:n}}async function Od(e){return(e.request||Q)(`DELETE /applications/{client_id}/token`,{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}async function kd(e){return(e.request||Q)(`DELETE /applications/{client_id}/grant`,{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}async function Ad(e,t){let n=jd(e,t.auth);if(n)return n;let{data:r}=await bd({clientType:e.clientType,clientId:e.clientId,request:t.request||e.request,scopes:t.auth.scopes||e.scopes});await e.onVerification(r);let i=await Nd(t.request||e.request,e.clientId,e.clientType,r);return e.authentication=i,i}function jd(e,t){if(t.refresh===!0||!e.authentication)return!1;if(e.clientType===`github-app`)return e.authentication;let n=e.authentication;return(`scopes`in t&&t.scopes||e.scopes).join(` `)===n.scopes.join(` `)?n:!1}async function Md(e){await new Promise(t=>setTimeout(t,e*1e3))}async function Nd(e,t,n,r){try{let i={clientId:t,request:e,code:r.device_code},{authentication:a}=n===`oauth-app`?await xd({...i,clientType:`oauth-app`}):await xd({...i,clientType:`github-app`});return{type:`token`,tokenType:`oauth`,...a}}catch(i){if(!i.response)throw i;let a=i.response.data.error;if(a===`authorization_pending`)return await Md(r.interval),Nd(e,t,n,r);if(a===`slow_down`)return await Md(r.interval+7),Nd(e,t,n,r);throw i}}async function Pd(e,t){return Ad(e,{auth:t})}async function Fd(e,t,n,r){let i=t.endpoint.merge(n,r);if(/\/login\/(oauth\/access_token|device\/code)$/.test(i.url))return t(i);let{token:a}=await Ad(e,{request:t,auth:{type:`oauth`}});return i.headers.authorization=`token ${a}`,t(i)}var Id=`0.0.0-development`;function Ld(e){let t=e.request||Q.defaults({headers:{"user-agent":`octokit-auth-oauth-device.js/${Id} ${zc()}`}}),{request:n=t,...r}=e,i=e.clientType===`github-app`?{...r,clientType:`github-app`,request:n}:{...r,clientType:`oauth-app`,request:n,scopes:e.scopes||[]};if(!e.clientId)throw Error(`[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)`);if(!e.onVerification)throw Error(`[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)`);return Object.assign(Pd.bind(null,i),{hook:Fd.bind(null,i)})}var Rd=`0.0.0-development`;async function zd(e){if(`code`in e.strategyOptions){let{authentication:t}=await vd({clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request});return{type:`token`,tokenType:`oauth`,...t}}if(`onVerification`in e.strategyOptions){let t=await Ld({clientType:e.clientType,clientId:e.clientId,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request})({type:`oauth`});return{clientSecret:e.clientSecret,...t}}if(`token`in e.strategyOptions)return{type:`token`,tokenType:`oauth`,clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions};throw Error(`[@octokit/auth-oauth-user] Invalid strategy options`)}async function Bd(e,t={}){if(e.authentication||=(e.clientType,await zd(e)),e.authentication.invalid)throw Error(`[@octokit/auth-oauth-user] Token is invalid`);let n=e.authentication;if(`expiresAt`in n&&(t.type===`refresh`||new Date(n.expiresAt)<new Date)){let{authentication:t}=await wd({clientType:`github-app`,clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:n.refreshToken,request:e.request});e.authentication={tokenType:`oauth`,type:`token`,...t}}if(t.type===`refresh`){if(e.clientType===`oauth-app`)throw Error(`[@octokit/auth-oauth-user] OAuth Apps do not support expiring tokens`);if(!n.hasOwnProperty(`expiresAt`))throw Error(`[@octokit/auth-oauth-user] Refresh token missing`);await e.onTokenCreated?.(e.authentication,{type:t.type})}if(t.type===`check`||t.type===`reset`){let n=t.type===`check`?Cd:Dd;try{let{authentication:r}=await n({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.authentication.token,request:e.request});return e.authentication={tokenType:`oauth`,type:`token`,...r},t.type===`reset`&&await e.onTokenCreated?.(e.authentication,{type:t.type}),e.authentication}catch(t){throw t.status===404&&(t.message=`[@octokit/auth-oauth-user] Token is invalid`,e.authentication.invalid=!0),t}}if(t.type===`delete`||t.type===`deleteAuthorization`){let n=t.type===`delete`?Od:kd;try{await n({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.authentication.token,request:e.request})}catch(e){if(e.status!==404)throw e}return e.authentication.invalid=!0,e.authentication}return e.authentication}var Vd=/\/applications\/[^/]+\/(token|grant)s?/;function Hd(e){return e&&Vd.test(e)}async function Ud(e,t,n,r={}){let i=t.endpoint.merge(n,r);if(/\/login\/(oauth\/access_token|device\/code)$/.test(i.url))return t(i);if(Hd(i.url)){let n=btoa(`${e.clientId}:${e.clientSecret}`);return i.headers.authorization=`basic ${n}`,t(i)}let{token:a}=(e.clientType,await Bd({...e,request:t}));return i.headers.authorization=`token `+a,t(i)}function Wd({clientId:e,clientSecret:t,clientType:n=`oauth-app`,request:r=Q.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/${Rd} ${zc()}`}}),onTokenCreated:i,...a}){let o=Object.assign({clientType:n,clientId:e,clientSecret:t,onTokenCreated:i,strategyOptions:a,request:r});return Object.assign(Bd.bind(null,o),{hook:Ud.bind(null,o)})}Wd.VERSION=Rd;async function Gd(e,t){if(t.type===`oauth-app`)return{type:`oauth-app`,clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`}};if(`factory`in t){let{type:n,...r}={...t,...e};return t.factory(r)}let n={clientId:e.clientId,clientSecret:e.clientSecret,request:e.request,...t};return(e.clientType,await Wd({...n,clientType:e.clientType}))()}async function Kd(e,t,n,r){let i=t.endpoint.merge(n,r);if(/\/login\/(oauth\/access_token|device\/code)$/.test(i.url))return t(i);if(e.clientType===`github-app`&&!Hd(i.url))throw Error(`[@octokit/auth-oauth-app] GitHub Apps cannot use their client ID/secret for basic authentication for endpoints other than "/applications/{client_id}/**". "${i.method} ${i.url}" is not supported.`);let a=btoa(`${e.clientId}:${e.clientSecret}`);i.headers.authorization=`basic ${a}`;try{return await t(i)}catch(e){throw e.status===401&&(e.message=`[@octokit/auth-oauth-app] "${i.method} ${i.url}" does not support clientId/clientSecret basic authentication.`),e}}var qd=`0.0.0-development`;function Jd(e){let t=Object.assign({request:Q.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/${qd} ${zc()}`}}),clientType:`oauth-app`},e);return Object.assign(Gd.bind(null,t),{hook:Kd.bind(null,t)})}function Yd(e){return e.includes(`-----BEGIN RSA PRIVATE KEY-----`)}function Xd(e){return e.includes(`-----BEGIN OPENSSH PRIVATE KEY-----`)}function Zd(e){let t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0,r=e.length;t<r;t++)n[t]=e.charCodeAt(t);return t}function Qd(e){let t=e.trim().split(`
|
|
120
|
-
`).slice(1,-1).join(``);return Zd(atob(t))}function $d(e,t){return`${nf(e)}.${nf(t)}`}function ef(e){for(var t=``,n=new Uint8Array(e),r=n.byteLength,i=0;i<r;i++)t+=String.fromCharCode(n[i]);return tf(btoa(t))}function tf(e){return e.replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)}function nf(e){return tf(btoa(JSON.stringify(e)))}var{subtle:rf}=globalThis.crypto;function af(e){return e}async function of({privateKey:e,payload:t}){let n=af(e);if(Yd(n))throw Error(`[universal-github-app-jwt] Private Key is in PKCS#1 format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats`);if(Xd(n))throw Error(`[universal-github-app-jwt] Private Key is in OpenSSH format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats`);let r={name:`RSASSA-PKCS1-v1_5`,hash:{name:`SHA-256`}},i={alg:`RS256`,typ:`JWT`},a=Qd(n),o=await rf.importKey(`pkcs8`,a,r,!1,[`sign`]),s=$d(i,t),c=Zd(s);return`${s}.${ef(await rf.sign(r.name,o,c))}`}async function sf({id:e,privateKey:t,now:n=Math.floor(Date.now()/1e3)}){let r=t.replace(/\\n/g,`
|
|
121
|
-
`),i=n-30,a=i+600;return{appId:e,expiration:a,token:await of({privateKey:r,payload:{iat:i,exp:a,iss:e}})}}var cf=class{constructor(e=1e3,t=0){if(isNaN(e)||e<0)throw Error(`Invalid max value`);if(isNaN(t)||t<0)throw Error(`Invalid ttl value`);this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=t}bumpLru(e){if(this.last===e)return;let t=this.last,n=e.next,r=e.prev;this.first===e&&(this.first=n),e.next=null,e.prev=t,t.next=e,r!==null&&(r.next=n),n!==null&&(n.prev=r),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let t=this.items[e];delete this.items[e],this.size--,t.prev!==null&&(t.prev.next=t.next),t.next!==null&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}}deleteMany(e){for(var t=0;t<e.length;t++)this.delete(e[t])}evict(){if(this.size>0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let t=this.items[e];if(this.ttl>0&&t.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(t),t.value}}getMany(e){let t=[];for(var n=0;n<e.length;n++)t.push(this.get(e[n]));return t}keys(){return Object.keys(this.items)}set(e,t){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];n.value=t,n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,this.last!==n&&this.bumpLru(n);return}this.max>0&&this.size===this.max&&this.evict();let n={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t};this.items[e]=n,++this.size===1?this.first=n:this.last.next=n,this.last=n}};async function lf({appId:e,privateKey:t,timeDifference:n,createJwt:r}){try{if(r){let{jwt:t,expiresAt:i}=await r(e,n);return{type:`app`,token:t,appId:e,expiresAt:i}}let i={id:e,privateKey:t};n&&Object.assign(i,{now:Math.floor(Date.now()/1e3)+n});let a=await sf(i);return{type:`app`,token:a.token,appId:a.appId,expiresAt:new Date(a.expiration*1e3).toISOString()}}catch(e){throw t===`-----BEGIN RSA PRIVATE KEY-----`?Error("The 'privateKey` option contains only the first line '-----BEGIN RSA PRIVATE KEY-----'. If you are setting it using a `.env` file, make sure it is set on a single line with newlines replaced by '\n'"):e}}function uf(){return new cf(15e3,1e3*60*59)}async function df(e,t){let n=pf(t),r=await e.get(n);if(!r)return;let[i,a,o,s,c,l]=r.split(`|`);return{token:i,createdAt:a,expiresAt:o,permissions:t.permissions||c.split(/,/).reduce((e,t)=>(/!$/.test(t)?e[t.slice(0,-1)]=`write`:e[t]=`read`,e),{}),repositoryIds:t.repositoryIds,repositoryNames:t.repositoryNames,singleFileName:l,repositorySelection:s}}async function ff(e,t,n){let r=pf(t),i=t.permissions?``:Object.keys(n.permissions).map(e=>`${e}${n.permissions[e]===`write`?`!`:``}`).join(`,`),a=[n.token,n.createdAt,n.expiresAt,n.repositorySelection,i,n.singleFileName].join(`|`);await e.set(r,a)}function pf({installationId:e,permissions:t={},repositoryIds:n=[],repositoryNames:r=[]}){let i=Object.keys(t).sort().map(e=>t[e]===`read`?e:`${e}!`).join(`,`);return[e,n.sort().join(`,`),r.join(`,`),i].filter(Boolean).join(`|`)}function mf({installationId:e,token:t,createdAt:n,expiresAt:r,repositorySelection:i,permissions:a,repositoryIds:o,repositoryNames:s,singleFileName:c}){return Object.assign({type:`token`,tokenType:`installation`,token:t,installationId:e,permissions:a,createdAt:n,expiresAt:r,repositorySelection:i},o?{repositoryIds:o}:null,s?{repositoryNames:s}:null,c?{singleFileName:c}:null)}async function hf(e,t,n){let r=Number(t.installationId||e.installationId);if(!r)throw Error(`[@octokit/auth-app] installationId option is required for installation authentication.`);if(t.factory){let{type:n,factory:r,oauthApp:i,...a}={...e,...t};return r(a)}let i=n||e.request;return _f(e,{...t,installationId:r},i)}var gf=new Map;function _f(e,t,n){let r=pf(t);if(gf.has(r))return gf.get(r);let i=vf(e,t,n).finally(()=>gf.delete(r));return gf.set(r,i),i}async function vf(e,t,n){if(!t.refresh){let n=await df(e.cache,t);if(n){let{token:e,createdAt:r,expiresAt:i,permissions:a,repositoryIds:o,repositoryNames:s,singleFileName:c,repositorySelection:l}=n;return mf({installationId:t.installationId,token:e,createdAt:r,expiresAt:i,permissions:a,repositorySelection:l,repositoryIds:o,repositoryNames:s,singleFileName:c})}}let r=await lf(e),i={installation_id:t.installationId,mediaType:{previews:[`machine-man`]},headers:{authorization:`bearer ${r.token}`}};t.repositoryIds&&Object.assign(i,{repository_ids:t.repositoryIds}),t.repositoryNames&&Object.assign(i,{repositories:t.repositoryNames}),t.permissions&&Object.assign(i,{permissions:t.permissions});let{data:{token:a,expires_at:o,repositories:s,permissions:c,repository_selection:l,single_file:u}}=await n(`POST /app/installations/{installation_id}/access_tokens`,i),d=c||{},f=l||`all`,p=s?s.map(e=>e.id):void 0,m=s?s.map(e=>e.name):void 0,h=new Date().toISOString(),g={token:a,createdAt:h,expiresAt:o,repositorySelection:f,permissions:d,repositoryIds:p,repositoryNames:m};u&&Object.assign(i,{singleFileName:u}),await ff(e.cache,t,g);let _={installationId:t.installationId,token:a,createdAt:h,expiresAt:o,repositorySelection:f,permissions:d,repositoryIds:p,repositoryNames:m};return u&&Object.assign(_,{singleFileName:u}),mf(_)}async function yf(e,t){switch(t.type){case`app`:return lf(e);case`oauth-app`:return e.oauthApp({type:`oauth-app`});case`installation`:return hf(e,{...t,type:`installation`});case`oauth-user`:return e.oauthApp(t);default:throw Error(`Invalid auth type: ${t.type}`)}}var bf=[`/app`,`/app/hook/config`,`/app/hook/deliveries`,`/app/hook/deliveries/{delivery_id}`,`/app/hook/deliveries/{delivery_id}/attempts`,`/app/installations`,`/app/installations/{installation_id}`,`/app/installations/{installation_id}/access_tokens`,`/app/installations/{installation_id}/suspended`,`/app/installation-requests`,`/marketplace_listing/accounts/{account_id}`,`/marketplace_listing/plan`,`/marketplace_listing/plans`,`/marketplace_listing/plans/{plan_id}/accounts`,`/marketplace_listing/stubbed/accounts/{account_id}`,`/marketplace_listing/stubbed/plan`,`/marketplace_listing/stubbed/plans`,`/marketplace_listing/stubbed/plans/{plan_id}/accounts`,`/orgs/{org}/installation`,`/repos/{owner}/{repo}/installation`,`/users/{username}/installation`,`/enterprises/{enterprise}/installation`];function xf(e){let t=`^(?:${e.map(e=>e.split(`/`).map(e=>e.startsWith(`{`)?`(?:.+?)`:e).join(`/`)).map(e=>`(?:${e})`).join(`|`)})$`;return new RegExp(t,`i`)}var Sf=xf(bf);function Cf(e){return!!e&&Sf.test(e.split(`?`)[0])}var wf=5*1e3;function Tf(e){return!(e.message.match(/'Expiration time' claim \('exp'\) is too far in the future/)||e.message.match(/'Expiration time' claim \('exp'\) must be a numeric value representing the future time at which the assertion expires/)||e.message.match(/'Issued at' claim \('iat'\) must be an Integer representing the time that the assertion was issued/))}async function Ef(e,t,n,r){let i=t.endpoint.merge(n,r),a=i.url;if(/\/login\/oauth\/access_token$/.test(a))return t(i);if(Cf(a.replace(t.endpoint.DEFAULTS.baseUrl,``))){let{token:n}=await lf(e);i.headers.authorization=`bearer ${n}`;let r;try{r=await t(i)}catch(n){if(Tf(n)||n.response.headers.date===void 0)throw n;let r=Math.floor((Date.parse(n.response.headers.date)-Date.parse(new Date().toString()))/1e3);e.log.warn(n.message),e.log.warn(`[@octokit/auth-app] GitHub API time and system time are different by ${r} seconds. Retrying request with the difference accounted for.`);let{token:a}=await lf({...e,timeDifference:r});return i.headers.authorization=`bearer ${a}`,t(i)}return r}if(Hd(a)){let n=await e.oauthApp({type:`oauth-app`});return i.headers.authorization=n.headers.authorization,t(i)}let{token:o,createdAt:s}=await hf(e,{},t.defaults({baseUrl:i.baseUrl}));return i.headers.authorization=`token ${o}`,Df(e,t,i,s)}async function Df(e,t,n,r,i=0){let a=new Date-+new Date(r);try{return await t(n)}catch(o){if(o.status!==401)throw o;if(a>=wf)throw i>0&&(o.message=`After ${i} retries within ${a/1e3}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`),o;++i;let s=i*1e3;return e.log.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${i}, wait: ${s/1e3}s)`),await new Promise(e=>setTimeout(e,s)),Df(e,t,n,r,i)}}var Of=`8.2.0`;function kf(e){if(!e.appId)throw Error(`[@octokit/auth-app] appId option is required`);if(!e.privateKey&&!e.createJwt)throw Error(`[@octokit/auth-app] privateKey option is required`);if(e.privateKey&&e.createJwt)throw Error(`[@octokit/auth-app] privateKey and createJwt options are mutually exclusive`);if(`installationId`in e&&!e.installationId)throw Error(`[@octokit/auth-app] installationId is set to a falsy value`);let t=e.log||{};typeof t.warn!=`function`&&(t.warn=console.warn.bind(console));let n=e.request||Q.defaults({headers:{"user-agent":`octokit-auth-app.js/${Of} ${zc()}`}}),r=Object.assign({request:n,cache:uf()},e,e.installationId?{installationId:Number(e.installationId)}:{},{log:t,oauthApp:Jd({clientType:`github-app`,clientId:e.clientId||``,clientSecret:e.clientSecret||``,request:n})});return Object.assign(yf.bind(null,r),{hook:Ef.bind(null,r)})}async function Af(e){return{type:`unauthenticated`,reason:e}}function jf(e){return e.status!==403||!e.response?!1:e.response.headers[`x-ratelimit-remaining`]===`0`}var Mf=/\babuse\b/i;function Nf(e){return e.status===403?Mf.test(e.message):!1}async function Pf(e,t,n,r){let i=t.endpoint.merge(n,r);return t(i).catch(t=>{throw t.status===404?(t.message=`Not found. May be due to lack of authentication. Reason: ${e}`,t):jf(t)?(t.message=`API rate limit exceeded. This maybe caused by the lack of authentication. Reason: ${e}`,t):Nf(t)?(t.message=`You have triggered an abuse detection mechanism. This maybe caused by the lack of authentication. Reason: ${e}`,t):t.status===401?(t.message=`Unauthorized. "${i.method} ${i.url}" failed most likely due to lack of authentication. Reason: ${e}`,t):(t.status>=400&&t.status<500&&(t.message=t.message.replace(/\.?$/,`. May be caused by lack of authentication (${e}).`)),t)})}var Ff=function(e){if(!e||!e.reason)throw Error(`[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth`);return Object.assign(Af.bind(null,e.reason),{hook:Pf.bind(null,e.reason)})},If=`8.0.3`;function Lf(e,t,n){if(Array.isArray(t)){for(let r of t)Lf(e,r,n);return}e.eventHandlers[t]||(e.eventHandlers[t]=[]),e.eventHandlers[t].push(n)}var Rf=gu.defaults({userAgent:`octokit-oauth-app.js/${If} ${zc()}`});async function zf(e,t){let{name:n,action:r}=t;if(e.eventHandlers[`${n}.${r}`])for(let i of e.eventHandlers[`${n}.${r}`])await i(t);if(e.eventHandlers[n])for(let r of e.eventHandlers[n])await r(t)}async function Bf(e,t){return e.octokit.auth({type:`oauth-user`,...t,async factory(t){let n=new e.Octokit({authStrategy:Wd,auth:t}),r=await n.auth({type:`get`});return await zf(e,{name:`token`,action:`created`,token:r.token,scopes:r.scopes,authentication:r,octokit:n}),n}})}function Vf(e,t){let n={clientId:e.clientId,request:e.octokit.request,...t,allowSignup:e.allowSignup??t.allowSignup,redirectUrl:t.redirectUrl??e.redirectUrl,scopes:t.scopes??e.defaultScopes};return _d({clientType:e.clientType,...n})}async function Hf(e,t){let n=await e.octokit.auth({type:`oauth-user`,...t});return await zf(e,{name:`token`,action:`created`,token:n.token,scopes:n.scopes,authentication:n,octokit:new e.Octokit({authStrategy:Wd,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.token,scopes:n.scopes,refreshToken:n.refreshToken,expiresAt:n.expiresAt,refreshTokenExpiresAt:n.refreshTokenExpiresAt}})}),{authentication:n}}async function Uf(e,t){let n=await Cd({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t});return Object.assign(n.authentication,{type:`token`,tokenType:`oauth`}),n}async function Wf(e,t){let n={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t};if(e.clientType===`oauth-app`){let t=await Dd({clientType:`oauth-app`,...n}),r=Object.assign(t.authentication,{type:`token`,tokenType:`oauth`});return await zf(e,{name:`token`,action:`reset`,token:t.authentication.token,scopes:t.authentication.scopes||void 0,authentication:r,octokit:new e.Octokit({authStrategy:Wd,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.authentication.token,scopes:t.authentication.scopes}})}),{...t,authentication:r}}let r=await Dd({clientType:`github-app`,...n}),i=Object.assign(r.authentication,{type:`token`,tokenType:`oauth`});return await zf(e,{name:`token`,action:`reset`,token:r.authentication.token,authentication:i,octokit:new e.Octokit({authStrategy:Wd,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:i}}async function Gf(e,t){if(e.clientType===`oauth-app`)throw Error(`[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps`);let n=await wd({clientType:`github-app`,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,refreshToken:t.refreshToken}),r=Object.assign(n.authentication,{type:`token`,tokenType:`oauth`});return await zf(e,{name:`token`,action:`refreshed`,token:n.authentication.token,authentication:r,octokit:new e.Octokit({authStrategy:Wd,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.authentication.token}})}),{...n,authentication:r}}async function Kf(e,t){if(e.clientType===`oauth-app`)throw Error(`[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps`);let n=await Ed({clientType:`github-app`,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t}),r=Object.assign(n.authentication,{type:`token`,tokenType:`oauth`});return await zf(e,{name:`token`,action:`scoped`,token:n.authentication.token,authentication:r,octokit:new e.Octokit({authStrategy:Wd,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.authentication.token}})}),{...n,authentication:r}}async function qf(e,t){let n={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},r=e.clientType===`oauth-app`?await Od({clientType:`oauth-app`,...n}):await Od({clientType:`github-app`,...n});return await zf(e,{name:`token`,action:`deleted`,token:t.token,octokit:new e.Octokit({authStrategy:Ff,auth:{reason:`Handling "token.deleted" event. The access for the token has been revoked.`}})}),r}async function Jf(e,t){let n={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},r=e.clientType===`oauth-app`?await kd({clientType:`oauth-app`,...n}):await kd({clientType:`github-app`,...n});return await zf(e,{name:`token`,action:`deleted`,token:t.token,octokit:new e.Octokit({authStrategy:Ff,auth:{reason:`Handling "token.deleted" event. The access for the token has been revoked.`}})}),await zf(e,{name:`authorization`,action:`deleted`,token:t.token,octokit:new e.Octokit({authStrategy:Ff,auth:{reason:`Handling "authorization.deleted" event. The access for the app has been revoked.`}})}),r}var Yf=class{static VERSION=If;static defaults(e){return class extends this{constructor(...t){super({...e,...t[0]})}}}constructor(e){let t=e.Octokit||Rf;this.type=e.clientType||`oauth-app`;let n=new t({authStrategy:Jd,auth:{clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret}}),r={clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret,defaultScopes:e.defaultScopes||[],allowSignup:e.allowSignup,baseUrl:e.baseUrl,redirectUrl:e.redirectUrl,log:e.log,Octokit:t,octokit:n,eventHandlers:{}};this.on=Lf.bind(null,r),this.octokit=n,this.getUserOctokit=Bf.bind(null,r),this.getWebFlowAuthorizationUrl=Vf.bind(null,r),this.createToken=Hf.bind(null,r),this.checkToken=Uf.bind(null,r),this.resetToken=Wf.bind(null,r),this.refreshToken=Gf.bind(null,r),this.scopeToken=Kf.bind(null,r),this.deleteToken=qf.bind(null,r),this.deleteAuthorization=Jf.bind(null,r)}type;on;octokit;getUserOctokit;getWebFlowAuthorizationUrl;createToken;checkToken;resetToken;refreshToken;scopeToken;deleteToken;deleteAuthorization},Xf=new TextEncoder;function Zf(e){let t=e.match(/[\dA-F]{2}/gi).map(function(e){return parseInt(e,16)});return new Uint8Array(t)}function Qf(e){return Array.prototype.map.call(new Uint8Array(e),e=>e.toString(16).padStart(2,`0`)).join(``)}async function $f(e){return crypto.subtle.importKey(`raw`,Xf.encode(e),{name:`HMAC`,hash:{name:`SHA-256`}},!1,[`sign`,`verify`])}async function ep(e,t){if(!e||!t)throw TypeError(`[@octokit/webhooks-methods] secret & payload required for sign()`);if(typeof t!=`string`)throw TypeError(`[@octokit/webhooks-methods] payload must be a string`);return`sha256=${Qf(await crypto.subtle.sign(`HMAC`,await $f(e),Xf.encode(t)))}`}async function tp(e,t,n){if(!e||!t||!n)throw TypeError(`[@octokit/webhooks-methods] secret, eventPayload & signature required`);if(typeof t!=`string`)throw TypeError(`[@octokit/webhooks-methods] eventPayload must be a string`);return await crypto.subtle.verify(`HMAC`,await $f(e),Zf(n.replace(`sha256=`,``)),Xf.encode(t))}async function np(e,t,n,r){if(await tp(e,t,n))return!0;if(r!==void 0)for(let e of r){let r=await tp(e,t,n);if(r)return r}return!1}var rp=(e={})=>(typeof e.debug!=`function`&&(e.debug=()=>{}),typeof e.info!=`function`&&(e.info=()=>{}),typeof e.warn!=`function`&&(e.warn=console.warn.bind(console)),typeof e.error!=`function`&&(e.error=console.error.bind(console)),e),ip=`branch_protection_configuration,branch_protection_configuration.disabled,branch_protection_configuration.enabled,branch_protection_rule,branch_protection_rule.created,branch_protection_rule.deleted,branch_protection_rule.edited,check_run,check_run.completed,check_run.created,check_run.requested_action,check_run.rerequested,check_suite,check_suite.completed,check_suite.requested,check_suite.rerequested,code_scanning_alert,code_scanning_alert.appeared_in_branch,code_scanning_alert.closed_by_user,code_scanning_alert.created,code_scanning_alert.fixed,code_scanning_alert.reopened,code_scanning_alert.reopened_by_user,commit_comment,commit_comment.created,create,custom_property,custom_property.created,custom_property.deleted,custom_property.promote_to_enterprise,custom_property.updated,custom_property_values,custom_property_values.updated,delete,dependabot_alert,dependabot_alert.auto_dismissed,dependabot_alert.auto_reopened,dependabot_alert.created,dependabot_alert.dismissed,dependabot_alert.fixed,dependabot_alert.reintroduced,dependabot_alert.reopened,deploy_key,deploy_key.created,deploy_key.deleted,deployment,deployment.created,deployment_protection_rule,deployment_protection_rule.requested,deployment_review,deployment_review.approved,deployment_review.rejected,deployment_review.requested,deployment_status,deployment_status.created,discussion,discussion.answered,discussion.category_changed,discussion.closed,discussion.created,discussion.deleted,discussion.edited,discussion.labeled,discussion.locked,discussion.pinned,discussion.reopened,discussion.transferred,discussion.unanswered,discussion.unlabeled,discussion.unlocked,discussion.unpinned,discussion_comment,discussion_comment.created,discussion_comment.deleted,discussion_comment.edited,fork,github_app_authorization,github_app_authorization.revoked,gollum,installation,installation.created,installation.deleted,installation.new_permissions_accepted,installation.suspend,installation.unsuspend,installation_repositories,installation_repositories.added,installation_repositories.removed,installation_target,installation_target.renamed,issue_comment,issue_comment.created,issue_comment.deleted,issue_comment.edited,issue_dependencies,issue_dependencies.blocked_by_added,issue_dependencies.blocked_by_removed,issue_dependencies.blocking_added,issue_dependencies.blocking_removed,issues,issues.assigned,issues.closed,issues.deleted,issues.demilestoned,issues.edited,issues.labeled,issues.locked,issues.milestoned,issues.opened,issues.pinned,issues.reopened,issues.transferred,issues.typed,issues.unassigned,issues.unlabeled,issues.unlocked,issues.unpinned,issues.untyped,label,label.created,label.deleted,label.edited,marketplace_purchase,marketplace_purchase.cancelled,marketplace_purchase.changed,marketplace_purchase.pending_change,marketplace_purchase.pending_change_cancelled,marketplace_purchase.purchased,member,member.added,member.edited,member.removed,membership,membership.added,membership.removed,merge_group,merge_group.checks_requested,merge_group.destroyed,meta,meta.deleted,milestone,milestone.closed,milestone.created,milestone.deleted,milestone.edited,milestone.opened,org_block,org_block.blocked,org_block.unblocked,organization,organization.deleted,organization.member_added,organization.member_invited,organization.member_removed,organization.renamed,package,package.published,package.updated,page_build,personal_access_token_request,personal_access_token_request.approved,personal_access_token_request.cancelled,personal_access_token_request.created,personal_access_token_request.denied,ping,project,project.closed,project.created,project.deleted,project.edited,project.reopened,project_card,project_card.converted,project_card.created,project_card.deleted,project_card.edited,project_card.moved,project_column,project_column.created,project_column.deleted,project_column.edited,project_column.moved,projects_v2,projects_v2.closed,projects_v2.created,projects_v2.deleted,projects_v2.edited,projects_v2.reopened,projects_v2_item,projects_v2_item.archived,projects_v2_item.converted,projects_v2_item.created,projects_v2_item.deleted,projects_v2_item.edited,projects_v2_item.reordered,projects_v2_item.restored,projects_v2_status_update,projects_v2_status_update.created,projects_v2_status_update.deleted,projects_v2_status_update.edited,public,pull_request,pull_request.assigned,pull_request.auto_merge_disabled,pull_request.auto_merge_enabled,pull_request.closed,pull_request.converted_to_draft,pull_request.demilestoned,pull_request.dequeued,pull_request.edited,pull_request.enqueued,pull_request.labeled,pull_request.locked,pull_request.milestoned,pull_request.opened,pull_request.ready_for_review,pull_request.reopened,pull_request.review_request_removed,pull_request.review_requested,pull_request.synchronize,pull_request.unassigned,pull_request.unlabeled,pull_request.unlocked,pull_request_review,pull_request_review.dismissed,pull_request_review.edited,pull_request_review.submitted,pull_request_review_comment,pull_request_review_comment.created,pull_request_review_comment.deleted,pull_request_review_comment.edited,pull_request_review_thread,pull_request_review_thread.resolved,pull_request_review_thread.unresolved,push,registry_package,registry_package.published,registry_package.updated,release,release.created,release.deleted,release.edited,release.prereleased,release.published,release.released,release.unpublished,repository,repository.archived,repository.created,repository.deleted,repository.edited,repository.privatized,repository.publicized,repository.renamed,repository.transferred,repository.unarchived,repository_advisory,repository_advisory.published,repository_advisory.reported,repository_dispatch,repository_dispatch.sample.collected,repository_import,repository_ruleset,repository_ruleset.created,repository_ruleset.deleted,repository_ruleset.edited,repository_vulnerability_alert,repository_vulnerability_alert.create,repository_vulnerability_alert.dismiss,repository_vulnerability_alert.reopen,repository_vulnerability_alert.resolve,secret_scanning_alert,secret_scanning_alert.assigned,secret_scanning_alert.created,secret_scanning_alert.publicly_leaked,secret_scanning_alert.reopened,secret_scanning_alert.resolved,secret_scanning_alert.unassigned,secret_scanning_alert.validated,secret_scanning_alert_location,secret_scanning_alert_location.created,secret_scanning_scan,secret_scanning_scan.completed,security_advisory,security_advisory.published,security_advisory.updated,security_advisory.withdrawn,security_and_analysis,sponsorship,sponsorship.cancelled,sponsorship.created,sponsorship.edited,sponsorship.pending_cancellation,sponsorship.pending_tier_change,sponsorship.tier_changed,star,star.created,star.deleted,status,sub_issues,sub_issues.parent_issue_added,sub_issues.parent_issue_removed,sub_issues.sub_issue_added,sub_issues.sub_issue_removed,team,team.added_to_repository,team.created,team.deleted,team.edited,team.removed_from_repository,team_add,watch,watch.started,workflow_dispatch,workflow_job,workflow_job.completed,workflow_job.in_progress,workflow_job.queued,workflow_job.waiting,workflow_run,workflow_run.completed,workflow_run.in_progress,workflow_run.requested`.split(`,`);function ap(e,t={}){if(typeof e!=`string`)throw TypeError(`eventName must be of type string`);if(e===`*`)throw TypeError(`Using the "*" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onAny() method instead`);if(e===`error`)throw TypeError(`Using the "error" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onError() method instead`);if(t.onUnknownEventName!==`ignore`&&!ip.includes(e)){if(t.onUnknownEventName!==`warn`)throw TypeError(`"${e}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`);(t.log||console).warn(`"${e}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}}function op(e,t,n){e.hooks[t]||(e.hooks[t]=[]),e.hooks[t].push(n)}function sp(e,t,n){if(Array.isArray(t)){t.forEach(t=>sp(e,t,n));return}ap(t,{onUnknownEventName:`warn`,log:e.log}),op(e,t,n)}function cp(e,t){op(e,`*`,t)}function lp(e,t){op(e,`error`,t)}function up(e,t){let n;try{n=e(t)}catch(e){console.log(`FATAL: Error occurred in "error" event handler`),console.log(e)}n&&n.catch&&n.catch(e=>{console.log(`FATAL: Error occurred in "error" event handler`),console.log(e)})}function dp(e,t,n){let r=[e.hooks[n],e.hooks[`*`]];return t&&r.unshift(e.hooks[`${n}.${t}`]),[].concat(...r.filter(Boolean))}function fp(e,t){let n=e.hooks.error||[];if(t instanceof Error){let e=Object.assign(AggregateError([t],t.message),{event:t});return n.forEach(t=>up(t,e)),Promise.reject(e)}if(!t||!t.name){let e=Error(`Event name not passed`);throw AggregateError([e],e.message)}if(!t.payload){let e=Error(`Event name not passed`);throw AggregateError([e],e.message)}let r=dp(e,`action`in t.payload?t.payload.action:null,t.name);if(r.length===0)return Promise.resolve();let i=[],a=r.map(n=>{let r=Promise.resolve(t);return e.transform&&(r=r.then(e.transform)),r.then(e=>n(e)).catch(e=>i.push(Object.assign(e,{event:t})))});return Promise.all(a).then(()=>{if(i.length===0)return;let e=AggregateError(i,i.map(e=>e.message).join(`
|
|
122
|
-
`));throw Object.assign(e,{event:t}),n.forEach(t=>up(t,e)),e})}function pp(e,t,n){if(Array.isArray(t)){t.forEach(t=>pp(e,t,n));return}if(e.hooks[t]){for(let r=e.hooks[t].length-1;r>=0;r--)if(e.hooks[t][r]===n){e.hooks[t].splice(r,1);return}}}function mp(e){let t={hooks:{},log:rp(e&&e.log)};return e&&e.transform&&(t.transform=e.transform),{on:sp.bind(null,t),onAny:cp.bind(null,t),onError:lp.bind(null,t),removeListener:pp.bind(null,t),receive:fp.bind(null,t)}}async function hp(e,t){if(!await np(e.secret,t.payload,t.signature,e.additionalSecrets).catch(()=>!1)){let n=Error(`[@octokit/webhooks] signature does not match event payload and secret`);return n.event=t,n.status=400,e.eventHandler.receive(n)}let n;try{n=JSON.parse(t.payload)}catch(e){throw e.message=`Invalid JSON`,e.status=400,AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var gp=new TextDecoder(`utf-8`,{fatal:!1});gp.decode.bind(gp);var _p=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret)throw Error(`[@octokit/webhooks] options.secret required`);let t={eventHandler:mp(e),secret:e.secret,additionalSecrets:e.additionalSecrets,hooks:{},log:rp(e.log)};this.sign=ep.bind(null,e.secret),this.verify=tp.bind(null,e.secret),this.on=t.eventHandler.on,this.onAny=t.eventHandler.onAny,this.onError=t.eventHandler.onError,this.removeListener=t.eventHandler.removeListener,this.receive=t.eventHandler.receive,this.verifyAndReceive=hp.bind(null,t)}},vp=`16.1.2`;function yp(e,t){return new _p({secret:t.secret,transform:async t=>{if(!(`installation`in t.payload)||typeof t.payload.installation!=`object`){let n=new e.constructor({authStrategy:Ff,auth:{reason:`"installation" key missing in webhook event payload`}});return{...t,octokit:n}}let n=t.payload.installation.id,r=await e.auth({type:`installation`,installationId:n,factory(e){return new e.octokit.constructor({...e.octokitOptions,authStrategy:kf,auth:{...e,installationId:n}})}});return r.hook.before(`request`,e=>{e.headers[`x-github-delivery`]=t.id}),{...t,octokit:r}}})}async function bp(e,t){return e.octokit.auth({type:`installation`,installationId:t,factory(e){let n={...e.octokitOptions,authStrategy:kf,auth:{...e,installationId:t}};return new e.octokit.constructor(n)}})}function xp(e){return Object.assign(Sp.bind(null,e),{iterator:Cp.bind(null,e)})}async function Sp(e,t){let n=Cp(e)[Symbol.asyncIterator](),r=await n.next();for(;!r.done;)await t(r.value),r=await n.next()}function Cp(e){return{async*[Symbol.asyncIterator](){let t=Su.iterator(e.octokit,`GET /app/installations`);for await(let{data:n}of t)for(let t of n)yield{octokit:await bp(e,t.id),installation:t}}}}function wp(e){return Object.assign(Tp.bind(null,e),{iterator:Dp.bind(null,e)})}async function Tp(e,t,n){let r=Dp(e,n?t:void 0)[Symbol.asyncIterator](),i=await r.next();for(;!i.done;)n?await n(i.value):await t(i.value),i=await r.next()}function Ep(e,t){return{async*[Symbol.asyncIterator](){yield{octokit:await e.getInstallationOctokit(t)}}}}function Dp(e,t){return{async*[Symbol.asyncIterator](){let n=t?Ep(e,t.installationId):e.eachInstallation.iterator();for await(let{octokit:e}of n){let t=Su.iterator(e,`GET /installation/repositories`);for await(let{data:n}of t)for(let t of n)yield{octokit:e,repository:t}}}}}function Op(e){let t;return async function(n={}){t||=kp(e);let r=await t,i=new URL(r);return n.target_id!==void 0&&(i.pathname+=`/permissions`,i.searchParams.append(`target_id`,n.target_id.toFixed())),n.state!==void 0&&i.searchParams.append(`state`,n.state),i.href}}async function kp(e){let{data:t}=await e.octokit.request(`GET /app`);if(!t)throw Error(`[@octokit/app] unable to fetch metadata for app`);return`${t.html_url}/installations/new`}var Ap=class{static VERSION=vp;static defaults(e){return class extends this{constructor(...t){super({...e,...t[0]})}}}octokit;webhooks;oauth;getInstallationOctokit;eachInstallation;eachRepository;getInstallationUrl;log;constructor(e){let t=e.Octokit||gu,n={authStrategy:kf,auth:Object.assign({appId:e.appId,privateKey:e.privateKey},e.oauth?{clientId:e.oauth.clientId,clientSecret:e.oauth.clientSecret}:{})};`log`in e&&e.log!==void 0&&(n.log=e.log),this.octokit=new t(n),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),e.webhooks?this.webhooks=yp(this.octokit,e.webhooks):Object.defineProperty(this,`webhooks`,{get(){throw Error(`[@octokit/app] webhooks option not set`)}}),e.oauth?this.oauth=new Yf({...e.oauth,clientType:`github-app`,Octokit:t}):Object.defineProperty(this,`oauth`,{get(){throw Error(`[@octokit/app] oauth.clientId / oauth.clientSecret options are not set`)}}),this.getInstallationOctokit=bp.bind(null,this),this.eachInstallation=xp(this),this.eachRepository=wp(this),this.getInstallationUrl=Op(this)}},jp=gu.plugin(Ku,Cu,zu,ed,fd).defaults({userAgent:`octokit.js/0.0.0-development`,throttle:{onRateLimit:Mp,onSecondaryRateLimit:Np}});function Mp(e,t,n){if(n.log.warn(`Request quota exhausted for request ${t.method} ${t.url}`),t.request.retryCount===0)return n.log.info(`Retrying after ${e} seconds!`),!0}function Np(e,t,n){if(n.log.warn(`SecondaryRateLimit detected for request ${t.method} ${t.url}`),t.request.retryCount===0)return n.log.info(`Retrying after ${e} seconds!`),!0}Ap.defaults({Octokit:jp}),Yf.defaults({Octokit:jp});var Pp=function(e){return e[e.INFO=0]=`INFO`,e[e.SUCCESS=1]=`SUCCESS`,e[e.WARNING=2]=`WARNING`,e[e.ERROR=3]=`ERROR`,e[e.NO_LOG=1/0]=`NO_LOG`,e}(Pp||{}),$=new class{prefix=`Gitalk`;logLevel=Pp.WARNING;constructor({prefix:e,logLevel:t}){return e&&(this.prefix=e),t!==void 0&&(this.logLevel=t),this}i(...e){this.logLevel>Pp.INFO||console.info(`%c ${this.prefix} [INFO] `,`color:#111 ;background-color: #f9fafb;`,...e)}s(...e){this.logLevel>Pp.SUCCESS||console.info(`%c ${this.prefix} [SUCCESS] `,`color:#111 ;background-color: #84cc16;`,...e)}w(...e){this.logLevel>Pp.WARNING||console.warn(`%c ${this.prefix} [WARNING] `,`color:#eee ;background-color:#c2410c;`,...e)}e(...e){this.logLevel>Pp.ERROR||console.error(`%c ${this.prefix} [ERROR] `,`color:#eee ;background-color:#dc2626;`,...e)}}({}),Fp=e=>{let t=new jp(e?{auth:e}:{});return t.hook.error(`request`,e=>{throw e.status===401&&(localStorage.removeItem(fr),$.w(`Access token expired.`)),e}),t},Ip=(e=location.search)=>{let t={};return e&&(e[0]===`?`?e.substring(1):e).split(`&`).forEach(e=>{let[n,r]=e.split(`=`);n&&(t[decodeURIComponent(n)]=decodeURIComponent(r||``))}),t},Lp=e=>Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t]||``)}`).join(`&`),Rp=e=>`https://github.com/login/oauth/authorize?${Lp({client_id:e,redirect_uri:window.location.href,scope:`public_repo`})}`,zp=async({url:e,code:t,clientID:n,clientSecret:r})=>{let{access_token:i}=await(await fetch(e,{method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({code:t,client_id:n,client_secret:r})})).json();return i},Bp=(()=>{let e=`--supports-css-variables`,t=`1rem`;try{let n=document.createElement(`div`);return n.style.setProperty(e,t),n.style.getPropertyValue(e)===t}catch(e){return $.e(`An error occurred while checking browser compatibility with CSS variables:`,e),!1}})()&&(()=>{try{return typeof BigInt<`u`&&typeof Promise.allSettled==`function`&&typeof String.prototype.matchAll==`function`}catch(e){return $.e(`An error occurred while checking browser compatibility with ES2020:`,e),!1}})();e.DEFAULT_FLIP_MOVE_OPTIONS=cr,e.default=e=>{let{clientID:r,clientSecret:i,owner:a,repo:o,admin:s,id:c=location.host+location.pathname,number:l,labels:u=sr,title:d=document.title,body:f=location.href+`
|
|
123
|
-
|
|
124
|
-
`+(document?.querySelector(`meta[name="description"]`)?.getAttribute(`content`)??``),language:p=navigator.language,perPage:m=10,pagerDirection:h=`last`,createIssueManually:g=!1,enableHotKey:_=!0,distractionFreeMode:v=!1,flipMoveOptions:y=cr,proxy:b=lr,defaultUser:x,defaultAuthor:S,collapsedHeight:C,highlightAdminComment:ee=!0,updateCountCallback:te,onCreateIssue:ne,onCreateComment:re,className:ie=``,...ae}=e,[w,oe]=(0,t.useState)(),T=(0,t.useMemo)(()=>l&&l>0?l:void 0,[l]),E=(0,t.useMemo)(()=>c.slice(0,50),[c]),D=(0,t.useMemo)(()=>u.concat([E]),[u,E]),se=(0,t.useRef)(null),[O,ce]=(0,t.useState)(``),[le,ue]=(0,t.useState)(!1),[de,fe]=(0,t.useState)(0),[pe,k]=(0,t.useState)(``),[A,me]=(0,t.useState)(1),he=(0,t.useMemo)(()=>m>100?100:m<0?10:m,[m]),[j,M]=(0,t.useState)(h),ge=(0,t.useMemo)(()=>x||(S?{avatar_url:S.avatarUrl,login:S.login,html_url:S.url}:dr),[S,x]),_e=C&&C>0?C:void 0,[N,P]=(0,t.useState)(``),F=(0,t.useMemo)(()=>Xa(p),[p]),ve=(0,t.useMemo)(()=>({language:p,polyglot:F,dateFnsLocaleMap:pr}),[p,F]),{data:I=localStorage.getItem(`GT_ACCESS_TOKEN`)??void 0,mutate:ye,loading:L,run:be}=rs(async e=>await zp({url:b,code:e,clientID:r,clientSecret:i}),{manual:!0,ready:!!b&&!!r&&!!i,onSuccess:e=>{localStorage.setItem(fr,e),$.s(`Get access token successfully:`,e)},onError:e=>{P(`An error occurred while getting access token: ${e}`),$.e(`An error occurred while getting access token:`,e)}});(0,t.useEffect)(()=>{let e=Ip(),t=e.code;if(t&&!I){delete e.code;let n=`${window.location.origin}${window.location.pathname}?${Lp(e)}${window.location.hash}`;history.replaceState(null,``,n),be(t)}},[I,be]);let R=(0,t.useMemo)(()=>Fp(I),[I]),{data:z,mutate:xe,loading:Se}=rs(async()=>{let e=await R.request(`GET /user`);if(e.status===200){let t=e.data;return $.s(`Login successfully:`,t),t}else{localStorage.removeItem(fr),ye(void 0),$.e(`Get user details with access token failed:`,e);return}},{ready:!!I,refreshDeps:[I]}),Ce=(0,t.useMemo)(()=>z&&!!s.find(e=>e.toLowerCase()===z.login.toLocaleLowerCase()),[s,z]),{loading:B,run:V}=rs(async()=>{$.i(`Creating issue...`);let e=await R.request(`POST /repos/{owner}/{repo}/issues`,{owner:a,repo:o,title:d,labels:D,body:f});if(e.status===201){let t=e.data;$.s(`Create issue successfully:`,t),ne?.(t),oe(t)}else P(`Create issue failed: ${e}`),$.e(`Create issue failed:`,e)},{manual:!0,ready:!!Ce&&!!a&&!!o&&!!d&&!!D.length}),{loading:H}=rs(async()=>{if(T){let e=await R.request(`GET /repos/{owner}/{repo}/issues/{issue_number}`,{owner:a,repo:o,issue_number:T});if(e.status===200){let t=e.data;$.s(`Locate issue ${T} in repository ${a}/${o} successfully:`,t),oe(t)}else e.status===404?($.w(`Issue ${T} in repository ${a}/${o} was not found.`),Ce&&!g&&V()):(P(`Get issue ${T} in repository ${a}/${o} failed: ${e}`),$.e(`Get issue ${T} in repository ${a}/${o} failed:`,e))}else if(E){let e=await R.request(`GET /repos/{owner}/{repo}/issues`,{owner:a,repo:o,labels:D.join(`,`),per_page:1}),{status:t,data:n=[]}=e;if(t===200)if(n.length){let e=n[0];$.s(`Locate issue with labels ${D} in repository ${a}/${o} successfully:`,e),oe(e)}else $.w(`Issue with labels ${D} in repository ${a}/${o} was not found.`),Ce&&!g&&V();else t===404?($.w(`Issue with labels ${D} in repository ${a}/${o} was not found.`),Ce&&!g&&V()):(P(`Get issue with labels ${D} in repository ${a}/${o} failed: ${e}`),$.e(`Get issue with labels ${D} in repository ${a}/${o} failed:`,e))}},{ready:!!a&&!!o&&(!!T||!!E),refreshDeps:[a,o,T,E],onBefore:()=>{oe(void 0)}}),{data:U=[],mutate:we,run:W,loading:Te}=rs(async()=>{let{number:e}=w,t=(A-1)*he+1,n=A*he;if(z){let r=Rc({pagerDirection:j}),i=await R.graphql(r,{owner:a,repo:o,id:e,pageSize:he,...pe?{cursor:pe}:{}});if(i.repository){let e=i.repository.issue.comments.nodes.map(e=>({...e,id:e.databaseId,user:{...ge,avatar_url:e.author.avatarUrl,login:e.author.login,html_url:e.author.url},body_html:e.bodyHTML,created_at:e.createdAt,html_url:e.resourcePath,reactions:{heart:e.reactions?.totalCount??0},reactionsHeart:e.reactions}));$.s(`Get comments from ${t} to ${n} successfully:`,e);let r=i.repository.issue.comments.pageInfo;return k(r.startCursor||r.endCursor||``),j===`last`?[...e,...U]:[...U,...e]}else P(`Get comments from ${t} to ${n} failed: ${i}`),$.e(`Get comments from ${t} to ${n} failed:`,i)}else{let r=await R.request(`GET /repos/{owner}/{repo}/issues/{issue_number}/comments`,{owner:a,repo:o,issue_number:e,page:A,per_page:he,headers:{accept:`application/vnd.github.v3.full+json`}});if(r.status===200){let e=r.data.map(e=>{let t=e.reactions?.heart??0;return{...ge,...e,reactionsHeart:{totalCount:t,viewerHasReacted:!1,nodes:[]}}});return $.s(`Get comments from ${t} to ${n} successfully:`,e),me(e=>e+1),[...U,...e]}else P(`Get comments from ${t} to ${n} failed: ${r}`),$.e(`Get comments from ${t} to ${n} failed:`,r)}return U},{manual:!0,ready:!!a&&!!o&&!!w&&!Se}),{data:Ee=[],mutate:De,loading:Oe,runAsync:ke}=rs(async()=>{let{number:e}=w,t=await R.request(`POST /repos/{owner}/{repo}/issues/{issue_number}/comments`,{owner:a,repo:o,issue_number:e,body:O,headers:{accept:`application/vnd.github.v3.full+json`}});if(t.status===201){let e={...ge,...t.data,reactions:{heart:0},reactionsHeart:{totalCount:0,viewerHasReacted:!1,nodes:[]}};return $.s(`Create issue comment successfully.`),ce(``),fe(e=>e+1),re?.(e),Ee.concat([e])}else return P(`Create issue comment failed: ${t}`),$.e(`Create issue comment failed:`,t),Ee},{manual:!0,ready:!!a&&!!o&&!!w&&!!O});(0,t.useEffect)(()=>{we([]),fe(w?.comments??0),k(``),me(1),De([]),setTimeout(()=>{W()})},[w,W,we,De]),(0,t.useEffect)(()=>{we([]),k(``),me(1),setTimeout(()=>{W()})},[z,j,we,W]);let Ae=(0,t.useMemo)(()=>{let e=[],t=new Set;for(let n of U.concat(Ee))t.has(n.id)||(t.add(n.id),e.push(n));return z&&j===`last`&&e.reverse(),e},[U,j,Ee,z]);(0,t.useEffect)(()=>{te?.(de)},[de,te]);let{loading:je,run:Me}=rs(async(e,t,n)=>{let r=n,i=-1;if(e){let e=await R.request(`POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`,{owner:a,repo:o,comment_id:t,content:`heart`});if(e.status===201)$.s(`You like the comment!`),i=e.data.id;else if(e.status===200)$.i(`You already liked the comment!`);else{$.e(`Failed to like the comment.`);return}}else if(n)if((await R.request(`DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}`,{owner:a,repo:o,comment_id:t,reaction_id:n})).status===204)$.s(`You unlike the comment.`);else{$.e(`Failed to unlike the comment.`);return}else{$.e(`Reaction ID is not provided.`);return}let s=!1,c=U.find(e=>e.id===t);if(c||(c=Ee.find(e=>e.id===t),s=!0),c){let t=z.login,n=c.reactions?.heart??0,a=e?n+1:n-1,o=c.reactionsHeart?.nodes??[],s=e?o.concat([{databaseId:i,user:{login:t}}]):o.filter(e=>e.databaseId!==r);c.reactions={heart:a},c.reactionsHeart={totalCount:a,viewerHasReacted:e,nodes:s}}s?De(e=>[...e??[]]):we(e=>[...e??[]])},{manual:!0,ready:!!a&&!!o&&!!z}),Ne=(0,t.useMemo)(()=>!L&&!Se&&!B&&!H,[B,L,H,Se]),Pe=(0,t.useMemo)(()=>Ne&&!!w,[Ne,w]),Fe=()=>{let e=Rp(r);window.location.href=e},Ie=()=>{ye(void 0),localStorage.removeItem(fr),xe(void 0)},Le=e=>{if(!v)return e.preventDefault();ue(!0)},Re=e=>{if(!v)return e.preventDefault();ue(!1)};(0,t.useEffect)(()=>{let e=se.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight+2}px`)},[O]);let ze=e=>{_&&(e.metaKey||e.ctrlKey)&&e.keyCode===13&&ke()},Be=(0,t.useCallback)(e=>{let{body:t=``,user:n}=e,r=t.split(`
|
|
125
|
-
`),i=n?.login;i&&r.unshift(`@${i}`),r=r.map(e=>`> ${e}`),ce(e=>(e&&r.unshift(``,``),r.push(``),`${e}${r.join(`
|
|
126
|
-
`)}`)),setTimeout(()=>{se.current?.focus()})},[]);return Bp?r&&i?o&&a?Array.isArray(s)&&s.length>0?(0,n.jsx)(cs.Provider,{value:ve,children:(0,n.jsxs)(`div`,{className:(0,is.default)(`gt-container`,{"gt-input-focused":le},ie),...ae,children:[N&&(0,n.jsx)(`div`,{className:`gt-error`,children:N}),Ne?Pe?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Lc,{issue:w,user:z,commentsCount:de,pagerDirection:j,onPagerDirectionChange:M,onLogin:Fe,onLogout:Ie}),(0,n.jsx)(ds,{ref:se,value:O,onChange:e=>ce(e.target.value),onFocus:Le,onBlur:Re,onKeyDown:ze,placeholder:F.t(`leave-a-comment`),octokit:R,user:z,onLogin:Fe,onCreateComment:async()=>{await ke()},createCommentLoading:Oe,onPreviewError:e=>{P(`Preview rendered comment failed: ${e}`),$.e(`Preview rendered comment failed:`,e)}}),(0,n.jsx)(Pc,{comments:Ae,commentsCount:de,onGetComments:W,getCommentsLoading:Te,flipMoveOptions:y,user:z,admin:s,onReply:Be,onLike:Me,likeLoading:je,collapsedHeight:_e,highlightAdminComment:ee})]}):(0,n.jsxs)(`div`,{className:`gt-no-init`,children:[(0,n.jsx)(`p`,{dangerouslySetInnerHTML:{__html:F.t(`no-found-related`,{link:`<a href="https://github.com/${a}/${o}/issues" target="_blank" rel="noopener noreferrer">Issues</a>`})}}),(0,n.jsx)(`p`,{children:F.t(`please-contact`,{user:s.map(e=>`@${e}`).join(` `)})}),Ce?(0,n.jsx)(`p`,{children:(0,n.jsx)(as,{onClick:V,isLoading:B,text:F.t(`init-issue`)})}):null,!z&&(0,n.jsx)(as,{className:`gt-btn-login`,onClick:Fe,text:F.t(`login-with-github`)})]},`no-init`):(0,n.jsxs)(`div`,{className:`gt-initing`,children:[(0,n.jsx)(`i`,{className:`gt-loader`}),(0,n.jsx)(`p`,{className:`gt-initing-text`,children:F.t(`init`)})]})]})}):($.e("You must specify the `admin` for the Github repository"),null):($.e("You must specify the `owner` and `repo` of Github"),null):($.e("You must specify the `clientId` and `clientSecret` of Github APP"),null):($.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)}});
|