From c3f8a4f10d65fe17d1c4cd2de8b1280f52fa447d Mon Sep 17 00:00:00 2001 From: qinsong77 <35391584+qinsong77@users.noreply.github.com> Date: Fri, 5 Jan 2024 03:51:15 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20qinsong7?= =?UTF-8?q?7/webpack5-react-template@fa18b80bb66ebcf6ff0613207df6534cc8c8b?= =?UTF-8?q?5f7=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- favicon.ico | Bin 0 -> 3870 bytes index.html | 2 +- js/856.743c8815.chunk.js | 1 + js/main.48b664f7.bundle.js | 1 + js/main.d56c3976.bundle.js | 1 - js/runtime~main.3814c30d.bundle.js | 1 - js/runtime~main.676da801.bundle.js | 1 + js/vendors.2915f51d.bundle.js | 2 -- js/vendors.9fa72238.bundle.js | 2 ++ ...xt => vendors.9fa72238.bundle.js.LICENSE.txt} | 0 logo192.png | Bin 0 -> 5347 bytes logo512.png | Bin 0 -> 9664 bytes mockServiceWorker.js | 1 + 13 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 favicon.ico create mode 100644 js/856.743c8815.chunk.js create mode 100644 js/main.48b664f7.bundle.js delete mode 100644 js/main.d56c3976.bundle.js delete mode 100644 js/runtime~main.3814c30d.bundle.js create mode 100644 js/runtime~main.676da801.bundle.js delete mode 100644 js/vendors.2915f51d.bundle.js create mode 100644 js/vendors.9fa72238.bundle.js rename js/{vendors.2915f51d.bundle.js.LICENSE.txt => vendors.9fa72238.bundle.js.LICENSE.txt} (100%) create mode 100644 logo192.png create mode 100644 logo512.png create mode 100644 mockServiceWorker.js diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..a11777cc471a4344702741ab1c8a588998b1311a GIT binary patch literal 3870 zcma);c{J4h9>;%nil|2-o+rCuEF-(I%-F}ijC~o(k~HKAkr0)!FCj~d>`RtpD?8b; zXOC1OD!V*IsqUwzbM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xU)ts!4XsJrCycrWSI?e!IqwqIR8+Jh zlRjZ`UO1I!BtJR_2~7AbkbSm%XQqxEPkz6BTGWx8e}nQ=w7bZ|eVP4?*Tb!$(R)iC z9)&%bS*u(lXqzitAN)Oo=&Ytn>%Hzjc<5liuPi>zC_nw;Z0AE3Y$Jao_Q90R-gl~5 z_xAb2J%eArrC1CN4G$}-zVvCqF1;H;abAu6G*+PDHSYFx@Tdbfox*uEd3}BUyYY-l zTfEsOqsi#f9^FoLO;ChK<554qkri&Av~SIM*{fEYRE?vH7pTAOmu2pz3X?Wn*!ROX ztd54huAk&mFBemMooL33RV-*1f0Q3_(7hl$<#*|WF9P!;r;4_+X~k~uKEqdzZ$5Al zV63XN@)j$FN#cCD;ek1R#l zv%pGrhB~KWgoCj%GT?%{@@o(AJGt*PG#l3i>lhmb_twKH^EYvacVY-6bsCl5*^~L0 zonm@lk2UvvTKr2RS%}T>^~EYqdL1q4nD%0n&Xqr^cK^`J5W;lRRB^R-O8b&HENO||mo0xaD+S=I8RTlIfVgqN@SXDr2&-)we--K7w= zJVU8?Z+7k9dy;s;^gDkQa`0nz6N{T?(A&Iz)2!DEecLyRa&FI!id#5Z7B*O2=PsR0 zEvc|8{NS^)!d)MDX(97Xw}m&kEO@5jqRaDZ!+%`wYOI<23q|&js`&o4xvjP7D_xv@ z5hEwpsp{HezI9!~6O{~)lLR@oF7?J7i>1|5a~UuoN=q&6N}EJPV_GD`&M*v8Y`^2j zKII*d_@Fi$+i*YEW+Hbzn{iQk~yP z>7N{S4)r*!NwQ`(qcN#8SRQsNK6>{)X12nbF`*7#ecO7I)Q$uZsV+xS4E7aUn+U(K baj7?x%VD!5Cxk2YbYLNVeiXvvpMCWYo=by@ literal 0 HcmV?d00001 diff --git a/index.html b/index.html index 233f77b..16705c8 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -webpack react app
\ No newline at end of file +webpack react app
\ No newline at end of file diff --git a/js/856.743c8815.chunk.js b/js/856.743c8815.chunk.js new file mode 100644 index 0000000..85647d2 --- /dev/null +++ b/js/856.743c8815.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebpack5_react_template=self.webpackChunkwebpack5_react_template||[]).push([[856],{2856:function(e,t,a){a.d(t,{worker:function(){return d}});var i=a(7052),s=a(6479),o=a(6237),n=a(8205),r=a(9618);const c=[s.d.get("https://api.example.com/user",(()=>o.Z.json({firstName:"John",lastName:"Maverick"}))),n.B.query("ListMovies",(()=>o.Z.json({data:{movies:[{title:"The Lord of The Rings"},{title:"The Matrix"},{title:"Star Wars: The Empire Strikes Back"}]}}))),s.d.get("/move/list",(()=>o.Z.json({data:{movies:[{id:"6c6dba95-e027-4fe2-acab-e8c155a7f0ff",title:"The Lord of The Rings"},{id:"a2ae7712-75a7-47bb-82a9-8ed668e00fe3",title:"The Matrix"},{id:"916fa462-3903-4656-9e76-3f182b37c56f",title:"Star Wars: The Empire Strikes Back"}]}}))),s.d.get("/api/customer/getPackageLocation",(async e=>{let{params:t}=e;return await(0,r.gw)(5e3),o.Z.json({id:t.id,latitude:121,longitude:33})})),s.d.get("/api/v3/pet/findByStatus",(async e=>{let{params:t}=e;const{status:a}=t;return console.log("/api/v3/pet/findByStatus:"+a),await(0,r.gw)(2e3),o.Z.json([{id:10,name:"doggie",category:{id:1,name:"Dogs"},photoUrls:["string"],tags:[{id:0,name:"string"}],status:"available"}])})),s.d.get("https://5a2f495fa871f00012678d70.mockapi.io/api/payment-methods",(async e=>{let{params:t}=e;return console.log(t?.countryCode),await(0,r.gw)(),o.Z.json([{name:"apple",countryCode:"AU",id:"1"},{name:"google",countryCode:"AU",id:"2"}])}))],d=(0,i.L)(...c)}}]); \ No newline at end of file diff --git a/js/main.48b664f7.bundle.js b/js/main.48b664f7.bundle.js new file mode 100644 index 0000000..2de4518 --- /dev/null +++ b/js/main.48b664f7.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebpack5_react_template=self.webpackChunkwebpack5_react_template||[]).push([[179],{5697:function(e,t,s){var l=s(959),r=s(4478),a=s(4075),n=s(1158),i=s(7480),o=s(2487),c=s(1527);const u=()=>(0,c.jsx)("footer",{className:"bg-blueGray-200 relative pb-6 pt-8",children:(0,c.jsxs)("div",{className:"container mx-auto px-4",children:[(0,c.jsxs)("div",{className:"flex flex-wrap text-left lg:text-left",children:[(0,c.jsxs)("div",{className:"w-full px-4 lg:w-6/12",children:[(0,c.jsx)("h4",{className:"fonat-semibold text-blueGray-700 text-3xl",children:"Let's keep in touch!"}),(0,c.jsx)("h5",{className:"text-blueGray-600 mb-2 mt-0 text-lg",children:"Find us on any of these platforms, we respond 1-2 business days."}),(0,c.jsxs)("div",{className:"mb-6 mt-6 lg:mb-0",children:[(0,c.jsx)("button",{className:"text-lightBlue-400 align-center mr-2 h-10 w-10 items-center justify-center rounded-full bg-white font-normal shadow-lg outline-none focus:outline-none",type:"button",children:(0,c.jsx)("i",{className:"fab fa-twitter"})}),(0,c.jsx)("button",{className:"text-lightBlue-600 align-center mr-2 h-10 w-10 items-center justify-center rounded-full bg-white font-normal shadow-lg outline-none focus:outline-none",type:"button",children:(0,c.jsx)("i",{className:"fab fa-facebook-square"})}),(0,c.jsx)("button",{className:"align-center mr-2 h-10 w-10 items-center justify-center rounded-full bg-white font-normal text-pink-400 shadow-lg outline-none focus:outline-none",type:"button",children:(0,c.jsx)("i",{className:"fab fa-dribbble"})}),(0,c.jsx)("button",{className:"text-blueGray-800 align-center mr-2 h-10 w-10 items-center justify-center rounded-full bg-white font-normal shadow-lg outline-none focus:outline-none",type:"button",children:(0,c.jsx)("i",{className:"fab fa-github"})})]})]}),(0,c.jsx)("div",{className:"w-full px-4 lg:w-6/12",children:(0,c.jsxs)("div",{className:"items-top mb-6 flex flex-wrap",children:[(0,c.jsxs)("div",{className:"ml-auto w-full px-4 lg:w-4/12",children:[(0,c.jsx)("span",{className:"text-blueGray-500 mb-2 block text-sm font-semibold uppercase",children:"Useful Links"}),(0,c.jsxs)("ul",{className:"list-unstyled",children:[(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"About Us"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Blog"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Github"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Free Products"})})]})]}),(0,c.jsxs)("div",{className:"w-full px-4 lg:w-4/12",children:[(0,c.jsx)("span",{className:"text-blueGray-500 mb-2 block text-sm font-semibold uppercase",children:"Other Resources"}),(0,c.jsxs)("ul",{className:"list-unstyled",children:[(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"MIT License"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Terms & Conditions"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Privacy Policy"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Contact Us"})})]})]})]})})]}),(0,c.jsx)("hr",{className:"border-blueGray-300 my-6"}),(0,c.jsx)("div",{className:"flex flex-wrap items-center justify-center md:justify-between",children:(0,c.jsx)("div",{className:"mx-auto w-full px-4 text-center md:w-4/12",children:(0,c.jsxs)("div",{className:"text-blueGray-500 py-1 text-sm font-semibold",children:["Copyright © ",(0,c.jsx)("span",{id:"get-current-year",children:"2023"}),(0,c.jsx)("a",{href:"https://tailwindcomponents.com/",className:"text-blueGray-500 hover:text-gray-800",target:"_blank",rel:"noreferrer",children:"  Powered by XX"})]})})})]})});var d=s(5341);var x=e=>{let{className:t}=e;return(0,c.jsxs)("header",{className:(0,d.Z)(t,"flex place-content-between"),children:[(0,c.jsx)("h5",{className:"text-xl text-blue-700",children:"Webpack5 React Application"}),(0,c.jsxs)("ul",{className:"link-list",children:[(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/main",children:"main"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/main/article",children:"main article"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/introduce",children:"introduce"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/form-demo",children:"form demo"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/loader-location/290",children:"router loader"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/loader-defer-location/290",children:"router defer"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/payment",children:"payment"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/",children:"home"})})]})]})};const h=()=>(0,c.jsxs)("div",{className:"flex h-screen flex-col",children:[(0,c.jsx)(x,{className:"bg-gray-50 p-4"}),(0,c.jsx)("main",{className:"flex-grow p-2",children:(0,c.jsx)(o.j3,{})}),(0,c.jsx)(u,{})]}),j=()=>{const e=(0,o.lk)();return console.error(e),(0,c.jsx)("div",{className:"flex h-screen w-screen items-center bg-gray-50",children:(0,c.jsxs)("div",{className:"container flex flex-col items-center justify-between px-5 text-gray-700 md:flex-row",children:[(0,c.jsxs)("div",{className:"mx-8 w-full lg:w-1/2",children:[(0,c.jsx)("div",{className:"font-dark font-extra bold mb-8 text-7xl text-green-500",children:"404"}),(0,c.jsx)("p",{className:"mb-8 text-2xl font-light leading-normal md:text-3xl",children:"Sorry we couldn't find the page you're looking for"}),(0,c.jsx)(a.rU,{className:"duration-400 inline rounded-lg border border-transparent bg-green-600 px-5 py-3 text-sm font-medium leading-5 text-white shadow-2xl transition-all hover:bg-red-700 focus:outline-none active:bg-red-600",to:"/",children:"back to homepage"})]}),(0,c.jsx)("div",{className:"mx-5 my-12 w-full lg:flex lg:w-1/2 lg:justify-end",children:(0,c.jsx)("img",{src:"https://user-images.githubusercontent.com/43953425/166269493-acd08ccb-4df3-4474-95c7-ad1034d3c070.svg",className:"",alt:"Page not found"})})]})})};var m=s(9229);class g{constructor(e){this.remotePaymentMethod=e}get provider(){return this.remotePaymentMethod.name}get label(){return"cash"===this.provider?`Pay in ${this.provider}`:`Pay with ${this.provider}`}get isDefaultMethod(){return"cash"===this.provider}}const p=new g({name:"cash"}),N=async()=>{const e=(await m.Z.get("https://5a2f495fa871f00012678d70.mockapi.io/api/payment-methods?countryCode=AU"))?.data;return console.log(e),(e=>{if(0===e.length)return[];const t=e.map((e=>new g(e)));return t.push(p),t})(e)},M=(e,t,s)=>e?"Thanks for your donation.":`I would like to donate ${s.getCurrencySign()}${t} to charity.`,y=(e,t)=>`${e.getCurrencySign()}${t}`,L=e=>t=>{const s=Math.pow(10,e-1);return Math.floor(t/s+1)*s},b=e=>parseFloat(e.toPrecision(2)),f=L(1);L(2),L(3);class T{constructor(e,t){this.currencySign=e,this.algorithm=t}getCurrencySign(){return this.currencySign}getRoundUpAmount(e){return this.algorithm(e)}getTip(e){return(t=this.getRoundUpAmount.bind(this),e=>b(t(e)-e))(e);var t}}var I=s.p+"assets/images/payment-section-layer-design.fa5a306090cb416f6e1a.png";const v=e=>{let{onChange:t,checked:s,content:l}=e;return(0,c.jsx)("div",{children:(0,c.jsxs)("label",{className:"flex items-center",children:[(0,c.jsx)("input",{type:"checkbox",onChange:t,checked:s}),(0,c.jsx)("span",{className:"ml-2",children:l})]})})},w=e=>{let{options:t}=e;return(0,c.jsx)(c.Fragment,{children:t.map((e=>(0,c.jsxs)("label",{className:"mb-2 mt-2 block",children:[(0,c.jsx)("input",{type:"radio",name:"payment",value:e.provider,defaultChecked:e.isDefaultMethod}),(0,c.jsx)("span",{className:"ml-1",children:e.label})]},e.provider)))})},S=e=>{let{amount:t,strategy:s=new T("$",f)}=e;const{paymentMethods:r}=(()=>{const[e,t]=(0,l.useState)([]);return(0,l.useEffect)((()=>{N().then((e=>t(e)))}),[]),{paymentMethods:e}})(),{total:a,tip:n,agreeToDonate:i,updateAgreeToDonate:o}=((e,t)=>{const[s,r]=(0,l.useState)(!1),{total:a,tip:n}=(0,l.useMemo)((()=>({total:s?t.getRoundUpAmount(e):e,tip:t.getTip(e)})),[s,e,t]);return{total:a,tip:n,agreeToDonate:s,updateAgreeToDonate:()=>{r((e=>!e))}}})(t,s);return(0,c.jsxs)("div",{className:"m-8",children:[(0,c.jsx)("div",{children:(0,c.jsx)("img",{src:I,alt:"More granular split makes the responsibility of each part cleaner"})}),(0,c.jsxs)("section",{className:"mt-4 border p-4",children:[(0,c.jsx)("h3",{className:"text-lg font-bold",children:"Payment"}),(0,c.jsx)(w,{options:r}),(0,c.jsx)("hr",{className:"m-4 border-dashed"}),(0,c.jsx)(v,{onChange:o,checked:i,content:M(i,n,s)}),(0,c.jsx)("button",{className:"mt-3 bg-red-500 px-4 py-2 text-2xl font-bold text-white",children:y(s,a)})]})]})};window.PENALTY=15e4;const C=Array.from({length:10},((e,t)=>`field${t}`)),D={},A={};for(const e of C)D[e]="",A[e]=!1;function k(e){if(!e)return"field is required";const t=e===e.toLowerCase(),s=e.length>=3,l=e.length<=10;return t?s?l?null:"value must be no longer than 10 characters":"value must be at least 3 characters long":"value must be lower case"}let E=2;function z(){for(let e=2;e({...e,...t})),D),[s,r]=l.useReducer(((e,t)=>({...e,...t})),A),[a,n]=l.useState(!1);function i(e){t({[e.currentTarget.name]:e.currentTarget.value})}function o(e){r({[e.currentTarget.name]:!0})}return(0,c.jsxs)("form",{noValidate:!0,onSubmit:function(t){t.preventDefault();const s=C.every((t=>!k(e[t])));n(!0),s&&console.log("Slow Form Submitted",e)},children:[C.map((t=>(0,c.jsx)(O,{name:t,fieldValues:e,touchedFields:s,wasSubmitted:a,handleChange:i,handleBlur:o},t))),(0,c.jsx)("button",{type:"submit",children:"Submit"})]})}function Y(e){let{name:t,wasSubmitted:s}=e;const[r,a]=l.useState(""),[n,i]=l.useState(!1),o=k(r),u=(s||n)&&o;return(0,c.jsxs)("div",{children:[(0,c.jsx)(z,{}),(0,c.jsxs)("label",{htmlFor:`${t}-input`,children:[t,":"]})," ",(0,c.jsx)("input",{id:`${t}-input`,name:t,type:"text",onChange:e=>a(e.currentTarget.value),onBlur:()=>i(!0),pattern:"[a-z]{3,10}",required:!0,"aria-describedby":u?`${t}-error`:void 0,className:"border"}),u?(0,c.jsx)("span",{role:"alert",id:`${t}-error`,className:"ml-2 inline-block text-xs text-red-500",children:o}):null]},t)}function Q(){const[e,t]=l.useState(!1);return(0,c.jsxs)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault();const s=new FormData(e.currentTarget),l=Object.fromEntries(s.entries());console.log(l);const r=Object.values(l).every((e=>!k(e)));t(!0),r&&(e.currentTarget.reset(),console.log("Fast Form Submitted",l))},children:[C.map((t=>(0,c.jsx)(Y,{name:t,wasSubmitted:e},t))),(0,c.jsx)("button",{type:"submit",children:"Submit"})]})}function G(){return(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{children:"Slow Form"}),(0,c.jsx)(U,{}),(0,c.jsx)("hr",{}),(0,c.jsx)("h1",{children:"Fast Form"}),(0,c.jsx)(Q,{})]})}const P=()=>(0,c.jsx)("section",{className:"bg-w relative z-40 py-10 sm:py-16 lg:py-24",children:(0,c.jsxs)("div",{className:"container mx-auto",children:[(0,c.jsxs)("h2",{className:"text-3xl font-light text-black sm:text-4xl lg:text-5xl",children:["it's"," ",(0,c.jsx)("span",{className:"block w-full bg-gradient-to-r from-green-500 to-green-500 bg-clip-text font-light text-transparent lg:inline",children:"Services"})," ","in one single line."]}),(0,c.jsx)("p",{className:"mb-20 text-lg text-gray-900",children:"Comes directly from the desk of engineers, creators and managers at Skcript."}),(0,c.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-4 ",children:[(0,c.jsx)("a",{href:"#1",className:" relative shadow-2xl ",children:(0,c.jsxs)("div",{className:" group relative h-full overflow-hidden shadow-2xl shadow-green-900 ",children:[(0,c.jsx)("div",{className:" absolute -bottom-10 left-0 h-full w-full transition-all duration-500 ease-in-out group-hover:top-0 group-hover:bg-green-900 ",children:(0,c.jsx)("div",{className:"relative h-full w-full p-5",children:(0,c.jsxs)("div",{className:"absolute bottom-0 text-left text-white transition-all duration-500 ease-in-out group-hover:bottom-24 ",children:[(0,c.jsx)("h2",{className:"mb-0 pb-1 text-2xl font-bold text-white",children:"Standard Color"}),(0,c.jsx)("p",{className:"text-lg font-light text-white",children:"Lorem ipsum dolor sit amet, #brands."})]})})}),(0,c.jsx)("img",{alt:"card background",src:"https://source.unsplash.com/random/400x400",className:"example z-0 h-full w-full object-fill "})]})}),(0,c.jsx)("a",{href:"#2",className:" relative shadow-2xl ",children:(0,c.jsxs)("div",{className:" group relative h-full overflow-hidden shadow-2xl shadow-green-900 ",children:[(0,c.jsx)("div",{className:" absolute -bottom-10 left-0 h-full w-full transition-all duration-500 ease-in-out group-hover:top-0 group-hover:bg-green-900 ",children:(0,c.jsx)("div",{className:"relative h-full w-full p-5",children:(0,c.jsxs)("div",{className:"absolute bottom-0 text-left text-white transition-all duration-500 ease-in-out group-hover:bottom-24 ",children:[(0,c.jsx)("h2",{className:"mb-0 pb-1 text-2xl font-bold text-white",children:"Standard Color"}),(0,c.jsx)("p",{className:"text-lg font-light text-white",children:"Lorem ipsum dolor sit amet, #brands."})]})})}),(0,c.jsx)("img",{alt:"card background",src:"https://source.unsplash.com/random/400x400",className:"example z-0 h-full w-full object-fill "})]})}),(0,c.jsx)("a",{href:"#3",className:" relative shadow-2xl ",children:(0,c.jsxs)("div",{className:" group relative h-full overflow-hidden shadow-2xl shadow-green-900 ",children:[(0,c.jsx)("div",{className:" absolute -bottom-10 left-0 h-full w-full transition-all duration-500 ease-in-out group-hover:top-0 group-hover:bg-green-900 ",children:(0,c.jsx)("div",{className:"relative h-full w-full p-5",children:(0,c.jsxs)("div",{className:"absolute bottom-0 text-left text-white transition-all duration-500 ease-in-out group-hover:bottom-24 ",children:[(0,c.jsx)("h2",{className:"mb-0 pb-1 text-2xl font-bold text-white",children:"Standard Color"}),(0,c.jsx)("p",{className:"text-lg font-light text-white",children:"Lorem ipsum dolor sit amet, #brands."})]})})}),(0,c.jsx)("img",{alt:"card background",src:"https://source.unsplash.com/random/400x400",className:"example z-0 h-full w-full object-fill "})]})}),(0,c.jsx)("a",{href:"#4",className:" relative shadow-2xl ",children:(0,c.jsxs)("div",{className:" group relative h-full overflow-hidden shadow-2xl shadow-green-900 ",children:[(0,c.jsx)("div",{className:" absolute -bottom-10 left-0 h-full w-full transition-all duration-500 ease-in-out group-hover:top-0 group-hover:bg-green-900 ",children:(0,c.jsx)("div",{className:"relative h-full w-full p-5",children:(0,c.jsxs)("div",{className:"absolute bottom-0 text-left text-white transition-all duration-500 ease-in-out group-hover:bottom-24 ",children:[(0,c.jsx)("h2",{className:"mb-0 pb-1 text-2xl font-bold text-white",children:"Standard Color"}),(0,c.jsx)("p",{className:"text-lg font-light text-white",children:"Lorem ipsum dolor sit amet, #brands."})]})})}),(0,c.jsx)("img",{alt:"card background",src:"https://source.unsplash.com/random/400x400",className:"example z-0 h-full w-full object-fill "})]})})]})]})}),B=()=>(0,c.jsxs)("div",{children:[(0,c.jsxs)("article",{className:"mt-24 flex min-h-full flex-col items-center justify-center text-center text-gray-950",children:[(0,c.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgM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NS4xIDU4LjMgMzQuOSA1OC4zIDUwLjYtLjEgMTUuNy0yMyAzNS42LTU4LjQgNTAuNnpNMzIwLjggNzguNHoiLz48Y2lyY2xlIGN4PSI0MjAuOSIgY3k9IjI5Ni41IiByPSI0NS43Ii8+PHBhdGggZD0iTTUyMC41IDc4LjF6Ii8+PC9nPjwvc3ZnPg==",className:"pointer-events-none h-40 animate-spin-slow",alt:"logo"}),(0,c.jsxs)("p",{className:"mt-4 text-xl",children:["Edit ",(0,c.jsx)("code",{className:"text-blue-500",children:"src/Home.tsx"})," and save to reload."]}),(0,c.jsx)("a",{className:"mt-4 font-bold text-blue-500 hover:text-blue-700",href:"https://reactjs.org",target:"_blank",rel:"noopener noreferrer",children:"Learn React"})]}),(0,c.jsx)(P,{})]});var F=e=>{let{onClick:t,disable:s,children:l}=e;return(0,c.jsx)("button",{disabled:s,onClick:t,className:"text-primary-foreground hover:bg-primary/90 focus-visible:ring-ring ring-offset-background inline-flex h-10 items-center justify-center rounded-md bg-amber-300 px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",children:l})};const $=()=>(0,c.jsxs)("div",{children:["this is the Introduce page",(0,c.jsx)(F,{children:"test"})]});const q=(0,s(1392).Ue)((e=>({bears:0,increasePopulation:t=>e((e=>({bears:e.bears+t}))),removeAllBears:()=>e({bears:0})}))),Z=()=>{const{bears:e,increasePopulation:t}=q(),{listId:s}=(0,o.UO)();return(0,c.jsxs)("div",{children:["this is article List, id: ",s,(0,c.jsxs)("p",{children:["bear: ",e]}),(0,c.jsx)("button",{onClick:()=>t(10),className:"btn-blue",children:"increase"})]})},R=()=>{const[e,t]=(0,l.useState)(0);return console.log("App render",e),(0,c.jsxs)("div",{children:[(0,c.jsxs)("p",{children:["num: ",e]}),(0,c.jsx)("button",{onClick:()=>t(1),className:"btn-blue",children:(0,c.jsx)(H,{})})]})};function H(){return console.log("child render"),(0,c.jsx)("span",{children:"child"})}const V=()=>(0,c.jsx)("div",{children:"this is Dashboard"}),_=()=>(0,c.jsxs)("section",{className:"flex",children:[(0,c.jsxs)("aside",{className:"bg-amber-50 p-3",children:[(0,c.jsx)("h3",{className:"text-2xl text-cyan-400",children:"this is aside"}),(0,c.jsxs)("ul",{children:[(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{to:"/main",children:"main"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{to:"/main/article",children:"article"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{to:"/main/list/1",children:"article list one"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{to:"/main/profile",children:"profile"})})]})]}),(0,c.jsx)(o.j3,{})]});function X(){const[e,t]=(0,l.useState)(0),[s,r]=(0,l.useState)(1);return(0,l.useEffect)((()=>{console.log("one");const e=setInterval((()=>{t((e=>e+s))}),1e3);return()=>clearInterval(e)}),[s]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("h1",{children:["counter: ",e]}),(0,c.jsx)("label",{htmlFor:"step",className:"text-input-label",children:"Step"}),(0,c.jsx)("input",{id:"step",className:"text-input",value:s,onChange:e=>r(Number(e.target.value))})]})}var K=function(e){return e.TICK="tick",e.STEP="step",e}(K||{});const W={count:0,step:1};function J(e,t){const{count:s,step:l}=e;if(t.type===K.TICK)return{count:s+l,step:l};if(t.type===K.STEP)return{count:s,step:t.val};throw new Error}function ee(){const[e,t]=(0,l.useReducer)(J,W),{count:s,step:r}=e;return(0,l.useEffect)((()=>{console.log("two");const e=setInterval((()=>{t({type:K.TICK})}),1e3);return()=>clearInterval(e)}),[t]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("h1",{children:["counter: ",s]}),(0,c.jsx)("label",{htmlFor:"step",className:"text-input-label",children:"Step"}),(0,c.jsx)("input",{id:"step",className:"text-input",value:r,onChange:e=>{t({type:K.STEP,val:Number(e.target.value)})}})]})}const te=()=>(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{children:"this is user Discussion"}),(0,c.jsx)(X,{}),(0,c.jsx)(ee,{})]});var se=s(6245);const le=m.Z.create({baseURL:"",timeout:15e3,headers:{"Content-Type":"application/json"}});le.interceptors.request.use((e=>e)),le.interceptors.response.use((e=>e?.data));const re=(e,t)=>(e,s)=>{const l=t(e);return le.request({...l,...s,headers:{...l.headers,...s?.headers}})},ae=(re(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/pet",method:"POST",data:t,headers:{"Content-Type":"application/json"}}})),re(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/user",method:"POST",data:t,headers:{"Content-Type":"application/json"}}})),re(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/user/createWithList",method:"POST",data:t,headers:{"Content-Type":"application/json"}}})),re(0,(e=>{let{orderId:t}=e;return{url:`/api/v3/store/order/${t}`,method:"DELETE"}})),re(0,(e=>{let{petId:t}=e;return{url:`/api/v3/pet/${t}`,method:"DELETE"}})),re(0,(e=>{let{username:t}=e;return{url:`/api/v3/user/${t}`,method:"DELETE"}})),re(0,(e=>{let{status:t}=e;return{url:"/api/v3/pet/findByStatus",method:"GET",params:{status:t}}})));re(0,(e=>{let{tags:t}=e;return{url:"/api/v3/pet/findByTags",method:"GET",params:{tags:t}}})),re(0,(()=>({url:"/api/v3/store/inventory",method:"GET"}))),re(0,(e=>{let{orderId:t}=e;return{url:`/api/v3/store/order/${t}`,method:"GET"}})),re(0,(e=>{let{petId:t}=e;return{url:`/api/v3/pet/${t}`,method:"GET"}})),re(0,(e=>{let{username:t}=e;return{url:`/api/v3/user/${t}`,method:"GET"}})),re(0,(e=>{let{username:t,password:s}=e;return{url:"/api/v3/user/login",method:"GET",params:{username:t,password:s}}})),re(0,(()=>({url:"/api/v3/user/logout",method:"GET"}))),re(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/store/order",method:"POST",data:t,headers:{"Content-Type":"application/json"}}})),re(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/pet",method:"PUT",data:t,headers:{"Content-Type":"application/json"}}})),re(0,(e=>{let{petId:t,name:s,status:l}=e;return{url:`/api/v3/pet/${t}`,method:"POST",params:{name:s,status:l}}})),re(0,(e=>{let{username:t,requestBody:s}=e;return{url:`/api/v3/user/${t}`,method:"PUT",data:s,headers:{"Content-Type":"application/json"}}})),re(0,(e=>{let{petId:t,additionalMetadata:s,requestBody:l}=e;return{url:`/api/v3/pet/${t}/uploadImage`,method:"POST",data:l,params:{additionalMetadata:s},headers:{"Content-Type":"application/octet-stream"}}}));const ne=()=>{const{data:e,isLoading:t,error:s}=(0,se.a)({queryKey:["/api/v3/pet/findByStatus"],queryFn:()=>ae({status:"sold"})});return(0,c.jsxs)("div",{children:["this is Profile",t?(0,c.jsx)("p",{children:"loading"}):s?(0,c.jsx)("p",{children:"error"}):(0,c.jsxs)("div",{children:[(0,c.jsxs)("p",{children:["approved: ",e?.[0].status]}),(0,c.jsxs)("p",{children:["approved: ",e?.[0].id]})]})]})};var ie=s(6706);let oe=function(e){return e.Red="red",e.Blue="blue",e.Green="green",e}({}),ce=function(e){return e.Small="small",e.Medium="medium",e.Large="large",e}({});const ue={[oe.Blue]:"fill-blue-600",[oe.Red]:"fill-red-600",[oe.Green]:"fill-green-600"},de={[ce.Small]:"w-6 h-6",[ce.Medium]:"w-12 h-12",[ce.Large]:"w-24 h-24"},xe=e=>{let{color:t=oe.Blue,size:s=ce.Medium}=e;return(0,c.jsxs)("div",{role:"status",children:[(0,c.jsxs)("svg",{"aria-hidden":"true",className:(0,d.Z)("h-8 w-8 animate-spin text-gray-200 dark:text-gray-600",ue[t],de[s]),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,c.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,c.jsx)("span",{className:"sr-only",children:"Loading..."})]})},he=re(0,(e=>{let{id:t}=e;return{method:"get",url:"/api/customer/getPackageLocation",params:{id:t}}}));function je(){const e=(0,o.f_)();return(0,c.jsxs)("main",{children:[(0,c.jsx)("h1",{children:"Lets locate your package"}),(0,c.jsx)(l.Suspense,{fallback:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(xe,{}),(0,c.jsx)("p",{children:"Loading package location..."})]}),children:(0,c.jsx)(o.KP,{resolve:e?.res,errorElement:(0,c.jsx)("p",{children:"Error loading package location!"}),children:(0,c.jsx)(me,{})})})]})}function me(){const e=(0,o.qv)();return(0,c.jsxs)("p",{children:["Your package is at ",e.latitude," lat and"," ",e.longitude," long."]})}function ge(){const e=(0,o.f_)();return(0,c.jsxs)("main",{children:[(0,c.jsx)("h1",{children:"Lets locate your package"}),(0,c.jsx)(l.Suspense,{fallback:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(xe,{}),(0,c.jsx)("p",{children:"Loading package location..."})]}),children:(0,c.jsxs)("p",{children:["Your package is at ",e.latitude," lat and"," ",e.longitude," long."]})})]})}const pe=[{path:"",element:(0,c.jsx)(V,{})},{path:"article",element:(0,c.jsx)(R,{})},{path:"profile",element:(0,c.jsx)(ne,{})},{path:"list/:listId",element:(0,c.jsx)(Z,{})},{path:"discussion",element:(0,c.jsx)(te,{})},{path:"*",element:(0,c.jsx)(o.Fg,{to:"."})}],Ne=[{path:"/",element:(0,c.jsx)(B,{})},{path:"/main",element:(0,c.jsx)(_,{}),children:pe},{path:"/introduce",element:(0,c.jsx)($,{})},{path:"/form-demo",element:(0,c.jsx)(G,{})},{path:"/loader-location/:packageId",element:(0,c.jsx)(ge,{}),loader:async function(e){let{params:t}=e;return he(t.packageId)}},{path:"/loader-defer-location/:packageId",element:(0,c.jsx)(je,{}),loader:async function(e){let{params:t}=e;const s=he(t.packageId);return(0,ie.PQ)({res:s})}},{path:"payment",element:(0,c.jsx)(S,{amount:19.9})}],Me=(0,a.aj)([{path:"/",element:(0,c.jsx)(h,{}),errorElement:(0,c.jsx)(j,{}),children:Ne}],{basename:"/webpack5-react-template/"}),ye=new n.S;var Le=()=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(i.aH,{client:ye,children:(0,c.jsx)(a.pG,{router:Me})})});const be=r.s(document.getElementById("root"));(async function(){{const{worker:e}=await Promise.all([s.e(216),s.e(856)]).then(s.bind(s,2856));return e.start()}})().then((()=>{be.render((0,c.jsx)(l.StrictMode,{children:(0,c.jsx)(Le,{})}))}))}},function(e){e.O(0,[216],(function(){return t=5697,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/js/main.d56c3976.bundle.js b/js/main.d56c3976.bundle.js deleted file mode 100644 index f42cfeb..0000000 --- a/js/main.d56c3976.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebpack5_react_template=self.webpackChunkwebpack5_react_template||[]).push([[179],{697:function(e,t,s){var l=s(959),r=s(478),a=s(75),n=s(158),i=s(480),o=s(487),c=s(527);const u=()=>(0,c.jsx)("footer",{className:"bg-blueGray-200 relative pb-6 pt-8",children:(0,c.jsxs)("div",{className:"container mx-auto px-4",children:[(0,c.jsxs)("div",{className:"flex flex-wrap text-left lg:text-left",children:[(0,c.jsxs)("div",{className:"w-full px-4 lg:w-6/12",children:[(0,c.jsx)("h4",{className:"fonat-semibold text-blueGray-700 text-3xl",children:"Let's keep in touch!"}),(0,c.jsx)("h5",{className:"text-blueGray-600 mb-2 mt-0 text-lg",children:"Find us on any of these platforms, we respond 1-2 business days."}),(0,c.jsxs)("div",{className:"mb-6 mt-6 lg:mb-0",children:[(0,c.jsx)("button",{className:"text-lightBlue-400 align-center mr-2 h-10 w-10 items-center justify-center rounded-full bg-white font-normal shadow-lg outline-none focus:outline-none",type:"button",children:(0,c.jsx)("i",{className:"fab fa-twitter"})}),(0,c.jsx)("button",{className:"text-lightBlue-600 align-center mr-2 h-10 w-10 items-center justify-center rounded-full bg-white font-normal shadow-lg outline-none focus:outline-none",type:"button",children:(0,c.jsx)("i",{className:"fab fa-facebook-square"})}),(0,c.jsx)("button",{className:"align-center mr-2 h-10 w-10 items-center justify-center rounded-full bg-white font-normal text-pink-400 shadow-lg outline-none focus:outline-none",type:"button",children:(0,c.jsx)("i",{className:"fab fa-dribbble"})}),(0,c.jsx)("button",{className:"text-blueGray-800 align-center mr-2 h-10 w-10 items-center justify-center rounded-full bg-white font-normal shadow-lg outline-none focus:outline-none",type:"button",children:(0,c.jsx)("i",{className:"fab fa-github"})})]})]}),(0,c.jsx)("div",{className:"w-full px-4 lg:w-6/12",children:(0,c.jsxs)("div",{className:"items-top mb-6 flex flex-wrap",children:[(0,c.jsxs)("div",{className:"ml-auto w-full px-4 lg:w-4/12",children:[(0,c.jsx)("span",{className:"text-blueGray-500 mb-2 block text-sm font-semibold uppercase",children:"Useful Links"}),(0,c.jsxs)("ul",{className:"list-unstyled",children:[(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"About Us"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Blog"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Github"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Free Products"})})]})]}),(0,c.jsxs)("div",{className:"w-full px-4 lg:w-4/12",children:[(0,c.jsx)("span",{className:"text-blueGray-500 mb-2 block text-sm font-semibold uppercase",children:"Other Resources"}),(0,c.jsxs)("ul",{className:"list-unstyled",children:[(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"MIT License"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Terms & Conditions"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Privacy Policy"})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{className:"text-blueGray-600 hover:text-blueGray-800 block pb-2 text-sm font-semibold",href:"https://www.sysuke.com/",children:"Contact Us"})})]})]})]})})]}),(0,c.jsx)("hr",{className:"border-blueGray-300 my-6"}),(0,c.jsx)("div",{className:"flex flex-wrap items-center justify-center md:justify-between",children:(0,c.jsx)("div",{className:"mx-auto w-full px-4 text-center md:w-4/12",children:(0,c.jsxs)("div",{className:"text-blueGray-500 py-1 text-sm font-semibold",children:["Copyright © ",(0,c.jsx)("span",{id:"get-current-year",children:"2023"}),(0,c.jsx)("a",{href:"https://tailwindcomponents.com/",className:"text-blueGray-500 hover:text-gray-800",target:"_blank",rel:"noreferrer",children:"  Powered by XX"})]})})})]})});var d=s(341);var x=e=>{let{className:t}=e;return(0,c.jsxs)("header",{className:(0,d.Z)(t,"flex place-content-between"),children:[(0,c.jsx)("h5",{className:"text-xl text-blue-700",children:"Webpack5 React Application"}),(0,c.jsxs)("ul",{className:"link-list",children:[(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/main",children:"main"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/main/article",children:"main article"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/introduce",children:"introduce"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/form-demo",children:"form demo"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/loader-location/290",children:"router loader"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/loader-defer-location/290",children:"router defer"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/payment",children:"payment"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{className:"link",to:"/",children:"home"})})]})]})};const h=()=>(0,c.jsxs)("div",{className:"flex h-screen flex-col",children:[(0,c.jsx)(x,{className:"bg-gray-50 p-4"}),(0,c.jsx)("main",{className:"flex-grow p-2",children:(0,c.jsx)(o.j3,{})}),(0,c.jsx)(u,{})]}),j=()=>{const e=(0,o.lk)();return console.error(e),(0,c.jsx)("div",{className:"flex h-screen w-screen items-center bg-gray-50",children:(0,c.jsxs)("div",{className:"container flex flex-col items-center justify-between px-5 text-gray-700 md:flex-row",children:[(0,c.jsxs)("div",{className:"mx-8 w-full lg:w-1/2",children:[(0,c.jsx)("div",{className:"font-dark font-extra bold mb-8 text-7xl text-green-500",children:"404"}),(0,c.jsx)("p",{className:"mb-8 text-2xl font-light leading-normal md:text-3xl",children:"Sorry we couldn't find the page you're looking for"}),(0,c.jsx)(a.rU,{className:"duration-400 inline rounded-lg border border-transparent bg-green-600 px-5 py-3 text-sm font-medium leading-5 text-white shadow-2xl transition-all hover:bg-red-700 focus:outline-none active:bg-red-600",to:"/",children:"back to homepage"})]}),(0,c.jsx)("div",{className:"mx-5 my-12 w-full lg:flex lg:w-1/2 lg:justify-end",children:(0,c.jsx)("img",{src:"https://user-images.githubusercontent.com/43953425/166269493-acd08ccb-4df3-4474-95c7-ad1034d3c070.svg",className:"",alt:"Page not found"})})]})})};class m{constructor(e){this.remotePaymentMethod=e}get provider(){return this.remotePaymentMethod.name}get label(){return"cash"===this.provider?`Pay in ${this.provider}`:`Pay with ${this.provider}`}get isDefaultMethod(){return"cash"===this.provider}}const g=new m({name:"cash"}),p=async()=>{const e=await fetch("https://5a2f495fa871f00012678d70.mockapi.io/api/payment-methods?countryCode=AU");return(e=>{if(0===e.length)return[];const t=e.map((e=>new m(e)));return t.push(g),t})(await e.json())},N=(e,t,s)=>e?"Thanks for your donation.":`I would like to donate ${s.getCurrencySign()}${t} to charity.`,M=(e,t)=>`${e.getCurrencySign()}${t}`,y=e=>t=>{const s=Math.pow(10,e-1);return Math.floor(t/s+1)*s},L=e=>parseFloat(e.toPrecision(2)),b=y(1);y(2),y(3);class f{constructor(e,t){this.currencySign=e,this.algorithm=t}getCurrencySign(){return this.currencySign}getRoundUpAmount(e){return this.algorithm(e)}getTip(e){return(t=this.getRoundUpAmount.bind(this),e=>L(t(e)-e))(e);var t}}var T=s.p+"assets/images/payment-section-layer-design.fa5a306090cb416f6e1a.png";const I=e=>{let{onChange:t,checked:s,content:l}=e;return(0,c.jsx)("div",{children:(0,c.jsxs)("label",{className:"flex items-center",children:[(0,c.jsx)("input",{type:"checkbox",onChange:t,checked:s}),(0,c.jsx)("span",{className:"ml-2",children:l})]})})},v=e=>{let{options:t}=e;return(0,c.jsx)(c.Fragment,{children:t.map((e=>(0,c.jsxs)("label",{className:"mb-2 mt-2 block",children:[(0,c.jsx)("input",{type:"radio",name:"payment",value:e.provider,defaultChecked:e.isDefaultMethod}),(0,c.jsx)("span",{className:"ml-1",children:e.label})]},e.provider)))})},w=e=>{let{amount:t,strategy:s=new f("$",b)}=e;const{paymentMethods:r}=(()=>{const[e,t]=(0,l.useState)([]);return(0,l.useEffect)((()=>{p().then((e=>t(e)))}),[]),{paymentMethods:e}})(),{total:a,tip:n,agreeToDonate:i,updateAgreeToDonate:o}=((e,t)=>{const[s,r]=(0,l.useState)(!1),{total:a,tip:n}=(0,l.useMemo)((()=>({total:s?t.getRoundUpAmount(e):e,tip:t.getTip(e)})),[s,e,t]);return{total:a,tip:n,agreeToDonate:s,updateAgreeToDonate:()=>{r((e=>!e))}}})(t,s);return(0,c.jsxs)("div",{className:"m-8",children:[(0,c.jsx)("div",{children:(0,c.jsx)("img",{src:T,alt:"More granular split makes the responsibility of each part cleaner"})}),(0,c.jsxs)("section",{className:"mt-4 border p-4",children:[(0,c.jsx)("h3",{className:"text-lg font-bold",children:"Payment"}),(0,c.jsx)(v,{options:r}),(0,c.jsx)("hr",{className:"m-4 border-dashed"}),(0,c.jsx)(I,{onChange:o,checked:i,content:N(i,n,s)}),(0,c.jsx)("button",{className:"mt-3 bg-red-500 px-4 py-2 text-2xl font-bold text-white",children:M(s,a)})]})]})};window.PENALTY=15e4;const S=Array.from({length:10},((e,t)=>`field${t}`)),C={},D={};for(const e of S)C[e]="",D[e]=!1;function A(e){if(!e)return"field is required";const t=e===e.toLowerCase(),s=e.length>=3,l=e.length<=10;return t?s?l?null:"value must be no longer than 10 characters":"value must be at least 3 characters long":"value must be lower case"}let k=2;function E(){for(let e=2;e({...e,...t})),C),[s,r]=l.useReducer(((e,t)=>({...e,...t})),D),[a,n]=l.useState(!1);function i(e){t({[e.currentTarget.name]:e.currentTarget.value})}function o(e){r({[e.currentTarget.name]:!0})}return(0,c.jsxs)("form",{noValidate:!0,onSubmit:function(t){t.preventDefault();const s=S.every((t=>!A(e[t])));n(!0),s&&console.log("Slow Form Submitted",e)},children:[S.map((t=>(0,c.jsx)(z,{name:t,fieldValues:e,touchedFields:s,wasSubmitted:a,handleChange:i,handleBlur:o},t))),(0,c.jsx)("button",{type:"submit",children:"Submit"})]})}function U(e){let{name:t,wasSubmitted:s}=e;const[r,a]=l.useState(""),[n,i]=l.useState(!1),o=A(r),u=(s||n)&&o;return(0,c.jsxs)("div",{children:[(0,c.jsx)(E,{}),(0,c.jsxs)("label",{htmlFor:`${t}-input`,children:[t,":"]})," ",(0,c.jsx)("input",{id:`${t}-input`,name:t,type:"text",onChange:e=>a(e.currentTarget.value),onBlur:()=>i(!0),pattern:"[a-z]{3,10}",required:!0,"aria-describedby":u?`${t}-error`:void 0,className:"border"}),u?(0,c.jsx)("span",{role:"alert",id:`${t}-error`,className:"ml-2 inline-block text-xs text-red-500",children:o}):null]},t)}function Y(){const[e,t]=l.useState(!1);return(0,c.jsxs)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault();const s=new FormData(e.currentTarget),l=Object.fromEntries(s.entries());console.log(l);const r=Object.values(l).every((e=>!A(e)));t(!0),r&&(e.currentTarget.reset(),console.log("Fast Form Submitted",l))},children:[S.map((t=>(0,c.jsx)(U,{name:t,wasSubmitted:e},t))),(0,c.jsx)("button",{type:"submit",children:"Submit"})]})}function Q(){return(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{children:"Slow Form"}),(0,c.jsx)(O,{}),(0,c.jsx)("hr",{}),(0,c.jsx)("h1",{children:"Fast Form"}),(0,c.jsx)(Y,{})]})}const G=()=>(0,c.jsx)("section",{className:"bg-w relative z-40 py-10 sm:py-16 lg:py-24",children:(0,c.jsxs)("div",{className:"container mx-auto",children:[(0,c.jsxs)("h2",{className:"text-3xl font-light text-black sm:text-4xl lg:text-5xl",children:["it's"," ",(0,c.jsx)("span",{className:"block w-full bg-gradient-to-r from-green-500 to-green-500 bg-clip-text font-light text-transparent lg:inline",children:"Services"})," ","in one single line."]}),(0,c.jsx)("p",{className:"mb-20 text-lg text-gray-900",children:"Comes directly from the desk of engineers, creators and managers at Skcript."}),(0,c.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-4 ",children:[(0,c.jsx)("a",{href:"#1",className:" relative shadow-2xl ",children:(0,c.jsxs)("div",{className:" group relative h-full overflow-hidden shadow-2xl shadow-green-900 ",children:[(0,c.jsx)("div",{className:" absolute -bottom-10 left-0 h-full w-full transition-all duration-500 ease-in-out group-hover:top-0 group-hover:bg-green-900 ",children:(0,c.jsx)("div",{className:"relative h-full w-full p-5",children:(0,c.jsxs)("div",{className:"absolute bottom-0 text-left text-white transition-all duration-500 ease-in-out group-hover:bottom-24 ",children:[(0,c.jsx)("h2",{className:"mb-0 pb-1 text-2xl font-bold text-white",children:"Standard Color"}),(0,c.jsx)("p",{className:"text-lg font-light text-white",children:"Lorem ipsum dolor sit amet, #brands."})]})})}),(0,c.jsx)("img",{alt:"card background",src:"https://source.unsplash.com/random/400x400",className:"example z-0 h-full w-full object-fill "})]})}),(0,c.jsx)("a",{href:"#2",className:" relative shadow-2xl ",children:(0,c.jsxs)("div",{className:" group relative h-full overflow-hidden shadow-2xl shadow-green-900 ",children:[(0,c.jsx)("div",{className:" absolute -bottom-10 left-0 h-full w-full transition-all duration-500 ease-in-out group-hover:top-0 group-hover:bg-green-900 ",children:(0,c.jsx)("div",{className:"relative h-full w-full p-5",children:(0,c.jsxs)("div",{className:"absolute bottom-0 text-left text-white transition-all duration-500 ease-in-out group-hover:bottom-24 ",children:[(0,c.jsx)("h2",{className:"mb-0 pb-1 text-2xl font-bold text-white",children:"Standard Color"}),(0,c.jsx)("p",{className:"text-lg font-light text-white",children:"Lorem ipsum dolor sit amet, #brands."})]})})}),(0,c.jsx)("img",{alt:"card background",src:"https://source.unsplash.com/random/400x400",className:"example z-0 h-full w-full object-fill "})]})}),(0,c.jsx)("a",{href:"#3",className:" relative shadow-2xl ",children:(0,c.jsxs)("div",{className:" group relative h-full overflow-hidden shadow-2xl shadow-green-900 ",children:[(0,c.jsx)("div",{className:" absolute -bottom-10 left-0 h-full w-full transition-all duration-500 ease-in-out group-hover:top-0 group-hover:bg-green-900 ",children:(0,c.jsx)("div",{className:"relative h-full w-full p-5",children:(0,c.jsxs)("div",{className:"absolute bottom-0 text-left text-white transition-all duration-500 ease-in-out group-hover:bottom-24 ",children:[(0,c.jsx)("h2",{className:"mb-0 pb-1 text-2xl font-bold text-white",children:"Standard Color"}),(0,c.jsx)("p",{className:"text-lg font-light text-white",children:"Lorem ipsum dolor sit amet, #brands."})]})})}),(0,c.jsx)("img",{alt:"card background",src:"https://source.unsplash.com/random/400x400",className:"example z-0 h-full w-full object-fill "})]})}),(0,c.jsx)("a",{href:"#4",className:" relative shadow-2xl ",children:(0,c.jsxs)("div",{className:" group relative h-full overflow-hidden shadow-2xl shadow-green-900 ",children:[(0,c.jsx)("div",{className:" absolute -bottom-10 left-0 h-full w-full transition-all duration-500 ease-in-out group-hover:top-0 group-hover:bg-green-900 ",children:(0,c.jsx)("div",{className:"relative h-full w-full p-5",children:(0,c.jsxs)("div",{className:"absolute bottom-0 text-left text-white transition-all duration-500 ease-in-out group-hover:bottom-24 ",children:[(0,c.jsx)("h2",{className:"mb-0 pb-1 text-2xl font-bold text-white",children:"Standard Color"}),(0,c.jsx)("p",{className:"text-lg font-light text-white",children:"Lorem ipsum dolor sit amet, #brands."})]})})}),(0,c.jsx)("img",{alt:"card background",src:"https://source.unsplash.com/random/400x400",className:"example z-0 h-full w-full object-fill "})]})})]})]})}),P=()=>(0,c.jsxs)("div",{children:[(0,c.jsxs)("article",{className:"mt-24 flex min-h-full flex-col items-center justify-center text-center text-gray-950",children:[(0,c.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4NDEuOSA1OTUuMyI+PGcgZmlsbD0iIzYxREFGQiI+PHBhdGggZD0iTTY2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NTAuNnpNMzIwLjggNzguNHoiLz48Y2lyY2xlIGN4PSI0MjAuOSIgY3k9IjI5Ni41IiByPSI0NS43Ii8+PHBhdGggZD0iTTUyMC41IDc4LjF6Ii8+PC9nPjwvc3ZnPg==",className:"pointer-events-none h-40 animate-spin-slow",alt:"logo"}),(0,c.jsxs)("p",{className:"mt-4 text-xl",children:["Edit ",(0,c.jsx)("code",{className:"text-blue-500",children:"src/Home.tsx"})," and save to reload."]}),(0,c.jsx)("a",{className:"mt-4 font-bold text-blue-500 hover:text-blue-700",href:"https://reactjs.org",target:"_blank",rel:"noopener noreferrer",children:"Learn React"})]}),(0,c.jsx)(G,{})]});var B=e=>{let{onClick:t,disable:s,children:l}=e;return(0,c.jsx)("button",{disabled:s,onClick:t,className:"text-primary-foreground hover:bg-primary/90 focus-visible:ring-ring ring-offset-background inline-flex h-10 items-center justify-center rounded-md bg-amber-300 px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",children:l})};const F=()=>(0,c.jsxs)("div",{children:["this is the Introduce page",(0,c.jsx)(B,{children:"test"})]});const $=(0,s(392).Ue)((e=>({bears:0,increasePopulation:t=>e((e=>({bears:e.bears+t}))),removeAllBears:()=>e({bears:0})}))),q=()=>{const{bears:e,increasePopulation:t}=$(),{listId:s}=(0,o.UO)();return(0,c.jsxs)("div",{children:["this is article List, id: ",s,(0,c.jsxs)("p",{children:["bear: ",e]}),(0,c.jsx)("button",{onClick:()=>t(10),className:"btn-blue",children:"increase"})]})},R=()=>{const[e,t]=(0,l.useState)(0);return console.log("App render",e),(0,c.jsxs)("div",{children:[(0,c.jsxs)("p",{children:["num: ",e]}),(0,c.jsx)("button",{onClick:()=>t(1),className:"btn-blue",children:(0,c.jsx)(Z,{})})]})};function Z(){return console.log("child render"),(0,c.jsx)("span",{children:"child"})}const H=()=>(0,c.jsx)("div",{children:"this is Dashboard"}),V=()=>(0,c.jsxs)("section",{className:"flex",children:[(0,c.jsxs)("aside",{className:"bg-amber-50 p-3",children:[(0,c.jsx)("h3",{className:"text-2xl text-cyan-400",children:"this is aside"}),(0,c.jsxs)("ul",{children:[(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{to:"/main",children:"main"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{to:"/main/article",children:"article"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{to:"/main/list/1",children:"article list one"})}),(0,c.jsx)("li",{children:(0,c.jsx)(a.rU,{to:"/main/profile",children:"profile"})})]})]}),(0,c.jsx)(o.j3,{})]});function _(){const[e,t]=(0,l.useState)(0),[s,r]=(0,l.useState)(1);return(0,l.useEffect)((()=>{console.log("one");const e=setInterval((()=>{t((e=>e+s))}),1e3);return()=>clearInterval(e)}),[s]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("h1",{children:["counter: ",e]}),(0,c.jsx)("label",{htmlFor:"step",className:"text-input-label",children:"Step"}),(0,c.jsx)("input",{id:"step",className:"text-input",value:s,onChange:e=>r(Number(e.target.value))})]})}var X=function(e){return e.TICK="tick",e.STEP="step",e}(X||{});const K={count:0,step:1};function W(e,t){const{count:s,step:l}=e;if(t.type===X.TICK)return{count:s+l,step:l};if(t.type===X.STEP)return{count:s,step:t.val};throw new Error}function J(){const[e,t]=(0,l.useReducer)(W,K),{count:s,step:r}=e;return(0,l.useEffect)((()=>{console.log("two");const e=setInterval((()=>{t({type:X.TICK})}),1e3);return()=>clearInterval(e)}),[t]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("h1",{children:["counter: ",s]}),(0,c.jsx)("label",{htmlFor:"step",className:"text-input-label",children:"Step"}),(0,c.jsx)("input",{id:"step",className:"text-input",value:r,onChange:e=>{t({type:X.STEP,val:Number(e.target.value)})}})]})}const ee=()=>(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{children:"this is user Discussion"}),(0,c.jsx)(_,{}),(0,c.jsx)(J,{})]});var te=s(245);const se=s(229).Z.create({baseURL:"",timeout:15e3,headers:{"Content-Type":"application/json"}});se.interceptors.request.use((e=>e)),se.interceptors.response.use((e=>e?.data));const le=(e,t)=>(e,s)=>{const l=t(e);return se.request({...l,...s,headers:{...l.headers,...s?.headers}})},re=(le(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/pet",method:"POST",data:t,headers:{"Content-Type":"application/json"}}})),le(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/user",method:"POST",data:t,headers:{"Content-Type":"application/json"}}})),le(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/user/createWithList",method:"POST",data:t,headers:{"Content-Type":"application/json"}}})),le(0,(e=>{let{orderId:t}=e;return{url:`/api/v3/store/order/${t}`,method:"DELETE"}})),le(0,(e=>{let{petId:t}=e;return{url:`/api/v3/pet/${t}`,method:"DELETE"}})),le(0,(e=>{let{username:t}=e;return{url:`/api/v3/user/${t}`,method:"DELETE"}})),le(0,(e=>{let{status:t}=e;return{url:"/api/v3/pet/findByStatus",method:"GET",params:{status:t}}})));le(0,(e=>{let{tags:t}=e;return{url:"/api/v3/pet/findByTags",method:"GET",params:{tags:t}}})),le(0,(()=>({url:"/api/v3/store/inventory",method:"GET"}))),le(0,(e=>{let{orderId:t}=e;return{url:`/api/v3/store/order/${t}`,method:"GET"}})),le(0,(e=>{let{petId:t}=e;return{url:`/api/v3/pet/${t}`,method:"GET"}})),le(0,(e=>{let{username:t}=e;return{url:`/api/v3/user/${t}`,method:"GET"}})),le(0,(e=>{let{username:t,password:s}=e;return{url:"/api/v3/user/login",method:"GET",params:{username:t,password:s}}})),le(0,(()=>({url:"/api/v3/user/logout",method:"GET"}))),le(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/store/order",method:"POST",data:t,headers:{"Content-Type":"application/json"}}})),le(0,(e=>{let{requestBody:t}=e;return{url:"/api/v3/pet",method:"PUT",data:t,headers:{"Content-Type":"application/json"}}})),le(0,(e=>{let{petId:t,name:s,status:l}=e;return{url:`/api/v3/pet/${t}`,method:"POST",params:{name:s,status:l}}})),le(0,(e=>{let{username:t,requestBody:s}=e;return{url:`/api/v3/user/${t}`,method:"PUT",data:s,headers:{"Content-Type":"application/json"}}})),le(0,(e=>{let{petId:t,additionalMetadata:s,requestBody:l}=e;return{url:`/api/v3/pet/${t}/uploadImage`,method:"POST",data:l,params:{additionalMetadata:s},headers:{"Content-Type":"application/octet-stream"}}}));const ae=()=>{const{data:e,isLoading:t,error:s}=(0,te.a)({queryKey:["/api/v3/pet/findByStatus"],queryFn:()=>re({status:"sold"})});return(0,c.jsxs)("div",{children:["this is Profile",t?(0,c.jsx)("p",{children:"loading"}):s?(0,c.jsx)("p",{children:"error"}):(0,c.jsxs)("div",{children:[(0,c.jsxs)("p",{children:["approved: ",e?.[0].status]}),(0,c.jsxs)("p",{children:["approved: ",e?.[0].id]})]})]})};var ne=s(706);let ie=function(e){return e.Red="red",e.Blue="blue",e.Green="green",e}({}),oe=function(e){return e.Small="small",e.Medium="medium",e.Large="large",e}({});const ce={[ie.Blue]:"fill-blue-600",[ie.Red]:"fill-red-600",[ie.Green]:"fill-green-600"},ue={[oe.Small]:"w-6 h-6",[oe.Medium]:"w-12 h-12",[oe.Large]:"w-24 h-24"},de=e=>{let{color:t=ie.Blue,size:s=oe.Medium}=e;return(0,c.jsxs)("div",{role:"status",children:[(0,c.jsxs)("svg",{"aria-hidden":"true",className:(0,d.Z)("h-8 w-8 animate-spin text-gray-200 dark:text-gray-600",ce[t],ue[s]),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,c.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,c.jsx)("span",{className:"sr-only",children:"Loading..."})]})},xe=le(0,(e=>{let{id:t}=e;return{method:"get",url:"/api/customer/getPackageLocation",params:{id:t}}}));function he(){const e=(0,o.f_)();return(0,c.jsxs)("main",{children:[(0,c.jsx)("h1",{children:"Lets locate your package"}),(0,c.jsx)(l.Suspense,{fallback:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(de,{}),(0,c.jsx)("p",{children:"Loading package location..."})]}),children:(0,c.jsx)(o.KP,{resolve:e?.res,errorElement:(0,c.jsx)("p",{children:"Error loading package location!"}),children:(0,c.jsx)(je,{})})})]})}function je(){const e=(0,o.qv)();return(0,c.jsxs)("p",{children:["Your package is at ",e.latitude," lat and"," ",e.longitude," long."]})}function me(){const e=(0,o.f_)();return(0,c.jsxs)("main",{children:[(0,c.jsx)("h1",{children:"Lets locate your package"}),(0,c.jsx)(l.Suspense,{fallback:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(de,{}),(0,c.jsx)("p",{children:"Loading package location..."})]}),children:(0,c.jsxs)("p",{children:["Your package is at ",e.latitude," lat and"," ",e.longitude," long."]})})]})}const ge=[{path:"",element:(0,c.jsx)(H,{})},{path:"article",element:(0,c.jsx)(R,{})},{path:"profile",element:(0,c.jsx)(ae,{})},{path:"list/:listId",element:(0,c.jsx)(q,{})},{path:"discussion",element:(0,c.jsx)(ee,{})},{path:"*",element:(0,c.jsx)(o.Fg,{to:"."})}],pe=[{path:"/",element:(0,c.jsx)(P,{})},{path:"/main",element:(0,c.jsx)(V,{}),children:ge},{path:"/introduce",element:(0,c.jsx)(F,{})},{path:"/form-demo",element:(0,c.jsx)(Q,{})},{path:"/loader-location/:packageId",element:(0,c.jsx)(me,{}),loader:async function(e){let{params:t}=e;return xe(t.packageId)}},{path:"/loader-defer-location/:packageId",element:(0,c.jsx)(he,{}),loader:async function(e){let{params:t}=e;const s=xe(t.packageId);return(0,ne.PQ)({res:s})}},{path:"payment",element:(0,c.jsx)(w,{amount:19.9})}],Ne=(0,a.aj)([{path:"/",element:(0,c.jsx)(h,{}),errorElement:(0,c.jsx)(j,{}),children:pe}],{basename:"/webpack5-react-template/"}),Me=new n.S;var ye=()=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(i.aH,{client:Me,children:(0,c.jsx)(a.pG,{router:Ne})})});const Le=r.s(document.getElementById("root"));(async function(){return Promise.resolve()})().then((()=>{Le.render((0,c.jsx)(l.StrictMode,{children:(0,c.jsx)(ye,{})}))}))}},function(e){e.O(0,[216],(function(){return t=697,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/js/runtime~main.3814c30d.bundle.js b/js/runtime~main.3814c30d.bundle.js deleted file mode 100644 index 2b49a9b..0000000 --- a/js/runtime~main.3814c30d.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var e,t,r,n={},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,u),r.exports}u.m=n,e=[],u.O=function(t,r,n,o){if(!r){var f=1/0;for(l=0;l=o)&&Object.keys(u.O).every((function(e){return u.O[e](r[c])}))?r.splice(c--,1):(i=!1,o0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[r,n,o]},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},u.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);u.r(o);var f={};t=t||[null,r({}),r([]),r(r)];for(var i=2&n&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((function(t){f[t]=function(){return e[t]}}));return f.default=function(){return e},u.d(o,f),o},u.d=function(e,t){for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.p="/webpack5-react-template/",function(){var e={303:0};u.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,o,f=r[0],i=r[1],c=r[2],a=0;if(f.some((function(t){return 0!==e[t]}))){for(n in i)u.o(i,n)&&(u.m[n]=i[n]);if(c)var l=c(u)}for(t&&t(r);a=o)&&Object.keys(a.O).every((function(e){return a.O[e](r[c])}))?r.splice(c--,1):(i=!1,o0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[r,n,o]},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var u={};t=t||[null,r({}),r([]),r(r)];for(var i=2&n&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((function(t){u[t]=function(){return e[t]}}));return u.default=function(){return e},a.d(o,u),o},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,r){return a.f[r](e,t),t}),[]))},a.u=function(e){return"js/"+e+".743c8815.chunk.js"},a.miniCssF=function(e){},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},o="webpack5-react-template:",a.l=function(e,t,r,u){if(n[e])n[e].push(t);else{var i,c;if(void 0!==r)for(var f=document.getElementsByTagName("script"),l=0;l=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function h(e,t,n,i){void 0===i&&(i={});let{window:s=document.defaultView,v5Compat:d=!1}=i,h=s.history,p=a.Pop,m=null,y=v();function v(){return(h.state||{idx:null}).idx}function g(){p=a.Pop;let e=v(),t=null==e?null:e-y;y=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"==typeof e?e:f(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==y&&(y=0,h.replaceState(r({},h.state,{idx:y}),""));let w={get action(){return p},get location(){return e(s,h)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(o,g),m=e,()=>{s.removeEventListener(o,g),m=null}},createHref(e){return t(s,e)},createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=a.Push;let r=c(w.location,e,t);n&&n(r,e),y=v()+1;let o=u(r,y),i=w.createHref(r);try{h.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(i)}d&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=a.Replace;let r=c(w.location,e,t);n&&n(r,e),y=v();let o=u(r,y),i=w.createHref(r);h.replaceState(o,"",i),d&&m&&m({action:p,location:w.location,delta:0})},go(e){return h.go(e)}};return w}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));const m=new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,n,a){return void 0===n&&(n=[]),void 0===a&&(a={}),e.map(((e,o)=>{let i=[...n,o],s="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!a[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=r({},e,t(e),{id:s});return a[s]=n,n}{let n=r({},e,t(e),{id:s,children:void 0});return a[s]=n,e.children&&(n.children=y(e.children,t,i,a)),n}}))}function v(e,t,n){void 0===n&&(n="/");let r=R(("string"==typeof t?d(t):t).pathname||"/",n);if(null==r)return null;let a=g(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=D([r,i.relativePath]),u=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),g(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:k(s,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of b(e.path))a(e,t,n);else a(e,t)})),t}function b(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=b(r.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const w=/^:\w+$/,S=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=-2),t&&(r+=2),n.filter((e=>!S(e))).reduce(((e,t)=>e+(w.test(t)?3:""===t?1:10)),r)}function E(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");return[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const u=l[n];return e[r]=a&&!u?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return s(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(u||"",r),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function C(e){try{return decodeURI(e)}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function P(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function O(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function _(e,t){let n=O(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function T(e,t,n,a){let o;void 0===a&&(a=!1),"string"==typeof e?o=d(e):(o=r({},e),l(!o.pathname||!o.pathname.includes("?"),P("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),P("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),P("#","search","hash",o)));let i,s=""===e||""===o.pathname,u=s?"/":o.pathname;if(null==u)i=n;else{let e=t.length-1;if(!a&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?d(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:N(r),hash:F(a)}}(o,i),f=u&&"/"!==u&&u.endsWith("/"),h=(s||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!h||(c.pathname+="/"),c}const D=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class A extends Error{}class U{constructor(e,t){let n;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],l(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,t)=>n=t)),this.controller=new AbortController;let r=()=>n(new A("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})}),{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let n=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(n,e,void 0,t)),(t=>this.onSettle(n,e,t)));return n.catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof A)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===n&&void 0===r){let n=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)}return void 0===r?(Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,t),r)}emit(e,t){this.subscribers.forEach((n=>n(e,t)))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t))),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),t=await new Promise((t=>{this.subscribe((r=>{e.removeEventListener("abort",n),(r||this.done)&&t(r)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return l(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:M(r)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function M(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const z=function(e,t){return void 0===t&&(t={}),new U(e,"number"==typeof t?{status:t}:t)};class j{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function I(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const B=["post","put","patch","delete"],q=new Set(B),Q=["get",...B],H=new Set(Q),V=new Set([301,302,303,307,308]),W=new Set([307,308]),$={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},K={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},G=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Y=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),X="remix-router-transitions";function Z(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,o=!n;let i;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=Y;let u,f,d={},h=y(e.routes,i,void 0,d),m=e.basename||"/",g=r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),b=null,w=new Set,S=null,k=null,E=null,x=null!=e.hydrationData,C=v(h,e.history.location,m),P=null;if(null==C){let t=ye(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=me(h);C=n,P={[r.id]:t}}let O,_=C.some((e=>e.route.lazy)),T=C.some((e=>e.route.loader));if(_)f=!1;else if(T)if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;f=C.every((e=>e.route.loader&&!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||n&&void 0!==n[e.route.id])))}else f=null!=e.hydrationData;else f=!0;let D,L={historyAction:e.history.action,location:e.history.location,matches:C,initialized:f,navigation:$,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||P,fetchers:new Map,blockers:new Map},N=a.Pop,F=!1,A=!1,U=new Map,M=null,z=!1,j=!1,I=[],B=[],q=new Map,Q=0,H=-1,V=new Map,Z=new Set,ne=new Map,ae=new Map,oe=new Set,ie=new Map,ue=new Map,ce=!1;function fe(e,t){void 0===t&&(t={}),L=r({},L,e);let n=[],a=[];g.v7_fetcherPersist&&L.fetchers.forEach(((e,t)=>{"idle"===e.state&&(oe.has(t)?a.push(t):n.push(t))})),[...w].forEach((e=>e(L,{deletedFetchers:a,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),g.v7_fetcherPersist&&(n.forEach((e=>L.fetchers.delete(e))),a.forEach((e=>ze(e))))}function ge(t,n,o){var i,l;let s,{flushSync:c}=void 0===o?{}:o,f=null!=L.actionData&&null!=L.navigation.formMethod&&xe(L.navigation.formMethod)&&"loading"===L.navigation.state&&!0!==(null==(i=t.state)?void 0:i._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:f?L.actionData:null;let d=n.loaderData?he(L.loaderData,n.loaderData,n.matches||[],n.errors):L.loaderData,p=L.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,J))));let m,y=!0===F||null!=L.navigation.formMethod&&xe(L.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(u&&(h=u,u=void 0),z||N===a.Pop||(N===a.Push?e.history.push(t,t.state):N===a.Replace&&e.history.replace(t,t.state)),N===a.Pop){let e=U.get(L.location.pathname);e&&e.has(t.pathname)?m={currentLocation:L.location,nextLocation:t}:U.has(t.pathname)&&(m={currentLocation:t,nextLocation:L.location})}else if(A){let e=U.get(L.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(L.location.pathname,e)),m={currentLocation:L.location,nextLocation:t}}fe(r({},n,{actionData:s,loaderData:d,historyAction:N,location:t,initialized:!0,navigation:$,revalidation:"idle",restoreScrollPosition:Ke(t,n.matches||L.matches),preventScrollReset:y,blockers:p}),{viewTransitionOpts:m,flushSync:!0===c}),N=a.Pop,F=!1,A=!1,z=!1,j=!1,I=[],B=[]}async function ke(t,n,o){D&&D.abort(),D=null,N=t,z=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&E){let n=$e(e,t);S[n]=E()}}(L.location,L.matches),F=!0===(o&&o.preventScrollReset),A=!0===(o&&o.enableViewTransition);let l=u||h,s=o&&o.overrideNavigation,c=v(l,n,m),f=!0===(o&&o.flushSync);if(!c){let e=ye(404,{pathname:n.pathname}),{matches:t,route:r}=me(l);return We(),void ge(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}if(L.initialized&&!j&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(L.location,n)&&!(o&&o.submission&&xe(o.submission.formMethod)))return void ge(n,{matches:c},{flushSync:f});D=new AbortController;let y,b,w=se(e.history,n,D.signal,o&&o.submission);if(o&&o.pendingError)b={[pe(c).route.id]:o.pendingError};else if(o&&o.submission&&xe(o.submission.formMethod)){let e=await async function(e,t,n,r,o){void 0===o&&(o={});let l;Fe(),fe({navigation:De(t,n)},{flushSync:!0===o.flushSync});let s=Oe(r,t);if(s.route.action||s.route.lazy){if(l=await le("action",e,s,r,d,i,m,g.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else l={type:p.error,error:ye(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(Se(l)){let e;return e=o&&null!=o.replace?o.replace:l.location===L.location.pathname+L.location.search,await Ee(L,l,{submission:n,replace:e}),{shortCircuited:!0}}if(we(l)){let e=pe(r,s.route.id);return!0!==(o&&o.replace)&&(N=a.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:l.error}}}if(be(l))throw ye(400,{type:"defer-action"});return{pendingActionData:{[s.route.id]:l.data}}}(w,n,o.submission,c,{replace:o.replace,flushSync:f});if(e.shortCircuited)return;y=e.pendingActionData,b=e.pendingActionError,s=Te(n,o.submission),f=!1,w=new Request(w.url,{signal:w.signal})}let{shortCircuited:k,loaderData:x,errors:C}=await async function(t,n,a,o,i,l,s,c,f,d,p){let y=o||Te(n,i),v=i||l||_e(y),b=u||h,[w,S]=re(e.history,L,a,v,n,g.v7_partialHydration&&!0===c,j,I,B,oe,ne,Z,b,m,d,p);if(We((e=>!(a&&a.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),H=++Q,0===w.length&&0===S.length){let e=Be();return ge(n,r({matches:a,loaderData:{},errors:p||null},d?{actionData:d}:{},e?{fetchers:new Map(L.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(!(z||g.v7_partialHydration&&c)){S.forEach((e=>{let t=L.fetchers.get(e.key),n=Le(void 0,t?t.data:void 0);L.fetchers.set(e.key,n)}));let e=d||L.actionData;fe(r({navigation:y},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},S.length>0?{fetchers:new Map(L.fetchers)}:{}),{flushSync:f})}S.forEach((e=>{q.has(e.key)&&je(e.key),e.controller&&q.set(e.key,e.controller)}));let k=()=>S.forEach((e=>je(e.key)));D&&D.signal.addEventListener("abort",k);let{results:E,loaderResults:x,fetcherResults:C}=await Pe(L.matches,a,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",k);S.forEach((e=>q.delete(e.key)));let R=ve(E);if(R){if(R.idx>=w.length){let e=S[R.idx-w.length].key;Z.add(e)}return await Ee(L,R.result,{replace:s}),{shortCircuited:!0}}let{loaderData:P,errors:O}=de(L,a,w,x,p,S,C,ie);ie.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&ie.delete(t)}))}));let _=Be(),T=qe(H),N=_||T||S.length>0;return r({loaderData:P,errors:O},N?{fetchers:new Map(L.fetchers)}:{})}(w,n,c,s,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,f,y,b);k||(D=null,ge(n,r({matches:c},y?{actionData:y}:{},{loaderData:x,errors:C})))}async function Ee(o,i,s){let{submission:u,fetcherSubmission:f,replace:d}=void 0===s?{}:s;i.revalidate&&(j=!0);let h=c(o.location,i.location,{_isRedirect:!0});if(l(h,"Expected a location on the redirect navigation"),n){let n=!1;if(i.reloadDocument)n=!0;else if(G.test(i.location)){const r=e.history.createURL(i.location);n=r.origin!==t.location.origin||null==R(r.pathname,m)}if(n)return void(d?t.location.replace(i.location):t.location.assign(i.location))}D=null;let p=!0===d?a.Replace:a.Push,{formMethod:y,formAction:v,formEncType:g}=o.navigation;!u&&!f&&y&&v&&g&&(u=_e(o.navigation));let b=u||f;if(W.has(i.status)&&b&&xe(b.formMethod))await ke(p,h,{submission:r({},b,{formAction:i.location}),preventScrollReset:F});else{let e=Te(h,u);await ke(p,h,{overrideNavigation:e,fetcherSubmission:f,preventScrollReset:F})}}async function Pe(t,n,r,a,o){let l=await Promise.all([...r.map((e=>le("loader",o,e,n,d,i,m,g.v7_relativeSplatPath))),...a.map((t=>{if(t.matches&&t.match&&t.controller)return le("loader",se(e.history,t.path,t.controller.signal),t.match,t.matches,d,i,m,g.v7_relativeSplatPath);return{type:p.error,error:ye(404,{pathname:t.path})}}))]),s=l.slice(0,r.length),u=l.slice(r.length);return await Promise.all([Ce(t,r,s,s.map((()=>o.signal)),!1,L.loaderData),Ce(t,a.map((e=>e.match)),u,a.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:l,loaderResults:s,fetcherResults:u}}function Fe(){j=!0,I.push(...We()),ne.forEach(((e,t)=>{q.has(t)&&(B.push(t),je(t))}))}function Ae(e,t,n){void 0===n&&(n={}),L.fetchers.set(e,t),fe({fetchers:new Map(L.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ue(e,t,n,r){void 0===r&&(r={});let a=pe(L.matches,t);ze(e),fe({errors:{[a.route.id]:n},fetchers:new Map(L.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Me(e){return g.v7_fetcherPersist&&(ae.set(e,(ae.get(e)||0)+1),oe.has(e)&&oe.delete(e)),L.fetchers.get(e)||K}function ze(e){let t=L.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&V.has(e)||je(e),ne.delete(e),V.delete(e),Z.delete(e),oe.delete(e),L.fetchers.delete(e)}function je(e){let t=q.get(e);l(t,"Expected fetch controller: "+e),t.abort(),q.delete(e)}function Ie(e){for(let t of e){let e=Ne(Me(t).data);L.fetchers.set(t,e)}}function Be(){let e=[],t=!1;for(let n of Z){let r=L.fetchers.get(n);l(r,"Expected fetcher: "+n),"loading"===r.state&&(Z.delete(n),e.push(n),t=!0)}return Ie(e),t}function qe(e){let t=[];for(let[n,r]of V)if(r0}function Qe(e){L.blockers.delete(e),ue.delete(e)}function He(e,t){let n=L.blockers.get(e)||J;l("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(L.blockers);r.set(e,t),fe({blockers:r})}function Ve(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===ue.size)return;ue.size>1&&s(!1,"A router only supports one blocker at a time");let a=Array.from(ue.entries()),[o,i]=a[a.length-1],l=L.blockers.get(o);return l&&"proceeding"===l.state?void 0:i({currentLocation:t,nextLocation:n,historyAction:r})?o:void 0}function We(e){let t=[];return ie.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),ie.delete(r))})),t}function $e(e,t){if(k){return k(e,t.map((e=>function(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}(e,L.loaderData))))||e.key}return e.key}function Ke(e,t){if(S){let n=$e(e,t),r=S[n];if("number"==typeof r)return r}return null}return O={get basename(){return m},get future(){return g},get state(){return L},get routes(){return h},get window(){return t},initialize:function(){if(b=e.history.listen((t=>{let{action:n,location:r,delta:a}=t;if(ce)return void(ce=!1);s(0===ue.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=Ve({currentLocation:L.location,nextLocation:r,historyAction:n});return o&&null!=a?(ce=!0,e.history.go(-1*a),void He(o,{state:"blocked",location:r,proceed(){He(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(a)},reset(){let e=new Map(L.blockers);e.set(o,J),fe({blockers:e})}})):ke(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(X);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,U);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(X,JSON.stringify(n))}catch(e){s(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,U);t.addEventListener("pagehide",e),M=()=>t.removeEventListener("pagehide",e)}return L.initialized||ke(a.Pop,L.location,{initialHydration:!0}),O},subscribe:function(e){return w.add(e),()=>w.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,E=t,k=n||null,!x&&L.navigation===$){x=!0;let e=Ke(L.location,L.matches);null!=e&&fe({restoreScrollPosition:e})}return()=>{S=null,E=null,k=null}},navigate:async function t(n,o){if("number"==typeof n)return void e.history.go(n);let i=ee(L.location,L.matches,m,g.v7_prependBasename,n,g.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:l,submission:s,error:u}=te(g.v7_normalizeFormMethod,!1,i,o),f=L.location,d=c(L.location,l,o&&o.state);d=r({},d,e.history.encodeLocation(d));let h=o&&null!=o.replace?o.replace:void 0,p=a.Push;!0===h?p=a.Replace:!1===h||null!=s&&xe(s.formMethod)&&s.formAction===L.location.pathname+L.location.search&&(p=a.Replace);let y=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,v=!0===(o&&o.unstable_flushSync),b=Ve({currentLocation:f,nextLocation:d,historyAction:p});if(!b)return await ke(p,d,{submission:s,pendingError:u,preventScrollReset:y,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:v});He(b,{state:"blocked",location:d,proceed(){He(b,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,o)},reset(){let e=new Map(L.blockers);e.set(b,J),fe({blockers:e})}})},fetch:function(t,n,r,a){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");q.has(t)&&je(t);let s=!0===(a&&a.unstable_flushSync),c=u||h,f=ee(L.location,L.matches,m,g.v7_prependBasename,r,g.v7_relativeSplatPath,n,null==a?void 0:a.relative),p=v(c,f,m);if(!p)return void Ue(t,n,ye(404,{pathname:f}),{flushSync:s});let{path:y,submission:b,error:w}=te(g.v7_normalizeFormMethod,!0,f,a);if(w)return void Ue(t,n,w,{flushSync:s});let S=Oe(p,y);F=!0===(a&&a.preventScrollReset),b&&xe(b.formMethod)?async function(t,n,r,a,o,s,c){if(Fe(),ne.delete(t),!a.route.action&&!a.route.lazy){let e=ye(405,{method:c.formMethod,pathname:r,routeId:n});return void Ue(t,n,e,{flushSync:s})}let f=L.fetchers.get(t);Ae(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(c,f),{flushSync:s});let p=new AbortController,y=se(e.history,r,p.signal,c);q.set(t,p);let b=Q,w=await le("action",y,a,o,d,i,m,g.v7_relativeSplatPath);if(y.signal.aborted)return void(q.get(t)===p&&q.delete(t));if(g.v7_fetcherPersist&&oe.has(t)){if(Se(w)||we(w))return void Ae(t,Ne(void 0))}else{if(Se(w))return q.delete(t),H>b?void Ae(t,Ne(void 0)):(Z.add(t),Ae(t,Le(c)),Ee(L,w,{fetcherSubmission:c}));if(we(w))return void Ue(t,n,w.error)}if(be(w))throw ye(400,{type:"defer-action"});let S=L.navigation.location||L.location,k=se(e.history,S,p.signal),E=u||h,x="idle"!==L.navigation.state?v(E,L.navigation.location,m):L.matches;l(x,"Didn't find any matches after fetcher action");let C=++Q;V.set(t,C);let R=Le(c,w.data);L.fetchers.set(t,R);let[P,O]=re(e.history,L,x,c,S,!1,j,I,B,oe,ne,Z,E,m,{[a.route.id]:w.data},void 0);O.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=L.fetchers.get(t),r=Le(void 0,n?n.data:void 0);L.fetchers.set(t,r),q.has(t)&&je(t),e.controller&&q.set(t,e.controller)})),fe({fetchers:new Map(L.fetchers)});let _=()=>O.forEach((e=>je(e.key)));p.signal.addEventListener("abort",_);let{results:T,loaderResults:F,fetcherResults:A}=await Pe(L.matches,x,P,O,k);if(p.signal.aborted)return;p.signal.removeEventListener("abort",_),V.delete(t),q.delete(t),O.forEach((e=>q.delete(e.key)));let U=ve(T);if(U){if(U.idx>=P.length){let e=O[U.idx-P.length].key;Z.add(e)}return Ee(L,U.result)}let{loaderData:M,errors:z}=de(L,L.matches,P,F,void 0,O,A,ie);if(L.fetchers.has(t)){let e=Ne(w.data);L.fetchers.set(t,e)}qe(C),"loading"===L.navigation.state&&C>H?(l(N,"Expected pending action"),D&&D.abort(),ge(L.navigation.location,{matches:x,loaderData:M,errors:z,fetchers:new Map(L.fetchers)})):(fe({errors:z,loaderData:he(L.loaderData,M,x,z),fetchers:new Map(L.fetchers)}),j=!1)}(t,n,y,S,p,s,b):(ne.set(t,{routeId:n,path:y}),async function(t,n,r,a,o,s,u){let c=L.fetchers.get(t);Ae(t,Le(u,c?c.data:void 0),{flushSync:s});let f=new AbortController,h=se(e.history,r,f.signal);q.set(t,f);let p=Q,y=await le("loader",h,a,o,d,i,m,g.v7_relativeSplatPath);be(y)&&(y=await Re(y,h.signal,!0)||y);q.get(t)===f&&q.delete(t);if(h.signal.aborted)return;if(oe.has(t))return void Ae(t,Ne(void 0));if(Se(y))return H>p?void Ae(t,Ne(void 0)):(Z.add(t),void await Ee(L,y));if(we(y))return void Ue(t,n,y.error);l(!be(y),"Unhandled fetcher deferred data"),Ae(t,Ne(y.data))}(t,n,y,S,p,s,b))},revalidate:function(){Fe(),fe({revalidation:"loading"}),"submitting"!==L.navigation.state&&("idle"!==L.navigation.state?ke(N||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation}):ke(L.historyAction,L.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Me,deleteFetcher:function(e){if(g.v7_fetcherPersist){let t=(ae.get(e)||0)-1;t<=0?(ae.delete(e),oe.add(e)):ae.set(e,t)}else ze(e);fe({fetchers:new Map(L.fetchers)})},dispose:function(){b&&b(),M&&M(),w.clear(),D&&D.abort(),L.fetchers.forEach(((e,t)=>ze(t))),L.blockers.forEach(((e,t)=>Qe(t)))},getBlocker:function(e,t){let n=L.blockers.get(e)||J;return ue.get(e)!==t&&ue.set(e,t),n},deleteBlocker:Qe,_internalFetchControllers:q,_internalActiveDeferreds:ie,_internalSetRoutes:function(e){d={},u=y(e,i,void 0,d)}},O}Symbol("deferred");function ee(e,t,n,r,a,o,i,l){let s,u;if(i){s=[];for(let e of t)if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=T(a||".",_(s,o),R(e.pathname,n)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),null!=a&&""!==a&&"."!==a||!u||!u.route.index||Pe(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(c.pathname="/"===c.pathname?n:D([n,c.pathname])),f(c)}function te(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!Ee(r.formMethod))return{path:n,error:ye(405,{method:r.formMethod})};let a,o,i=()=>({path:n,error:ye(400,{type:"invalid-body"})}),s=r.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=ge(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!xe(u))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!xe(u))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=ue(r.formData),o=r.formData;else if(r.body instanceof FormData)a=ue(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=ce(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=ce(a)}catch(e){return i()}let h={formMethod:u,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(xe(h.formMethod))return{path:n,submission:h};let p=d(n);return t&&p.search&&Pe(p.search)&&a.append("index",""),p.search="?"+a,{path:f(p),submission:h}}function ne(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}function re(e,t,n,a,o,i,l,s,u,c,f,d,h,p,m,y){let g=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(t.location),w=e.createURL(o),S=y?Object.keys(y)[0]:void 0,k=ne(n,S).filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return!!o.loader.hydrate||void 0===t.loaderData[o.id]&&(!t.errors||void 0===t.errors[o.id]);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||s.some((t=>t===e.route.id)))return!0;let u=t.matches[n],c=e;return oe(e,r({currentUrl:b,currentParams:u.params,nextUrl:w,nextParams:c.params},a,{actionResult:g,defaultShouldRevalidate:l||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||ae(u,c)}))})),E=[];return f.forEach(((e,o)=>{if(i||!n.some((t=>t.route.id===e.routeId))||c.has(o))return;let s=v(h,e.path,p);if(!s)return void E.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(o),m=Oe(s,e.path),y=!1;y=!d.has(o)&&(!!u.includes(o)||(f&&"idle"!==f.state&&void 0===f.data?l:oe(m,r({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},a,{actionResult:g,defaultShouldRevalidate:l})))),y&&E.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:m,controller:new AbortController})})),[k,E]}function ae(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function oe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function ie(e,t,n){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let o=n[e.id];l(o,"No route found in manifest");let i={};for(let e in a){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;s(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||m.has(e)||(i[e]=a[e])}Object.assign(o,i),Object.assign(o,r({},t(o),{lazy:void 0}))}async function le(e,t,n,r,a,o,i,s,u){let c,f,d;void 0===u&&(u={});let h=e=>{let r,a=new Promise(((e,t)=>r=t));return d=()=>r(),t.signal.addEventListener("abort",d),Promise.race([e({request:t,params:n.params,context:u.requestContext}),a])};try{let r=n.route[e];if(n.route.lazy)if(r){let e,t=await Promise.all([h(r).catch((t=>{e=t})),ie(n.route,o,a)]);if(e)throw e;f=t[0]}else{if(await ie(n.route,o,a),r=n.route[e],!r){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw ye(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:p.data,data:void 0}}f=await h(r)}else{if(!r){let e=new URL(t.url);throw ye(404,{pathname:e.pathname+e.search})}f=await h(r)}l(void 0!==f,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){c=p.error,f=e}finally{d&&t.signal.removeEventListener("abort",d)}if(ke(f)){let e,a=f.status;if(V.has(a)){let e=f.headers.get("Location");if(l(e,"Redirects returned/thrown from loaders/actions must have a Location header"),G.test(e)){if(!u.isStaticRequest){let n=new URL(t.url),r=e.startsWith("//")?new URL(n.protocol+e):new URL(e),a=null!=R(r.pathname,i);r.origin===n.origin&&a&&(e=r.pathname+r.search+r.hash)}}else e=ee(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,e,s);if(u.isStaticRequest)throw f.headers.set("Location",e),f;return{type:p.redirect,status:a,location:e,revalidate:null!==f.headers.get("X-Remix-Revalidate"),reloadDocument:null!==f.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest){throw{type:c===p.error?p.error:p.data,response:f}}try{let t=f.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?await f.json():await f.text()}catch(e){return{type:p.error,error:e}}return c===p.error?{type:c,error:new j(a,f.statusText,e),headers:f.headers}:{type:p.data,data:e,statusCode:f.status,headers:f.headers}}return c===p.error?{type:c,error:f}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(f)?{type:p.deferred,deferredData:f,statusCode:null==(m=f.init)?void 0:m.status,headers:(null==(y=f.init)?void 0:y.headers)&&new Headers(f.init.headers)}:{type:p.data,data:f};var m,y}function se(e,t,n,r){let a=e.createURL(ge(t)).toString(),o={signal:n};if(r&&xe(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=ue(r.formData):o.body=r.formData}return new Request(a,o)}function ue(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function ce(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function fe(e,t,n,r,a){let o,i={},s=null,u=!1,c={};return n.forEach(((n,f)=>{let d=t[f].route.id;if(l(!Se(n),"Cannot handle redirect results in processLoaderData"),we(n)){let t=pe(e,d),a=n.error;r&&(a=Object.values(r)[0],r=void 0),s=s||{},null==s[t.route.id]&&(s[t.route.id]=a),i[d]=void 0,u||(u=!0,o=I(n.error)?n.error.status:500),n.headers&&(c[d]=n.headers)}else be(n)?(a.set(d,n.deferredData),i[d]=n.deferredData.data):i[d]=n.data,null==n.statusCode||200===n.statusCode||u||(o=n.statusCode),n.headers&&(c[d]=n.headers)})),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:c}}function de(e,t,n,a,o,i,s,u){let{loaderData:c,errors:f}=fe(t,n,a,o,u);for(let t=0;te.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function me(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ye(e,t){let{pathname:n,routeId:r,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(i="Not Found",l='No route matches URL "'+n+'"'):405===e&&(i="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new j(e||500,i,new Error(l),!0)}function ve(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Se(n))return{result:n,idx:t}}}function ge(e){return f(r({},"string"==typeof e?d(e):e,{hash:""}))}function be(e){return e.type===p.deferred}function we(e){return e.type===p.error}function Se(e){return(e&&e.type)===p.redirect}function ke(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ee(e){return H.has(e.toLowerCase())}function xe(e){return q.has(e.toLowerCase())}async function Ce(e,t,n,r,a,o){for(let i=0;ie.route.id===u.route.id)),f=null!=c&&!ae(c,u)&&void 0!==(o&&o[u.route.id]);if(be(s)&&(a||f)){let e=r[i];l(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Re(s,e,a).then((e=>{e&&(n[i]=e||n[i])}))}}}async function Re(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:p.data,data:e.deferredData.unwrappedData}}catch(e){return{type:p.error,error:e}}return{type:p.data,data:e.deferredData.data}}}function Pe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Oe(e,t){let n="string"==typeof t?d(t).search:t.search;if(e[e.length-1].route.index&&Pe(n||""))return e[e.length-1];let r=O(e);return r[r.length-1]}function _e(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function Te(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function De(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Le(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ne(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},746:function(e,t,n){var r=n(959),a=n(962);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n