@feedmepos/ui-library 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 1.3.4 - 2025-01-02
2
+
3
+ - `FmTable`
4
+ - make header row not sticky when dragging, making it easier to trigger the drag and drop auto scroll behaviour. related: [#269](https://github.com/feedmepos/ui-library/issues/269)
5
+
6
+ # 1.3.3 - 2024-12-31
7
+
8
+ - `FmDropField`
9
+ - `maxFileSize` prop default to undefined, which means no file size limit.
10
+
1
11
  # 1.3.2 - 2024-12-24
2
12
 
3
13
  - `FmCollapsibleTabs`
@@ -10,8 +10,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
10
10
  disabled: boolean;
11
11
  /** currently disabled */
12
12
  accept: string;
13
- /** Default max is `8mb` */
14
- maxFileSize: number;
15
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
14
  "file-upload": (file: File) => void;
17
15
  "file-rejected": (obj: {
@@ -23,8 +21,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
21
  disabled: boolean;
24
22
  /** currently disabled */
25
23
  accept: string;
26
- /** Default max is `8mb` */
27
- maxFileSize: number;
28
24
  }>>> & {
29
25
  "onFile-upload"?: ((file: File) => any) | undefined;
30
26
  "onFile-rejected"?: ((obj: {
@@ -35,7 +31,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
31
  label: string;
36
32
  disabled: boolean;
37
33
  accept: string;
38
- maxFileSize: number;
39
34
  }, {}>, {
40
35
  label?(_: {}): any;
41
36
  default?(_: {}): any;
@@ -1309,7 +1309,6 @@ export declare const components: {
1309
1309
  };
1310
1310
  maxFileSize: {
1311
1311
  type: import("vue").PropType<number>;
1312
- default: number;
1313
1312
  };
1314
1313
  }>> & {
1315
1314
  "onFile-upload"?: ((file: File) => any) | undefined;
@@ -1341,7 +1340,6 @@ export declare const components: {
1341
1340
  };
1342
1341
  maxFileSize: {
1343
1342
  type: import("vue").PropType<number>;
1344
- default: number;
1345
1343
  };
1346
1344
  }>> & {
1347
1345
  "onFile-upload"?: ((file: File) => any) | undefined;
@@ -1353,7 +1351,6 @@ export declare const components: {
1353
1351
  label: string;
1354
1352
  disabled: boolean;
1355
1353
  accept: string;
1356
- maxFileSize: number;
1357
1354
  }, true, {}, {}, {
1358
1355
  P: {};
1359
1356
  B: {};
@@ -1379,7 +1376,6 @@ export declare const components: {
1379
1376
  };
1380
1377
  maxFileSize: {
1381
1378
  type: import("vue").PropType<number>;
1382
- default: number;
1383
1379
  };
1384
1380
  }>> & {
1385
1381
  "onFile-upload"?: ((file: File) => any) | undefined;
@@ -1391,7 +1387,6 @@ export declare const components: {
1391
1387
  label: string;
1392
1388
  disabled: boolean;
1393
1389
  accept: string;
1394
- maxFileSize: number;
1395
1390
  }>;
1396
1391
  __isFragment?: undefined;
1397
1392
  __isTeleport?: undefined;
@@ -1414,7 +1409,6 @@ export declare const components: {
1414
1409
  };
1415
1410
  maxFileSize: {
1416
1411
  type: import("vue").PropType<number>;
1417
- default: number;
1418
1412
  };
1419
1413
  }>> & {
1420
1414
  "onFile-upload"?: ((file: File) => any) | undefined;
@@ -1432,7 +1426,6 @@ export declare const components: {
1432
1426
  label: string;
1433
1427
  disabled: boolean;
1434
1428
  accept: string;
1435
- maxFileSize: number;
1436
1429
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
1437
1430
  $slots: {
1438
1431
  label?(_: {}): any;
@@ -1 +1 @@
1
- import{importShared as le,__tla as Bn}from"./__federation_fn_import-CYKgoy9p.js";let vt,yt,bt,Ln=Promise.all([(()=>{try{return Bn}catch{}})()]).then(async()=>{const{getCurrentInstance:In,inject:D,onUnmounted:Gn,onDeactivated:Dn,onActivated:Fn,computed:q,unref:N,watchEffect:Tn,defineComponent:Oe,reactive:wt,h:Pe,provide:se,ref:Et,watch:kt,shallowRef:Rt,shallowReactive:Ct,nextTick:Ot}=await le("vue"),U=typeof document<"u";function Pt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const C=Object.assign;function ie(e,t){const n={};for(const r in t){const o=t[r];n[r]=A(o)?o.map(e):e(o)}return n}const Q=()=>{},A=Array.isArray,Se=/#/g,St=/&/g,_t=/\//g,$t=/=/g,jt=/\?/g,_e=/\+/g,xt=/%5B/g,At=/%5D/g,$e=/%5E/g,Mt=/%60/g,je=/%7B/g,qt=/%7C/g,xe=/%7D/g,Bt=/%20/g;function ue(e){return encodeURI(""+e).replace(qt,"|").replace(xt,"[").replace(At,"]")}function Lt(e){return ue(e).replace(je,"{").replace(xe,"}").replace($e,"^")}function fe(e){return ue(e).replace(_e,"%2B").replace(Bt,"+").replace(Se,"%23").replace(St,"%26").replace(Mt,"`").replace(je,"{").replace(xe,"}").replace($e,"^")}function It(e){return fe(e).replace($t,"%3D")}function Gt(e){return ue(e).replace(Se,"%23").replace(jt,"%3F")}function Dt(e){return e==null?"":Gt(e).replace(_t,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ft=/\/$/,Tt=e=>e.replace(Ft,"");function pe(e,t,n="/"){let r,o={},u="",p="";const g=t.indexOf("#");let c=t.indexOf("?");return g<c&&g>=0&&(c=-1),c>-1&&(r=t.slice(0,c),u=t.slice(c+1,g>-1?g:t.length),o=e(u)),g>-1&&(r=r||t.slice(0,g),p=t.slice(g,t.length)),r=Ht(r??t,n),{fullPath:r+(u&&"?")+u+p,path:r,query:o,hash:X(p)}}function Ut(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ae(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&V(t.matched[r],n.matched[o])&&Me(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function V(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Me(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Wt(e[n],t[n]))return!1;return!0}function Wt(e,t){return A(e)?qe(e,t):A(t)?qe(t,e):e===t}function qe(e,t){return A(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ht(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,p,g;for(p=0;p<r.length;p++)if(g=r[p],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(p).join("/")}const L={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Y;(function(e){e.pop="pop",e.push="push"})(Y||(Y={}));var Z;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Z||(Z={}));function zt(e){if(!e)if(U){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Tt(e)}const Kt=/^[^#]+#/;function Nt(e,t){return e.replace(Kt,"#")+t}function Qt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ne=()=>({left:window.scrollX,top:window.scrollY});function Xt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Qt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Be(e,t){return(history.state?history.state.position-t:-1)+e}const he=new Map;function Yt(e,t){he.set(e,t)}function Zt(e){const t=he.get(e);return he.delete(e),t}let Jt=()=>location.protocol+"//"+location.host;function Le(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let p=o.includes(e.slice(u))?e.slice(u).length:1,g=o.slice(p);return g[0]!=="/"&&(g="/"+g),Ae(g,"")}return Ae(n,e)+r+o}function en(e,t,n,r){let o=[],u=[],p=null;const g=({state:s})=>{const i=Le(e,location),y=n.value,E=t.value;let P=0;if(s){if(n.value=i,t.value=s,p&&p===y){p=null;return}P=E?s.position-E.position:0}else r(i);o.forEach(S=>{S(n.value,y,{delta:P,type:Y.pop,direction:P?P>0?Z.forward:Z.back:Z.unknown})})};function c(){p=n.value}function f(s){o.push(s);const i=()=>{const y=o.indexOf(s);y>-1&&o.splice(y,1)};return u.push(i),i}function h(){const{history:s}=window;s.state&&s.replaceState(C({},s.state,{scroll:ne()}),"")}function l(){for(const s of u)s();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:f,destroy:l}}function Ie(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ne():null}}function tn(e){const{history:t,location:n}=window,r={value:Le(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(c,f,h){const l=e.indexOf("#"),s=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+c:Jt()+e+c;try{t[h?"replaceState":"pushState"](f,"",s),o.value=f}catch(i){console.error(i),n[h?"replace":"assign"](s)}}function p(c,f){const h=C({},t.state,Ie(o.value.back,c,o.value.forward,!0),f,{position:o.value.position});u(c,h,!0),r.value=c}function g(c,f){const h=C({},o.value,t.state,{forward:c,scroll:ne()});u(h.current,h,!0);const l=C({},Ie(r.value,c,null),{position:h.position+1},f);u(c,l,!1),r.value=c}return{location:r,state:o,push:g,replace:p}}function nn(e){e=zt(e);const t=tn(e),n=en(e,t.state,t.location,t.replace);function r(u,p=!0){p||n.pauseListeners(),history.go(u)}const o=C({location:"",base:e,go:r,createHref:Nt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}yt=function(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nn(e)};function rn(e){return typeof e=="string"||e&&typeof e=="object"}function Ge(e){return typeof e=="string"||typeof e=="symbol"}const De=Symbol("");var Fe;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Fe||(Fe={}));function W(e,t){return C(new Error,{type:e,[De]:!0},t)}function B(e,t){return e instanceof Error&&De in e&&(t==null||!!(e.type&t))}const Te="[^/]+?",on={sensitive:!1,strict:!1,start:!0,end:!0},an=/[.+*?^${}()[\]/\\]/g;function cn(e,t){const n=C({},on,t),r=[];let o=n.start?"^":"";const u=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let l=0;l<f.length;l++){const s=f[l];let i=40+(n.sensitive?.25:0);if(s.type===0)l||(o+="/"),o+=s.value.replace(an,"\\$&"),i+=40;else if(s.type===1){const{value:y,repeatable:E,optional:P,regexp:S}=s;u.push({name:y,repeatable:E,optional:P});const b=S||Te;if(b!==Te){i+=10;try{new RegExp(`(${b})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${y}" (${b}): `+M.message)}}let R=E?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;l||(R=P&&f.length<2?`(?:/${R})`:"/"+R),P&&(R+="?"),o+=R,i+=20,P&&(i+=-8),E&&(i+=-20),b===".*"&&(i+=-50)}h.push(i)}r.push(h)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const p=new RegExp(o,n.sensitive?"":"i");function g(f){const h=f.match(p),l={};if(!h)return null;for(let s=1;s<h.length;s++){const i=h[s]||"",y=u[s-1];l[y.name]=i&&y.repeatable?i.split("/"):i}return l}function c(f){let h="",l=!1;for(const s of e){(!l||!h.endsWith("/"))&&(h+="/"),l=!1;for(const i of s)if(i.type===0)h+=i.value;else if(i.type===1){const{value:y,repeatable:E,optional:P}=i,S=y in f?f[y]:"";if(A(S)&&!E)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const b=A(S)?S.join("/"):S;if(!b)if(P)s.length<2&&(h.endsWith("/")?h=h.slice(0,-1):l=!0);else throw new Error(`Missing required param "${y}"`);h+=b}}return h||"/"}return{re:p,score:r,keys:u,parse:g,stringify:c}}function ln(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ue(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=ln(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Ve(r))return 1;if(Ve(o))return-1}return o.length-r.length}function Ve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const sn={type:0,value:""},un=/[a-zA-Z0-9_]/;function fn(e){if(!e)return[[]];if(e==="/")return[[sn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(i){throw new Error(`ERR (${n})/"${f}": ${i}`)}let n=0,r=n;const o=[];let u;function p(){u&&o.push(u),u=[]}let g=0,c,f="",h="";function l(){f&&(n===0?u.push({type:0,value:f}):n===1||n===2||n===3?(u.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:f,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function s(){f+=c}for(;g<e.length;){if(c=e[g++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(f&&l(),p()):c===":"?(l(),n=1):s();break;case 4:s(),n=r;break;case 1:c==="("?n=2:un.test(c)?s():(l(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&g--);break;case 2:c===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+c:n=3:h+=c;break;case 3:l(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&g--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),l(),p(),o}function pn(e,t,n){const r=cn(fn(e.path),n),o=C(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function hn(e,t){const n=[],r=new Map;t=ze({strict:!1,end:!0,sensitive:!1},t);function o(l){return r.get(l)}function u(l,s,i){const y=!i,E=dn(l);E.aliasOf=i&&i.record;const P=ze(t,l),S=[E];if("alias"in l){const M=typeof l.alias=="string"?[l.alias]:l.alias;for(const T of M)S.push(C({},E,{components:i?i.record.components:E.components,path:T,aliasOf:i?i.record:E}))}let b,R;for(const M of S){const{path:T}=M;if(s&&T[0]!=="/"){const G=s.record.path,x=G[G.length-1]==="/"?"":"/";M.path=s.record.path+(T&&x+T)}if(b=pn(M,s,P),i?i.alias.push(b):(R=R||b,R!==b&&R.alias.push(b),y&&l.name&&!He(b)&&p(l.name)),Ke(b)&&c(b),E.children){const G=E.children;for(let x=0;x<G.length;x++)u(G[x],b,i&&i.children[x])}i=i||b}return R?()=>{p(R)}:Q}function p(l){if(Ge(l)){const s=r.get(l);s&&(r.delete(l),n.splice(n.indexOf(s),1),s.children.forEach(p),s.alias.forEach(p))}else{const s=n.indexOf(l);s>-1&&(n.splice(s,1),l.record.name&&r.delete(l.record.name),l.children.forEach(p),l.alias.forEach(p))}}function g(){return n}function c(l){const s=vn(l,n);n.splice(s,0,l),l.record.name&&!He(l)&&r.set(l.record.name,l)}function f(l,s){let i,y={},E,P;if("name"in l&&l.name){if(i=r.get(l.name),!i)throw W(1,{location:l});P=i.record.name,y=C(We(s.params,i.keys.filter(R=>!R.optional).concat(i.parent?i.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),l.params&&We(l.params,i.keys.map(R=>R.name))),E=i.stringify(y)}else if(l.path!=null)E=l.path,i=n.find(R=>R.re.test(E)),i&&(y=i.parse(E),P=i.record.name);else{if(i=s.name?r.get(s.name):n.find(R=>R.re.test(s.path)),!i)throw W(1,{location:l,currentLocation:s});P=i.record.name,y=C({},s.params,l.params),E=i.stringify(y)}const S=[];let b=i;for(;b;)S.unshift(b.record),b=b.parent;return{name:P,path:E,params:y,matched:S,meta:gn(S)}}e.forEach(l=>u(l));function h(){n.length=0,r.clear()}return{addRoute:u,resolve:f,removeRoute:p,clearRoutes:h,getRoutes:g,getRecordMatcher:o}}function We(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function dn(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:mn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function mn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function He(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gn(e){return e.reduce((t,n)=>C(t,n.meta),{})}function ze(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function vn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;Ue(e,t[u])<0?r=u:n=u+1}const o=yn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function yn(e){let t=e;for(;t=t.parent;)if(Ke(t)&&Ue(e,t)===0)return t}function Ke({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bn(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(_e," "),u=o.indexOf("="),p=X(u<0?o:o.slice(0,u)),g=u<0?null:X(o.slice(u+1));if(p in t){let c=t[p];A(c)||(c=t[p]=[c]),c.push(g)}else t[p]=g}return t}function Ne(e){let t="";for(let n in e){const r=e[n];if(n=It(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(A(r)?r.map(o=>o&&fe(o)):[r&&fe(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function wn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=A(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const En=Symbol(""),Qe=Symbol(""),re=Symbol(""),de=Symbol(""),me=Symbol("");function J(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function I(e,t,n,r,o,u=p=>p()){const p=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,c)=>{const f=s=>{s===!1?c(W(4,{from:n,to:t})):s instanceof Error?c(s):rn(s)?c(W(2,{from:t,to:s})):(p&&r.enterCallbacks[o]===p&&typeof s=="function"&&p.push(s),g())},h=u(()=>e.call(r&&r.instances[o],t,n,f));let l=Promise.resolve(h);e.length<3&&(l=l.then(f)),l.catch(s=>c(s))})}function ge(e,t,n,r,o=u=>u()){const u=[];for(const p of e)for(const g in p.components){let c=p.components[g];if(!(t!=="beforeRouteEnter"&&!p.instances[g]))if(kn(c)){const f=(c.__vccOpts||c)[t];f&&u.push(I(f,n,r,p,g,o))}else{let f=c();u.push(()=>f.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${p.path}"`));const l=Pt(h)?h.default:h;p.components[g]=l;const s=(l.__vccOpts||l)[t];return s&&I(s,n,r,p,g,o)()}))}}return u}function kn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xe(e){const t=D(re),n=D(de),r=q(()=>{const c=N(e.to);return t.resolve(c)}),o=q(()=>{const{matched:c}=r.value,{length:f}=c,h=c[f-1],l=n.matched;if(!h||!l.length)return-1;const s=l.findIndex(V.bind(null,h));if(s>-1)return s;const i=Ye(c[f-2]);return f>1&&Ye(h)===i&&l[l.length-1].path!==i?l.findIndex(V.bind(null,c[f-2])):s}),u=q(()=>o.value>-1&&Pn(n.params,r.value.params)),p=q(()=>o.value>-1&&o.value===n.matched.length-1&&Me(n.params,r.value.params));function g(c={}){return On(c)?t[N(e.replace)?"replace":"push"](N(e.to)).catch(Q):Promise.resolve()}return{route:r,href:q(()=>r.value.href),isActive:u,isExactActive:p,navigate:g}}const Rn=Oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Xe,setup(e,{slots:t}){const n=wt(Xe(e)),{options:r}=D(re),o=q(()=>({[Ze(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ze(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Pe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),Cn=Rn;function On(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Pn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!A(o)||o.length!==r.length||r.some((u,p)=>u!==o[p]))return!1}return!0}function Ye(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ze=(e,t,n)=>e??t??n,Sn=Oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=D(me),o=q(()=>e.route||r.value),u=D(Qe,0),p=q(()=>{let f=N(u);const{matched:h}=o.value;let l;for(;(l=h[f])&&!l.components;)f++;return f}),g=q(()=>o.value.matched[p.value]);se(Qe,q(()=>p.value+1)),se(En,g),se(me,o);const c=Et();return kt(()=>[c.value,g.value,e.name],([f,h,l],[s,i,y])=>{h&&(h.instances[l]=f,i&&i!==h&&f&&f===s&&(h.leaveGuards.size||(h.leaveGuards=i.leaveGuards),h.updateGuards.size||(h.updateGuards=i.updateGuards))),f&&h&&(!i||!V(h,i)||!s)&&(h.enterCallbacks[l]||[]).forEach(E=>E(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,l=g.value,s=l&&l.components[h];if(!s)return Je(n.default,{Component:s,route:f});const i=l.props[h],y=i?i===!0?f.params:typeof i=="function"?i(f):i:null,E=Pe(s,C({},y,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(l.instances[h]=null)},ref:c}));return Je(n.default,{Component:E,route:f})||E}}});function Je(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const _n=Sn;bt=function(e){const t=hn(e.routes,e),n=e.parseQuery||bn,r=e.stringifyQuery||Ne,o=e.history,u=J(),p=J(),g=J(),c=Rt(L);let f=L;U&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ie.bind(null,a=>""+a),l=ie.bind(null,Dt),s=ie.bind(null,X);function i(a,m){let d,v;return Ge(a)?(d=t.getRecordMatcher(a),v=m):v=a,t.addRoute(v,d)}function y(a){const m=t.getRecordMatcher(a);m&&t.removeRoute(m)}function E(){return t.getRoutes().map(a=>a.record)}function P(a){return!!t.getRecordMatcher(a)}function S(a,m){if(m=C({},m||c.value),typeof a=="string"){const w=pe(n,a,m.path),$=t.resolve({path:w.path},m),te=o.createHref(w.fullPath);return C(w,$,{params:s($.params),hash:X(w.hash),redirectedFrom:void 0,href:te})}let d;if(a.path!=null)d=C({},a,{path:pe(n,a.path,m.path).path});else{const w=C({},a.params);for(const $ in w)w[$]==null&&delete w[$];d=C({},a,{params:l(w)}),m.params=l(m.params)}const v=t.resolve(d,m),O=a.hash||"";v.params=h(s(v.params));const _=Ut(r,C({},a,{hash:Lt(O),path:v.path})),k=o.createHref(_);return C({fullPath:_,hash:O,query:r===Ne?wn(a.query):a.query||{}},v,{redirectedFrom:void 0,href:k})}function b(a){return typeof a=="string"?pe(n,a,c.value.path):C({},a)}function R(a,m){if(f!==a)return W(8,{from:m,to:a})}function M(a){return x(a)}function T(a){return M(C(b(a),{replace:!0}))}function G(a){const m=a.matched[a.matched.length-1];if(m&&m.redirect){const{redirect:d}=m;let v=typeof d=="function"?d(a):d;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=b(v):{path:v},v.params={}),C({query:a.query,hash:a.hash,params:v.path!=null?{}:a.params},v)}}function x(a,m){const d=f=S(a),v=c.value,O=a.state,_=a.force,k=a.replace===!0,w=G(d);if(w)return x(C(b(w),{state:typeof w=="object"?C({},O,w.state):O,force:_,replace:k}),m||d);const $=d;$.redirectedFrom=m;let te;return!_&&Vt(r,v,d)&&(te=W(16,{to:$,from:v}),mt(v,v,!0,!1)),(te?Promise.resolve(te):ft($,v)).catch(j=>B(j)?B(j,2)?j:ke(j):Ee(j,$,v)).then(j=>{if(j){if(B(j,2))return x(C({replace:k},b(j.to),{state:typeof j.to=="object"?C({},O,j.to.state):O,force:_}),m||$)}else j=ht($,v,!0,k,O);return pt($,v,j),j})}function An(a,m){const d=R(a,m);return d?Promise.reject(d):Promise.resolve()}function be(a){const m=ce.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(a):a()}function ft(a,m){let d;const[v,O,_]=$n(a,m);d=ge(v.reverse(),"beforeRouteLeave",a,m);for(const w of v)w.leaveGuards.forEach($=>{d.push(I($,a,m))});const k=An.bind(null,a,m);return d.push(k),K(d).then(()=>{d=[];for(const w of u.list())d.push(I(w,a,m));return d.push(k),K(d)}).then(()=>{d=ge(O,"beforeRouteUpdate",a,m);for(const w of O)w.updateGuards.forEach($=>{d.push(I($,a,m))});return d.push(k),K(d)}).then(()=>{d=[];for(const w of _)if(w.beforeEnter)if(A(w.beforeEnter))for(const $ of w.beforeEnter)d.push(I($,a,m));else d.push(I(w.beforeEnter,a,m));return d.push(k),K(d)}).then(()=>(a.matched.forEach(w=>w.enterCallbacks={}),d=ge(_,"beforeRouteEnter",a,m,be),d.push(k),K(d))).then(()=>{d=[];for(const w of p.list())d.push(I(w,a,m));return d.push(k),K(d)}).catch(w=>B(w,8)?w:Promise.reject(w))}function pt(a,m,d){g.list().forEach(v=>be(()=>v(a,m,d)))}function ht(a,m,d,v,O){const _=R(a,m);if(_)return _;const k=m===L,w=U?history.state:{};d&&(v||k?o.replace(a.fullPath,C({scroll:k&&w&&w.scroll},O)):o.push(a.fullPath,O)),c.value=a,mt(a,m,d,k),ke()}let ee;function Mn(){ee||(ee=o.listen((a,m,d)=>{if(!gt.listening)return;const v=S(a),O=G(v);if(O){x(C(O,{replace:!0}),v).catch(Q);return}f=v;const _=c.value;U&&Yt(Be(_.fullPath,d.delta),ne()),ft(v,_).catch(k=>B(k,12)?k:B(k,2)?(x(k.to,v).then(w=>{B(w,20)&&!d.delta&&d.type===Y.pop&&o.go(-1,!1)}).catch(Q),Promise.reject()):(d.delta&&o.go(-d.delta,!1),Ee(k,v,_))).then(k=>{k=k||ht(v,_,!1),k&&(d.delta&&!B(k,8)?o.go(-d.delta,!1):d.type===Y.pop&&B(k,20)&&o.go(-1,!1)),pt(v,_,k)}).catch(Q)}))}let we=J(),dt=J(),ae;function Ee(a,m,d){ke(a);const v=dt.list();return v.length?v.forEach(O=>O(a,m,d)):console.error(a),Promise.reject(a)}function qn(){return ae&&c.value!==L?Promise.resolve():new Promise((a,m)=>{we.add([a,m])})}function ke(a){return ae||(ae=!a,Mn(),we.list().forEach(([m,d])=>a?d(a):m()),we.reset()),a}function mt(a,m,d,v){const{scrollBehavior:O}=e;if(!U||!O)return Promise.resolve();const _=!d&&Zt(Be(a.fullPath,0))||(v||!d)&&history.state&&history.state.scroll||null;return Ot().then(()=>O(a,m,_)).then(k=>k&&Xt(k)).catch(k=>Ee(k,a,m))}const Re=a=>o.go(a);let Ce;const ce=new Set,gt={currentRoute:c,listening:!0,addRoute:i,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:E,resolve:S,options:e,push:M,replace:T,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:u.add,beforeResolve:p.add,afterEach:g.add,onError:dt.add,isReady:qn,install(a){const m=this;a.component("RouterLink",Cn),a.component("RouterView",_n),a.config.globalProperties.$router=m,Object.defineProperty(a.config.globalProperties,"$route",{enumerable:!0,get:()=>N(c)}),U&&!Ce&&c.value===L&&(Ce=!0,M(o.location).catch(O=>{}));const d={};for(const O in L)Object.defineProperty(d,O,{get:()=>c.value[O],enumerable:!0});a.provide(re,m),a.provide(de,Ct(d)),a.provide(me,c);const v=a.unmount;ce.add(a),a.unmount=function(){ce.delete(a),ce.size<1&&(f=L,ee&&ee(),ee=null,c.value=L,Ce=!1,ae=!1),v()}}};function K(a){return a.reduce((m,d)=>m.then(()=>be(d)),Promise.resolve())}return gt};function $n(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let p=0;p<u;p++){const g=t.matched[p];g&&(e.matched.find(f=>V(f,g))?r.push(g):n.push(g));const c=e.matched[p];c&&(t.matched.find(f=>V(f,c))||o.push(c))}return[n,r,o]}function jn(){return D(re)}function xn(e){return D(de)}let et,tt,nt,F,H,oe,ve,ye,rt,ot,at,ct,lt,st,it,ut,z;({defineComponent:et}=await le("vue")),{renderList:tt,Fragment:nt,openBlock:F,createElementBlock:H,toDisplayString:oe,createElementVNode:ve,createCommentVNode:ye,resolveComponent:rt,normalizeClass:ot,withCtx:at,createBlock:ct}=await le("vue"),lt={class:"content-start flex flex-wrap gap-0 items-start max-w-full p-0"},st=["onMouseenter"],it={key:0},{onMounted:ut,ref:z}=await le("vue"),vt=et({__name:"FmBreadcrumb",props:{items:{}},setup(e){const t=xn(),n=jn();ut(async()=>{await n.isReady();const y=r.items.findIndex(E=>E.route==t.path);y!=-1&&!r.items[y].disabled&&(o.value=y)});const r=e,o=z(-1),u=z(-1),p=z(" / "),g=z("... /"),c=z(!1),f=y=>o.value===y?"selected":u.value===y?"hovered":r.items[y].disabled?"disabled":"default",h=y=>{r.items[y].disabled||(o.value=y)},l=y=>y!=r.items.length-1,s=y=>!c.value&&r.items.length>5&&y>=2&&y<r.items.length-2,i=()=>{c.value=!c.value};return(y,E)=>{const P=rt("RouterLink");return F(),H("nav",null,[ve("ul",lt,[(F(!0),H(nt,null,tt(y.items,(S,b)=>(F(),H("li",{key:b,class:"empty:hidden flex gap-2 items-center justify-center pl-2 pr-0 py-1",onMouseenter:R=>u.value=b,onMouseleave:E[0]||(E[0]=R=>u.value=-1)},[s(b)?b===3&&!c.value?(F(),H("a",{key:1,onClick:i},oe(g.value),1)):ye("",!0):(F(),ct(P,{key:0,class:ot([f(b),"fm-typo-en-body-md-400"]),to:S.disabled?"":S.route,onClick:R=>h(b)},{default:at(()=>[ve("span",null,oe(S.label),1),l(b)?(F(),H("span",it,oe(p.value),1)):ye("",!0)]),_:2},1032,["class","to","onClick"]))],40,st))),128))])])}}})});export{vt as _,Ln as __tla,yt as a,bt as c};
1
+ import{importShared as le,__tla as qn}from"./__federation_fn_import-CYKgoy9p.js";let vt,yt,bt,Ln=Promise.all([(()=>{try{return qn}catch{}})()]).then(async()=>{const{getCurrentInstance:In,inject:G,onUnmounted:Fn,onDeactivated:Gn,onActivated:Dn,computed:B,unref:N,watchEffect:Tn,defineComponent:Oe,reactive:wt,h:Pe,provide:se,ref:Et,watch:kt,shallowRef:Rt,shallowReactive:Ct,nextTick:Ot}=await le("vue"),U=typeof document<"u";function Pt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const C=Object.assign;function ie(e,t){const n={};for(const r in t){const o=t[r];n[r]=A(o)?o.map(e):e(o)}return n}const Q=()=>{},A=Array.isArray,Se=/#/g,St=/&/g,_t=/\//g,$t=/=/g,jt=/\?/g,_e=/\+/g,xt=/%5B/g,At=/%5D/g,$e=/%5E/g,Mt=/%60/g,je=/%7B/g,Bt=/%7C/g,xe=/%7D/g,qt=/%20/g;function ue(e){return encodeURI(""+e).replace(Bt,"|").replace(xt,"[").replace(At,"]")}function Lt(e){return ue(e).replace(je,"{").replace(xe,"}").replace($e,"^")}function fe(e){return ue(e).replace(_e,"%2B").replace(qt,"+").replace(Se,"%23").replace(St,"%26").replace(Mt,"`").replace(je,"{").replace(xe,"}").replace($e,"^")}function It(e){return fe(e).replace($t,"%3D")}function Ft(e){return ue(e).replace(Se,"%23").replace(jt,"%3F")}function Gt(e){return e==null?"":Ft(e).replace(_t,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Dt=/\/$/,Tt=e=>e.replace(Dt,"");function pe(e,t,n="/"){let r,o={},u="",p="";const g=t.indexOf("#");let c=t.indexOf("?");return g<c&&g>=0&&(c=-1),c>-1&&(r=t.slice(0,c),u=t.slice(c+1,g>-1?g:t.length),o=e(u)),g>-1&&(r=r||t.slice(0,g),p=t.slice(g,t.length)),r=Ht(r??t,n),{fullPath:r+(u&&"?")+u+p,path:r,query:o,hash:X(p)}}function Ut(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ae(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&V(t.matched[r],n.matched[o])&&Me(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function V(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Me(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Wt(e[n],t[n]))return!1;return!0}function Wt(e,t){return A(e)?Be(e,t):A(t)?Be(t,e):e===t}function Be(e,t){return A(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ht(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,p,g;for(p=0;p<r.length;p++)if(g=r[p],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(p).join("/")}const L={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Y;(function(e){e.pop="pop",e.push="push"})(Y||(Y={}));var Z;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Z||(Z={}));function zt(e){if(!e)if(U){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Tt(e)}const Kt=/^[^#]+#/;function Nt(e,t){return e.replace(Kt,"#")+t}function Qt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ne=()=>({left:window.scrollX,top:window.scrollY});function Xt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Qt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function qe(e,t){return(history.state?history.state.position-t:-1)+e}const he=new Map;function Yt(e,t){he.set(e,t)}function Zt(e){const t=he.get(e);return he.delete(e),t}let Jt=()=>location.protocol+"//"+location.host;function Le(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let p=o.includes(e.slice(u))?e.slice(u).length:1,g=o.slice(p);return g[0]!=="/"&&(g="/"+g),Ae(g,"")}return Ae(n,e)+r+o}function en(e,t,n,r){let o=[],u=[],p=null;const g=({state:s})=>{const i=Le(e,location),y=n.value,E=t.value;let P=0;if(s){if(n.value=i,t.value=s,p&&p===y){p=null;return}P=E?s.position-E.position:0}else r(i);o.forEach(S=>{S(n.value,y,{delta:P,type:Y.pop,direction:P?P>0?Z.forward:Z.back:Z.unknown})})};function c(){p=n.value}function f(s){o.push(s);const i=()=>{const y=o.indexOf(s);y>-1&&o.splice(y,1)};return u.push(i),i}function h(){const{history:s}=window;s.state&&s.replaceState(C({},s.state,{scroll:ne()}),"")}function l(){for(const s of u)s();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:f,destroy:l}}function Ie(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ne():null}}function tn(e){const{history:t,location:n}=window,r={value:Le(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(c,f,h){const l=e.indexOf("#"),s=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+c:Jt()+e+c;try{t[h?"replaceState":"pushState"](f,"",s),o.value=f}catch(i){console.error(i),n[h?"replace":"assign"](s)}}function p(c,f){const h=C({},t.state,Ie(o.value.back,c,o.value.forward,!0),f,{position:o.value.position});u(c,h,!0),r.value=c}function g(c,f){const h=C({},o.value,t.state,{forward:c,scroll:ne()});u(h.current,h,!0);const l=C({},Ie(r.value,c,null),{position:h.position+1},f);u(c,l,!1),r.value=c}return{location:r,state:o,push:g,replace:p}}function nn(e){e=zt(e);const t=tn(e),n=en(e,t.state,t.location,t.replace);function r(u,p=!0){p||n.pauseListeners(),history.go(u)}const o=C({location:"",base:e,go:r,createHref:Nt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}yt=function(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nn(e)};function rn(e){return typeof e=="string"||e&&typeof e=="object"}function Fe(e){return typeof e=="string"||typeof e=="symbol"}const Ge=Symbol("");var De;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(De||(De={}));function W(e,t){return C(new Error,{type:e,[Ge]:!0},t)}function q(e,t){return e instanceof Error&&Ge in e&&(t==null||!!(e.type&t))}const Te="[^/]+?",on={sensitive:!1,strict:!1,start:!0,end:!0},an=/[.+*?^${}()[\]/\\]/g;function cn(e,t){const n=C({},on,t),r=[];let o=n.start?"^":"";const u=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let l=0;l<f.length;l++){const s=f[l];let i=40+(n.sensitive?.25:0);if(s.type===0)l||(o+="/"),o+=s.value.replace(an,"\\$&"),i+=40;else if(s.type===1){const{value:y,repeatable:E,optional:P,regexp:S}=s;u.push({name:y,repeatable:E,optional:P});const b=S||Te;if(b!==Te){i+=10;try{new RegExp(`(${b})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${y}" (${b}): `+M.message)}}let R=E?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;l||(R=P&&f.length<2?`(?:/${R})`:"/"+R),P&&(R+="?"),o+=R,i+=20,P&&(i+=-8),E&&(i+=-20),b===".*"&&(i+=-50)}h.push(i)}r.push(h)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const p=new RegExp(o,n.sensitive?"":"i");function g(f){const h=f.match(p),l={};if(!h)return null;for(let s=1;s<h.length;s++){const i=h[s]||"",y=u[s-1];l[y.name]=i&&y.repeatable?i.split("/"):i}return l}function c(f){let h="",l=!1;for(const s of e){(!l||!h.endsWith("/"))&&(h+="/"),l=!1;for(const i of s)if(i.type===0)h+=i.value;else if(i.type===1){const{value:y,repeatable:E,optional:P}=i,S=y in f?f[y]:"";if(A(S)&&!E)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const b=A(S)?S.join("/"):S;if(!b)if(P)s.length<2&&(h.endsWith("/")?h=h.slice(0,-1):l=!0);else throw new Error(`Missing required param "${y}"`);h+=b}}return h||"/"}return{re:p,score:r,keys:u,parse:g,stringify:c}}function ln(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ue(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=ln(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Ve(r))return 1;if(Ve(o))return-1}return o.length-r.length}function Ve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const sn={type:0,value:""},un=/[a-zA-Z0-9_]/;function fn(e){if(!e)return[[]];if(e==="/")return[[sn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(i){throw new Error(`ERR (${n})/"${f}": ${i}`)}let n=0,r=n;const o=[];let u;function p(){u&&o.push(u),u=[]}let g=0,c,f="",h="";function l(){f&&(n===0?u.push({type:0,value:f}):n===1||n===2||n===3?(u.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:f,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function s(){f+=c}for(;g<e.length;){if(c=e[g++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(f&&l(),p()):c===":"?(l(),n=1):s();break;case 4:s(),n=r;break;case 1:c==="("?n=2:un.test(c)?s():(l(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&g--);break;case 2:c===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+c:n=3:h+=c;break;case 3:l(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&g--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),l(),p(),o}function pn(e,t,n){const r=cn(fn(e.path),n),o=C(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function hn(e,t){const n=[],r=new Map;t=ze({strict:!1,end:!0,sensitive:!1},t);function o(l){return r.get(l)}function u(l,s,i){const y=!i,E=dn(l);E.aliasOf=i&&i.record;const P=ze(t,l),S=[E];if("alias"in l){const M=typeof l.alias=="string"?[l.alias]:l.alias;for(const T of M)S.push(C({},E,{components:i?i.record.components:E.components,path:T,aliasOf:i?i.record:E}))}let b,R;for(const M of S){const{path:T}=M;if(s&&T[0]!=="/"){const F=s.record.path,x=F[F.length-1]==="/"?"":"/";M.path=s.record.path+(T&&x+T)}if(b=pn(M,s,P),i?i.alias.push(b):(R=R||b,R!==b&&R.alias.push(b),y&&l.name&&!He(b)&&p(l.name)),Ke(b)&&c(b),E.children){const F=E.children;for(let x=0;x<F.length;x++)u(F[x],b,i&&i.children[x])}i=i||b}return R?()=>{p(R)}:Q}function p(l){if(Fe(l)){const s=r.get(l);s&&(r.delete(l),n.splice(n.indexOf(s),1),s.children.forEach(p),s.alias.forEach(p))}else{const s=n.indexOf(l);s>-1&&(n.splice(s,1),l.record.name&&r.delete(l.record.name),l.children.forEach(p),l.alias.forEach(p))}}function g(){return n}function c(l){const s=vn(l,n);n.splice(s,0,l),l.record.name&&!He(l)&&r.set(l.record.name,l)}function f(l,s){let i,y={},E,P;if("name"in l&&l.name){if(i=r.get(l.name),!i)throw W(1,{location:l});P=i.record.name,y=C(We(s.params,i.keys.filter(R=>!R.optional).concat(i.parent?i.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),l.params&&We(l.params,i.keys.map(R=>R.name))),E=i.stringify(y)}else if(l.path!=null)E=l.path,i=n.find(R=>R.re.test(E)),i&&(y=i.parse(E),P=i.record.name);else{if(i=s.name?r.get(s.name):n.find(R=>R.re.test(s.path)),!i)throw W(1,{location:l,currentLocation:s});P=i.record.name,y=C({},s.params,l.params),E=i.stringify(y)}const S=[];let b=i;for(;b;)S.unshift(b.record),b=b.parent;return{name:P,path:E,params:y,matched:S,meta:gn(S)}}e.forEach(l=>u(l));function h(){n.length=0,r.clear()}return{addRoute:u,resolve:f,removeRoute:p,clearRoutes:h,getRoutes:g,getRecordMatcher:o}}function We(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function dn(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:mn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function mn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function He(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gn(e){return e.reduce((t,n)=>C(t,n.meta),{})}function ze(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function vn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;Ue(e,t[u])<0?r=u:n=u+1}const o=yn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function yn(e){let t=e;for(;t=t.parent;)if(Ke(t)&&Ue(e,t)===0)return t}function Ke({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bn(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(_e," "),u=o.indexOf("="),p=X(u<0?o:o.slice(0,u)),g=u<0?null:X(o.slice(u+1));if(p in t){let c=t[p];A(c)||(c=t[p]=[c]),c.push(g)}else t[p]=g}return t}function Ne(e){let t="";for(let n in e){const r=e[n];if(n=It(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(A(r)?r.map(o=>o&&fe(o)):[r&&fe(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function wn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=A(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const En=Symbol(""),Qe=Symbol(""),re=Symbol(""),de=Symbol(""),me=Symbol("");function J(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function I(e,t,n,r,o,u=p=>p()){const p=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,c)=>{const f=s=>{s===!1?c(W(4,{from:n,to:t})):s instanceof Error?c(s):rn(s)?c(W(2,{from:t,to:s})):(p&&r.enterCallbacks[o]===p&&typeof s=="function"&&p.push(s),g())},h=u(()=>e.call(r&&r.instances[o],t,n,f));let l=Promise.resolve(h);e.length<3&&(l=l.then(f)),l.catch(s=>c(s))})}function ge(e,t,n,r,o=u=>u()){const u=[];for(const p of e)for(const g in p.components){let c=p.components[g];if(!(t!=="beforeRouteEnter"&&!p.instances[g]))if(kn(c)){const f=(c.__vccOpts||c)[t];f&&u.push(I(f,n,r,p,g,o))}else{let f=c();u.push(()=>f.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${p.path}"`));const l=Pt(h)?h.default:h;p.components[g]=l;const s=(l.__vccOpts||l)[t];return s&&I(s,n,r,p,g,o)()}))}}return u}function kn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xe(e){const t=G(re),n=G(de),r=B(()=>{const c=N(e.to);return t.resolve(c)}),o=B(()=>{const{matched:c}=r.value,{length:f}=c,h=c[f-1],l=n.matched;if(!h||!l.length)return-1;const s=l.findIndex(V.bind(null,h));if(s>-1)return s;const i=Ye(c[f-2]);return f>1&&Ye(h)===i&&l[l.length-1].path!==i?l.findIndex(V.bind(null,c[f-2])):s}),u=B(()=>o.value>-1&&Pn(n.params,r.value.params)),p=B(()=>o.value>-1&&o.value===n.matched.length-1&&Me(n.params,r.value.params));function g(c={}){return On(c)?t[N(e.replace)?"replace":"push"](N(e.to)).catch(Q):Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:u,isExactActive:p,navigate:g}}const Rn=Oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Xe,setup(e,{slots:t}){const n=wt(Xe(e)),{options:r}=G(re),o=B(()=>({[Ze(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ze(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Pe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),Cn=Rn;function On(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Pn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!A(o)||o.length!==r.length||r.some((u,p)=>u!==o[p]))return!1}return!0}function Ye(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ze=(e,t,n)=>e??t??n,Sn=Oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=G(me),o=B(()=>e.route||r.value),u=G(Qe,0),p=B(()=>{let f=N(u);const{matched:h}=o.value;let l;for(;(l=h[f])&&!l.components;)f++;return f}),g=B(()=>o.value.matched[p.value]);se(Qe,B(()=>p.value+1)),se(En,g),se(me,o);const c=Et();return kt(()=>[c.value,g.value,e.name],([f,h,l],[s,i,y])=>{h&&(h.instances[l]=f,i&&i!==h&&f&&f===s&&(h.leaveGuards.size||(h.leaveGuards=i.leaveGuards),h.updateGuards.size||(h.updateGuards=i.updateGuards))),f&&h&&(!i||!V(h,i)||!s)&&(h.enterCallbacks[l]||[]).forEach(E=>E(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,l=g.value,s=l&&l.components[h];if(!s)return Je(n.default,{Component:s,route:f});const i=l.props[h],y=i?i===!0?f.params:typeof i=="function"?i(f):i:null,E=Pe(s,C({},y,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(l.instances[h]=null)},ref:c}));return Je(n.default,{Component:E,route:f})||E}}});function Je(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const _n=Sn;bt=function(e){const t=hn(e.routes,e),n=e.parseQuery||bn,r=e.stringifyQuery||Ne,o=e.history,u=J(),p=J(),g=J(),c=Rt(L);let f=L;U&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ie.bind(null,a=>""+a),l=ie.bind(null,Gt),s=ie.bind(null,X);function i(a,m){let d,v;return Fe(a)?(d=t.getRecordMatcher(a),v=m):v=a,t.addRoute(v,d)}function y(a){const m=t.getRecordMatcher(a);m&&t.removeRoute(m)}function E(){return t.getRoutes().map(a=>a.record)}function P(a){return!!t.getRecordMatcher(a)}function S(a,m){if(m=C({},m||c.value),typeof a=="string"){const w=pe(n,a,m.path),$=t.resolve({path:w.path},m),te=o.createHref(w.fullPath);return C(w,$,{params:s($.params),hash:X(w.hash),redirectedFrom:void 0,href:te})}let d;if(a.path!=null)d=C({},a,{path:pe(n,a.path,m.path).path});else{const w=C({},a.params);for(const $ in w)w[$]==null&&delete w[$];d=C({},a,{params:l(w)}),m.params=l(m.params)}const v=t.resolve(d,m),O=a.hash||"";v.params=h(s(v.params));const _=Ut(r,C({},a,{hash:Lt(O),path:v.path})),k=o.createHref(_);return C({fullPath:_,hash:O,query:r===Ne?wn(a.query):a.query||{}},v,{redirectedFrom:void 0,href:k})}function b(a){return typeof a=="string"?pe(n,a,c.value.path):C({},a)}function R(a,m){if(f!==a)return W(8,{from:m,to:a})}function M(a){return x(a)}function T(a){return M(C(b(a),{replace:!0}))}function F(a){const m=a.matched[a.matched.length-1];if(m&&m.redirect){const{redirect:d}=m;let v=typeof d=="function"?d(a):d;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=b(v):{path:v},v.params={}),C({query:a.query,hash:a.hash,params:v.path!=null?{}:a.params},v)}}function x(a,m){const d=f=S(a),v=c.value,O=a.state,_=a.force,k=a.replace===!0,w=F(d);if(w)return x(C(b(w),{state:typeof w=="object"?C({},O,w.state):O,force:_,replace:k}),m||d);const $=d;$.redirectedFrom=m;let te;return!_&&Vt(r,v,d)&&(te=W(16,{to:$,from:v}),mt(v,v,!0,!1)),(te?Promise.resolve(te):ft($,v)).catch(j=>q(j)?q(j,2)?j:ke(j):Ee(j,$,v)).then(j=>{if(j){if(q(j,2))return x(C({replace:k},b(j.to),{state:typeof j.to=="object"?C({},O,j.to.state):O,force:_}),m||$)}else j=ht($,v,!0,k,O);return pt($,v,j),j})}function An(a,m){const d=R(a,m);return d?Promise.reject(d):Promise.resolve()}function be(a){const m=ce.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(a):a()}function ft(a,m){let d;const[v,O,_]=$n(a,m);d=ge(v.reverse(),"beforeRouteLeave",a,m);for(const w of v)w.leaveGuards.forEach($=>{d.push(I($,a,m))});const k=An.bind(null,a,m);return d.push(k),K(d).then(()=>{d=[];for(const w of u.list())d.push(I(w,a,m));return d.push(k),K(d)}).then(()=>{d=ge(O,"beforeRouteUpdate",a,m);for(const w of O)w.updateGuards.forEach($=>{d.push(I($,a,m))});return d.push(k),K(d)}).then(()=>{d=[];for(const w of _)if(w.beforeEnter)if(A(w.beforeEnter))for(const $ of w.beforeEnter)d.push(I($,a,m));else d.push(I(w.beforeEnter,a,m));return d.push(k),K(d)}).then(()=>(a.matched.forEach(w=>w.enterCallbacks={}),d=ge(_,"beforeRouteEnter",a,m,be),d.push(k),K(d))).then(()=>{d=[];for(const w of p.list())d.push(I(w,a,m));return d.push(k),K(d)}).catch(w=>q(w,8)?w:Promise.reject(w))}function pt(a,m,d){g.list().forEach(v=>be(()=>v(a,m,d)))}function ht(a,m,d,v,O){const _=R(a,m);if(_)return _;const k=m===L,w=U?history.state:{};d&&(v||k?o.replace(a.fullPath,C({scroll:k&&w&&w.scroll},O)):o.push(a.fullPath,O)),c.value=a,mt(a,m,d,k),ke()}let ee;function Mn(){ee||(ee=o.listen((a,m,d)=>{if(!gt.listening)return;const v=S(a),O=F(v);if(O){x(C(O,{replace:!0}),v).catch(Q);return}f=v;const _=c.value;U&&Yt(qe(_.fullPath,d.delta),ne()),ft(v,_).catch(k=>q(k,12)?k:q(k,2)?(x(k.to,v).then(w=>{q(w,20)&&!d.delta&&d.type===Y.pop&&o.go(-1,!1)}).catch(Q),Promise.reject()):(d.delta&&o.go(-d.delta,!1),Ee(k,v,_))).then(k=>{k=k||ht(v,_,!1),k&&(d.delta&&!q(k,8)?o.go(-d.delta,!1):d.type===Y.pop&&q(k,20)&&o.go(-1,!1)),pt(v,_,k)}).catch(Q)}))}let we=J(),dt=J(),ae;function Ee(a,m,d){ke(a);const v=dt.list();return v.length?v.forEach(O=>O(a,m,d)):console.error(a),Promise.reject(a)}function Bn(){return ae&&c.value!==L?Promise.resolve():new Promise((a,m)=>{we.add([a,m])})}function ke(a){return ae||(ae=!a,Mn(),we.list().forEach(([m,d])=>a?d(a):m()),we.reset()),a}function mt(a,m,d,v){const{scrollBehavior:O}=e;if(!U||!O)return Promise.resolve();const _=!d&&Zt(qe(a.fullPath,0))||(v||!d)&&history.state&&history.state.scroll||null;return Ot().then(()=>O(a,m,_)).then(k=>k&&Xt(k)).catch(k=>Ee(k,a,m))}const Re=a=>o.go(a);let Ce;const ce=new Set,gt={currentRoute:c,listening:!0,addRoute:i,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:E,resolve:S,options:e,push:M,replace:T,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:u.add,beforeResolve:p.add,afterEach:g.add,onError:dt.add,isReady:Bn,install(a){const m=this;a.component("RouterLink",Cn),a.component("RouterView",_n),a.config.globalProperties.$router=m,Object.defineProperty(a.config.globalProperties,"$route",{enumerable:!0,get:()=>N(c)}),U&&!Ce&&c.value===L&&(Ce=!0,M(o.location).catch(O=>{}));const d={};for(const O in L)Object.defineProperty(d,O,{get:()=>c.value[O],enumerable:!0});a.provide(re,m),a.provide(de,Ct(d)),a.provide(me,c);const v=a.unmount;ce.add(a),a.unmount=function(){ce.delete(a),ce.size<1&&(f=L,ee&&ee(),ee=null,c.value=L,Ce=!1,ae=!1),v()}}};function K(a){return a.reduce((m,d)=>m.then(()=>be(d)),Promise.resolve())}return gt};function $n(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let p=0;p<u;p++){const g=t.matched[p];g&&(e.matched.find(f=>V(f,g))?r.push(g):n.push(g));const c=e.matched[p];c&&(t.matched.find(f=>V(f,c))||o.push(c))}return[n,r,o]}function jn(){return G(re)}function xn(e){return G(de)}let et,tt,nt,D,H,oe,ve,ye,rt,ot,at,ct,lt,st,it,ut,z;({defineComponent:et}=await le("vue")),{renderList:tt,Fragment:nt,openBlock:D,createElementBlock:H,toDisplayString:oe,createElementVNode:ve,createCommentVNode:ye,resolveComponent:rt,normalizeClass:ot,withCtx:at,createBlock:ct}=await le("vue"),lt={class:"content-start flex flex-wrap gap-0 items-start max-w-full p-0"},st=["onMouseenter"],it={key:0},{onMounted:ut,ref:z}=await le("vue"),vt=et({__name:"FmBreadcrumb",props:{items:{}},setup(e){const t=xn(),n=jn();ut(async()=>{if(!n){console.warn("FmBreadcrumb: router is not available");return}await n.isReady();const y=r.items.findIndex(E=>E.route==t.path);y!=-1&&!r.items[y].disabled&&(o.value=y)});const r=e,o=z(-1),u=z(-1),p=z(" / "),g=z("... /"),c=z(!1),f=y=>o.value===y?"selected":u.value===y?"hovered":r.items[y].disabled?"disabled":"default",h=y=>{r.items[y].disabled||(o.value=y)},l=y=>y!=r.items.length-1,s=y=>!c.value&&r.items.length>5&&y>=2&&y<r.items.length-2,i=()=>{c.value=!c.value};return(y,E)=>{const P=rt("RouterLink");return D(),H("nav",null,[ve("ul",lt,[(D(!0),H(nt,null,tt(y.items,(S,b)=>(D(),H("li",{key:b,class:"empty:hidden flex gap-2 items-center justify-center pl-2 pr-0 py-1",onMouseenter:R=>u.value=b,onMouseleave:E[0]||(E[0]=R=>u.value=-1)},[s(b)?b===3&&!c.value?(D(),H("a",{key:1,onClick:i},oe(g.value),1)):ye("",!0):(D(),ct(P,{key:0,class:ot([f(b),"fm-typo-en-body-md-400"]),to:S.disabled?"":S.route,onClick:R=>h(b)},{default:at(()=>[ve("span",null,oe(S.label),1),l(b)?(D(),H("span",it,oe(p.value),1)):ye("",!0)]),_:2},1032,["class","to","onClick"]))],40,st))),128))])])}}})});export{vt as _,Ln as __tla,yt as a,bt as c};