import{yt as e}from"./stores-BWYw2E2w.js";function t(e){return e.replace(/^#/,``).split(`?`)[0]}function n(e=window.location.hash){let n=t(e).match(/^\/adap\/([^/]+)\/([^/]+)\/([^/]+)\/form(?:\/(.*))?$/);if(!n)return null;let[,r,i,a,o=``]=n,s=o.replace(/^\/+|\/+$/g,``),c=s.split(`/`).filter(Boolean),l=c[0]===`xml-test`?c[1]||``:c[0]||``;return{basePath:`/adap/${r}/${i}/${a}/form`,zxlPrdId:r,identifyObId:i,accessPortalObId:a,routeSuffix:s,formUuid:l}}function r(e=window.location.hash){return t(e).match(/^\/adap\/([^/]+)$/)?.[1]||null}function i(e=window.location.hash){let t=n(e);return t?`#${t.basePath}`:e.match(/^#\/adap\/([^/]+)/)?.[0]}function a(t){let i=n(t);if(i)return i.zxlPrdId;let a=r(t);if(a)return a;try{return e().zxlPrdId||null}catch{return null}}function o(e,t=window.location.hash){let r=`/${e}`.replace(/\/+/g,`/`);if(i(t))return r;let o=n(t);if(o)return`${o.basePath}${r}`;let s=a(t);return s?`/adap/${s}${r}`:r}export{i as n,o as r,n as t};