1var l=Object.defineProperty;var i=(s,t)=>l(s,"name",{value:t,configurable:!0});import{W as c}from"./client-bundle.BxJJB_ds.js";import g from"./client-bundle.dxOaOoH0.js";import{aI as f,db as h,n as v}from"./client-bundle.htQzhxg8.js";import{C as y}from"./client-bundle.XVbm-KBR.js";import{V as d}from"./client-bundle.Bwnu-XVO.js";import"./client-bundle.BxHsj1O-.js";import"./client-bundle.DnJxGJ4T.js";import"./client-bundle.Bsbwk8zn.js";import"./client-bundle._izUXx5g.js";import"./client-bundle.DLByH8uv.js";import"./client-bundle.D7Ag__zM.js";import"./client-bundle.D0UlY1fq.js";import"./client-bundle.Bn7J11Xw.js";import"./client-bundle.CYgD30nS.js";import"./client-bundle.Cj9orOJ4.js";import"./client-bundle.BFyg3NbL.js";import"./client-bundle.Jpp6dePv.js";import"./client-bundle.-zogajTh.js";import"./client-bundle.BPaz5izT.js";import"./client-bundle.CfvRnJ0h.js";import"./client-bundle.B5fIhjfb.js";import"./client-bundle.DkYt4mow.js";import"./client-bundle.BAY3GtYR.js";import"./client-bundle.CfyBYOeV.js";import"./client-bundle.BGkTtaWy.js";import"./client-bundle.BoytYTyt.js";var _=Object.defineProperty,w=Object.getOwnPropertyDescriptor,u=i((s,t,r,a)=>{for(var e=a>1?void 0:a?w(t,r):t,m=s.length-1,p;m>=0;m--)(p=s[m])&&(e=(a?p(t,r,e):p(e))||e);return a&&e&&_(t,r,e),e},"__decorateClass"),o;let n=(o=class extends d{constructor(){super(...arguments),this.isInvalidSlug=!1}get migratedPath(){const{category1Slug:t,category2Slug:r}=this.$route.params;return`/categories/${[t,r].filter(Boolean).map(encodeURIComponent).join("/")}`}async isCategorySlug(){try{return(await f.fetchCategory1()).some(r=>r.slug===this.$route.params.category1Slug)}catch{return!0}}async serverPrefetch(){if(!await this.isCategorySlug())throw new h({message:`${this.$route.fullPath} is not found`,code:404,request:{},response:{}})}async mounted(){await this.resolveSlug()}async onRouteChange(t,r){t.path!==r.path&&await this.resolveSlug()}async resolveSlug(){if(this.isInvalidSlug=!1,await this.isCategorySlug()){window.location.replace(this.migratedPath);return}this.isInvalidSlug=!0}},i(o,"CategoryGateway"),o);u([c("$route")],n.prototype,"onRouteChange",1);n=u([y({components:{NotFound:g}})],n);var C=i(function(){var t=this,r=t._self._c;return t._self._setupProxy,t.isInvalidSlug?r("NotFound"):r("div")},"render"),S=[],P=v(n,C,S,!1,null,null);const Y=P.exports;export{Y as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.