(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;ti?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let g=i.default.forwardRef(function(e,t){let n,r;let{href:u,as:v,children:g,prefetch:E=null,passHref:O,replace:j,shallow:_,scroll:C,locale:w,onClick:N,onMouseEnter:T,onTouchStart:P,legacyBehavior:k=!1,...S}=e;n=g,k&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let R=i.default.useContext(f.RouterContext),L=i.default.useContext(p.AppRouterContext),M=null!=R?R:L,A=!R,D=!1!==E,H=null===E?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:I,as:U}=i.default.useMemo(()=>{if(!R){let e=x(u);return{href:e,as:v?x(v):e}}let[e,t]=(0,s.resolveHref)(R,u,!0);return{href:e,as:v?(0,s.resolveHref)(R,v):t||e}},[R,u,v]),V=i.default.useRef(I),F=i.default.useRef(U);k&&(r=i.default.Children.only(n));let q=k?r&&"object"==typeof r&&r.ref:t,[W,K,Z]=(0,d.useIntersection)({rootMargin:"200px"}),B=i.default.useCallback(e=>{(F.current!==U||V.current!==I)&&(Z(),F.current=U,V.current=I),W(e),q&&("function"==typeof q?q(e):"object"==typeof q&&(q.current=e))},[U,q,I,Z,W]);i.default.useEffect(()=>{M&&K&&D&&b(M,I,U,{locale:w},{kind:H},A)},[U,I,K,w,D,null==R?void 0:R.locale,M,A,H]);let z={ref:B,onClick(e){k||"function"!=typeof N||N(e),k&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,n,r,o,s,u,c,l){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!l&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==u||u;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};l?i.default.startTransition(p):p()}(e,M,I,U,j,_,C,w,A)},onMouseEnter(e){k||"function"!=typeof T||T(e),k&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(D||!A)&&b(M,I,U,{locale:w,priority:!0,bypassPrefetchedCheck:!0},{kind:H},A)},onTouchStart:function(e){k||"function"!=typeof P||P(e),k&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(D||!A)&&b(M,I,U,{locale:w,priority:!0,bypassPrefetchedCheck:!0},{kind:H},A)}};if((0,c.isAbsoluteUrl)(U))z.href=U;else if(!k||O||"a"===r.type&&!("href"in r.props)){let e=void 0!==w?w:null==R?void 0:R.locale,t=(null==R?void 0:R.isLocaleDomain)&&(0,h.getDomainLocale)(U,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales);z.href=t||(0,y.addBasePath)((0,l.addLocale)(U,e,null==R?void 0:R.defaultLocale))}return k?i.default.cloneElement(r,z):(0,o.jsx)("a",{...S,...z,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(7294),o=n(4474),i="function"==typeof IntersectionObserver,s=new Map,a=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!i,[l,f]=(0,r.useState)(!1),p=(0,r.useRef)(null),d=(0,r.useCallback)(e=>{p.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(c||l)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},a.push(n),s.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),s.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!l){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,l,p.current]),[d,l,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9610:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(5893);n(3434);var o=function(){return(0,r.jsxs)("ul",{className:"bg-bubbles",children:[(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{})]})},i=n(1664),s=n.n(i),a=n(1163),u=n(4379);function c(e){let{searchText:t,changeSearch:n}=e,i=()=>{var e=document.createElement("textarea");e.innerText=c,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove(),u.fn.info("URL successfully copied to clipboard","Copy URL",4e3)},c="https://registry.kasmweb.com/",l=(0,a.useRouter)();return(0,r.jsxs)("header",{className:"relative font-light overflow-hidden bg-gradient-to-tr from-[#162d48] to-[#2980b9] p-8 xl:px-32 text-white gap-5 md:gap-0 flex flex-wrap justify-center items-center",children:[(0,r.jsx)(o,{}),(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsx)("div",{className:"text-3xl",children:"Kasm Technologies"}),(0,r.jsxs)("div",{className:"text-sm uppercase w-full flex justify-between",children:[(0,r.jsx)("span",{className:"opacity-70",children:"W"}),(0,r.jsx)("span",{className:"opacity-70",children:"o"}),(0,r.jsx)("span",{className:"opacity-70",children:"r"}),(0,r.jsx)("span",{className:"opacity-70",children:"k"}),(0,r.jsx)("span",{className:"opacity-70",children:"s"}),(0,r.jsx)("span",{className:"opacity-70",children:"p"}),(0,r.jsx)("span",{className:"opacity-70",children:"a"}),(0,r.jsx)("span",{className:"opacity-70",children:"c"}),(0,r.jsx)("span",{className:"opacity-70",children:"e"}),(0,r.jsx)("span",{children:"\xa0"}),(0,r.jsx)("span",{className:"opacity-40",children:"R"}),(0,r.jsx)("span",{className:"opacity-40",children:"e"}),(0,r.jsx)("span",{className:"opacity-40",children:"g"}),(0,r.jsx)("span",{className:"opacity-40",children:"i"}),(0,r.jsx)("span",{className:"opacity-40",children:"s"}),(0,r.jsx)("span",{className:"opacity-40",children:"t"}),(0,r.jsx)("span",{className:"opacity-40",children:"r"}),(0,r.jsx)("span",{className:"opacity-40",children:"y"})]})]}),(0,r.jsxs)("nav",{className:"relative z-10 mx-12",children:[(0,r.jsx)("a",{href:"".concat(l.basePath).concat("/"),className:"p-4 inline-block rounded-full border border-solid"+("/"==l.pathname?" border-white/30":" border-transparent"),children:"Library"}),(0,r.jsx)(s(),{href:"/new/",className:"p-4 inline-block rounded-full border border-solid"+(l.pathname.startsWith("/new")?" bg-black/10 border-white/30":" border-transparent"),children:"New"})]}),(0,r.jsx)("div",{className:"grow flex justify-center relative z-10",children:(0,r.jsx)("div",{className:"bg-black/10 shadow border border-1 border-white/30 rounded flex w-full max-w-md",children:(0,r.jsx)("input",{name:"search",className:"bg-transparent shadow-inner text-lg font-light w-full p-4 placeholder:text-white/40",placeholder:"Search for workspace",type:"text",value:t,onChange:n})})}),(0,r.jsxs)("button",{className:"p-4 relative z-10 px-5 bg-[#162d48]/70 border-t border-white/20 border-solid hover:bg-slate-900 transition shadow-lg m-2 rounded items-center text-white/70 flex cursor-pointer",onClick:()=>{i()},children:[(0,r.jsx)("span",{className:"mr-3",children:"Workspace Registry Link"}),(0,r.jsx)("svg",{style:{height:"14px",fill:"#fff"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,r.jsx)("path",{d:"M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"})})]})]})}function l(){return(0,r.jsxs)("footer",{className:"flex justify-center items-center p-5 bg-gradient-to-tr text-white/80 text-sm from-[#162d48] to-[#2980b9]",children:["This registry is intended to work in conjuction with Kasm Workspaces.\xa0",(0,r.jsx)("a",{className:"underline",href:"https://kasmweb.com",children:"Click here to find out about Kasm Workspaces"})]})}function f(e){let{children:t,searchText:n,changeSearch:o}=e;return(0,r.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,r.jsx)(c,{searchText:n,changeSearch:o}),(0,r.jsx)("main",{className:"grow",children:t}),(0,r.jsx)(l,{}),(0,r.jsx)(u.mh,{})]})}n(7920);var p=n(7294),d=function(e){let{Component:t,pageProps:n}=e,[o,i]=(0,p.useState)("");return(0,r.jsx)(f,{searchText:o,changeSearch:e=>{i(e.target.value)},children:(0,r.jsx)(t,{searchText:o,...n})})}},5293:function(e){!function(){"use strict";var t={864:function(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,r){var o;function i(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,s,{once:!0}),"error"!==t&&(o={once:!0},"function"==typeof e.on&&y(e,"error",i,o))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,i,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=Array(e.length),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else for(var c=u.length,l=h(u,c),n=0;n=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},s=!0;try{t[e](i,i.exports,r),s=!1}finally{s&&delete n[e]}return i.exports}r.ab="//";var o=r(864);e.exports=o}()},7920:function(){},3434:function(){},1664:function(e,t,n){e.exports=n(8342)},1163:function(e,t,n){e.exports=n(3079)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9230:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(7294)),i=a(n(5697)),s=a(n(4184));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(a,e);var t,n,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=l(a);return e=t?Reflect.construct(n,arguments,l(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return c(e)}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=Array(t),r=0;r