1import{f as c}from"./C1zYyHL1.js";async function g(t="en",e={}){const{fallbackToEn:a=!0}=e,n=o=>$fetch("/strapi/tags",{query:o}),r=await n({locale:t});return a&&r.data.length===0&&t!=="en"?n({locale:"en"}):r}const h=c("tagsStore",{state:()=>({tags:[],fetchTagsState:"idle",fetchTagsError:null}),getters:{isLoadingTags(t){return t.fetchTagsState==="pending"}},actions:{clearTags(){this.tags=[],this.fetchTagsState="idle",this.fetchTagsError=null},async fetchTags(t="en"){this.fetchTagsState="pending",this.fetchTagsError=null;try{const e=await g(t);return this.tags=e.data??[],this.fetchTagsState="success",e}catch(e){throw this.fetchTagsState="error",this.fetchTagsError="Failed to load tags.",e}}}}),d=18;function T(t){const e=Array.isArray(t)?t[0]:t;if(typeof e!="string"||!/^[1-9]\d*$/.test(e))return null;const a=Number(e);return Number.isSafeInteger(a)?a:null}function i(t){return t<=1?"/blog/":`/blog/${t}/`}function u(t,e){const a=encodeURIComponent(t);return e<=1?`/blog/tags/${a}/`:`/blog/tags/${a}/${e}/`}function f(t){return t==="en"?"/":`/${t}/`}function s(t,e){return t==="en"?e:`/${t}${e}`}function S(t,e){return s(t,i(e))}function b(t,e,a){return s(t,u(e,a))}function P(t,e,a,n){return a<=0?f(t):e<=a?s(t,n(e)):s(t,n(1))}export{d as B,P as a,u as b,i as c,S as d,g as f,b as l,T as p,h as u};
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.