1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9],{59635:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/spec/[id]",function(){return t(53291)}])},3303:function(e,n,t){"use strict";var r=t(43010),o=t(51626),i=t(85170),a=t(12402),c=t.n(a);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){l(e,n,t[n])}))}return e}function s(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var f=i.memo,d=i.forwardRef,p=i.useCallback;function g(e){var n=e.children,t=e.label,o=e.text,i=e.start;return(0,r.jsxs)(r.Fragment,{children:[i?(0,r.jsx)("span",{className:c().btnStart,children:"function"===typeof i?i():i}):null,n||t||o]})}n.Z=f(d((function(e,n){var t=e.onClick,i=e.isLoading,a=e.kind,f=void 0===a?"primary":a,d=s(e,["onClick","isLoading","kind"]),h=p((function(e){i||t&&t(e)}),[i,t]),b=(0,o.Z)(c().btn,l({},c().minimal,"minimal"===f));return(0,r.jsx)("button",{className:b,ref:n,onClick:h,children:(0,r.jsx)(g,u({},d))})})))},62672:function(e,n,t){"use strict";t.d(n,{Og:function(){return i}});var r=t(43010),o=t(86988);function i(e){return(0,r.jsxs)(o.default,{children:[(0,r.jsx)("title",{children:e.title||"Swagger Viewer"}),(0,r.jsx)("link",{rel:"icon",href:"/sw144.png",sizes:"144x144"}),(0,r.jsx)("meta",{name:"application-name",content:"Swagger Viewer"}),(0,r.jsx)("meta",{name:"description",content:"Swagger Viewer"}),(0,r.jsx)("meta",{name:"theme-color",content:"#202020"}),(0,r.jsx)("meta",{property:"og:image",content:e.ogImageUrl||"https://repository-images.githubusercontent.com/196245690/b79fb280-58db-11ea-92b1-12f9f0132d03"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:title",content:"Swagger Viewer"}),(0,r.jsx)("meta",{property:"og:url",content:"https://swagger-viewer.now.sh"}),(0,r.jsx)("meta",{property:"og:description",content:"View your swagger spec in an organized way."})]})}},42114:function(e,n,t){"use strict";t.d(n,{Jx:function(){return a},_j:function(){return l},hN:function(){return u}});var r=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function o(e){var n,t,o,i="string"===typeof e?(new TextEncoder).encode(e):(n=e,(null!=(t=Uint8Array)&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](n):n instanceof t)?e:new Uint8Array(e)),a="",c=i.length;for(o=2;o<c;o+=3)a+=r[i[o-2]>>2],a+=r[(3&i[o-2])<<4|i[o-1]>>4],a+=r[(15&i[o-1])<<2|i[o]>>6],a+=r[63&i[o]];return o===c+1&&(a+=r[i[o-2]>>2],a+=r[(3&i[o-2])<<4],a+="=="),o===c&&(a+=r[i[o-2]>>2],a+=r[(3&i[o-2])<<4|i[o-1]>>4],a+=r[(15&i[o-1])<<2],a+="="),a}function i(e){for(var n=atob(e),t=n.length,r=new Uint8Array(t),o=0;o<t;o++)r[o]=n.charCodeAt(o);return r}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new TextDecoder("utf-8");return n.decode(i(e))}function c(e){return function(e){if(e.length%4===2)return e+"==";if(e.length%4===3)return e+"=";if(e.length%4===1)throw new TypeError("Illegal base64url string!");return e}(e).replace(/\-/g,"+").replace(/_/g,"/")}function l(e){return o(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function u(e){return a(c(e))}},57256:function(e,n,t){"use strict";t.d(n,{U:function(){return r}});var r={githubFileUrl:/^https:\/\/github\.com\/([^\s/]+)\/([^\s/]+)\/blob\/([^\s/]+)\/([^\s]+)$/,githubRawFileUrl:/^https:\/\/raw\.githubusercontent\.com\/([^\s/]+)\/([^\s/]+)\/([^\s/]+)\/([^\s\?]+)(\?token=\w+)?$/}},53291:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return A},default:function(){return C}});var r=t(43010),o=(t(41137),t(80487)),i=t(83092),a=t(85170),c=t(79462),l=t(3303),u=t(39559);function s(e){var n=e.repo,t=e.owner+"/"+n;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{children:"File Not Found"}),(0,r.jsxs)("p",{children:["If"," ",(0,r.jsx)("a",{href:"https://github.com/"+t,target:"_blank",rel:"noopener noreferrer",children:t}
1)," ","is a private repo, please login with GitHub first."]}),(0,r.jsx)("p",{style:{color:"#666"},children:(0,r.jsx)("small",{children:"Your access token will be saved in your browser. The fetched API spec file content goes to your browser directly."})}),(0,r.jsx)("div",{children:(0,r.jsx)(l.Z,{start:(0,r.jsx)(c.Z,{size:20}),onClick:u._u,children:"Login with GitHub"})})]})}var f=t(13689),d=t.n(f),p=function(e){var n=e.height,t=n?{height:n}:{};return(0,r.jsx)("div",{className:d().loading,style:t,children:(0,r.jsx)("div",{className:"loading1"})})},g=t(62672),h=t(78677),b=t(37094),m=t.n(b),y=t(30260),j=t(39674),w=t.n(j);function x(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:w().root,children:[(0,r.jsx)("div",{className:w().up,children:(0,r.jsx)(m(),{href:"/",children:(0,r.jsx)("a",{className:w().a,children:(0,r.jsx)(y.Z,{size:32})})})}),(0,r.jsx)("div",{className:w().down})]})})}var v=t(42114),_=t(57256);function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){O(e,n,t[n])}))}return e}function I(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N=a.useCallback,P=a.useState,E=a.useEffect,F=a.Suspense,U=a.lazy((function(){return Promise.all([t.e(931),t.e(433),t.e(121)]).then(t.bind(t,68056))})),A=!0;function C(e){var n=(0,i.useRouter)(),t=(0,h.I0)(),a=e.url||decodeURIComponent(v.hN(n.query.id)),c=I(P({}),2),l=c[0],f=c[1],d=I(P(),2),b=d[0],m=d[1],y=I(P(),2),j=y[0],w=y[1];E((function(){if(a){var e=_.U.githubFileUrl.exec(a);if(e){var n=I(e,5),t={owner:n[1],repo:n[2],ref:n[3],path:n[4]};(0,u.GL)(t).then((function(e){var n=v.Jx(e.content),t=o.ZP.load(n);f({spec:t})}),(function(e){404===e.status&&m({notFound:t})}))}else f({url:a})}}),[l.url,a]);var S=N((function(e){var n=e.getState(),r=n.getIn(["spec","json","info","title"]),o=n.getIn(["spec","url"])||a;t&&t({type:"SpecLoaded",payload:{title:r,url:o}}),w(r)}),[t,a,w]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Og,{title:j,ogImageUrl:e.ogImageUrl}),(0,r.jsx)(x,{}),l.spec||l.url?(0,r.jsx)(F,{fallback:(0,r.jsx)(p,{height:100}),children:(0,r.jsx)(U,k({},l,{onComplete:S}))}):b?b.notFound?(0,r.jsx)("div",{style:{maxWidth:500,margin:"0 auto"},children:(0,r.jsx)(s,{owner:b.notFound.owner,repo:b.notFound.repo})}):null:(0,r.jsx)(p,{height:100})]})}},13689:function(e){e.exports={loading:"Loading_loading__rvWyR"}},12402:function(e){e.exports={btn:"Button_btn__l8jRX",minimal:"Button_minimal__lnAV9",btnStart:"Button_btnStart__jkRTd"}},39674:function(e){e.exports={root:"SpecHeader_root__IWu2W",up:"SpecHeader_up__Er7_G",a:"SpecHeader_a__9Ea3r",down:"SpecHeader_down__1alDB"}}},function(e){e.O(0,[112,510,774,888,179],(function(){return n=59635,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.