(function(){"use strict";var m={},h={};function n(e){var f=h[e];if(f!==void 0)return f.exports;var t=h[e]={exports:{}};return m[e](t,t.exports,n),t.exports}n.m=m,(function(){var e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},f;n.t=function(t,o){if(o&1&&(t=this(t)),o&8||typeof t=="object"&&t&&(o&4&&t.__esModule||o&16&&typeof t.then=="function"))return t;var i=Object.create(null);n.r(i);var a={};f=f||[null,e({}),e([]),e(e)];for(var r=o&2&&t;(typeof r=="object"||typeof r=="function")&&!~f.indexOf(r);r=e(r))Object.getOwnPropertyNames(r).forEach(function(s){a[s]=function(){return t[s]}});return a.default=function(){return t},n.d(i,a),i}})(),(function(){n.d=function(e,f){for(var t in f)n.o(f,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})}})(),(function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(f,t){return n.f[t](e,f),f},[]))}})(),(function(){n.u=function(e){if(e==="swagger-ui")return"js/"+e+".951dd583.js"}})(),(function(){n.miniCssF=function(e){return"css/"+e+".28593a15.css"}})(),(function(){n.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){n.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)}})(),(function(){var e={},f="forgejo:";n.l=function(t,o,i,a){if(e[t]){e[t].push(o);return}var r,s;if(i!==void 0)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var l=c[u];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==f+i){r=l;break}}r||(s=!0,r=document.createElement("script"),r.charset="utf-8",n.nc&&r.setAttribute("nonce",n.nc),r.setAttribute("data-webpack",f+i),r.src=t),e[t]=[o];var d=function(b,g){r.onerror=r.onload=null,clearTimeout(p);var w=e[t];if(delete e[t],r.parentNode&&r.parentNode.removeChild(r),w&&w.forEach(function(v){return v(g)}),b)return b(g)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=d.bind(null,r.onerror),r.onload=d.bind(null,r.onload),s&&document.head.appendChild(r)}})(),(function(){n.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(function(){var e;n.g.importScripts&&(e=n.g.location+"");var f=n.g.document;if(!e&&f&&(f.currentScript&&f.currentScript.tagName.toUpperCase()==="SCRIPT"&&(e=f.currentScript.src),!e)){var t=f.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(function(){if(!(typeof document>"u")){var e=function(i,a,r,s,c){var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",n.nc&&(u.nonce=n.nc);var l=function(d){if(u.onerror=u.onload=null,d.type==="load")s();else{var p=d&&d.type,b=d&&d.target&&d.target.href||a,g=new Error("Loading CSS chunk "+i+` failed.
(`+p+": "+b+")");g.name="ChunkLoadError",g.code="CSS_CHUNK_LOAD_FAILED",g.type=p,g.request=b,u.parentNode&&u.parentNode.removeChild(u),c(g)}};return u.onerror=u.onload=l,u.href=a,r?r.parentNode.insertBefore(u,r.nextSibling):document.head.appendChild(u),u},f=function(i,a){for(var r=document.getElementsByTagName("link"),s=0;s<r.length;s++){var c=r[s],u=c.getAttribute("data-href")||c.getAttribute("href");if(c.rel==="stylesheet"&&(u===i||u===a))return c}for(var l=document.getElementsByTagName("style"),s=0;s<l.length;s++){var c=l[s],u=c.getAttribute("data-href");if(u===i||u===a)return c}},t=function(i){return new Promise(function(a,r){var s=n.miniCssF(i),c=n.p+s;if(f(s,c))return a();e(i,c,null,a,r)})},o={swagger:0};n.f.miniCss=function(i,a){var r={"swagger-ui":1};o[i]?a.push(o[i]):o[i]!==0&&r[i]&&a.push(o[i]=t(i).then(function(){o[i]=0},function(s){throw delete o[i],s}))}}})(),(function(){var e={swagger:0};n.f.j=function(o,i){var a=n.o(e,o)?e[o]:void 0;if(a!==0)if(a)i.push(a[2]);else{var r=new Promise(function(l,d){a=e[o]=[l,d]});i.push(a[2]=r);var s=n.p+n.u(o),c=new Error,u=function(l){if(n.o(e,o)&&(a=e[o],a!==0&&(e[o]=void 0),a)){var d=l&&(l.type==="load"?"missing":l.type),p=l&&l.target&&l.target.src;c.message="Loading chunk "+o+` failed.
(`+d+": "+p+")",c.name="ChunkLoadError",c.type=d,c.request=p,a[1](c)}};n.l(s,u,"chunk-"+o,o)}};var f=function(o,i){var a=i[0],r=i[1],s=i[2],c,u,l=0;if(a.some(function(p){return e[p]!==0})){for(c in r)n.o(r,c)&&(n.m[c]=r[c]);if(s)var d=s(n)}for(o&&o(i);l<a.length;l++)u=a[l],n.o(e,u)&&e[u]&&e[u][0](),e[u]=0},t=self.webpackChunkforgejo=self.webpackChunkforgejo||[];t.forEach(f.bind(null,0)),t.push=f.bind(null,t.push.bind(t))})();var y={};(function(){window.addEventListener("load",async()=>{const[{default:e}]=await Promise.all([n.e("swagger-ui").then(n.t.bind(n,"./node_modules/swagger-ui-dist/swagger-ui-es-bundle.js",19)),n.e("swagger-ui").then(n.bind(n,"./node_modules/swagger-ui-dist/swagger-ui.css"))]),f=document.getElementById("swagger-ui").getAttribute("data-source"),o=await(await fetch(f)).json(),i=window.location.protocol.slice(0,-1);o.schemes.sort((r,s)=>r===i?-1:s===i?1:0);const a=e({spec:o,dom_id:"#swagger-ui",deepLinking:!0,docExpansion:"none",defaultModelRendering:"model",presets:[e.presets.apis],plugins:[e.plugins.DownloadUrl]});window.ui=a})})()})();
