create-appncy
Version:
Create projects as goncy would
1 lines • 5.96 kB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,76136,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},96844,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(18517)._(e.r(77571)),l=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",a=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(u.urlQueryToSearchParams(i)));let f=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),f&&"?"!==f[0]&&(f="?"+f),o=o.replace(/[?#]/g,encodeURIComponent),f=f.replace("#","%23"),`${n}${c}${o}${f}${a}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},28884,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(93930);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=u(e,n)),t&&(o.current=u(t,n))},[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88088,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return u}});let n=e.r(5671),o=e.r(97851);function u(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},82184,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},71428,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return _}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(18517),l=e.r(84948),a=u._(e.r(93930)),i=e.r(96844),c=e.r(97489),f=e.r(28884),s=e.r(5671),p=e.r(86734);e.r(76136);let d=e.r(44737),h=e.r(21487),y=e.r(88088),b=e.r(44967);function v(t){var r;let n,o,u,[v,_]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),m=(0,a.useRef)(null),{href:O,as:j,children:P,prefetch:T=null,passHref:C,replace:S,shallow:R,scroll:M,onClick:E,onMouseEnter:L,onTouchStart:U,legacyBehavior:k=!1,onNavigate:A,transitionTypes:x,ref:I,unstable_dynamicOnHover:w,...K}=t;n=P,k&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let $=a.default.useContext(c.AppRouterContext),B=!1!==T,D=!1!==T&&!0===T?b.FetchStrategy.Full:b.FetchStrategy.PPR,N="string"==typeof(r=j||O)?r:(0,i.formatUrl)(r);if(k){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=a.default.Children.only(n)}let F=k?o&&"object"==typeof o&&o.ref:I,q=a.default.useCallback(e=>(null!==$&&(m.current=(0,h.mountLinkInstance)(e,N,$,D,B,_)),()=>{m.current&&((0,h.unmountLinkForCurrentNavigation)(m.current),m.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,N,$,D,_]),z={ref:(0,f.useMergedRef)(q,F),onClick(t){k||"function"!=typeof E||E(t),k&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,o,u,l,i){if("u">typeof window){let c,{nodeName:f}=t.currentTarget;if("A"===f.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,y.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:s}=e.r(76851);a.default.startTransition(()=>{s(r,o?"replace":"push",!1===u?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,i)})}}(t,N,m,S,M,A,x)},onMouseEnter(e){k||"function"!=typeof L||L(e),k&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),$&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===w)},onTouchStart:function(e){k||"function"!=typeof U||U(e),k&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),$&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===w)}};return(0,s.isAbsoluteUrl)(N)?z.href=N:k&&!C&&("a"!==o.type||"href"in o.props)||(z.href=(0,p.addBasePath)(N)),u=k?a.default.cloneElement(o,z):(0,l.jsx)("a",{...K,...z,children:n}),(0,l.jsx)(g.Provider,{value:v,children:u})}e.r(82184);let g=(0,a.createContext)(h.IDLE_LINK_STATUS),_=()=>(0,a.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}]);