@webority/repo-checks 0.148.0 → 0.150.0

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.
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import{chmodSync as e,existsSync as t,mkdirSync as n,readFileSync as r,readdirSync as i,realpathSync as a,statSync as o,writeFileSync as s}from"node:fs";import{basename as c,dirname as l,extname as u,join as d,matchesGlob as f,posix as p,relative as m,resolve as h,sep as g,win32 as _}from"node:path";import{spawnSync as v}from"node:child_process";var y=`.webority/baselines/repo-checks-baseline.json`,b=[`raw-measure`,`palette-read`,`raw-colour`,`root-font-size`,`raw-motion`,`dark-read`,`missing-canvas-key`,`repeated-canvas-key`,`raw-bootstrap`,`library-class-restyle`,`rename-wrapper`,`shadowed-library-name`,`single-use-component`,`error-summary-title`,`route-internal-id`].map(e=>`${e}:`),x=class extends Error{};function ee(e,t){return`${e} | ${t}`}function S(e){if(typeof e!=`string`)throw new x(`${y} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);let t=e.indexOf(` | `);if(t===-1)throw new x(`${y} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);return[e.slice(0,t),e.slice(t+3)]}function te(e){let n=d(e,y);if(!t(n))return null;let i;try{i=JSON.parse(r(n,`utf8`))}catch{throw new x(`${y} does not parse.`)}if(typeof i!=`object`||!i||Array.isArray(i)||i.version!==2)throw new x(`${y} has no "version": 2; it is the earlier shape without counts. Delete it and run webority-repo-checks --baseline-init once from the git root, then review and commit the new file.`);for(let e of Object.keys(i))if(e!==`version`&&e!==`findings`&&e!==`counts`&&e!==`accepted`)throw new x(`${y} is not a valid version 2 baseline: unknown key "${e}".`);if(!Array.isArray(i.findings))throw new x(`${y} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);for(let e of i.findings)if(typeof e!=`string`||!e.includes(` | `))throw new x(`${y} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);if(i.counts===null||typeof i.counts!=`object`||Array.isArray(i.counts))throw new x(`${y} is not a valid version 2 baseline: "counts" must be an object of "<rule>:<file>" ids and whole numbers above 0.`);for(let[e,t]of Object.entries(i.counts))if(!b.some(t=>e.startsWith(t))||typeof t!=`number`||!Number.isInteger(t)||t<=0)throw new x(`${y} is not a valid version 2 baseline: count "${e}" must be a ${b.join(`, `)} id with a whole number above 0.`);if(i.accepted!==void 0&&(!Array.isArray(i.accepted)||!i.accepted.every(ne)))throw new x(`${y} is not a valid version 2 baseline: "accepted" must be a list of { "prefix", "reason" } objects with non-empty text.`);return{version:2,findings:i.findings,counts:i.counts,accepted:i.accepted??[]}}function ne(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).every(e=>e===`prefix`||e===`reason`)&&re(e.prefix)&&re(e.reason)}function re(e){return typeof e==`string`&&e.trim()!==``}function ie(e){let t=e.indexOf(`:`);return(t===-1?e:e.slice(t+1)).split(`\\`).join(`/`)}function ae(e,t){let r=d(e,y);n(l(r),{recursive:!0});let i=[...new Set(t.findings??[])].sort(),a={};for(let e of Object.keys(t.counts??{}).sort())a[e]=t.counts[e];let o=[...t.accepted??[]].sort((e,t)=>e.prefix<t.prefix?-1:+(e.prefix>t.prefix)).map(({prefix:e,reason:t})=>({prefix:e,reason:t})),c=o.length?{version:2,findings:i,counts:a,accepted:o}:{version:2,findings:i,counts:a},u=`${JSON.stringify(c,null,4)}\n`;s(r,u)}function oe(e){let t=[...new Set(e.findings??[])].sort(),n={};for(let t of Object.keys(e.counts??{}).sort()){let r=e.counts[t];typeof r==`number`&&r>0&&b.some(e=>t.startsWith(e))&&(n[t]=r)}return{version:2,findings:t,counts:n,accepted:[]}}function se(e,t,n){let r=e=>S(e)[1].split(`:`)[0],i=e=>e.split(`:`)[0],a=e.findings??[],o=e.counts??{},s=t.findings??[],c=t.counts??{},l=new Set(a),u={...o};for(let e of n){if(a.some(t=>r(t)===e)||Object.keys(o).some(t=>i(t)===e))throw new x(`${y} already records ${e}; adopt is only for a rule the baseline has never recorded. Fix new findings, or run --baseline-shrink after fixing old ones.`);let t=s.filter(t=>r(t)===e),n=Object.keys(c).filter(t=>i(t)===e);if(t.length===0&&n.length===0)throw new x(`nothing to adopt for ${e}: no current finding uses that rule id.`);for(let e of t)l.add(e);for(let e of n){let t=c[e];typeof t==`number`&&t>0&&b.some(t=>e.startsWith(t))&&(u[e]=t)}}let d={};for(let e of Object.keys(u).sort())d[e]=u[e];return{version:2,findings:[...l].sort(),counts:d,accepted:e.accepted??[]}}function ce(e,t){if(!t)return e;let n=(e.findings??[]).filter(e=>{let[n]=S(e);return t.pkgs?.has?.(n)??!1}),r={};for(let[n,i]of Object.entries(e.counts??{})){let e=n.indexOf(`:`),a=(e===-1?n:n.slice(e+1)).split(`\\`).join(`/`);(t.dirs??[]).some(e=>{let t=e.split(`\\`).join(`/`);return t===`.`||t===a||a.startsWith(`${t}/`)})&&(r[n]=i)}return{version:2,findings:n,counts:r,accepted:e.accepted??[]}}function le(e,t){let n=new Set(e.findings??[]),r=new Set(t.findings??[]),i=[...r].filter(e=>!n.has(e)).sort(),a=[...r].filter(e=>n.has(e)).sort(),o=[...n].filter(e=>!r.has(e)).sort(),s=/* @__PURE__ */ new Set([...Object.keys(e.counts??{}),...Object.keys(t.counts??{})]),c=[],l=[],u=[];for(let n of[...s].sort()){let r=e.counts?.[n]??0,i=t.counts?.[n]??0,a={id:n,baseline:r,current:i};i>r&&c.push(a),i>0&&i<=r&&l.push(a),r>i&&u.push(a)}return{fresh:i,known:a,stale:o,over:c,within:l,fallen:u}}function ue(e,t){let n=new Set(t.findings??[]),r=[...new Set((e.findings??[]).filter(e=>n.has(e)))].sort(),i={};for(let n of Object.keys(e.counts??{}).sort()){let r=e.counts[n],a=t.counts?.[n]??0,o=Math.min(r,a);o>0&&(i[n]=o)}return{version:2,findings:r,counts:i,accepted:e.accepted??[]}}function de(e,t,n,r){let i=e=>e===n||e.startsWith(`${n}/`),a=[.../* @__PURE__ */ new Set([...e.findings??[],...(t.findings??[]).filter(e=>i(S(e)[0]))])].sort(),o={...e.counts??{}};for(let[e,n]of Object.entries(t.counts??{}))b.some(t=>e.startsWith(t))&&i(ie(e))&&(o[e]=Math.max(o[e]??0,n));let s={prefix:n,reason:r},c=e.accepted??[];return{version:2,findings:a,counts:o,accepted:c.some(e=>e.prefix===n)?c.map(e=>e.prefix===n?s:e):[...c,s]}}var fe=[``,`-top`,`-right`,`-bottom`,`-left`,`-inline`,`-inline-start`,`-inline-end`,`-block`,`-block-start`,`-block-end`],pe=[...fe.map(e=>`padding${e}`),...fe.map(e=>`margin${e}`),`gap`,`row-gap`,`column-gap`,`grid-gap`,`grid-row-gap`,`grid-column-gap`,`inset`,`inset-inline`,`inset-inline-start`,`inset-inline-end`,`inset-block`,`inset-block-start`,`inset-block-end`,`border-radius`,`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`,`border-start-start-radius`,`border-start-end-radius`,`border-end-start-radius`,`border-end-end-radius`,`font`,`font-size`,`font-weight`,`line-height`],me=[`font`,`font-weight`,`line-height`],he=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),ge=[...pe.map(he),`paddingHorizontal`,`paddingVertical`,`paddingStart`,`paddingEnd`,`marginHorizontal`,`marginVertical`,`marginStart`,`marginEnd`,`borderTopStartRadius`,`borderTopEndRadius`,`borderBottomStartRadius`,`borderBottomEndRadius`],_e=[`color`,`background`,`background-color`,`border`,`border-color`,...[`top`,`right`,`bottom`,`left`,`inline`,`inline-start`,`inline-end`,`block`,`block-start`,`block-end`].flatMap(e=>[`border-${e}`,`border-${e}-color`]),`outline`,`outline-color`,`fill`,`stroke`,`box-shadow`,`text-shadow`,`text-decoration-color`,`caret-color`,`accent-color`,`column-rule-color`],ve=[`transition`,`transition-duration`,`transition-timing-function`,`animation`,`animation-duration`,`animation-timing-function`],ye=[..._e.map(he),`shadowColor`,`tintColor`],be=[`px`,`rem`,`em`],xe={primary:`primary`,secondary:`neutral`,success:`success`,info:`info`,warning:`warning`,danger:`danger`,light:`bg-subtle`,dark:`surface-inverse`},Se={".scss":`scss`,".css":`css`,".cshtml":`markup`,".cs":`csharp`,".jsx":`script`,".tsx":`script`,".js":`script`,".ts":`script`},Ce=[`.js`,`.ts`],we=[`node_modules`,`dist`,`generated`,`vendor`,`__tests__`,`__mocks__`],Te=/^[A-Za-z][\w.]*\.Emails?$/,Ee=[`wwwroot/lib/`],De=[`release.json`,`manifest.json`];function Oe(e,n){for(let r=p.dirname(e);r!==`.`&&r!==`/`;r=p.dirname(r))if(De.every(e=>t(d(n,r,e))))return!0;return!1}var ke=`.webority/map.json`,Ae=/* @__PURE__ */ new Map;function je(e){let t=e.endsWith(`/`),n=e.replace(/\/+$/,``).split(`*`).map(e=>e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`)).join(`[^/]*`);return RegExp(t?`^${n}/`:`^${n}$`)}function Me(e){let n=Ae.get(e);if(n)return n;let i=d(e,ke),a=t(i)?JSON.parse(r(i,`utf8`)):{},o=[...(a.generated??[]).flatMap(e=>e.paths),...a.fixtures??[]].map(je);return Ae.set(e,o),o}function Ne(e,t=null){let n=c(e);return e.split(`/`).slice(0,-1).some(e=>we.includes(e)||Te.test(e))||Ee.some(t=>e.toLowerCase().includes(t))||n.includes(`.generated.`)||n.endsWith(`.min.css`)||/\.(?:test|spec)\.[cm]?[jt]sx?$/i.test(n)?!0:t===null?!1:Oe(e,t)||Me(t).some(t=>t.test(e))}var Pe=`bootstrap-ui.md → Tokens: padding, margin, gap, inset, corners, font size, font weight and line height read a space, radius, text, weight or leading token, never a literal.`,Fe=`bootstrap-ui.md → Tokens: a colour is a meaning (var(--color-*) on web, theme.colors["<name>"] on phone), never a hex, rgb(), hsl() or named colour; a product-only colour goes into theme/brand.tokens.json.`,Ie=`bootstrap-ui.md → Tokens: the root font size (html or :root) is the unit the type scale is measured in; never set it.`,Le=`bootstrap-ui.md → Tokens: code reads the colour meaning layer (var(--color-*) on web, theme.colors["<name>"] on phone), never a palette step or a Bootstrap theme colour.`,Re=`bootstrap-ui.md → Tokens: a transition or animation reads a motion token (var(--wui-duration-fast|default|slow), var(--wui-ease-out|in-out|ui|elastic)), never a literal time or easing.`,ze=`bootstrap-ui.md → Tokens: the --wui-dark-* steps are the private dark tier and stay dark in light mode. Read the colour meaning (var(--color-*)), which switches with the theme; a dark band is a scope with data-theme="dark".`,Be=`A list row without a data-canvas key (testID on a phone) cannot be found by a Canvas check or linked to a board node.`,Ve=`Two elements with the same data-canvas key (testID on a phone) make a Canvas check match the wrong one.`,He={web:`data-canvas`,phone:`testID`},Ue=Object.freeze([`high`,`critical`]),We=/ENOTFOUND|ECONNREFUSED|ETIMEDOUT|EAI_AGAIN|\b5\d\d\b/,Ge=[`pnpm`,`audit`,`--json`],Ke=`The advisory service could not be reached. Check the network and push again.`;function qe(e,t){return e===`win32`?{file:t,args:[_.join(_.dirname(t),`node_modules`,`corepack`,`dist`,`corepack.js`),...Ge]}:{file:`corepack`,args:[...Ge]}}function Je(e,t){let n=qe(process.platform,process.execPath),r=v(n.file,n.args,{cwd:t,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0,timeout:6e4}),i=r.error?String(r.error.code??r.error.message):r.stderr??``;return{status:r.status,stdout:r.stdout??``,stderr:i}}function Ye(){return{id:`advisory:unreachable`,message:Ke}}function Xe(e){return{id:`advisory:unreadable`,message:e}}function Ze(e,t={}){let{status:n,stdout:r,stderr:i}=(t.run??Je)(Ge,e),a=null;try{a=JSON.parse(r)}catch{a=null}if(typeof a!=`object`||!a)return We.test(i)?[Ye()]:[Xe(`The advisory report could not be read (exit ${n}): ${String(i||r).slice(0,200)}`)];if(a.advisories===void 0&&a.error!==void 0)return We.test(JSON.stringify(a.error))?[Ye()]:[Xe(`The advisory service returned an error: ${String(a.error?.code??a.error?.summary??`unknown`)}`)];if(a.advisories===null||typeof a.advisories!=`object`)return[Xe(`The advisory report has no advisories section.`)];let o=/* @__PURE__ */ new Map;for(let[e,t]of Object.entries(a.advisories)){if(typeof t!=`object`||!t)return[Xe(`The advisory report has an entry that is not an advisory.`)];let n=t.github_advisory_id??e,r=`advisory:${t.module_name}:${n}`,i=o.get(r);i===void 0&&(i={id:r,advisory:t,fixes:/* @__PURE__ */ new Set,installed:/* @__PURE__ */ new Set},o.set(r,i)),i.fixes.add(String(t.patched_versions));for(let e of Array.isArray(t.findings)?t.findings:[])e?.version!==void 0&&i.installed.add(String(e.version))}let s=[];for(let{id:e,advisory:t,fixes:n,installed:r}of o.values()){let i=String(t.severity??`unknown`),a=r.size>0?` Installed: ${[...r].join(`, `)}.`:``,o={id:e,message:`${i}: ${t.title} (${t.url}).${a} Fixed in ${[...n].join(` or `)}; move to a fixed version, or accept it with --baseline-accept and a reason.`};Ue.includes(i.toLowerCase())||(o.warning=!0),s.push(o)}return s}var Qe=`endpoint-name`,$e=/injectEndpoints\(|createApi\(/,et=/\b([A-Za-z_$][\w$]*)\s*:\s*build\.(?:query|mutation|infiniteQuery)\s*(?:<[^>]*>)?\s*\(/g,tt=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),nt=/* @__PURE__ */ new Set([`node_modules`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),rt=e=>e.split(`\\`).join(`/`),it=e=>e.replace(/[^\n]/g,` `);function at(e){return e.replace(/\/\*[\s\S]*?\*\//g,it).replace(/\/\/[^\n]*/g,it)}function*ot(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=d(e,t.name);t.isDirectory()?nt.has(t.name)||(yield*ot(n)):tt.has(u(t.name))&&(yield n)}}function st(e,t){let n=at(r(e,`utf8`));return $e.test(n)?[...n.matchAll(et)].map(e=>({name:e[1],file:t,line:n.slice(0,e.index).split(`
3
- `).length})):[]}function ct(e){let n=d(e,`src`);if(!t(n))return[];let r=/* @__PURE__ */ new Map;for(let t of ot(n))for(let n of st(t,rt(m(e,t)))){let e=r.get(n.name)??[];e.push(n),r.set(n.name,e)}return[...r.keys()].sort().filter(e=>r.get(e).length>1).map(e=>{let t=r.get(e).map(e=>`${e.file}:${e.line}`).join(`, `);return[`${Qe}:${e}`,`RTK Query endpoint "${e}" is defined more than once: ${t}. RTK Query keeps only one, so the other screen calls the wrong URL. Rename each copy by appending the PascalCase file stem without "Api" (react-native.md -> RTK Query).`]})}var lt=`# Fast only. The expensive verification is \`corepack pnpm check\`, run by hand before pushing
2
+ import{chmodSync as e,existsSync as t,mkdirSync as n,readFileSync as r,readdirSync as i,realpathSync as a,statSync as o,writeFileSync as s}from"node:fs";import{basename as c,dirname as l,extname as u,join as d,matchesGlob as f,posix as p,relative as m,resolve as h,sep as g,win32 as _}from"node:path";import{spawnSync as v}from"node:child_process";var y=`.webority/baselines/repo-checks-baseline.json`,b=[`raw-measure`,`palette-read`,`raw-colour`,`root-font-size`,`raw-motion`,`dark-read`,`missing-canvas-key`,`repeated-canvas-key`,`raw-bootstrap`,`library-class-restyle`,`rename-wrapper`,`shadowed-library-name`,`single-use-component`,`error-summary-title`,`route-internal-id`,`razor-page-handler`,`razor-page-link`,`web-route-literal`,`api-thunk`,`screen-service-import`,`api-call`].map(e=>`${e}:`),x=class extends Error{};function S(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ee(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`&&e.includes(` | `))}function te(e){return Array.isArray(e)&&e.every(ie)}function ne(e,t){return`${e} | ${t}`}function C(e){if(typeof e!=`string`)throw new x(`${y} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);let t=e.indexOf(` | `);if(t===-1)throw new x(`${y} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);return[e.slice(0,t),e.slice(t+3)]}function re(e){let n=d(e,y);if(!t(n))return null;let i;try{i=JSON.parse(r(n,`utf8`))}catch{throw new x(`${y} does not parse.`)}if(!S(i)||i.version!==2)throw new x(`${y} has no "version": 2; it is the earlier shape without counts. Delete it and run webority-repo-checks --baseline-init once from the git root, then review and commit the new file.`);for(let e of Object.keys(i))if(e!==`version`&&e!==`findings`&&e!==`counts`&&e!==`accepted`)throw new x(`${y} is not a valid version 2 baseline: unknown key "${e}".`);if(!ee(i.findings))throw new x(`${y} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);if(!S(i.counts))throw new x(`${y} is not a valid version 2 baseline: "counts" must be an object of "<rule>:<file>" ids and whole numbers above 0.`);let a={};for(let[e,t]of Object.entries(i.counts)){if(!b.some(t=>e.startsWith(t))||typeof t!=`number`||!Number.isInteger(t)||t<=0)throw new x(`${y} is not a valid version 2 baseline: count "${e}" must be a ${b.join(`, `)} id with a whole number above 0.`);a[e]=t}let o=[];if(i.accepted!==void 0){if(!te(i.accepted))throw new x(`${y} is not a valid version 2 baseline: "accepted" must be a list of { "prefix", "reason" } objects with non-empty text.`);o=i.accepted}return{version:2,findings:i.findings,counts:a,accepted:o}}function ie(e){return S(e)&&Object.keys(e).every(e=>e===`prefix`||e===`reason`)&&ae(e.prefix)&&ae(e.reason)}function ae(e){return typeof e==`string`&&e.trim()!==``}function oe(e){let t=e.indexOf(`:`);return(t===-1?e:e.slice(t+1)).split(`\\`).join(`/`)}function w(e,t){let r=d(e,y);n(l(r),{recursive:!0});let i=[...new Set(t.findings??[])].sort(),a={};for(let e of Object.keys(t.counts??{}).sort())a[e]=t.counts[e]??0;let o=[...t.accepted??[]].sort((e,t)=>e.prefix<t.prefix?-1:+(e.prefix>t.prefix)).map(({prefix:e,reason:t})=>({prefix:e,reason:t})),c=o.length?{version:2,findings:i,counts:a,accepted:o}:{version:2,findings:i,counts:a},u=`${JSON.stringify(c,null,4)}\n`;s(r,u)}function se(e){let t=[...new Set(e.findings??[])].sort(),n=e.counts??{},r={};for(let e of Object.keys(n).sort()){let t=n[e];typeof t==`number`&&t>0&&b.some(t=>e.startsWith(t))&&(r[e]=t)}return{version:2,findings:t,counts:r,accepted:[]}}function ce(e,t,n){let r=e=>C(e)[1].split(`:`)[0]??``,i=e=>e.split(`:`)[0]??``,a=e.findings??[],o=e.counts??{},s=t.findings??[],c=t.counts??{},l=new Set(a),u={...o};for(let e of n){if(a.some(t=>r(t)===e)||Object.keys(o).some(t=>i(t)===e))throw new x(`${y} already records ${e}; adopt is only for a rule the baseline has never recorded. Fix new findings, or run --baseline-shrink after fixing old ones.`);let t=s.filter(t=>r(t)===e),n=Object.keys(c).filter(t=>i(t)===e);if(t.length===0&&n.length===0)throw new x(`nothing to adopt for ${e}: no current finding uses that rule id.`);for(let e of t)l.add(e);for(let e of n){let t=c[e];typeof t==`number`&&t>0&&b.some(t=>e.startsWith(t))&&(u[e]=t)}}let d={};for(let e of Object.keys(u).sort())d[e]=u[e]??0;return{version:2,findings:[...l].sort(),counts:d,accepted:e.accepted??[]}}function le(e,t){if(!t)return e;let n=(e.findings??[]).filter(e=>{let[n]=C(e);return t.pkgs?.has?.(n)??!1}),r={};for(let[n,i]of Object.entries(e.counts??{})){let e=n.indexOf(`:`),a=(e===-1?n:n.slice(e+1)).split(`\\`).join(`/`);(t.dirs??[]).some(e=>{let t=e.split(`\\`).join(`/`);return t===`.`||t===a||a.startsWith(`${t}/`)})&&(r[n]=i)}return{version:2,findings:n,counts:r,accepted:e.accepted??[]}}function ue(e,t){let n=new Set(e.findings??[]),r=new Set(t.findings??[]),i=[...r].filter(e=>!n.has(e)).sort(),a=[...r].filter(e=>n.has(e)).sort(),o=[...n].filter(e=>!r.has(e)).sort(),s=/* @__PURE__ */ new Set([...Object.keys(e.counts??{}),...Object.keys(t.counts??{})]),c=[],l=[],u=[];for(let n of[...s].sort()){let r=e.counts?.[n]??0,i=t.counts?.[n]??0,a={id:n,baseline:r,current:i};i>r&&c.push(a),i>0&&i<=r&&l.push(a),r>i&&u.push(a)}return{fresh:i,known:a,stale:o,over:c,within:l,fallen:u}}function de(e,t){let n=new Set(t.findings??[]),r=[...new Set((e.findings??[]).filter(e=>n.has(e)))].sort(),i={};for(let n of Object.keys(e.counts??{}).sort()){let r=e.counts[n]??0,a=t.counts?.[n]??0,o=Math.min(r,a);o>0&&(i[n]=o)}return{version:2,findings:r,counts:i,accepted:e.accepted??[]}}function fe(e,t,n,r){let i=e=>e===n||e.startsWith(`${n}/`),a=[.../* @__PURE__ */ new Set([...e.findings??[],...(t.findings??[]).filter(e=>i(C(e)[0]))])].sort(),o={...e.counts??{}};for(let[e,n]of Object.entries(t.counts??{}))b.some(t=>e.startsWith(t))&&i(oe(e))&&(o[e]=Math.max(o[e]??0,n));let s={prefix:n,reason:r},c=e.accepted??[];return{version:2,findings:a,counts:o,accepted:c.some(e=>e.prefix===n)?c.map(e=>e.prefix===n?s:e):[...c,s]}}var pe=`api-call`,me=`call the operation through api("<OperationId>", request) from src/services/api/api.ts; the URL and reply type come from the generated contract`,he=/\.(?:get|post|put|patch|delete)\s*(?:<[^<>()\n]*>)?\s*\(\s*(?:"|'|`)(?:\/|api\/)/g,ge=/\)\s*:\s*Promise\s*<\s*unknown\s*>\s*(?:\{|=>)/g,_e=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),ve=/\.(?:test|spec)\.[jt]sx?$/,ye=/* @__PURE__ */ new Set([`node_modules`,`generated`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),be=e=>e.split(`\\`).join(`/`),xe=e=>e.replace(/[^\n]/g,` `);function Se(e){return e.replace(/\/\*[\s\S]*?\*\//g,xe).replace(/\/\/[^\n]*/g,xe)}function*Ce(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=d(e,t.name);t.isDirectory()?ye.has(t.name)||(yield*Ce(n)):_e.has(u(t.name))&&!ve.test(t.name)&&(yield n)}}function we(e,t){return[...e.matchAll(t)].map(t=>e.slice(0,t.index).split(`
3
+ `).length)}function Te(e){let n=d(e,`src`);if(!t(n))return[];let i=[];for(let t of Ce(n)){let a=be(m(e,t)),o=be(m(n,t)).split(`/`).slice(0,-1).includes(`services`),s=Se(r(t,`utf8`)),c=[...we(s,he),...o?we(s,ge):[]];for(let e of c)i.push([`${pe}:${a}`,`${a}:${e}: ${me}`])}return i}var Ee=/\btsc\b[^&|;]*--noEmit/,De=/\b(?:pnpm|npm|yarn)\s+(?:run\s+)?typecheck\b/,Oe=/\b(?:pnpm|npm)\s+(?:run\s+)?(build(?::[\w-]+)?)\b/g,ke=5;function Ae(e){return e===`build`||e.startsWith(`build:`)}function je(e,t,n){let r=e.get(t)??``;if(Ee.test(r)||De.test(r))return!0;let i=[];for(let n of r.matchAll(Oe)){let r=n[1];r!==void 0&&r!==t&&e.has(r)&&i.push(r)}return i.length!==0&&i.every(t=>!n.includes(t)&&n.length<=ke&&je(e,t,[...n,t]))}function Me(e){let t;try{t=JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return[]}if(typeof t!=`object`||!t||!(`scripts`in t))return[];let n=t.scripts;if(typeof n!=`object`||!n||Array.isArray(n))return[];let i=/* @__PURE__ */ new Map;for(let[e,t]of Object.entries(n))typeof t==`string`&&i.set(e,t);let a=[];for(let[e,t]of i){if(!Ae(e)||je(i,e,[e]))continue;let n=`package.json script "${e}" runs no type check. react.md, Language: every build script runs tsc --noEmit -p . before Vite, so a type error fails the build. Change it to "tsc --noEmit -p . && ${t}".`;a.push([`build-typecheck:${e}`,n])}return a}var Ne=[``,`-top`,`-right`,`-bottom`,`-left`,`-inline`,`-inline-start`,`-inline-end`,`-block`,`-block-start`,`-block-end`],Pe=[...Ne.map(e=>`padding${e}`),...Ne.map(e=>`margin${e}`),`gap`,`row-gap`,`column-gap`,`grid-gap`,`grid-row-gap`,`grid-column-gap`,`inset`,`inset-inline`,`inset-inline-start`,`inset-inline-end`,`inset-block`,`inset-block-start`,`inset-block-end`,`border-radius`,`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`,`border-start-start-radius`,`border-start-end-radius`,`border-end-start-radius`,`border-end-end-radius`,`font`,`font-size`,`font-weight`,`line-height`],Fe=[`font`,`font-weight`,`line-height`],Ie=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),Le=[...Pe.map(Ie),`paddingHorizontal`,`paddingVertical`,`paddingStart`,`paddingEnd`,`marginHorizontal`,`marginVertical`,`marginStart`,`marginEnd`,`borderTopStartRadius`,`borderTopEndRadius`,`borderBottomStartRadius`,`borderBottomEndRadius`],Re=[`color`,`background`,`background-color`,`border`,`border-color`,...[`top`,`right`,`bottom`,`left`,`inline`,`inline-start`,`inline-end`,`block`,`block-start`,`block-end`].flatMap(e=>[`border-${e}`,`border-${e}-color`]),`outline`,`outline-color`,`fill`,`stroke`,`box-shadow`,`text-shadow`,`text-decoration-color`,`caret-color`,`accent-color`,`column-rule-color`],ze=[`transition`,`transition-duration`,`transition-timing-function`,`animation`,`animation-duration`,`animation-timing-function`],Be=[...Re.map(Ie),`shadowColor`,`tintColor`],Ve=[`px`,`rem`,`em`],He={primary:`primary`,secondary:`neutral`,success:`success`,info:`info`,warning:`warning`,danger:`danger`,light:`bg-subtle`,dark:`surface-inverse`},Ue={".scss":`scss`,".css":`css`,".cshtml":`markup`,".cs":`csharp`,".jsx":`script`,".tsx":`script`,".js":`script`,".ts":`script`},We=[`.js`,`.ts`],Ge=[`node_modules`,`dist`,`generated`,`vendor`,`__tests__`,`__mocks__`],Ke=/^[A-Za-z][\w.]*\.Emails?$/,qe=[`wwwroot/lib/`],Je=[`release.json`,`manifest.json`];function Ye(e,n){for(let r=p.dirname(e);r!==`.`&&r!==`/`;r=p.dirname(r))if(Je.every(e=>t(d(n,r,e))))return!0;return!1}var Xe=`.webority/map.json`,Ze=/* @__PURE__ */ new Map;function Qe(e){let t=e.endsWith(`/`),n=e.replace(/\/+$/,``).split(`*`).map(e=>e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`)).join(`[^/]*`);return RegExp(t?`^${n}/`:`^${n}$`)}function $e(e){let n=Ze.get(e);if(n)return n;let i=d(e,Xe),a=t(i)?JSON.parse(r(i,`utf8`)):{},o=[...(a.generated??[]).flatMap(e=>e.paths),...a.fixtures??[]].map(Qe);return Ze.set(e,o),o}function et(e,t=null){let n=c(e);return e.split(`/`).slice(0,-1).some(e=>Ge.includes(e)||Ke.test(e))||qe.some(t=>e.toLowerCase().includes(t))||n.includes(`.generated.`)||n.endsWith(`.min.css`)||/\.(?:test|spec)\.[cm]?[jt]sx?$/i.test(n)?!0:t===null?!1:Ye(e,t)||$e(t).some(t=>t.test(e))}var tt=`bootstrap-ui.md → Tokens: padding, margin, gap, inset, corners, font size, font weight and line height read a space, radius, text, weight or leading token, never a literal.`,nt=`bootstrap-ui.md → Tokens: a colour is a meaning (var(--color-*) on web, theme.colors["<name>"] on phone), never a hex, rgb(), hsl() or named colour; a product-only colour goes into theme/brand.tokens.json.`,rt=`bootstrap-ui.md → Tokens: the root font size (html or :root) is the unit the type scale is measured in; never set it.`,it=`bootstrap-ui.md → Tokens: code reads the colour meaning layer (var(--color-*) on web, theme.colors["<name>"] on phone), never a palette step or a Bootstrap theme colour.`,at=`bootstrap-ui.md → Tokens: a transition or animation reads a motion token (var(--wui-duration-fast|default|slow), var(--wui-ease-out|in-out|ui|elastic)), never a literal time or easing.`,ot=`bootstrap-ui.md → Tokens: the --wui-dark-* steps are the private dark tier and stay dark in light mode. Read the colour meaning (var(--color-*)), which switches with the theme; a dark band is a scope with data-theme="dark".`,st=`A list row without a data-canvas key (testID on a phone) cannot be found by a Canvas check or linked to a board node.`,ct=`Two elements with the same data-canvas key (testID on a phone) make a Canvas check match the wrong one.`,lt={web:`data-canvas`,phone:`testID`},ut=Object.freeze([`high`,`critical`]),dt=/ENOTFOUND|ECONNREFUSED|ETIMEDOUT|EAI_AGAIN|\b5\d\d\b/,ft=[`pnpm`,`audit`,`--json`],pt=`The advisory service could not be reached. Check the network and push again.`;function mt(e,t){return e===`win32`?{file:t,args:[_.join(_.dirname(t),`node_modules`,`corepack`,`dist`,`corepack.js`),...ft]}:{file:`corepack`,args:[...ft]}}function ht(e,t){let n=mt(process.platform,process.execPath),r=v(n.file,n.args,{cwd:t,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0,timeout:6e4}),i=r.error,a=i?String(i.code??i.message):r.stderr??``;return{status:r.status,stdout:r.stdout??``,stderr:a}}function gt(){return{id:`advisory:unreachable`,message:pt}}function _t(e){return{id:`advisory:unreadable`,message:e}}function vt(e,t={}){let{status:n,stdout:r,stderr:i}=(t.run??ht)(ft,e),a=null;try{a=JSON.parse(r)}catch{a=null}if(typeof a!=`object`||!a)return dt.test(i)?[gt()]:[_t(`The advisory report could not be read (exit ${n}): ${String(i||r).slice(0,200)}`)];if(a.advisories===void 0&&a.error!==void 0)return dt.test(JSON.stringify(a.error))?[gt()]:[_t(`The advisory service returned an error: ${String(a.error?.code??a.error?.summary??`unknown`)}`)];if(a.advisories===null||typeof a.advisories!=`object`)return[_t(`The advisory report has no advisories section.`)];let o=/* @__PURE__ */ new Map;for(let[e,t]of Object.entries(a.advisories)){if(typeof t!=`object`||!t)return[_t(`The advisory report has an entry that is not an advisory.`)];let n=t.github_advisory_id??e,r=`advisory:${t.module_name}:${n}`,i=o.get(r);i===void 0&&(i={id:r,advisory:t,fixes:/* @__PURE__ */ new Set,installed:/* @__PURE__ */ new Set},o.set(r,i)),i.fixes.add(String(t.patched_versions));for(let e of Array.isArray(t.findings)?t.findings:[])e?.version!==void 0&&i.installed.add(String(e.version))}let s=[];for(let{id:e,advisory:t,fixes:n,installed:r}of o.values()){let i=String(t.severity??`unknown`),a=r.size>0?` Installed: ${[...r].join(`, `)}.`:``,o={id:e,message:`${i}: ${t.title} (${t.url}).${a} Fixed in ${[...n].join(` or `)}; move to a fixed version, or accept it with --baseline-accept and a reason.`};ut.includes(i.toLowerCase())||(o.warning=!0),s.push(o)}return s}var yt=`endpoint-name`,bt=/injectEndpoints\(|createApi\(/,xt=/\b([A-Za-z_$][\w$]*)\s*:\s*build\.(?:query|mutation|infiniteQuery)\s*(?:<[^>]*>)?\s*\(/g,St=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),Ct=/* @__PURE__ */ new Set([`node_modules`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),wt=e=>e.split(`\\`).join(`/`),Tt=e=>e.replace(/[^\n]/g,` `);function Et(e){return e.replace(/\/\*[\s\S]*?\*\//g,Tt).replace(/\/\/[^\n]*/g,Tt)}function*Dt(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=d(e,t.name);t.isDirectory()?Ct.has(t.name)||(yield*Dt(n)):St.has(u(t.name))&&(yield n)}}function Ot(e,t){let n=Et(r(e,`utf8`));return bt.test(n)?[...n.matchAll(xt)].map(e=>({name:e[1]??``,file:t,line:n.slice(0,e.index).split(`
4
+ `).length})):[]}function kt(e){let n=d(e,`src`);if(!t(n))return[];let r=/* @__PURE__ */ new Map;for(let t of Dt(n))for(let n of Ot(t,wt(m(e,t)))){let e=r.get(n.name)??[];e.push(n),r.set(n.name,e)}return[...r.keys()].sort().filter(e=>(r.get(e)??[]).length>1).map(e=>{let t=(r.get(e)??[]).map(e=>`${e.file}:${e.line}`).join(`, `);return[`${yt}:${e}`,`RTK Query endpoint "${e}" is defined more than once: ${t}. RTK Query keeps only one, so the other screen calls the wrong URL. Rename each copy by appending the PascalCase file stem without "Api" (react-native.md -> RTK Query).`]})}var At=`# Fast only. The expensive verification is \`corepack pnpm check\`, run by hand before pushing
4
5
  # (CLAUDE.md -> Before pushing). A slow pre-commit gets bypassed within a day, and a hook people bypass is worse than none because
5
6
  # it manufactures confidence without providing it.
6
7
  #
@@ -54,32 +55,37 @@ local_checks="$(git rev-parse --show-toplevel)/.husky/pre-commit.local"
54
55
  if [ -f "$local_checks" ]; then
55
56
  sh "$local_checks" || exit 1
56
57
  fi
57
- `;function ut(e){let t=``,n=!1;for(let r=0;r<e.length;r+=1){let i=e[r];if(n)t+=i,i===`\\`?(t+=e[r+1]??``,r+=1):i===`"`&&(n=!1);else if(i===`"`)n=!0,t+=i;else if(i===`/`&&e[r+1]===`/`){for(;r<e.length&&e[r]!==`
58
+ `;function jt(e){let t=``,n=!1;for(let r=0;r<e.length;r+=1){let i=e[r];if(n)t+=i,i===`\\`?(t+=e[r+1]??``,r+=1):i===`"`&&(n=!1);else if(i===`"`)n=!0,t+=i;else if(i===`/`&&e[r+1]===`/`){for(;r<e.length&&e[r]!==`
58
59
  `;)r+=1;t+=`
59
- `}else if(i===`/`&&e[r+1]===`*`){for(r+=2;r<e.length&&(e[r]!==`*`||e[r+1]!==`/`);)r+=1;r+=1}else t+=i}return JSON.parse(t.replace(/,(\s*[}\]])/g,`$1`))}var dt=/* @__PURE__ */ new Set([`error`,`warning`,`fatal`]);function ft(e,t){if(t===null)return[];let n=v(process.execPath,[t,`check`,`--error-on-warnings`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,`.`],{cwd:e,encoding:`utf8`,maxBuffer:268435456,windowsHide:!0}),r=null;try{r=JSON.parse(n.stdout??``).diagnostics}catch{r=null}if(!Array.isArray(r))return[[`lint:unreadable`,`Biome's report could not be read: ${String(n.stderr||n.stdout||``).slice(0,200)}`]];let i=/* @__PURE__ */ new Map;for(let e of r){if(!dt.has(e.severity))continue;let t=(e.location?.path??`(config)`).replaceAll(`\\`,`/`),n=e.location?.start?.line,r=`${typeof n==`number`&&n>0?`${t}:${n}`:t} ${e.category}: ${String(e.message)}`;i.has(t)||i.set(t,[]),i.get(t).push(r)}return[...i].map(([e,t])=>[`lint:${e}`,t.join(`
60
- `)])}var pt=`metro-bridge`,mt=`This app does not expose the Metro development bridge. In App.js, or a module App.js imports, set globalThis.__METRO_BRIDGE__ = createMetroBridge({ store, navigationRef, signIn, signOut, isSignedIn }) from @webority/mobile-core/metro inside if (__DEV__) (react-native-procedures.md -> Debugging: the development bridge).`,ht=/import\s*\{[^}]*\bcreateMetroBridge\b[^}]*\}\s*from\s*["']@webority\/mobile-core\/metro["']/,gt=/globalThis\.__METRO_BRIDGE__\s*=\s*createMetroBridge\s*\(/,_t=[`App.js`,d(`src`,`App.js`)],vt=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),yt=/* @__PURE__ */ new Set([`node_modules`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),bt=e=>e.split(`\\`).join(`/`),xt=e=>e.replace(/[^\n]/g,` `);function St(e){return e.replace(/\/\*[\s\S]*?\*\//g,xt).replace(/\/\/[^\n]*/g,xt)}function Ct(e){return t(e)?r(e,`utf8`):``}function wt(e){try{return JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return null}}var Tt=/if\s*\(\s*__DEV__\s*\)\s*\{/g;function Et(e,t){for(let n of e.matchAll(Tt)){let r=n.index+n[0].length;if(r>t)break;let i=1;for(let n=r;n<t&&i>0;n++)e[n]===`{`?i++:e[n]===`}`&&i--;if(i>0)return!0}return!1}function Dt(e){if(!e.includes(`__METRO_BRIDGE__`))return!1;let t=St(e);if(!ht.test(t))return!1;let n=gt.exec(t);return n!==null&&Et(t,n.index)}function*Ot(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=d(e,t.name);t.isDirectory()?yt.has(t.name)||(yield*Ot(n)):vt.has(u(t.name))&&(yield n)}}function kt(e){let n=wt(e);if(!n?.dependencies?.[`react-native`]||!t(d(e,`ios`))&&!t(d(e,`android`)))return[];let r=typeof n.main==`string`&&n.main?n.main:`index.js`,i=bt(m(e,d(e,r)));if([d(e,r),..._t.map(t=>d(e,t))].some(e=>Dt(Ct(e))))return[];for(let t of Ot(e))if(Dt(Ct(t)))return[];return[[`${pt}:${i}`,`${i}:1 ${mt}`]]}var At=[...ve].sort((e,t)=>t.length-e.length).join(`|`),jt=RegExp(`(?<![\\w$@.#-])(${At})\\s*:(?!:)([^;{}"]*)`,`gi`),Mt=`read a motion token: var(--wui-duration-fast|default|slow) and var(--wui-ease-out|in-out|ui|elastic)`,Nt=/(?<![\w.#$@-])(\d+(?:\.\d+)?|\.\d+)(ms|s)(?![\w-])/g,Pt=/(?<![\w$@.#-])(?:ease|ease-in|ease-out|ease-in-out|linear|step-start|step-end)(?![\w-])/,Ft=/\b(?:cubic-bezier|steps|linear)\(/;function It(e){let t=e.replace(/!important/gi,``);for(let e=``;e!==t;)e=t,t=t.replace(/var\([^()]*\)/gi,`var()`);t=t.replace(/\$[\w-]+/g,`$v`).replace(/#\{[^}]*\}/g,``).toLowerCase();for(let e of t.matchAll(Nt))if(parseFloat(e[1])>0)return!0;return Pt.test(t)||Ft.test(t)}function Lt(e,t){let n=[];for(let r of e.matchAll(jt))It(r[2])&&n.push({rule:`raw-motion`,...t(r.index),hint:Mt});return n}var Rt={color:/* @__PURE__ */ JSON.parse(`{"$type":"color","bg":{"$value":"{palette.bg-page}","$description":"Page background behind the content area."},"bg-subtle":{"$value":"{palette.bg-elevated}","$description":"Subtle raised background for side panels and bands."},"bg-muted":{"$value":"{palette.bg-muted}","$description":"Muted background for grouped areas and quiet controls."},"surface":{"$value":"{palette.bg-light}","$description":"Card and panel surface."},"surface-inverse":{"$value":"{palette.text-heading}","$description":"Inverse band on a page, such as a dark footer or an inverse toast."},"surface-inverse-raised":{"$value":"color-mix(in srgb, {color.text-inverse} 5%, {color.surface-inverse})","$description":"A card or panel one layer up on an inverse band.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-elevated":{"$value":"color-mix(in srgb, {color.text-inverse} 9%, {color.surface-inverse})","$description":"A floating or highlighted surface two layers up on an inverse band.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-wash-4":{"$value":"color-mix(in srgb, {color.text-inverse} 4%, transparent)","$description":"Faintest translucent wash over an inverse band, for a resting tile or row.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-wash-8":{"$value":"color-mix(in srgb, {color.text-inverse} 8%, transparent)","$description":"Light translucent wash over an inverse band, for a hovered tile or row.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-wash-12":{"$value":"color-mix(in srgb, {color.text-inverse} 12%, transparent)","$description":"Medium translucent wash over an inverse band, for a selected or pressed tile or row.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-wash-24":{"$value":"color-mix(in srgb, {color.text-inverse} 24%, transparent)","$description":"Strong translucent wash over an inverse band, for a divider or a filled chip.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-dark":{"$value":"{palette.text-heading}","$description":"Band that stays dark in light and dark mode, such as a site footer or a dark hero."},"surface-dark-border":{"$value":"color-mix(in srgb, {palette.bg-light} 14%, {palette.text-heading})","$description":"Hairline border or divider on a surface-dark band."},"on-surface-dark":{"$value":"{palette.bg-light}","$description":"Text and icons on a surface-dark band."},"on-surface-dark-muted":{"$value":"color-mix(in srgb, {palette.bg-light} 72%, {palette.text-heading})","$description":"Secondary text on a surface-dark band."},"surface-ink":{"$value":"#0B0E16","$description":"Neutral near-black band, darker than surface-dark, that stays the same in light and dark mode, such as a footer or a contents box."},"text":{"$value":"{palette.text-heading}","$description":"Main heading and body ink."},"text-body":{"$value":"{palette.text-1}","$description":"Body copy on a tinted surface such as an alert body."},"text-muted":{"$value":"{palette.text-2}","$description":"Secondary text for descriptions and muted copy."},"text-subtle":{"$value":"{palette.text-3}","$description":"Tertiary text for hints, captions, timestamps and placeholders."},"text-inverse":{"$value":"{palette.bg-light}","$description":"Text on an inverse surface."},"link":{"$value":"{palette.primary-ink}","$description":"Interactive link text."},"border":{"$value":"{palette.border-light}","$description":"Hairline border of cards, tables and dividers."},"border-subtle":{"$value":"{palette.border-soft}","$description":"Softest border for inner dividers and list edges."},"border-strong":{"$value":"{palette.border-strong}","$description":"Stronger border for emphasised separators, chart axes and unselected control outlines.","$extensions":{"com.webority":{"platforms":["web"]}}},"field-bg":{"$value":"{palette.field-bg}","$description":"Resting fill of input-like controls such as fields and selects."},"field-border":{"$value":"{palette.field-border}","$description":"Resting border of an input-like control such as a field or select."},"field-border-hover":{"$value":"{palette.field-border-hover}","$description":"Hover border of an input-like control.","$extensions":{"com.webority":{"platforms":["web"]}}},"field-border-focus":{"$value":"{palette.primary-30}","$description":"Border of a focused, open or active control such as an input or select."},"focus-ring":{"$value":"{color.primary-text}","$description":"Colour of the keyboard focus ring drawn on focus-visible controls."},"focus-ring-soft":{"$value":"color-mix(in srgb, {color.focus-ring} 25%, transparent)","$description":"Translucent step of the focus ring colour, for a soft halo around a focused field.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrim":{"$value":"color-mix(in srgb, {palette.text-heading} 45%, transparent)","$description":"Dim behind page-level backdrops such as drawers, modals and the shell."},"scrim-strong":{"$value":"color-mix(in srgb, {palette.text-heading} 62%, transparent)","$description":"Stronger dim behind media overlays that carry white ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-scrim":{"$value":"{palette.bg-light}","$description":"Ink on a scrim, such as the text of an overlay."},"progress-track":{"$value":"{palette.progress-track}","$description":"Unfilled track of a progress bar or meter.","$extensions":{"com.webority":{"platforms":["web"]}}},"progress-label":{"$value":"{palette.bg-light}","$description":"Label text inside a progress bar fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"thumb":{"$value":"{palette.bg-light}","$description":"Raised thumb that marks the selected option of a segmented control."},"scrollbar":{"$value":"{palette.scrollbar}","$description":"Resting thumb colour of a thin scrollbar.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrollbar-hover":{"$value":"{palette.scrollbar-hover}","$description":"Scrollbar thumb colour while it is hovered.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrollbar-active":{"$value":"{palette.scrollbar-active}","$description":"Scrollbar thumb colour while it is dragged.","$extensions":{"com.webority":{"platforms":["web"]}}},"primary":{"$value":"{palette.primary}","$description":"Primary fill for buttons, selected states and borders."},"primary-hover":{"$value":"{palette.primary-pressed}","$description":"Primary fill while a control is hovered or pressed."},"primary-soft":{"$value":"{palette.primary-10}","$description":"Soft primary tint behind selected and highlighted rows."},"primary-text":{"$value":"{palette.primary-ink}","$description":"Primary as text and small glyphs on a page."},"on-primary":{"$value":"{palette.primary-text}","$description":"Text and icon colour on a solid primary fill."},"primary-wash":{"$value":"color-mix(in srgb, {color.primary} 8%, transparent)","$description":"Faint translucent primary wash over a surface."},"primary-wash-strong":{"$value":"color-mix(in srgb, {color.primary} 20%, transparent)","$description":"Stronger translucent primary wash over a surface."},"neutral":{"$value":"color-mix(in srgb, {color.text} 8%, transparent)","$description":"Quiet unbranded fill for supporting actions such as Back, Skip and Close."},"neutral-hover":{"$value":"color-mix(in srgb, {color.text} 12%, transparent)","$description":"Neutral fill while a control is hovered."},"neutral-pressed":{"$value":"color-mix(in srgb, {color.text} 16%, transparent)","$description":"Neutral fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"neutral-soft":{"$value":"color-mix(in srgb, {color.text-subtle} 16%, transparent)","$description":"Soft neutral background of the neutral status pill.","$extensions":{"com.webority":{"platforms":["web"]}}},"neutral-text":{"$value":"{color.text-muted}","$description":"Text on the soft neutral background."},"on-neutral":{"$value":"{color.text}","$description":"Ink on a neutral fill."},"success":{"$value":"{palette.success}","$description":"Vivid success fill for badges, dots and success buttons."},"success-pressed":{"$value":"{palette.success-active}","$description":"Success fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-soft":{"$value":"{palette.success-10}","$description":"Soft success background of alerts and badges."},"success-border":{"$value":"{palette.success-30}","$description":"Tinted success border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-text":{"$value":"{palette.success-text}","$description":"Success colour as text on a page or a soft success tint."},"success-text-on-soft":{"$value":"{palette.success-text}","$description":"Success text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-strong":{"$value":"{palette.success-strong}","$description":"Deep success fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-success":{"$value":"#FFFFFF","$description":"Ink on a solid success fill."},"on-success-strong":{"$value":"#FFFFFF","$description":"Ink on a deep success fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning":{"$value":"{palette.warning}","$description":"Vivid warning fill for badges, dots and warning buttons."},"warning-pressed":{"$value":"{palette.warning-active}","$description":"Warning fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-soft":{"$value":"{palette.warning-10}","$description":"Soft warning background of alerts and badges."},"warning-border":{"$value":"{palette.warning-30}","$description":"Tinted warning border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-text":{"$value":"{palette.warning-text}","$description":"Warning colour as text on a page or a soft warning tint."},"warning-text-on-soft":{"$value":"{palette.warning-text}","$description":"Warning text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-strong":{"$value":"{palette.warning-strong}","$description":"Deep warning fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-strong-hover":{"$value":"{palette.warning-strong-hover}","$description":"Deep warning fill while a control is hovered or pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-warning":{"$value":"#FFFFFF","$description":"Ink on a solid warning fill."},"on-warning-strong":{"$value":"#FFFFFF","$description":"Ink on a deep warning fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger":{"$value":"{palette.danger}","$description":"Vivid danger fill for badges, dots and danger buttons."},"danger-pressed":{"$value":"{palette.danger-active}","$description":"Danger fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-soft":{"$value":"{palette.danger-10}","$description":"Soft danger background of alerts and badges."},"danger-border":{"$value":"{palette.danger-30}","$description":"Tinted danger border of alerts and badges."},"danger-text":{"$value":"{palette.danger-text}","$description":"Danger colour as text on a page or a soft danger tint."},"offline-fill":{"$value":"{palette.danger}","$description":"Fill of the offline network banner: the source red, not the contrast-darkened danger fill."},"online-fill":{"$value":"{palette.success}","$description":"Fill of the back-online network banner: the source green, not the contrast-darkened success fill."},"danger-text-on-soft":{"$value":"{palette.danger-text}","$description":"Danger text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-strong":{"$value":"{palette.danger-strong}","$description":"Deep danger fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-strong-hover":{"$value":"{palette.danger-strong-hover}","$description":"Deep danger fill while a control is hovered or pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-danger":{"$value":"#FFFFFF","$description":"Ink on a solid danger fill."},"on-danger-strong":{"$value":"#FFFFFF","$description":"Ink on a deep danger fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"info":{"$value":"{palette.info}","$description":"Vivid info fill for badges, dots and info buttons."},"info-pressed":{"$value":"{palette.info-active}","$description":"Info fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-soft":{"$value":"{palette.info-10}","$description":"Soft info background of alerts and badges."},"info-border":{"$value":"{palette.info-30}","$description":"Tinted info border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-text":{"$value":"{palette.info-text}","$description":"Info colour as text on a page or a soft info tint."},"info-text-on-soft":{"$value":"{palette.info-text}","$description":"Info text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-strong":{"$value":"{palette.info-active}","$description":"Deep info fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-info":{"$value":"#FFFFFF","$description":"Ink on a solid info fill."},"on-info-strong":{"$value":"#FFFFFF","$description":"Ink on a deep info fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-1":{"$value":"{palette.primary}","$description":"Colour of chart series 1, the brand primary.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-2":{"$value":"{palette.chart-2}","$description":"Colour of chart series 2 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-3":{"$value":"{palette.chart-3}","$description":"Colour of chart series 3 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-4":{"$value":"{palette.chart-4}","$description":"Colour of chart series 4 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-5":{"$value":"{palette.chart-5}","$description":"Colour of chart series 5 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-6":{"$value":"{palette.chart-6}","$description":"Colour of chart series 6 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-7":{"$value":"{palette.chart-7}","$description":"Colour of chart series 7 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-8":{"$value":"{palette.chart-8}","$description":"Colour of chart series 8 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-0":{"$value":"{palette.bg-muted}","$description":"Faintest step of the magnitude ramp, for empty heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-1":{"$value":"{palette.primary-10}","$description":"First step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-2":{"$value":"{palette.primary-20}","$description":"Second step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-3":{"$value":"{palette.primary-30}","$description":"Third step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-4":{"$value":"{palette.primary-50}","$description":"Fourth step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-5":{"$value":"{palette.primary-hover}","$description":"Fifth step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-6":{"$value":"{palette.primary-pressed}","$description":"Strongest step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-low":{"$value":"{palette.chart-diverging-low}","$description":"Colour of values below the midpoint in a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-mid":{"$value":"{palette.chart-diverging-mid}","$description":"Neutral midpoint colour of a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-high":{"$value":"{palette.chart-diverging-high}","$description":"Colour of values above the midpoint in a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-neutral":{"$value":"{palette.chart-neutral}","$description":"Context series colour, such as the last period, and the folded Other slice.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-grid":{"$value":"{color.border}","$description":"Gridline colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-axis":{"$value":"{color.border-strong}","$description":"Axis line colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-label":{"$value":"{color.text-subtle}","$description":"Tick and legend text colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"primary-pressed":{"$value":"{palette.phone-primary-pressed}","$description":"Primary fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["phone"]}}},"switch-thumb":{"$value":"{palette.phone-thumb}","$description":"Knob of an on/off switch, white in both modes.","$extensions":{"com.webority":{"platforms":["phone"]}}},"on-neutral-strong":{"$value":"{palette.phone-on-neutral-strong}","$description":"Ink on the solid grey fill of a neutral badge, banner or avatar.","$extensions":{"com.webority":{"platforms":["phone"]}}},"text-disabled":{"$value":"{palette.phone-text-disabled}","$description":"Text of a disabled control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-pressed":{"$value":"{palette.phone-surface-pressed}","$description":"Wash over a surface while it is pressed.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-hover":{"$value":"{palette.phone-surface-hover}","$description":"Wash over a surface under a pointer.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-selected":{"$value":"{palette.phone-surface-selected}","$description":"Wash over a selected surface such as a chosen list row.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-disabled":{"$value":"{palette.phone-surface-disabled}","$description":"Fill of a disabled surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"skeleton":{"$value":"{palette.phone-skeleton}","$description":"Base fill of a loading placeholder.","$extensions":{"com.webority":{"platforms":["phone"]}}},"skeleton-highlight":{"$value":"{palette.phone-skeleton-highlight}","$description":"Moving highlight across a loading placeholder.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-fill":{"$value":"{palette.phone-glass-fill}","$description":"Translucent fill of a control sitting on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-border":{"$value":"{palette.phone-glass-border}","$description":"Border of a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"on-glass":{"$value":"{palette.phone-on-glass}","$description":"Ink on a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-badge":{"$value":"{palette.phone-glass-badge}","$description":"Badge fill on a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-bg-focus":{"$value":"{palette.phone-field-bg-focus}","$description":"Fill of a focused input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-bg-disabled":{"$value":"{palette.phone-field-bg-disabled}","$description":"Fill of a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-border-error":{"$value":"{palette.phone-field-border-error}","$description":"Border of an input-like control holding an invalid value.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-label":{"$value":"{palette.phone-field-label}","$description":"Label above an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-text":{"$value":"{palette.phone-field-text}","$description":"Value text inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-text-disabled":{"$value":"{palette.phone-field-text-disabled}","$description":"Value text inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-placeholder":{"$value":"{palette.phone-field-placeholder}","$description":"Placeholder text inside an empty input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-placeholder-disabled":{"$value":"{palette.phone-field-placeholder-disabled}","$description":"Placeholder text inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon":{"$value":"{palette.phone-field-icon}","$description":"Icon inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon-focus":{"$value":"{palette.phone-field-icon-focus}","$description":"Icon inside a focused input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon-disabled":{"$value":"{palette.phone-field-icon-disabled}","$description":"Icon inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-caret":{"$value":"{palette.phone-field-caret}","$description":"Text caret inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-message":{"$value":"{palette.phone-field-message}","$description":"Error message under an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-1":{"$value":"{palette.phone-avatar-1}","$description":"Background behind a person's initials, picked by a hash of the name (slot 1 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-2":{"$value":"{palette.phone-avatar-2}","$description":"Background behind a person's initials, picked by a hash of the name (slot 2 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-3":{"$value":"{palette.phone-avatar-3}","$description":"Background behind a person's initials, picked by a hash of the name (slot 3 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-4":{"$value":"{palette.phone-avatar-4}","$description":"Background behind a person's initials, picked by a hash of the name (slot 4 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-5":{"$value":"{palette.phone-avatar-5}","$description":"Background behind a person's initials, picked by a hash of the name (slot 5 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-6":{"$value":"{palette.phone-avatar-6}","$description":"Background behind a person's initials, picked by a hash of the name (slot 6 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-7":{"$value":"{palette.phone-avatar-7}","$description":"Background behind a person's initials, picked by a hash of the name (slot 7 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-8":{"$value":"{palette.phone-avatar-8}","$description":"Background behind a person's initials, picked by a hash of the name (slot 8 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}}}`),effect:{"close-filter":{$type:`filter`,$value:`none`,$description:`Filter applied to a dark-ink close glyph such as the alert close button.`},"pressed-overlay":{$type:`overlay`,$value:`color-mix(in srgb, currentColor 12%, transparent)`,$description:`Translucent wash laid over a control while it is pressed.`},"hero-gradient":{$type:`gradient`,$value:`radial-gradient(ellipse 120% 80% at 50% 30%, #818CF8 0%, #4F46E5 35%, #4338CA 75%, #312E81 100%)`,$description:`Background gradient of the hero band on marketing pages.`},"cta-gradient":{$type:`gradient`,$value:`radial-gradient(ellipse 120% 100% at 50% 50%, #312E81 0%, #1E1B4B 60%, #0F0D2E 100%)`,$description:`Background gradient of the call-to-action band on marketing pages.`},"ai-violet":{$type:`color`,$value:`#7C3AED`,$description:`Violet accent of AI assistant surfaces.`},"ai-cyan":{$type:`color`,$value:`#0E9BD6`,$description:`Cyan accent of AI assistant surfaces.`},"ai-green":{$type:`color`,$value:`#12B886`,$description:`Green accent of AI assistant surfaces.`},"ai-sweep":{$type:`gradient`,$value:`var(--color-primary), var(--wui-ai-violet), var(--wui-ai-cyan), var(--wui-ai-green), var(--color-primary)`,$description:`Stop list of the AI assistant sweep, for conic-gradient(from <angle>, var(--wui-ai-sweep)).`},"progress-gradient-ok":{$type:`gradient`,$value:`linear-gradient(90deg, var(--color-success), var(--color-chart-3))`,$description:`Fill of a progress bar inside its limit.`},"progress-gradient-warn":{$type:`gradient`,$value:`linear-gradient(90deg, var(--color-warning), var(--color-danger))`,$description:`Fill of a progress bar at or over its limit.`},$extensions:{"com.webority":{platforms:[`web`]}}},leading:{$type:`number`,heading:{$value:1.2,$description:`Line height of headings.`},body:{$value:1.55,$description:`Line height of running text and of any text that is not a heading or display text.`},display:{$value:1.05,$description:`Line height of display-size text such as hero titles.`},prose:{$value:1.7,$description:`Line height of long reading text such as articles, help pages and legal text, at the base or lg text size in a measure of about 60 to 75 characters.`,$extensions:{"com.webority":{platforms:[`web`]}}},lead:{$value:1.6,$description:`Line height of the single larger opening paragraph under a page title.`,$extensions:{"com.webority":{platforms:[`web`]}}}}},zt={palette:{"phone-bg":{$value:`#0B0B12`},"phone-bg-subtle":{$value:`#13131C`},"phone-bg-muted":{$value:`#1C1C26`},"phone-surface":{$value:`#1C1C26`},"phone-surface-inverse":{$value:`#FAFAFA`},"phone-text":{$value:`#E2E2E2`},"phone-text-body":{$value:`#FAFAFA`},"phone-text-muted":{$value:`#B4B4BB`},"phone-text-subtle":{$value:`#919199`},"phone-text-inverse":{$value:`#0F0F1A`},"phone-link":{$value:`#9292EE`},"phone-border":{$value:`#27272F`},"phone-border-subtle":{$value:`#1C1C26`},"phone-focus-ring":{$value:`#7C7CE8`},"phone-scrim":{$value:`rgba(0, 0, 0, 0.65)`},"phone-field-bg":{$value:`#13131C`},"phone-field-border":{$value:`#27272F`},"phone-field-border-focus":{$value:`#3D5FB0`},"phone-primary":{$value:`#7C7CE8`},"phone-primary-hover":{$value:`#9292EE`},"phone-primary-soft":{$value:`#1F1F3D`},"phone-primary-text":{$value:`#8989EA`},"phone-on-primary":{$value:`#0F0F1A`},"phone-success":{$value:`#30C780`},"phone-success-text":{$value:`#30C780`},"phone-on-success":{$value:`#0F0F1A`},"phone-warning":{$value:`#FBBF24`},"phone-warning-text":{$value:`#FBBF24`},"phone-danger":{$value:`#F87171`},"phone-danger-text":{$value:`#F87171`},"phone-on-danger":{$value:`#0F0F1A`},"phone-danger-border":{$value:`#F87171`},"phone-info":{$value:`#60A5FA`},"phone-info-text":{$value:`#60A5FA`},"phone-on-info":{$value:`#0F0F1A`},"phone-neutral":{$value:`#1F1F26`},"phone-neutral-hover":{$value:`#2A2A33`},"phone-on-neutral":{$value:`#FAFAFA`},"phone-primary-pressed":{$value:`#A8A8F2`},"phone-on-neutral-strong":{$value:`#0F0F1A`},"phone-text-disabled":{$value:`#52525B`},"phone-surface-pressed":{$value:`rgba(255, 255, 255, 0.08)`},"phone-surface-hover":{$value:`rgba(255, 255, 255, 0.05)`},"phone-surface-selected":{$value:`rgba(124, 124, 232, 0.18)`},"phone-surface-disabled":{$value:`#1C1C26`},"phone-skeleton":{$value:`#1C1C26`},"phone-skeleton-highlight":{$value:`#27272F`},"phone-field-bg-focus":{$value:`#0B0B12`},"phone-field-bg-disabled":{$value:`#1C1C26`},"phone-field-border-error":{$value:`#8A2F42`},"phone-field-label":{$value:`#E4E6EE`},"phone-field-text":{$value:`#FAFAFA`},"phone-field-text-disabled":{$value:`#71717A`},"phone-field-placeholder":{$value:`#84848D`},"phone-field-placeholder-disabled":{$value:`#71717A`},"phone-field-icon":{$value:`#8B8B95`},"phone-field-icon-focus":{$value:`#D4D4DB`},"phone-field-icon-disabled":{$value:`#52525B`},"phone-field-caret":{$value:`#7C9EF0`},"phone-field-message":{$value:`#F87171`},"phone-avatar-1":{$value:`#8B8BEE`},"phone-avatar-2":{$value:`#2DD4BF`},"phone-avatar-3":{$value:`#FCD34D`},"phone-avatar-4":{$value:`#F472B6`},"phone-avatar-5":{$value:`#60A5FA`},"phone-avatar-6":{$value:`#A78BFA`},"phone-avatar-7":{$value:`#34D399`},"phone-avatar-8":{$value:`#F87171`},"phone-shadow-sm":{$value:`rgba(0, 0, 0, 0.4)`},"phone-shadow-md":{$value:`rgba(0, 0, 0, 0.5)`},"phone-shadow-lg":{$value:`rgba(0, 0, 0, 0.55)`},"phone-shadow-xl":{$value:`rgba(0, 0, 0, 0.6)`},"primary-5":{$value:`color-mix(in srgb, {palette.dark-primary} 10%, {palette.dark-bg-surface})`},"primary-10":{$value:`color-mix(in srgb, {palette.dark-primary} 16%, {palette.dark-bg-surface})`},"primary-15":{$value:`color-mix(in srgb, {palette.dark-primary} 21%, {palette.dark-bg-surface})`},"primary-20":{$value:`color-mix(in srgb, {palette.dark-primary} 26%, {palette.dark-bg-surface})`},"primary-30":{$value:`color-mix(in srgb, {palette.dark-primary} 40%, {palette.dark-bg-surface})`},"primary-50":{$value:`color-mix(in srgb, {palette.dark-primary} 62%, {palette.dark-bg-surface})`},"surface-mute":{$value:`{palette.dark-bg-muted}`},"surface-soft":{$value:`color-mix(in srgb, {palette.dark-primary} 10%, {palette.dark-bg-surface})`},"surface-violet-soft":{$value:`color-mix(in srgb, {palette.dark-primary} 6%, {palette.dark-bg-surface})`},"danger-5":{$value:`color-mix(in srgb, {palette.danger} 10%, {palette.dark-bg-surface})`},"danger-10":{$value:`color-mix(in srgb, {palette.danger} 16%, {palette.dark-bg-surface})`},"info-5":{$value:`color-mix(in srgb, {palette.info} 10%, {palette.dark-bg-surface})`},"info-10":{$value:`color-mix(in srgb, {palette.info} 16%, {palette.dark-bg-surface})`},"success-5":{$value:`color-mix(in srgb, {palette.success} 10%, {palette.dark-bg-surface})`},"success-10":{$value:`color-mix(in srgb, {palette.success} 16%, {palette.dark-bg-surface})`},"warning-5":{$value:`color-mix(in srgb, {palette.warning} 10%, {palette.dark-bg-surface})`},"warning-10":{$value:`color-mix(in srgb, {palette.warning} 16%, {palette.dark-bg-surface})`},"neutral-bg-light":{$value:`{palette.dark-bg-surface}`},"neutral-bg-dark":{$value:`{palette.dark-bg-muted}`},"chart-1":{$value:`{palette.dark-primary}`},"chart-2":{$value:`{palette.dark-chart-2}`},"chart-3":{$value:`{palette.dark-chart-3}`},"chart-4":{$value:`{palette.dark-chart-4}`},"chart-5":{$value:`{palette.dark-chart-5}`},"chart-6":{$value:`{palette.dark-chart-6}`},"chart-7":{$value:`{palette.dark-chart-7}`},"chart-8":{$value:`{palette.dark-chart-8}`},"chart-seq-0":{$value:`{palette.dark-chart-seq-0}`},"chart-seq-1":{$value:`{palette.dark-chart-seq-1}`},"chart-seq-2":{$value:`{palette.dark-chart-seq-2}`},"chart-seq-3":{$value:`{palette.dark-chart-seq-3}`},"chart-seq-4":{$value:`{palette.dark-chart-seq-4}`},"chart-seq-5":{$value:`{palette.dark-chart-seq-5}`},"chart-seq-6":{$value:`{palette.dark-chart-seq-6}`},"chart-diverging-low":{$value:`{palette.dark-chart-diverging-low}`},"chart-diverging-mid":{$value:`{palette.dark-chart-diverging-mid}`},"chart-diverging-high":{$value:`{palette.dark-chart-diverging-high}`},"chart-neutral":{$value:`{palette.dark-chart-neutral}`}},color:{bg:{$value:`{palette.dark-bg-page}`},"bg-subtle":{$value:`{palette.dark-bg-elevated}`},"bg-muted":{$value:`{palette.dark-bg-muted}`},surface:{$value:`{palette.dark-bg-surface}`},"surface-inverse":{$value:`{palette.dark-text}`},text:{$value:`{palette.dark-text}`},"text-body":{$value:`{palette.dark-text}`},"text-muted":{$value:`{palette.dark-text-muted}`},"text-subtle":{$value:`{palette.dark-text-subtle}`},"text-inverse":{$value:`{palette.text-heading}`},link:{$value:`{palette.dark-primary}`},border:{$value:`{palette.dark-border}`},"border-subtle":{$value:`color-mix(in srgb, {palette.dark-border} 50%, transparent)`},"border-strong":{$value:`{palette.dark-border-strong}`},"field-bg":{$value:`{palette.dark-bg-muted}`},"field-border":{$value:`{palette.dark-field-border}`},"field-border-hover":{$value:`{palette.dark-field-border-hover}`},"field-border-focus":{$value:`{palette.dark-primary}`},scrim:{$value:`color-mix(in srgb, #000000 45%, transparent)`},"scrim-strong":{$value:`color-mix(in srgb, #000000 62%, transparent)`},"progress-track":{$value:`{palette.dark-progress-track}`},"progress-label":{$value:`#0F0F0F`},thumb:{$value:`color-mix(in srgb, {palette.dark-text} 12%, {palette.dark-bg-muted})`},primary:{$value:`{palette.dark-primary}`},"primary-hover":{$value:`{palette.dark-primary-hover}`},"primary-soft":{$value:`color-mix(in srgb, {palette.primary} 20%, transparent)`},"primary-text":{$value:`{palette.dark-primary}`},"on-primary":{$value:`#0F0F0F`},"success-soft":{$value:`color-mix(in srgb, {palette.success} 18%, transparent)`},"success-text":{$value:`color-mix(in srgb, {palette.success} 75%, white)`},"success-text-on-soft":{$value:`color-mix(in srgb, {palette.success} 65%, white)`},"success-strong":{$value:`{color.success-text}`},"on-success-strong":{$value:`#0F0F0F`},"warning-soft":{$value:`color-mix(in srgb, {palette.warning} 18%, transparent)`},"warning-text":{$value:`color-mix(in srgb, {palette.warning} 75%, white)`},"warning-text-on-soft":{$value:`color-mix(in srgb, {palette.warning} 65%, white)`},"warning-strong":{$value:`{color.warning-text}`},"on-warning-strong":{$value:`#0F0F0F`},"danger-soft":{$value:`color-mix(in srgb, {palette.danger} 18%, transparent)`},"danger-text":{$value:`color-mix(in srgb, {palette.danger} 75%, white)`},"offline-fill":{$value:`{palette.danger}`},"online-fill":{$value:`{palette.success}`},"danger-text-on-soft":{$value:`color-mix(in srgb, {palette.danger} 65%, white)`},"danger-strong":{$value:`{color.danger-text}`},"on-danger-strong":{$value:`#0F0F0F`},"info-soft":{$value:`color-mix(in srgb, {palette.info} 18%, transparent)`},"info-text":{$value:`color-mix(in srgb, {palette.info} 75%, white)`},"info-text-on-soft":{$value:`color-mix(in srgb, {palette.info} 65%, white)`},"info-strong":{$value:`{color.info-text}`},"on-info-strong":{$value:`#0F0F0F`},"chart-1":{$value:`{palette.dark-primary}`},"chart-2":{$value:`{palette.dark-chart-2}`},"chart-3":{$value:`{palette.dark-chart-3}`},"chart-4":{$value:`{palette.dark-chart-4}`},"chart-5":{$value:`{palette.dark-chart-5}`},"chart-6":{$value:`{palette.dark-chart-6}`},"chart-7":{$value:`{palette.dark-chart-7}`},"chart-8":{$value:`{palette.dark-chart-8}`},"chart-seq-0":{$value:`{palette.dark-chart-seq-0}`},"chart-seq-1":{$value:`{palette.dark-chart-seq-1}`},"chart-seq-2":{$value:`{palette.dark-chart-seq-2}`},"chart-seq-3":{$value:`{palette.dark-chart-seq-3}`},"chart-seq-4":{$value:`{palette.dark-chart-seq-4}`},"chart-seq-5":{$value:`{palette.dark-chart-seq-5}`},"chart-seq-6":{$value:`{palette.dark-chart-seq-6}`},"chart-diverging-low":{$value:`{palette.dark-chart-diverging-low}`},"chart-diverging-mid":{$value:`{palette.dark-chart-diverging-mid}`},"chart-diverging-high":{$value:`{palette.dark-chart-diverging-high}`},"chart-neutral":{$value:`{palette.dark-chart-neutral}`},success:{$value:`#30C780`},warning:{$value:`#FBBF24`},danger:{$value:`#F87171`},info:{$value:`#60A5FA`},"on-success":{$value:`#0F0F1A`},"on-warning":{$value:`#0F0F1A`},"on-danger":{$value:`#0F0F1A`},"on-info":{$value:`#0F0F1A`},"success-pressed":{$value:`color-mix(in srgb, {color.success} 85%, white)`},"warning-pressed":{$value:`color-mix(in srgb, {color.warning} 85%, white)`},"danger-pressed":{$value:`color-mix(in srgb, {color.danger} 85%, white)`},"info-pressed":{$value:`color-mix(in srgb, {color.info} 85%, white)`},"success-border":{$value:`color-mix(in srgb, {color.success} 40%, transparent)`},"warning-border":{$value:`color-mix(in srgb, {color.warning} 40%, transparent)`},"danger-border":{$value:`color-mix(in srgb, {color.danger} 40%, transparent)`},"info-border":{$value:`color-mix(in srgb, {color.info} 40%, transparent)`},"warning-strong-hover":{$value:`color-mix(in srgb, {color.warning-strong} 85%, white)`},"danger-strong-hover":{$value:`color-mix(in srgb, {color.danger-strong} 85%, white)`},scrollbar:{$value:`rgba(255, 255, 255, 0.18)`},"scrollbar-hover":{$value:`rgba(255, 255, 255, 0.28)`},"scrollbar-active":{$value:`rgba(255, 255, 255, 0.4)`}},effect:{"close-filter":{$value:`invert(1) grayscale(100%) brightness(200%)`},"ai-violet":{$value:`{palette.dark-ai-violet}`}},shadow:{elevated:{$value:{color:`rgba(0, 0, 0, 0.45)`,offsetX:{value:0,unit:`px`},offsetY:{value:2,unit:`px`},blur:{value:8,unit:`px`},spread:{value:-2,unit:`px`}}},popover:{$value:{color:`rgba(0, 0, 0, 0.55)`,offsetX:{value:0,unit:`px`},offsetY:{value:8,unit:`px`},blur:{value:28,unit:`px`},spread:{value:-6,unit:`px`}}},modal:{$value:{color:`rgba(0, 0, 0, 0.7)`,offsetX:{value:0,unit:`px`},offsetY:{value:24,unit:`px`},blur:{value:60,unit:`px`},spread:{value:-16,unit:`px`}}}},component:{thumb:{shadow:{$value:`0 2px 6px rgba(255, 255, 255, 0.1)`},"shadow-hover":{$value:`0 2px 12px rgba(255, 255, 255, 0.2)`}}}},Bt={palette:/* @__PURE__ */ JSON.parse(`{"$description":"Raw colours. Library-internal: product code, phone code and Canvas read meanings, never these.","$extensions":{"com.webority":{"internal":true}},"primary":{"$type":"color","$value":"#4F46E5","$description":"Brand primary fill for primary buttons, selected states and the first chart series."},"primary-hover":{"$type":"color","$value":"#6366F1","$description":"Primary fill while a control is hovered."},"primary-pressed":{"$type":"color","$value":"#4338CA","$description":"Primary fill while a control is pressed or active."},"primary-50":{"$type":"color","$value":"#818CF8","$description":"Strongest soft primary fill or border tint that follows dark mode."},"primary-30":{"$type":"color","$value":"#A5B4FC","$description":"Medium soft primary fill or border tint that follows dark mode."},"primary-20":{"$type":"color","$value":"#C7D2FE","$description":"Light soft primary fill or border tint that follows dark mode."},"primary-15":{"$type":"color","$value":"#DDE1FD","$description":"Lighter soft primary fill or border tint that follows dark mode."},"primary-10":{"$type":"color","$value":"#E0E7FF","$description":"Pale soft primary fill or border tint that follows dark mode."},"primary-5":{"$type":"color","$value":"#EEF2FF","$description":"Faintest soft primary fill or border tint that follows dark mode."},"text-heading":{"$type":"color","$value":"#071437","$description":"Heading ink for page and section titles."},"text-1":{"$type":"color","$value":"#252F4A","$description":"Primary body text, a step softer than the heading ink."},"text-2":{"$type":"color","$value":"#4B5675","$description":"Secondary text for descriptions, sub-labels and muted copy."},"text-3":{"$type":"color","$value":"#626A82","$description":"Tertiary text for hints, captions, labels, timestamps and placeholders."},"text-4":{"$type":"color","$value":"#99A1B7","$description":"Decorative faint ink, not for text a person must read."},"text-5":{"$type":"color","$value":"#C4CADA","$description":"Faintest ink, for decorative marks."},"bg-page":{"$type":"color","$value":"#F4F6F8","$description":"Page background behind every surface in light mode."},"bg-light":{"$type":"color","$value":"#FFFFFF","$description":"White card and panel surface, the lightest fill in light mode."},"bg-elevated":{"$type":"color","$value":"#F9FBFC","$description":"Subtle raised surface, one step off the page."},"bg-muted":{"$type":"color","$value":"#F5F6FA","$description":"Muted fill for grouped areas and quiet controls."},"field-bg":{"$type":"color","$value":"#F9FBFC","$description":"Resting fill of every input-like control, such as fields, selects and textareas."},"field-border":{"$type":"color","$value":"#DFE2EA","$description":"Resting border of every input-like control."},"field-border-hover":{"$type":"color","$value":"#C4CADA","$description":"Hover border of every input-like control."},"border-light":{"$type":"color","$value":"#EBEDF3","$description":"Default hairline border of cards, tables and dividers."},"border-soft":{"$type":"color","$value":"#F4F6F8","$description":"Softest border, for inner dividers."},"border-strong":{"$type":"color","$value":"#C4CADA","$description":"Strong border for emphasised separators, chart axes and unselected control outlines."},"progress-track":{"$type":"color","$value":"#E1E5EE","$description":"Unfilled track of a progress bar or meter."},"scrollbar":{"$type":"color","$value":"rgba(145, 158, 171, 0.45)","$description":"Resting thumb colour of a thin scrollbar."},"scrollbar-hover":{"$type":"color","$value":"rgba(145, 158, 171, 0.65)","$description":"Scrollbar thumb colour while it is hovered."},"scrollbar-active":{"$type":"color","$value":"rgba(145, 158, 171, 0.85)","$description":"Scrollbar thumb colour while it is dragged."},"surface-soft":{"$type":"color","$value":"#F2EFFE","$description":"Soft tint surface for marketing callouts and mega-menu hover."},"surface-violet":{"$type":"color","$value":"#ECE4FE","$description":"Violet-tinted surface for marketing section accents and callout cards."},"surface-violet-soft":{"$type":"color","$value":"#FCFCFC","$description":"Near-white surface for marketing section accents."},"surface-mute":{"$type":"color","$value":"#F9FBFC","$description":"Neutral wash surface for marketing sections and panels."},"ink":{"$type":"color","$value":"#000000","$description":"Pure black ink, the highest-contrast text colour."},"fg-2":{"$type":"color","$value":"{palette.text-1}","$description":"Marketing alias of the primary body text ink."},"fg-3":{"$type":"color","$value":"{palette.text-2}","$description":"Marketing alias of the secondary text ink."},"fg-4":{"$type":"color","$value":"{palette.text-3}","$description":"Marketing alias of the tertiary text ink."},"fg-5":{"$type":"color","$value":"{palette.text-5}","$description":"Marketing alias of the faintest text ink."},"neutral-border-dark":{"$type":"color","$value":"#EBEDF3","$description":"Border tone of table emphasis rows and dividers."},"neutral-border-light":{"$type":"color","$value":"#F9FBFC","$description":"Faintest border tone, for dividers."},"neutral-bg-dark":{"$type":"color","$value":"#F5F6FA","$description":"Muted background of table emphasis rows and mega-menu hover."},"neutral-bg-light":{"$type":"color","$value":"#F9FBFC","$description":"Faint background for table emphasis and mega-menu hover."},"accent-dark":{"$type":"color","$value":"{palette.primary-pressed}","$description":"Pressed and hover accent colour in CSS, following the pressed primary."},"primary-text":{"$type":"color","$value":"#ffffff","$description":"Text and icon colour on a solid primary fill, such as a primary button label."},"primary-ink":{"$type":"color","$value":"{palette.primary}","$description":"Primary as text and small glyphs on light surfaces."},"info-text":{"$type":"color","$value":"#1460ba","$description":"Info colour as text on light surfaces."},"info-active":{"$type":"color","$value":"#056EE9","$description":"Info ink for icons and active states on light surfaces."},"info":{"$type":"color","$value":"#056EE9","$description":"Vivid info fill for badges, dots and info buttons."},"info-50":{"$type":"color","$value":"#8DC2FF","$description":"Info tint 50 for borders and the strongest soft info fill."},"info-30":{"$type":"color","$value":"#BBDBFF","$description":"Info tint 30 for soft fills and borders of alerts and badges."},"info-20":{"$type":"color","$value":"#D1E6FF","$description":"Info tint 20 for soft fills behind info alerts and badges."},"info-10":{"$type":"color","$value":"#E9F3FF","$description":"Info tint 10, the soft background of info alerts and badges."},"info-5":{"$type":"color","$value":"#F3F9FF","$description":"Faintest info tint, for hover washes and soft info backgrounds."},"success-text":{"$type":"color","$value":"#0e7531","$description":"Success colour as text on light surfaces, darkened to pass AA."},"success-strong":{"$type":"color","$value":"#0e7531","$description":"Deep success fill behind white text, such as progress-bar labels."},"success-active":{"$type":"color","$value":"#04B440","$description":"Active success fill, the deepest vivid success tone."},"success":{"$type":"color","$value":"#04B440","$description":"Vivid success fill for badges, dots and success buttons."},"success-50":{"$type":"color","$value":"#8BE3A9","$description":"Success tint 50 for borders and the strongest soft success fill."},"success-30":{"$type":"color","$value":"#BAEECC","$description":"Success tint 30 for soft fills and borders of alerts and badges."},"success-20":{"$type":"color","$value":"#D1F4DD","$description":"Success tint 20 for soft fills behind success alerts and badges."},"success-10":{"$type":"color","$value":"#E8FAEE","$description":"Success tint 10, the soft background of success alerts and badges."},"success-5":{"$type":"color","$value":"#F3FCF6","$description":"Faintest success tint, for hover washes and soft success backgrounds."},"warning-text":{"$type":"color","$value":"#876100","$description":"Warning colour as text on light surfaces, darkened to pass AA."},"warning-strong":{"$type":"color","$value":"#9A6B00","$description":"Deep warning fill behind white text, such as the warning button."},"warning-strong-hover":{"$type":"color","$value":"#855C00","$description":"Deep warning fill while a warning button with white text is hovered."},"warning-active":{"$type":"color","$value":"#DFA000","$description":"Active warning fill, the deepest vivid warning tone."},"warning":{"$type":"color","$value":"#DFA000","$description":"Vivid warning fill for badges and dots."},"warning-50":{"$type":"color","$value":"#FBD880","$description":"Warning tint 50 for borders and the strongest soft warning fill."},"warning-30":{"$type":"color","$value":"#FDE8B3","$description":"Warning tint 30 for soft fills and borders of alerts and badges."},"warning-20":{"$type":"color","$value":"#FDEFCC","$description":"Warning tint 20 for soft fills behind warning alerts and badges."},"warning-10":{"$type":"color","$value":"#FFF8E6","$description":"Warning tint 10, the soft background of warning alerts and badges."},"warning-5":{"$type":"color","$value":"#FEFBF2","$description":"Faintest warning tint, for hover washes and soft warning backgrounds."},"danger-text":{"$type":"color","$value":"#CF1735","$description":"Error text colour for validation messages and danger text on light surfaces."},"danger-strong":{"$type":"color","$value":"#C81340","$description":"Deep danger fill behind white text, such as the danger button."},"danger-strong-hover":{"$type":"color","$value":"#AB1036","$description":"Deep danger fill while a danger button with white text is hovered."},"danger-active":{"$type":"color","$value":"#E82646","$description":"Active danger fill, the deepest vivid danger tone."},"danger":{"$type":"color","$value":"#E82646","$description":"Vivid danger fill for badges, dots and danger buttons."},"danger-50":{"$type":"color","$value":"#FC94AD","$description":"Danger tint 50 for borders and the strongest soft danger fill."},"danger-30":{"$type":"color","$value":"#FDBFCE","$description":"Danger tint 30 for soft fills and borders of alerts and badges."},"danger-20":{"$type":"color","$value":"#FED4DE","$description":"Danger tint 20 for soft fills behind danger alerts and badges."},"danger-10":{"$type":"color","$value":"#FFEAEF","$description":"Danger tint 10, the soft background of danger alerts and badges."},"danger-5":{"$type":"color","$value":"#FEF4F6","$description":"Faintest danger tint, for hover washes and soft danger backgrounds."},"chart-1":{"$type":"color","$value":"{palette.primary}","$description":"Colour of chart series 1, the brand primary."},"chart-2":{"$type":"color","$value":"#eb6834","$description":"Colour of chart series 2 of the eight categorical series."},"chart-3":{"$type":"color","$value":"#1baf7a","$description":"Colour of chart series 3 of the eight categorical series."},"chart-4":{"$type":"color","$value":"#eda100","$description":"Colour of chart series 4 of the eight categorical series."},"chart-5":{"$type":"color","$value":"#e87ba4","$description":"Colour of chart series 5 of the eight categorical series."},"chart-6":{"$type":"color","$value":"#008300","$description":"Colour of chart series 6 of the eight categorical series."},"chart-7":{"$type":"color","$value":"#2a78d6","$description":"Colour of chart series 7 of the eight categorical series."},"chart-8":{"$type":"color","$value":"#e34948","$description":"Colour of chart series 8 of the eight categorical series."},"chart-seq-0":{"$type":"color","$value":"{palette.bg-muted}","$description":"Faintest step of the magnitude ramp, for empty heatmap and calendar cells."},"chart-seq-1":{"$type":"color","$value":"{palette.primary-10}","$description":"First step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-2":{"$type":"color","$value":"{palette.primary-20}","$description":"Second step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-3":{"$type":"color","$value":"{palette.primary-30}","$description":"Third step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-4":{"$type":"color","$value":"{palette.primary-50}","$description":"Fourth step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-5":{"$type":"color","$value":"{palette.primary-hover}","$description":"Fifth step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-6":{"$type":"color","$value":"{palette.primary-pressed}","$description":"Strongest step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-diverging-low":{"$type":"color","$value":"#e34948","$description":"Colour of values below the midpoint in a diverging chart."},"chart-diverging-mid":{"$type":"color","$value":"#c4cada","$description":"Neutral midpoint colour of a diverging chart."},"chart-diverging-high":{"$type":"color","$value":"#2a78d6","$description":"Colour of values above the midpoint in a diverging chart."},"chart-neutral":{"$type":"color","$value":"#99a1b7","$description":"Context series colour, such as the last period, and the folded Other slice."},"dark-bg-page":{"$type":"color","$value":"#0f1117","$description":"Dark page background, the base of every dark-mode surface."},"dark-bg-elevated":{"$type":"color","$value":"#0d0f15","$description":"Subtle dark background, one step off the dark page."},"dark-bg-muted":{"$type":"color","$value":"#232733","$description":"Dark muted fill for grouped areas and quiet controls."},"dark-bg-surface":{"$type":"color","$value":"#181b23","$description":"Dark card and panel surface, one step above the dark page."},"dark-border":{"$type":"color","$value":"#3d4554","$description":"Dark hairline border of cards, tables and dividers."},"dark-border-strong":{"$type":"color","$value":"#515b6e","$description":"Stronger dark border for emphasised separators."},"dark-field-border":{"$type":"color","$value":"#3d4554","$description":"Resting border of input-like controls in dark mode."},"dark-field-border-hover":{"$type":"color","$value":"#515b6e","$description":"Hover border of input-like controls in dark mode."},"dark-progress-track":{"$type":"color","$value":"#323845","$description":"Unfilled track of a progress bar or meter in dark mode."},"dark-text":{"$type":"color","$value":"#e6e8ee","$description":"Primary body text colour in dark mode."},"dark-text-muted":{"$type":"color","$value":"#b4b9c6","$description":"Secondary text colour in dark mode."},"dark-text-subtle":{"$type":"color","$value":"#8a90a0","$description":"Tertiary text colour in dark mode, for hints and captions."},"dark-primary":{"$type":"color","$value":"#aeaaf5","$description":"Primary as text, rings, focus borders and the fill under dark ink in dark mode."},"dark-primary-hover":{"$type":"color","$value":"#c3c0f8","$description":"Primary fill while it is hovered in dark mode."},"dark-ai-violet":{"$type":"color","$value":"#A78BFA","$description":"Lighter violet accent of AI assistant surfaces in dark mode."},"dark-chart-2":{"$type":"color","$value":"#d95926","$description":"Dark-mode colour of chart series 2 of the categorical set."},"dark-chart-3":{"$type":"color","$value":"#199e70","$description":"Dark-mode colour of chart series 3 of the categorical set."},"dark-chart-4":{"$type":"color","$value":"#c98500","$description":"Dark-mode colour of chart series 4 of the categorical set."},"dark-chart-5":{"$type":"color","$value":"#d55181","$description":"Dark-mode colour of chart series 5 of the categorical set."},"dark-chart-6":{"$type":"color","$value":"#008300","$description":"Dark-mode colour of chart series 6 of the categorical set."},"dark-chart-7":{"$type":"color","$value":"#3987e5","$description":"Dark-mode colour of chart series 7 of the categorical set."},"dark-chart-8":{"$type":"color","$value":"#e66767","$description":"Dark-mode colour of chart series 8 of the categorical set."},"dark-chart-seq-0":{"$type":"color","$value":"#20242f","$description":"Dark-mode faintest step of the magnitude ramp, for empty heatmap cells."},"dark-chart-seq-1":{"$type":"color","$value":"#262c45","$description":"Dark-mode first step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-2":{"$type":"color","$value":"#2f3a70","$description":"Dark-mode second step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-3":{"$type":"color","$value":"#3b4ba0","$description":"Dark-mode third step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-4":{"$type":"color","$value":"#5168d2","$description":"Dark-mode fourth step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-5":{"$type":"color","$value":"#7a90ef","$description":"Dark-mode fifth step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-6":{"$type":"color","$value":"#b3c1f7","$description":"Dark-mode strongest step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-diverging-low":{"$type":"color","$value":"#e66767","$description":"Dark-mode colour of values below the midpoint in a diverging chart."},"dark-chart-diverging-mid":{"$type":"color","$value":"#3a414f","$description":"Dark-mode neutral midpoint colour of a diverging chart."},"dark-chart-diverging-high":{"$type":"color","$value":"#3987e5","$description":"Dark-mode colour of values above the midpoint in a diverging chart."},"dark-chart-neutral":{"$type":"color","$value":"#5d6475","$description":"Dark-mode context series colour, such as the last period."},"phone-bg":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-bg-subtle":{"$type":"color","$value":"#F8F8FB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-bg-muted":{"$type":"color","$value":"#F1F1F5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-inverse":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text":{"$type":"color","$value":"#252F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-body":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-muted":{"$type":"color","$value":"#52525B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-subtle":{"$type":"color","$value":"#62626B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-inverse":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-link":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-border":{"$type":"color","$value":"#E5E5EC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-border-subtle":{"$type":"color","$value":"#EFEFF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-focus-ring":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-scrim":{"$type":"color","$value":"rgba(15, 15, 26, 0.5)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-scrim":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg":{"$type":"color","$value":"#F9FBFC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border":{"$type":"color","$value":"#EBEDF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border-focus":{"$type":"color","$value":"#BED2F9","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-hover":{"$type":"color","$value":"#4F4FBF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-soft":{"$type":"color","$value":"#EEEEFC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-text":{"$type":"color","$value":"#4F4FD3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-primary":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-success":{"$type":"color","$value":"#18864F","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-success-text":{"$type":"color","$value":"#147042","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-success":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-warning":{"$type":"color","$value":"#F59E0B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-warning-text":{"$type":"color","$value":"#8F5C06","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-warning":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger":{"$type":"color","$value":"#E12C32","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger-text":{"$type":"color","$value":"#BC1B20","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-danger":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger-border":{"$type":"color","$value":"#E5484D","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-info":{"$type":"color","$value":"#1B6EF5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-info-text":{"$type":"color","$value":"#0958D9","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-info":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-neutral":{"$type":"color","$value":"#F4F4F8","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-neutral-hover":{"$type":"color","$value":"#E9E9F0","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-neutral":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-pressed":{"$type":"color","$value":"#4040A8","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-neutral-strong":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-disabled":{"$type":"color","$value":"#B4B4BB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-pressed":{"$type":"color","$value":"rgba(15, 15, 26, 0.06)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-hover":{"$type":"color","$value":"rgba(15, 15, 26, 0.04)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-selected":{"$type":"color","$value":"rgba(91, 91, 214, 0.1)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-disabled":{"$type":"color","$value":"#F1F1F5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-skeleton":{"$type":"color","$value":"#EBEDF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-skeleton-highlight":{"$type":"color","$value":"#F5F6FA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-fill":{"$type":"color","$value":"rgba(255, 255, 255, 0.28)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-border":{"$type":"color","$value":"rgba(255, 255, 255, 0.45)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-glass":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-badge":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg-focus":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg-disabled":{"$type":"color","$value":"#F5F6FA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border-error":{"$type":"color","$value":"#FDBFCE","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-label":{"$type":"color","$value":"#242F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-text":{"$type":"color","$value":"#252F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-text-disabled":{"$type":"color","$value":"#7A8197","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-placeholder":{"$type":"color","$value":"#626D8B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-placeholder-disabled":{"$type":"color","$value":"#7A8197","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon":{"$type":"color","$value":"#7A849F","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon-focus":{"$type":"color","$value":"#4B5675","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon-disabled":{"$type":"color","$value":"#C4CADA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-caret":{"$type":"color","$value":"#5B8DEE","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-message":{"$type":"color","$value":"#D81736","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-1":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-2":{"$type":"color","$value":"#0A7979","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-3":{"$type":"color","$value":"#A45A05","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-4":{"$type":"color","$value":"#CD226E","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-5":{"$type":"color","$value":"#2462EB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-6":{"$type":"color","$value":"#7C3AED","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-7":{"$type":"color","$value":"#047C57","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-8":{"$type":"color","$value":"#D42222","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-sm":{"$type":"color","$value":"rgba(0, 0, 0, 0.06)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-md":{"$type":"color","$value":"rgba(0, 0, 0, 0.08)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-lg":{"$type":"color","$value":"rgba(0, 0, 0, 0.1)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-xl":{"$type":"color","$value":"rgba(0, 0, 0, 0.14)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-thumb":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}}}`)},Vt={leading:{body:{$value:1.4},display:{$value:1.2}},color:{bg:{$value:`{palette.phone-bg}`},"bg-subtle":{$value:`{palette.phone-bg-subtle}`},"bg-muted":{$value:`{palette.phone-bg-muted}`},surface:{$value:`{palette.phone-surface}`},"surface-inverse":{$value:`{palette.phone-surface-inverse}`},text:{$value:`{palette.phone-text}`},"text-body":{$value:`{palette.phone-text-body}`},"text-muted":{$value:`{palette.phone-text-muted}`},"text-subtle":{$value:`{palette.phone-text-subtle}`},"text-inverse":{$value:`{palette.phone-text-inverse}`},link:{$value:`{palette.phone-link}`},border:{$value:`{palette.phone-border}`},"border-subtle":{$value:`{palette.phone-border-subtle}`},"focus-ring":{$value:`{palette.phone-focus-ring}`},scrim:{$value:`{palette.phone-scrim}`},"on-scrim":{$value:`{palette.phone-on-scrim}`},"field-bg":{$value:`{palette.phone-field-bg}`},"field-border":{$value:`{palette.phone-field-border}`},"field-border-focus":{$value:`{palette.phone-field-border-focus}`},primary:{$value:`{palette.phone-primary}`},"primary-hover":{$value:`{palette.phone-primary-hover}`},"primary-soft":{$value:`{palette.phone-primary-soft}`},"primary-text":{$value:`{palette.phone-primary-text}`},"on-primary":{$value:`{palette.phone-on-primary}`},success:{$value:`{palette.phone-success}`},"success-text":{$value:`{palette.phone-success-text}`},"on-success":{$value:`{palette.phone-on-success}`},warning:{$value:`{palette.phone-warning}`},"warning-text":{$value:`{palette.phone-warning-text}`},"on-warning":{$value:`{palette.phone-on-warning}`},danger:{$value:`{palette.phone-danger}`},"danger-text":{$value:`{palette.phone-danger-text}`},"on-danger":{$value:`{palette.phone-on-danger}`},"danger-border":{$value:`{palette.phone-danger-border}`},info:{$value:`{palette.phone-info}`},"info-text":{$value:`{palette.phone-info-text}`},"on-info":{$value:`{palette.phone-on-info}`},neutral:{$value:`{palette.phone-neutral}`},"neutral-hover":{$value:`{palette.phone-neutral-hover}`},"on-neutral":{$value:`{palette.phone-on-neutral}`}},shadow:{card:{$value:{color:`{palette.phone-shadow-sm}`,offsetX:{value:0,unit:`px`},offsetY:{value:2,unit:`px`},blur:{value:4,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:2}}},elevated:{$value:{color:`{palette.phone-shadow-md}`,offsetX:{value:0,unit:`px`},offsetY:{value:4,unit:`px`},blur:{value:8,unit:`px`},spread:{value:0,unit:`px`}}},popover:{$value:{color:`{palette.phone-shadow-lg}`,offsetX:{value:0,unit:`px`},offsetY:{value:8,unit:`px`},blur:{value:16,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:8}}},modal:{$value:{color:`{palette.phone-shadow-xl}`,offsetX:{value:0,unit:`px`},offsetY:{value:12,unit:`px`},blur:{value:24,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:12}}},drawer:{$value:{color:`{palette.phone-shadow-xl}`,offsetX:{value:0,unit:`px`},offsetY:{value:12,unit:`px`},blur:{value:24,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:12}}}},radius:{sm:{$value:{value:6,unit:`px`}},xl:{$value:{value:20,unit:`px`}}},text:{xs:{$value:{value:11,unit:`px`}},sm:{$value:{value:13,unit:`px`}},base:{$value:{value:15,unit:`px`}},lg:{$value:{value:17,unit:`px`}},xl:{$value:{value:20,unit:`px`}},"2xl":{$value:{value:24,unit:`px`}},"3xl":{$value:{value:30,unit:`px`}},"4xl":{$value:{value:36,unit:`px`}},"5xl":{$value:{value:45,unit:`px`}},"6xl":{$value:{value:57,unit:`px`}},"7xl":{$value:{value:64,unit:`px`}},"8xl":{$value:{value:72,unit:`px`}}},font:{ui:{$value:[`System`]},display:{$value:[`System`]},mono:{$value:[`System`]}},motion:{duration:{fast:{$value:{value:160,unit:`ms`}},default:{$value:{value:240,unit:`ms`}},slow:{$value:{value:360,unit:`ms`}}}},component:{button:{sm:{radius:{$value:`{radius.md}`}},md:{radius:{$value:`{radius.md}`}},lg:{radius:{$value:`{radius.lg}`}}},field:{sm:{radius:{$value:`{radius.md}`}},md:{radius:{$value:`{radius.md}`}},lg:{radius:{$value:`{radius.md}`}}},disabled:{opacity:{$value:.55}},press:{opacity:{$value:.85}}}},Ht=`no meaning uses this step; propose one on the Webority UI board (bootstrap-ui.md → Tokens)`,Ut=new Set(Object.keys(Bt.palette??{}).filter(e=>!e.startsWith(`$`))),Wt=/* @__PURE__ */ new Map,Gt=/^\{palette\.([a-z0-9-]+)\}$/;for(let e of[Rt,zt,Vt])if(e?.color&&typeof e.color==`object`){for(let[t,n]of Object.entries(e.color))if(!t.startsWith(`$`)&&n&&typeof n==`object`&&typeof n.$value==`string`){let e=n.$value.match(Gt);if(e){let n=e[1],r=Wt.get(n);r||(r=/* @__PURE__ */ new Set,Wt.set(n,r)),r.add(t)}}}function Kt(e){let t=Wt.get(e);return t?[...t].sort():[]}function qt(e,t){let n=Kt(e);return n.length===0?Ht:t===`web`?`read the meaning: ${n.map(e=>`var(--color-${e})`).join(` or `)}`:`read the meaning: ${n.map(e=>`theme.colors["${e}"]`).join(` or `)}`}function Jt(e){return Object.hasOwn(xe,e)?`read the meaning: var(--color-${xe[e]})`:Ht}function Yt(e){return e.startsWith(`dark-`)&&Ut.has(e)}function Xt(e){return`${qt(e,`web`)} (the dark tier stays dark in light mode)`}var Zt=e=>e===`{`||e===`}`||e===`;`?` `:e;function C(e,t){if(t===`markup`)return Qt(e);let n=``,r=null,i=!1,a=!1;for(let o=0;o<e.length;o+=1){let s=e[o],c=e[o+1];if(a)s===`*`&&c===`/`?(a=!1,n+=` `,o+=1):n+=s===`
61
- `?s:` `;else if(r)s===`\\`&&c!==void 0?(n+=`${Zt(s)}${Zt(c)}`,o+=1):(s===r&&(r=null),n+=Zt(s));else if(s===`"`||s===`'`)r=s,n+=s;else if(i)s===`)`&&(i=!1),n+=Zt(s);else if(s===`/`&&c===`*`)a=!0,n+=` `,o+=1;else if(t===`scss`&&s===`/`&&c===`/`){let t=e.indexOf(`
62
- `,o);if(t===-1)break;o=t-1}else s===`(`&&n.slice(-3).toLowerCase()===`url`&&(i=!0),n+=s}return n}function Qt(e){let t=[[`@*`,`*@`],[`<!--`,`-->`],[`/*`,`*/`]],n=``,r=0;for(;r<e.length;){let i=null;for(let n of t)if(e.startsWith(n[0],r)){i=n;break}if(!i){n+=e[r],r+=1;continue}let a=e.indexOf(i[1],r+i[0].length),o=a===-1?e.length:a+i[1].length;for(let t=r;t<o;t+=1)n+=e[t]===`
60
+ `}else if(i===`/`&&e[r+1]===`*`){for(r+=2;r<e.length&&(e[r]!==`*`||e[r+1]!==`/`);)r+=1;r+=1}else t+=i}return JSON.parse(t.replace(/,(\s*[}\]])/g,`$1`))}var Mt=`@webority/web-core`,Nt=Object.freeze((/* @__PURE__ */ `Logger.configureLogger.setRemoteLogger.extractApiError.apiErrorMessage.isApiError.ErrorBoundary.injectStore.createRootReducer.errorToastMiddleware.lazyWithReload.importWithReload.useVersionCheck.withCrossTabRefreshLock.refreshAccessToken.attachRetry.isRetryableStatus.decodeJWT.isJWTExpired.getJWTExpiry.hasPermission.isGstin.normalizeGstin.gstinState.gstinStateCode.isPan.normalizePan.maskPan.isIfsc.normalizeIfsc`.split(`.`)).map(e=>[e,Mt])),Pt=new Map(Nt),Ft=/* @__PURE__ */ new Set([`node_modules`,`build`,`dist`]),It=/* @__PURE__ */ new Set([`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`]),Lt=/\.(?:test|spec)\./,Rt=/^export\s+(?:default\s+)?(?:async\s+)?(?:function\*?|const|let|var|class)\s+([A-Za-z_$][\w$]*)/gm,zt=/^export\s*\{([^}]*)\}\s*;?\s*$/gm,Bt=/^\s*(?:\/\/|\/\*|\*)/,Vt=e=>It.has(u(e))&&!e.endsWith(`.d.ts`)&&!Lt.test(e);function Ht(e,t){for(let n of i(e,{withFileTypes:!0})){let r=d(e,n.name);n.isDirectory()?Ft.has(n.name)||Ht(r,t):n.isFile()&&Vt(n.name)&&t.push(r)}return t}var Ut=e=>e.split(`
61
+ `).map(e=>Bt.test(e)?``:e).join(`
62
+ `);function Wt(e){let t=[];for(let n of e.split(`,`)){let e=n.trim().replace(/^type\s+/,``).split(/\s+as\s+/).at(-1)??``;e!==``&&t.push(e)}return t}function Gt(e){let t=[];for(let n of e.matchAll(Rt))n[1]!==void 0&&t.push(n[1]);for(let n of e.matchAll(zt))t.push(...Wt(n[1]??``));return t}var Kt=(e,t)=>e<t?-1:Number(e>t);function qt(e){let n=d(e,`src`);if(!t(n))return[];let i=[];for(let t of Ht(n,[])){let n=m(e,t).split(g).join(`/`),a=Ut(r(t,`utf8`));for(let e of new Set(Gt(a))){let t=Pt.get(e);t!==void 0&&i.push({rel:n,name:e,pkg:t})}}return i.sort((e,t)=>Kt(e.rel,t.rel)||Kt(e.name,t.name)),i.map(({rel:e,name:t,pkg:n})=>[`library-copy:${e}:${t}`,`${e} declares ${t}, which ${n} exports. Import it from ${n} and delete the local copy.`])}var Jt=/* @__PURE__ */ new Set([`error`,`warning`,`fatal`]);function Yt(e,t){if(t===null)return[];let n=v(process.execPath,[t,`check`,`--error-on-warnings`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,`.`],{cwd:e,encoding:`utf8`,maxBuffer:268435456,windowsHide:!0}),r=Xt(n.stdout??``);if(r===null)return[[`lint:unreadable`,`Biome's report could not be read: ${String(n.stderr||n.stdout||``).slice(0,200)}`]];let i=/* @__PURE__ */ new Map;for(let e of r){if(!Jt.has(e.severity??``))continue;let t=(e.location?.path??`(config)`).replaceAll(`\\`,`/`),n=e.location?.start?.line,r=`${typeof n==`number`&&n>0?`${t}:${n}`:t} ${e.category}: ${String(e.message)}`,a=i.get(t)??[];a.push(r),i.set(t,a)}return[...i].map(([e,t])=>[`lint:${e}`,t.join(`
63
+ `)])}function Xt(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!=`object`||!t||!(`diagnostics`in t)?null:Array.isArray(t.diagnostics)?t.diagnostics:null}var Zt=`metro-bridge`,Qt=`This app does not expose the Metro development bridge. In App.js or App.tsx, or a module it imports, set globalThis.__METRO_BRIDGE__ = createMetroBridge({ store, navigationRef, signIn, signOut, isSignedIn }) from @webority/mobile-core/metro inside if (__DEV__) (react-native-procedures.md -> Debugging: the development bridge).`,$t=/import\s*\{[^}]*\bcreateMetroBridge\b[^}]*\}\s*from\s*["']@webority\/mobile-core\/metro["']/,en=/globalThis\.__METRO_BRIDGE__\s*=\s*createMetroBridge\s*\(/,tn=[`App.js`,`App.jsx`,`App.ts`,`App.tsx`,d(`src`,`App.js`),d(`src`,`App.jsx`),d(`src`,`App.ts`),d(`src`,`App.tsx`)],nn=[`index.js`,`index.ts`,`index.tsx`,`index.jsx`],rn=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),an=/* @__PURE__ */ new Set([`node_modules`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),on=e=>e.split(`\\`).join(`/`),sn=e=>e.replace(/[^\n]/g,` `);function cn(e){return e.replace(/\/\*[\s\S]*?\*\//g,sn).replace(/\/\/[^\n]*/g,sn)}function ln(e){return t(e)?r(e,`utf8`):``}function un(e){try{return JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return null}}var dn=/if\s*\(\s*__DEV__\s*\)\s*\{/g;function fn(e,t){for(let n of e.matchAll(dn)){let r=n.index+n[0].length;if(r>t)break;let i=1;for(let n=r;n<t&&i>0;n++)e[n]===`{`?i++:e[n]===`}`&&i--;if(i>0)return!0}return!1}function pn(e){if(!e.includes(`__METRO_BRIDGE__`))return!1;let t=cn(e);if(!$t.test(t))return!1;let n=en.exec(t);return n!==null&&fn(t,n.index)}function*mn(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=d(e,t.name);t.isDirectory()?an.has(t.name)||(yield*mn(n)):rn.has(u(t.name))&&(yield n)}}function hn(e){return nn.find(n=>t(d(e,n)))??`index.js`}function gn(e){let n=un(e);if(!n?.dependencies?.[`react-native`]||!t(d(e,`ios`))&&!t(d(e,`android`)))return[];let r=typeof n.main==`string`&&n.main?n.main:hn(e),i=on(m(e,d(e,r)));if([d(e,r),...tn.map(t=>d(e,t))].some(e=>pn(ln(e))))return[];for(let t of mn(e))if(pn(ln(t)))return[];return[[`${Zt}:${i}`,`${i}:1 ${Qt}`]]}var _n=[...ze].sort((e,t)=>t.length-e.length).join(`|`),vn=RegExp(`(?<![\\w$@.#-])(${_n})\\s*:(?!:)([^;{}"]*)`,`gi`),yn=`read a motion token: var(--wui-duration-fast|default|slow) and var(--wui-ease-out|in-out|ui|elastic)`,bn=/(?<![\w.#$@-])(\d+(?:\.\d+)?|\.\d+)(ms|s)(?![\w-])/g,xn=/(?<![\w$@.#-])(?:ease|ease-in|ease-out|ease-in-out|linear|step-start|step-end)(?![\w-])/,Sn=/\b(?:cubic-bezier|steps|linear)\(/;function Cn(e){let t=e.replace(/!important/gi,``);for(let e=``;e!==t;)e=t,t=t.replace(/var\([^()]*\)/gi,`var()`);t=t.replace(/\$[\w-]+/g,`$v`).replace(/#\{[^}]*\}/g,``).toLowerCase();for(let e of t.matchAll(bn))if(parseFloat(e[1]??``)>0)return!0;return xn.test(t)||Sn.test(t)}function wn(e,t){let n=[];for(let r of e.matchAll(vn))Cn(r[2]??``)&&n.push({rule:`raw-motion`,...t(r.index),hint:yn});return n}var Tn={color:/* @__PURE__ */ JSON.parse(`{"$type":"color","bg":{"$value":"{palette.bg-page}","$description":"Page background behind the content area."},"bg-subtle":{"$value":"{palette.bg-elevated}","$description":"Subtle raised background for side panels and bands."},"bg-muted":{"$value":"{palette.bg-muted}","$description":"Muted background for grouped areas and quiet controls."},"surface":{"$value":"{palette.bg-light}","$description":"Card and panel surface."},"surface-inverse":{"$value":"{palette.text-heading}","$description":"Inverse band on a page, such as a dark footer or an inverse toast."},"surface-inverse-raised":{"$value":"color-mix(in srgb, {color.text-inverse} 5%, {color.surface-inverse})","$description":"A card or panel one layer up on an inverse band.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-elevated":{"$value":"color-mix(in srgb, {color.text-inverse} 9%, {color.surface-inverse})","$description":"A floating or highlighted surface two layers up on an inverse band.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-wash-4":{"$value":"color-mix(in srgb, {color.text-inverse} 4%, transparent)","$description":"Faintest translucent wash over an inverse band, for a resting tile or row.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-wash-8":{"$value":"color-mix(in srgb, {color.text-inverse} 8%, transparent)","$description":"Light translucent wash over an inverse band, for a hovered tile or row.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-wash-12":{"$value":"color-mix(in srgb, {color.text-inverse} 12%, transparent)","$description":"Medium translucent wash over an inverse band, for a selected or pressed tile or row.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-wash-24":{"$value":"color-mix(in srgb, {color.text-inverse} 24%, transparent)","$description":"Strong translucent wash over an inverse band, for a divider or a filled chip.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-dark":{"$value":"{palette.text-heading}","$description":"Band that stays dark in light and dark mode, such as a site footer or a dark hero."},"surface-dark-border":{"$value":"color-mix(in srgb, {palette.bg-light} 14%, {palette.text-heading})","$description":"Hairline border or divider on a surface-dark band."},"on-surface-dark":{"$value":"{palette.bg-light}","$description":"Text and icons on a surface-dark band."},"on-surface-dark-muted":{"$value":"color-mix(in srgb, {palette.bg-light} 72%, {palette.text-heading})","$description":"Secondary text on a surface-dark band."},"surface-ink":{"$value":"#0B0E16","$description":"Neutral near-black band, darker than surface-dark, that stays the same in light and dark mode, such as a footer or a contents box."},"text":{"$value":"{palette.text-heading}","$description":"Main heading and body ink."},"text-body":{"$value":"{palette.text-1}","$description":"Body copy on a tinted surface such as an alert body."},"text-muted":{"$value":"{palette.text-2}","$description":"Secondary text for descriptions and muted copy."},"text-subtle":{"$value":"{palette.text-3}","$description":"Tertiary text for hints, captions, timestamps and placeholders."},"text-inverse":{"$value":"{palette.bg-light}","$description":"Text on an inverse surface."},"link":{"$value":"{palette.primary-ink}","$description":"Interactive link text."},"border":{"$value":"{palette.border-light}","$description":"Hairline border of cards, tables and dividers."},"border-subtle":{"$value":"{palette.border-soft}","$description":"Softest border for inner dividers and list edges."},"border-strong":{"$value":"{palette.border-strong}","$description":"Stronger border for emphasised separators, chart axes and unselected control outlines.","$extensions":{"com.webority":{"platforms":["web"]}}},"field-bg":{"$value":"{palette.field-bg}","$description":"Resting fill of input-like controls such as fields and selects."},"field-border":{"$value":"{palette.field-border}","$description":"Resting border of an input-like control such as a field or select."},"field-border-hover":{"$value":"{palette.field-border-hover}","$description":"Hover border of an input-like control.","$extensions":{"com.webority":{"platforms":["web"]}}},"field-border-focus":{"$value":"{palette.primary-30}","$description":"Border of a focused, open or active control such as an input or select."},"focus-ring":{"$value":"{color.primary-text}","$description":"Colour of the keyboard focus ring drawn on focus-visible controls."},"focus-ring-soft":{"$value":"color-mix(in srgb, {color.focus-ring} 25%, transparent)","$description":"Translucent step of the focus ring colour, for a soft halo around a focused field.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrim":{"$value":"color-mix(in srgb, {palette.text-heading} 45%, transparent)","$description":"Dim behind page-level backdrops such as drawers, modals and the shell."},"scrim-strong":{"$value":"color-mix(in srgb, {palette.text-heading} 62%, transparent)","$description":"Stronger dim behind media overlays that carry white ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-scrim":{"$value":"{palette.bg-light}","$description":"Ink on a scrim, such as the text of an overlay."},"progress-track":{"$value":"{palette.progress-track}","$description":"Unfilled track of a progress bar or meter.","$extensions":{"com.webority":{"platforms":["web"]}}},"progress-label":{"$value":"{palette.bg-light}","$description":"Label text inside a progress bar fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"thumb":{"$value":"{palette.bg-light}","$description":"Raised thumb that marks the selected option of a segmented control."},"scrollbar":{"$value":"{palette.scrollbar}","$description":"Resting thumb colour of a thin scrollbar.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrollbar-hover":{"$value":"{palette.scrollbar-hover}","$description":"Scrollbar thumb colour while it is hovered.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrollbar-active":{"$value":"{palette.scrollbar-active}","$description":"Scrollbar thumb colour while it is dragged.","$extensions":{"com.webority":{"platforms":["web"]}}},"primary":{"$value":"{palette.primary}","$description":"Primary fill for buttons, selected states and borders."},"primary-hover":{"$value":"{palette.primary-pressed}","$description":"Primary fill while a control is hovered or pressed."},"primary-soft":{"$value":"{palette.primary-10}","$description":"Soft primary tint behind selected and highlighted rows."},"primary-text":{"$value":"{palette.primary-ink}","$description":"Primary as text and small glyphs on a page."},"on-primary":{"$value":"{palette.primary-text}","$description":"Text and icon colour on a solid primary fill."},"primary-wash":{"$value":"color-mix(in srgb, {color.primary} 8%, transparent)","$description":"Faint translucent primary wash over a surface."},"primary-wash-strong":{"$value":"color-mix(in srgb, {color.primary} 20%, transparent)","$description":"Stronger translucent primary wash over a surface."},"neutral":{"$value":"color-mix(in srgb, {color.text} 8%, transparent)","$description":"Quiet unbranded fill for supporting actions such as Back, Skip and Close."},"neutral-hover":{"$value":"color-mix(in srgb, {color.text} 12%, transparent)","$description":"Neutral fill while a control is hovered."},"neutral-pressed":{"$value":"color-mix(in srgb, {color.text} 16%, transparent)","$description":"Neutral fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"neutral-soft":{"$value":"color-mix(in srgb, {color.text-subtle} 16%, transparent)","$description":"Soft neutral background of the neutral status pill.","$extensions":{"com.webority":{"platforms":["web"]}}},"neutral-text":{"$value":"{color.text-muted}","$description":"Text on the soft neutral background."},"on-neutral":{"$value":"{color.text}","$description":"Ink on a neutral fill."},"success":{"$value":"{palette.success}","$description":"Vivid success fill for badges, dots and success buttons."},"success-pressed":{"$value":"{palette.success-active}","$description":"Success fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-soft":{"$value":"{palette.success-10}","$description":"Soft success background of alerts and badges."},"success-border":{"$value":"{palette.success-30}","$description":"Tinted success border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-text":{"$value":"{palette.success-text}","$description":"Success colour as text on a page or a soft success tint."},"success-text-on-soft":{"$value":"{palette.success-text}","$description":"Success text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-strong":{"$value":"{palette.success-strong}","$description":"Deep success fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-success":{"$value":"#FFFFFF","$description":"Ink on a solid success fill."},"on-success-strong":{"$value":"#FFFFFF","$description":"Ink on a deep success fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning":{"$value":"{palette.warning}","$description":"Vivid warning fill for badges, dots and warning buttons."},"warning-pressed":{"$value":"{palette.warning-active}","$description":"Warning fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-soft":{"$value":"{palette.warning-10}","$description":"Soft warning background of alerts and badges."},"warning-border":{"$value":"{palette.warning-30}","$description":"Tinted warning border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-text":{"$value":"{palette.warning-text}","$description":"Warning colour as text on a page or a soft warning tint."},"warning-text-on-soft":{"$value":"{palette.warning-text}","$description":"Warning text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-strong":{"$value":"{palette.warning-strong}","$description":"Deep warning fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-strong-hover":{"$value":"{palette.warning-strong-hover}","$description":"Deep warning fill while a control is hovered or pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-warning":{"$value":"#FFFFFF","$description":"Ink on a solid warning fill."},"on-warning-strong":{"$value":"#FFFFFF","$description":"Ink on a deep warning fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger":{"$value":"{palette.danger}","$description":"Vivid danger fill for badges, dots and danger buttons."},"danger-pressed":{"$value":"{palette.danger-active}","$description":"Danger fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-soft":{"$value":"{palette.danger-10}","$description":"Soft danger background of alerts and badges."},"danger-border":{"$value":"{palette.danger-30}","$description":"Tinted danger border of alerts and badges."},"danger-text":{"$value":"{palette.danger-text}","$description":"Danger colour as text on a page or a soft danger tint."},"offline-fill":{"$value":"{palette.danger}","$description":"Fill of the offline network banner: the source red, not the contrast-darkened danger fill."},"online-fill":{"$value":"{palette.success}","$description":"Fill of the back-online network banner: the source green, not the contrast-darkened success fill."},"danger-text-on-soft":{"$value":"{palette.danger-text}","$description":"Danger text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-strong":{"$value":"{palette.danger-strong}","$description":"Deep danger fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-strong-hover":{"$value":"{palette.danger-strong-hover}","$description":"Deep danger fill while a control is hovered or pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-danger":{"$value":"#FFFFFF","$description":"Ink on a solid danger fill."},"on-danger-strong":{"$value":"#FFFFFF","$description":"Ink on a deep danger fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"info":{"$value":"{palette.info}","$description":"Vivid info fill for badges, dots and info buttons."},"info-pressed":{"$value":"{palette.info-active}","$description":"Info fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-soft":{"$value":"{palette.info-10}","$description":"Soft info background of alerts and badges."},"info-border":{"$value":"{palette.info-30}","$description":"Tinted info border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-text":{"$value":"{palette.info-text}","$description":"Info colour as text on a page or a soft info tint."},"info-text-on-soft":{"$value":"{palette.info-text}","$description":"Info text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-strong":{"$value":"{palette.info-active}","$description":"Deep info fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-info":{"$value":"#FFFFFF","$description":"Ink on a solid info fill."},"on-info-strong":{"$value":"#FFFFFF","$description":"Ink on a deep info fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-1":{"$value":"{palette.primary}","$description":"Colour of chart series 1, the brand primary.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-2":{"$value":"{palette.chart-2}","$description":"Colour of chart series 2 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-3":{"$value":"{palette.chart-3}","$description":"Colour of chart series 3 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-4":{"$value":"{palette.chart-4}","$description":"Colour of chart series 4 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-5":{"$value":"{palette.chart-5}","$description":"Colour of chart series 5 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-6":{"$value":"{palette.chart-6}","$description":"Colour of chart series 6 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-7":{"$value":"{palette.chart-7}","$description":"Colour of chart series 7 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-8":{"$value":"{palette.chart-8}","$description":"Colour of chart series 8 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-0":{"$value":"{palette.bg-muted}","$description":"Faintest step of the magnitude ramp, for empty heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-1":{"$value":"{palette.primary-10}","$description":"First step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-2":{"$value":"{palette.primary-20}","$description":"Second step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-3":{"$value":"{palette.primary-30}","$description":"Third step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-4":{"$value":"{palette.primary-50}","$description":"Fourth step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-5":{"$value":"{palette.primary-hover}","$description":"Fifth step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-6":{"$value":"{palette.primary-pressed}","$description":"Strongest step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-low":{"$value":"{palette.chart-diverging-low}","$description":"Colour of values below the midpoint in a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-mid":{"$value":"{palette.chart-diverging-mid}","$description":"Neutral midpoint colour of a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-high":{"$value":"{palette.chart-diverging-high}","$description":"Colour of values above the midpoint in a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-neutral":{"$value":"{palette.chart-neutral}","$description":"Context series colour, such as the last period, and the folded Other slice.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-grid":{"$value":"{color.border}","$description":"Gridline colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-axis":{"$value":"{color.border-strong}","$description":"Axis line colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-label":{"$value":"{color.text-subtle}","$description":"Tick and legend text colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"primary-pressed":{"$value":"{palette.phone-primary-pressed}","$description":"Primary fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["phone"]}}},"switch-thumb":{"$value":"{palette.phone-thumb}","$description":"Knob of an on/off switch, white in both modes.","$extensions":{"com.webority":{"platforms":["phone"]}}},"on-neutral-strong":{"$value":"{palette.phone-on-neutral-strong}","$description":"Ink on the solid grey fill of a neutral badge, banner or avatar.","$extensions":{"com.webority":{"platforms":["phone"]}}},"text-disabled":{"$value":"{palette.phone-text-disabled}","$description":"Text of a disabled control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-pressed":{"$value":"{palette.phone-surface-pressed}","$description":"Wash over a surface while it is pressed.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-hover":{"$value":"{palette.phone-surface-hover}","$description":"Wash over a surface under a pointer.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-selected":{"$value":"{palette.phone-surface-selected}","$description":"Wash over a selected surface such as a chosen list row.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-disabled":{"$value":"{palette.phone-surface-disabled}","$description":"Fill of a disabled surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"skeleton":{"$value":"{palette.phone-skeleton}","$description":"Base fill of a loading placeholder.","$extensions":{"com.webority":{"platforms":["phone"]}}},"skeleton-highlight":{"$value":"{palette.phone-skeleton-highlight}","$description":"Moving highlight across a loading placeholder.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-fill":{"$value":"{palette.phone-glass-fill}","$description":"Translucent fill of a control sitting on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-border":{"$value":"{palette.phone-glass-border}","$description":"Border of a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"on-glass":{"$value":"{palette.phone-on-glass}","$description":"Ink on a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-badge":{"$value":"{palette.phone-glass-badge}","$description":"Badge fill on a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-bg-focus":{"$value":"{palette.phone-field-bg-focus}","$description":"Fill of a focused input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-bg-disabled":{"$value":"{palette.phone-field-bg-disabled}","$description":"Fill of a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-border-error":{"$value":"{palette.phone-field-border-error}","$description":"Border of an input-like control holding an invalid value.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-label":{"$value":"{palette.phone-field-label}","$description":"Label above an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-text":{"$value":"{palette.phone-field-text}","$description":"Value text inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-text-disabled":{"$value":"{palette.phone-field-text-disabled}","$description":"Value text inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-placeholder":{"$value":"{palette.phone-field-placeholder}","$description":"Placeholder text inside an empty input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-placeholder-disabled":{"$value":"{palette.phone-field-placeholder-disabled}","$description":"Placeholder text inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon":{"$value":"{palette.phone-field-icon}","$description":"Icon inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon-focus":{"$value":"{palette.phone-field-icon-focus}","$description":"Icon inside a focused input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon-disabled":{"$value":"{palette.phone-field-icon-disabled}","$description":"Icon inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-caret":{"$value":"{palette.phone-field-caret}","$description":"Text caret inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-message":{"$value":"{palette.phone-field-message}","$description":"Error message under an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-1":{"$value":"{palette.phone-avatar-1}","$description":"Background behind a person's initials, picked by a hash of the name (slot 1 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-2":{"$value":"{palette.phone-avatar-2}","$description":"Background behind a person's initials, picked by a hash of the name (slot 2 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-3":{"$value":"{palette.phone-avatar-3}","$description":"Background behind a person's initials, picked by a hash of the name (slot 3 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-4":{"$value":"{palette.phone-avatar-4}","$description":"Background behind a person's initials, picked by a hash of the name (slot 4 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-5":{"$value":"{palette.phone-avatar-5}","$description":"Background behind a person's initials, picked by a hash of the name (slot 5 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-6":{"$value":"{palette.phone-avatar-6}","$description":"Background behind a person's initials, picked by a hash of the name (slot 6 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-7":{"$value":"{palette.phone-avatar-7}","$description":"Background behind a person's initials, picked by a hash of the name (slot 7 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-8":{"$value":"{palette.phone-avatar-8}","$description":"Background behind a person's initials, picked by a hash of the name (slot 8 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}}}`),effect:{"close-filter":{$type:`filter`,$value:`none`,$description:`Filter applied to a dark-ink close glyph such as the alert close button.`},"pressed-overlay":{$type:`overlay`,$value:`color-mix(in srgb, currentColor 12%, transparent)`,$description:`Translucent wash laid over a control while it is pressed.`},"hero-gradient":{$type:`gradient`,$value:`radial-gradient(ellipse 120% 80% at 50% 30%, #818CF8 0%, #4F46E5 35%, #4338CA 75%, #312E81 100%)`,$description:`Background gradient of the hero band on marketing pages.`},"cta-gradient":{$type:`gradient`,$value:`radial-gradient(ellipse 120% 100% at 50% 50%, #312E81 0%, #1E1B4B 60%, #0F0D2E 100%)`,$description:`Background gradient of the call-to-action band on marketing pages.`},"ai-violet":{$type:`color`,$value:`#7C3AED`,$description:`Violet accent of AI assistant surfaces.`},"ai-cyan":{$type:`color`,$value:`#0E9BD6`,$description:`Cyan accent of AI assistant surfaces.`},"ai-green":{$type:`color`,$value:`#12B886`,$description:`Green accent of AI assistant surfaces.`},"ai-sweep":{$type:`gradient`,$value:`var(--color-primary), var(--wui-ai-violet), var(--wui-ai-cyan), var(--wui-ai-green), var(--color-primary)`,$description:`Stop list of the AI assistant sweep, for conic-gradient(from <angle>, var(--wui-ai-sweep)).`},"progress-gradient-ok":{$type:`gradient`,$value:`linear-gradient(90deg, var(--color-success), var(--color-chart-3))`,$description:`Fill of a progress bar inside its limit.`},"progress-gradient-warn":{$type:`gradient`,$value:`linear-gradient(90deg, var(--color-warning), var(--color-danger))`,$description:`Fill of a progress bar at or over its limit.`},$extensions:{"com.webority":{platforms:[`web`]}}},leading:{$type:`number`,heading:{$value:1.2,$description:`Line height of headings.`},body:{$value:1.55,$description:`Line height of running text and of any text that is not a heading or display text.`},display:{$value:1.05,$description:`Line height of display-size text such as hero titles.`},prose:{$value:1.7,$description:`Line height of long reading text such as articles, help pages and legal text, at the base or lg text size in a measure of about 60 to 75 characters.`,$extensions:{"com.webority":{platforms:[`web`]}}},lead:{$value:1.6,$description:`Line height of the single larger opening paragraph under a page title.`,$extensions:{"com.webority":{platforms:[`web`]}}}}},En={palette:{"phone-bg":{$value:`#0B0B12`},"phone-bg-subtle":{$value:`#13131C`},"phone-bg-muted":{$value:`#1C1C26`},"phone-surface":{$value:`#1C1C26`},"phone-surface-inverse":{$value:`#FAFAFA`},"phone-text":{$value:`#E2E2E2`},"phone-text-body":{$value:`#FAFAFA`},"phone-text-muted":{$value:`#B4B4BB`},"phone-text-subtle":{$value:`#919199`},"phone-text-inverse":{$value:`#0F0F1A`},"phone-link":{$value:`#9292EE`},"phone-border":{$value:`#27272F`},"phone-border-subtle":{$value:`#1C1C26`},"phone-focus-ring":{$value:`#7C7CE8`},"phone-scrim":{$value:`rgba(0, 0, 0, 0.65)`},"phone-field-bg":{$value:`#13131C`},"phone-field-border":{$value:`#27272F`},"phone-field-border-focus":{$value:`#3D5FB0`},"phone-primary":{$value:`#7C7CE8`},"phone-primary-hover":{$value:`#9292EE`},"phone-primary-soft":{$value:`#1F1F3D`},"phone-primary-text":{$value:`#8989EA`},"phone-on-primary":{$value:`#0F0F1A`},"phone-success":{$value:`#30C780`},"phone-success-text":{$value:`#30C780`},"phone-on-success":{$value:`#0F0F1A`},"phone-warning":{$value:`#FBBF24`},"phone-warning-text":{$value:`#FBBF24`},"phone-danger":{$value:`#F87171`},"phone-danger-text":{$value:`#F87171`},"phone-on-danger":{$value:`#0F0F1A`},"phone-danger-border":{$value:`#F87171`},"phone-info":{$value:`#60A5FA`},"phone-info-text":{$value:`#60A5FA`},"phone-on-info":{$value:`#0F0F1A`},"phone-neutral":{$value:`#1F1F26`},"phone-neutral-hover":{$value:`#2A2A33`},"phone-on-neutral":{$value:`#FAFAFA`},"phone-primary-pressed":{$value:`#A8A8F2`},"phone-on-neutral-strong":{$value:`#0F0F1A`},"phone-text-disabled":{$value:`#52525B`},"phone-surface-pressed":{$value:`rgba(255, 255, 255, 0.08)`},"phone-surface-hover":{$value:`rgba(255, 255, 255, 0.05)`},"phone-surface-selected":{$value:`rgba(124, 124, 232, 0.18)`},"phone-surface-disabled":{$value:`#1C1C26`},"phone-skeleton":{$value:`#1C1C26`},"phone-skeleton-highlight":{$value:`#27272F`},"phone-field-bg-focus":{$value:`#0B0B12`},"phone-field-bg-disabled":{$value:`#1C1C26`},"phone-field-border-error":{$value:`#8A2F42`},"phone-field-label":{$value:`#E4E6EE`},"phone-field-text":{$value:`#FAFAFA`},"phone-field-text-disabled":{$value:`#71717A`},"phone-field-placeholder":{$value:`#84848D`},"phone-field-placeholder-disabled":{$value:`#71717A`},"phone-field-icon":{$value:`#8B8B95`},"phone-field-icon-focus":{$value:`#D4D4DB`},"phone-field-icon-disabled":{$value:`#52525B`},"phone-field-caret":{$value:`#7C9EF0`},"phone-field-message":{$value:`#F87171`},"phone-avatar-1":{$value:`#8B8BEE`},"phone-avatar-2":{$value:`#2DD4BF`},"phone-avatar-3":{$value:`#FCD34D`},"phone-avatar-4":{$value:`#F472B6`},"phone-avatar-5":{$value:`#60A5FA`},"phone-avatar-6":{$value:`#A78BFA`},"phone-avatar-7":{$value:`#34D399`},"phone-avatar-8":{$value:`#F87171`},"phone-shadow-sm":{$value:`rgba(0, 0, 0, 0.4)`},"phone-shadow-md":{$value:`rgba(0, 0, 0, 0.5)`},"phone-shadow-lg":{$value:`rgba(0, 0, 0, 0.55)`},"phone-shadow-xl":{$value:`rgba(0, 0, 0, 0.6)`},"primary-5":{$value:`color-mix(in srgb, {palette.dark-primary} 10%, {palette.dark-bg-surface})`},"primary-10":{$value:`color-mix(in srgb, {palette.dark-primary} 16%, {palette.dark-bg-surface})`},"primary-15":{$value:`color-mix(in srgb, {palette.dark-primary} 21%, {palette.dark-bg-surface})`},"primary-20":{$value:`color-mix(in srgb, {palette.dark-primary} 26%, {palette.dark-bg-surface})`},"primary-30":{$value:`color-mix(in srgb, {palette.dark-primary} 40%, {palette.dark-bg-surface})`},"primary-50":{$value:`color-mix(in srgb, {palette.dark-primary} 62%, {palette.dark-bg-surface})`},"surface-mute":{$value:`{palette.dark-bg-muted}`},"surface-soft":{$value:`color-mix(in srgb, {palette.dark-primary} 10%, {palette.dark-bg-surface})`},"surface-violet-soft":{$value:`color-mix(in srgb, {palette.dark-primary} 6%, {palette.dark-bg-surface})`},"danger-5":{$value:`color-mix(in srgb, {palette.danger} 10%, {palette.dark-bg-surface})`},"danger-10":{$value:`color-mix(in srgb, {palette.danger} 16%, {palette.dark-bg-surface})`},"info-5":{$value:`color-mix(in srgb, {palette.info} 10%, {palette.dark-bg-surface})`},"info-10":{$value:`color-mix(in srgb, {palette.info} 16%, {palette.dark-bg-surface})`},"success-5":{$value:`color-mix(in srgb, {palette.success} 10%, {palette.dark-bg-surface})`},"success-10":{$value:`color-mix(in srgb, {palette.success} 16%, {palette.dark-bg-surface})`},"warning-5":{$value:`color-mix(in srgb, {palette.warning} 10%, {palette.dark-bg-surface})`},"warning-10":{$value:`color-mix(in srgb, {palette.warning} 16%, {palette.dark-bg-surface})`},"neutral-bg-light":{$value:`{palette.dark-bg-surface}`},"neutral-bg-dark":{$value:`{palette.dark-bg-muted}`},"chart-1":{$value:`{palette.dark-primary}`},"chart-2":{$value:`{palette.dark-chart-2}`},"chart-3":{$value:`{palette.dark-chart-3}`},"chart-4":{$value:`{palette.dark-chart-4}`},"chart-5":{$value:`{palette.dark-chart-5}`},"chart-6":{$value:`{palette.dark-chart-6}`},"chart-7":{$value:`{palette.dark-chart-7}`},"chart-8":{$value:`{palette.dark-chart-8}`},"chart-seq-0":{$value:`{palette.dark-chart-seq-0}`},"chart-seq-1":{$value:`{palette.dark-chart-seq-1}`},"chart-seq-2":{$value:`{palette.dark-chart-seq-2}`},"chart-seq-3":{$value:`{palette.dark-chart-seq-3}`},"chart-seq-4":{$value:`{palette.dark-chart-seq-4}`},"chart-seq-5":{$value:`{palette.dark-chart-seq-5}`},"chart-seq-6":{$value:`{palette.dark-chart-seq-6}`},"chart-diverging-low":{$value:`{palette.dark-chart-diverging-low}`},"chart-diverging-mid":{$value:`{palette.dark-chart-diverging-mid}`},"chart-diverging-high":{$value:`{palette.dark-chart-diverging-high}`},"chart-neutral":{$value:`{palette.dark-chart-neutral}`}},color:{bg:{$value:`{palette.dark-bg-page}`},"bg-subtle":{$value:`{palette.dark-bg-elevated}`},"bg-muted":{$value:`{palette.dark-bg-muted}`},surface:{$value:`{palette.dark-bg-surface}`},"surface-inverse":{$value:`{palette.dark-text}`},text:{$value:`{palette.dark-text}`},"text-body":{$value:`{palette.dark-text}`},"text-muted":{$value:`{palette.dark-text-muted}`},"text-subtle":{$value:`{palette.dark-text-subtle}`},"text-inverse":{$value:`{palette.text-heading}`},link:{$value:`{palette.dark-primary}`},border:{$value:`{palette.dark-border}`},"border-subtle":{$value:`color-mix(in srgb, {palette.dark-border} 50%, transparent)`},"border-strong":{$value:`{palette.dark-border-strong}`},"field-bg":{$value:`{palette.dark-bg-muted}`},"field-border":{$value:`{palette.dark-field-border}`},"field-border-hover":{$value:`{palette.dark-field-border-hover}`},"field-border-focus":{$value:`{palette.dark-primary}`},scrim:{$value:`color-mix(in srgb, #000000 45%, transparent)`},"scrim-strong":{$value:`color-mix(in srgb, #000000 62%, transparent)`},"progress-track":{$value:`{palette.dark-progress-track}`},"progress-label":{$value:`#0F0F0F`},thumb:{$value:`color-mix(in srgb, {palette.dark-text} 12%, {palette.dark-bg-muted})`},primary:{$value:`{palette.dark-primary}`},"primary-hover":{$value:`{palette.dark-primary-hover}`},"primary-soft":{$value:`color-mix(in srgb, {palette.primary} 20%, transparent)`},"primary-text":{$value:`{palette.dark-primary}`},"on-primary":{$value:`#0F0F0F`},"success-soft":{$value:`color-mix(in srgb, {palette.success} 18%, transparent)`},"success-text":{$value:`color-mix(in srgb, {palette.success} 75%, white)`},"success-text-on-soft":{$value:`color-mix(in srgb, {palette.success} 65%, white)`},"success-strong":{$value:`{color.success-text}`},"on-success-strong":{$value:`#0F0F0F`},"warning-soft":{$value:`color-mix(in srgb, {palette.warning} 18%, transparent)`},"warning-text":{$value:`color-mix(in srgb, {palette.warning} 75%, white)`},"warning-text-on-soft":{$value:`color-mix(in srgb, {palette.warning} 65%, white)`},"warning-strong":{$value:`{color.warning-text}`},"on-warning-strong":{$value:`#0F0F0F`},"danger-soft":{$value:`color-mix(in srgb, {palette.danger} 18%, transparent)`},"danger-text":{$value:`color-mix(in srgb, {palette.danger} 75%, white)`},"offline-fill":{$value:`{palette.danger}`},"online-fill":{$value:`{palette.success}`},"danger-text-on-soft":{$value:`color-mix(in srgb, {palette.danger} 65%, white)`},"danger-strong":{$value:`{color.danger-text}`},"on-danger-strong":{$value:`#0F0F0F`},"info-soft":{$value:`color-mix(in srgb, {palette.info} 18%, transparent)`},"info-text":{$value:`color-mix(in srgb, {palette.info} 75%, white)`},"info-text-on-soft":{$value:`color-mix(in srgb, {palette.info} 65%, white)`},"info-strong":{$value:`{color.info-text}`},"on-info-strong":{$value:`#0F0F0F`},"chart-1":{$value:`{palette.dark-primary}`},"chart-2":{$value:`{palette.dark-chart-2}`},"chart-3":{$value:`{palette.dark-chart-3}`},"chart-4":{$value:`{palette.dark-chart-4}`},"chart-5":{$value:`{palette.dark-chart-5}`},"chart-6":{$value:`{palette.dark-chart-6}`},"chart-7":{$value:`{palette.dark-chart-7}`},"chart-8":{$value:`{palette.dark-chart-8}`},"chart-seq-0":{$value:`{palette.dark-chart-seq-0}`},"chart-seq-1":{$value:`{palette.dark-chart-seq-1}`},"chart-seq-2":{$value:`{palette.dark-chart-seq-2}`},"chart-seq-3":{$value:`{palette.dark-chart-seq-3}`},"chart-seq-4":{$value:`{palette.dark-chart-seq-4}`},"chart-seq-5":{$value:`{palette.dark-chart-seq-5}`},"chart-seq-6":{$value:`{palette.dark-chart-seq-6}`},"chart-diverging-low":{$value:`{palette.dark-chart-diverging-low}`},"chart-diverging-mid":{$value:`{palette.dark-chart-diverging-mid}`},"chart-diverging-high":{$value:`{palette.dark-chart-diverging-high}`},"chart-neutral":{$value:`{palette.dark-chart-neutral}`},success:{$value:`#30C780`},warning:{$value:`#FBBF24`},danger:{$value:`#F87171`},info:{$value:`#60A5FA`},"on-success":{$value:`#0F0F1A`},"on-warning":{$value:`#0F0F1A`},"on-danger":{$value:`#0F0F1A`},"on-info":{$value:`#0F0F1A`},"success-pressed":{$value:`color-mix(in srgb, {color.success} 85%, white)`},"warning-pressed":{$value:`color-mix(in srgb, {color.warning} 85%, white)`},"danger-pressed":{$value:`color-mix(in srgb, {color.danger} 85%, white)`},"info-pressed":{$value:`color-mix(in srgb, {color.info} 85%, white)`},"success-border":{$value:`color-mix(in srgb, {color.success} 40%, transparent)`},"warning-border":{$value:`color-mix(in srgb, {color.warning} 40%, transparent)`},"danger-border":{$value:`color-mix(in srgb, {color.danger} 40%, transparent)`},"info-border":{$value:`color-mix(in srgb, {color.info} 40%, transparent)`},"warning-strong-hover":{$value:`color-mix(in srgb, {color.warning-strong} 85%, white)`},"danger-strong-hover":{$value:`color-mix(in srgb, {color.danger-strong} 85%, white)`},scrollbar:{$value:`rgba(255, 255, 255, 0.18)`},"scrollbar-hover":{$value:`rgba(255, 255, 255, 0.28)`},"scrollbar-active":{$value:`rgba(255, 255, 255, 0.4)`}},effect:{"close-filter":{$value:`invert(1) grayscale(100%) brightness(200%)`},"ai-violet":{$value:`{palette.dark-ai-violet}`}},shadow:{elevated:{$value:{color:`rgba(0, 0, 0, 0.45)`,offsetX:{value:0,unit:`px`},offsetY:{value:2,unit:`px`},blur:{value:8,unit:`px`},spread:{value:-2,unit:`px`}}},popover:{$value:{color:`rgba(0, 0, 0, 0.55)`,offsetX:{value:0,unit:`px`},offsetY:{value:8,unit:`px`},blur:{value:28,unit:`px`},spread:{value:-6,unit:`px`}}},modal:{$value:{color:`rgba(0, 0, 0, 0.7)`,offsetX:{value:0,unit:`px`},offsetY:{value:24,unit:`px`},blur:{value:60,unit:`px`},spread:{value:-16,unit:`px`}}}},component:{thumb:{shadow:{$value:`0 2px 6px rgba(255, 255, 255, 0.1)`},"shadow-hover":{$value:`0 2px 12px rgba(255, 255, 255, 0.2)`}}}},Dn={palette:/* @__PURE__ */ JSON.parse(`{"$description":"Raw colours. Library-internal: product code, phone code and Canvas read meanings, never these.","$extensions":{"com.webority":{"internal":true}},"primary":{"$type":"color","$value":"#4F46E5","$description":"Brand primary fill for primary buttons, selected states and the first chart series."},"primary-hover":{"$type":"color","$value":"#6366F1","$description":"Primary fill while a control is hovered."},"primary-pressed":{"$type":"color","$value":"#4338CA","$description":"Primary fill while a control is pressed or active."},"primary-50":{"$type":"color","$value":"#818CF8","$description":"Strongest soft primary fill or border tint that follows dark mode."},"primary-30":{"$type":"color","$value":"#A5B4FC","$description":"Medium soft primary fill or border tint that follows dark mode."},"primary-20":{"$type":"color","$value":"#C7D2FE","$description":"Light soft primary fill or border tint that follows dark mode."},"primary-15":{"$type":"color","$value":"#DDE1FD","$description":"Lighter soft primary fill or border tint that follows dark mode."},"primary-10":{"$type":"color","$value":"#E0E7FF","$description":"Pale soft primary fill or border tint that follows dark mode."},"primary-5":{"$type":"color","$value":"#EEF2FF","$description":"Faintest soft primary fill or border tint that follows dark mode."},"text-heading":{"$type":"color","$value":"#071437","$description":"Heading ink for page and section titles."},"text-1":{"$type":"color","$value":"#252F4A","$description":"Primary body text, a step softer than the heading ink."},"text-2":{"$type":"color","$value":"#4B5675","$description":"Secondary text for descriptions, sub-labels and muted copy."},"text-3":{"$type":"color","$value":"#626A82","$description":"Tertiary text for hints, captions, labels, timestamps and placeholders."},"text-4":{"$type":"color","$value":"#99A1B7","$description":"Decorative faint ink, not for text a person must read."},"text-5":{"$type":"color","$value":"#C4CADA","$description":"Faintest ink, for decorative marks."},"bg-page":{"$type":"color","$value":"#F4F6F8","$description":"Page background behind every surface in light mode."},"bg-light":{"$type":"color","$value":"#FFFFFF","$description":"White card and panel surface, the lightest fill in light mode."},"bg-elevated":{"$type":"color","$value":"#F9FBFC","$description":"Subtle raised surface, one step off the page."},"bg-muted":{"$type":"color","$value":"#F5F6FA","$description":"Muted fill for grouped areas and quiet controls."},"field-bg":{"$type":"color","$value":"#F9FBFC","$description":"Resting fill of every input-like control, such as fields, selects and textareas."},"field-border":{"$type":"color","$value":"#DFE2EA","$description":"Resting border of every input-like control."},"field-border-hover":{"$type":"color","$value":"#C4CADA","$description":"Hover border of every input-like control."},"border-light":{"$type":"color","$value":"#EBEDF3","$description":"Default hairline border of cards, tables and dividers."},"border-soft":{"$type":"color","$value":"#F4F6F8","$description":"Softest border, for inner dividers."},"border-strong":{"$type":"color","$value":"#C4CADA","$description":"Strong border for emphasised separators, chart axes and unselected control outlines."},"progress-track":{"$type":"color","$value":"#E1E5EE","$description":"Unfilled track of a progress bar or meter."},"scrollbar":{"$type":"color","$value":"rgba(145, 158, 171, 0.45)","$description":"Resting thumb colour of a thin scrollbar."},"scrollbar-hover":{"$type":"color","$value":"rgba(145, 158, 171, 0.65)","$description":"Scrollbar thumb colour while it is hovered."},"scrollbar-active":{"$type":"color","$value":"rgba(145, 158, 171, 0.85)","$description":"Scrollbar thumb colour while it is dragged."},"surface-soft":{"$type":"color","$value":"#F2EFFE","$description":"Soft tint surface for marketing callouts and mega-menu hover."},"surface-violet":{"$type":"color","$value":"#ECE4FE","$description":"Violet-tinted surface for marketing section accents and callout cards."},"surface-violet-soft":{"$type":"color","$value":"#FCFCFC","$description":"Near-white surface for marketing section accents."},"surface-mute":{"$type":"color","$value":"#F9FBFC","$description":"Neutral wash surface for marketing sections and panels."},"ink":{"$type":"color","$value":"#000000","$description":"Pure black ink, the highest-contrast text colour."},"fg-2":{"$type":"color","$value":"{palette.text-1}","$description":"Marketing alias of the primary body text ink."},"fg-3":{"$type":"color","$value":"{palette.text-2}","$description":"Marketing alias of the secondary text ink."},"fg-4":{"$type":"color","$value":"{palette.text-3}","$description":"Marketing alias of the tertiary text ink."},"fg-5":{"$type":"color","$value":"{palette.text-5}","$description":"Marketing alias of the faintest text ink."},"neutral-border-dark":{"$type":"color","$value":"#EBEDF3","$description":"Border tone of table emphasis rows and dividers."},"neutral-border-light":{"$type":"color","$value":"#F9FBFC","$description":"Faintest border tone, for dividers."},"neutral-bg-dark":{"$type":"color","$value":"#F5F6FA","$description":"Muted background of table emphasis rows and mega-menu hover."},"neutral-bg-light":{"$type":"color","$value":"#F9FBFC","$description":"Faint background for table emphasis and mega-menu hover."},"accent-dark":{"$type":"color","$value":"{palette.primary-pressed}","$description":"Pressed and hover accent colour in CSS, following the pressed primary."},"primary-text":{"$type":"color","$value":"#ffffff","$description":"Text and icon colour on a solid primary fill, such as a primary button label."},"primary-ink":{"$type":"color","$value":"{palette.primary}","$description":"Primary as text and small glyphs on light surfaces."},"info-text":{"$type":"color","$value":"#1460ba","$description":"Info colour as text on light surfaces."},"info-active":{"$type":"color","$value":"#056EE9","$description":"Info ink for icons and active states on light surfaces."},"info":{"$type":"color","$value":"#056EE9","$description":"Vivid info fill for badges, dots and info buttons."},"info-50":{"$type":"color","$value":"#8DC2FF","$description":"Info tint 50 for borders and the strongest soft info fill."},"info-30":{"$type":"color","$value":"#BBDBFF","$description":"Info tint 30 for soft fills and borders of alerts and badges."},"info-20":{"$type":"color","$value":"#D1E6FF","$description":"Info tint 20 for soft fills behind info alerts and badges."},"info-10":{"$type":"color","$value":"#E9F3FF","$description":"Info tint 10, the soft background of info alerts and badges."},"info-5":{"$type":"color","$value":"#F3F9FF","$description":"Faintest info tint, for hover washes and soft info backgrounds."},"success-text":{"$type":"color","$value":"#0e7531","$description":"Success colour as text on light surfaces, darkened to pass AA."},"success-strong":{"$type":"color","$value":"#0e7531","$description":"Deep success fill behind white text, such as progress-bar labels."},"success-active":{"$type":"color","$value":"#04B440","$description":"Active success fill, the deepest vivid success tone."},"success":{"$type":"color","$value":"#04B440","$description":"Vivid success fill for badges, dots and success buttons."},"success-50":{"$type":"color","$value":"#8BE3A9","$description":"Success tint 50 for borders and the strongest soft success fill."},"success-30":{"$type":"color","$value":"#BAEECC","$description":"Success tint 30 for soft fills and borders of alerts and badges."},"success-20":{"$type":"color","$value":"#D1F4DD","$description":"Success tint 20 for soft fills behind success alerts and badges."},"success-10":{"$type":"color","$value":"#E8FAEE","$description":"Success tint 10, the soft background of success alerts and badges."},"success-5":{"$type":"color","$value":"#F3FCF6","$description":"Faintest success tint, for hover washes and soft success backgrounds."},"warning-text":{"$type":"color","$value":"#876100","$description":"Warning colour as text on light surfaces, darkened to pass AA."},"warning-strong":{"$type":"color","$value":"#9A6B00","$description":"Deep warning fill behind white text, such as the warning button."},"warning-strong-hover":{"$type":"color","$value":"#855C00","$description":"Deep warning fill while a warning button with white text is hovered."},"warning-active":{"$type":"color","$value":"#DFA000","$description":"Active warning fill, the deepest vivid warning tone."},"warning":{"$type":"color","$value":"#DFA000","$description":"Vivid warning fill for badges and dots."},"warning-50":{"$type":"color","$value":"#FBD880","$description":"Warning tint 50 for borders and the strongest soft warning fill."},"warning-30":{"$type":"color","$value":"#FDE8B3","$description":"Warning tint 30 for soft fills and borders of alerts and badges."},"warning-20":{"$type":"color","$value":"#FDEFCC","$description":"Warning tint 20 for soft fills behind warning alerts and badges."},"warning-10":{"$type":"color","$value":"#FFF8E6","$description":"Warning tint 10, the soft background of warning alerts and badges."},"warning-5":{"$type":"color","$value":"#FEFBF2","$description":"Faintest warning tint, for hover washes and soft warning backgrounds."},"danger-text":{"$type":"color","$value":"#CF1735","$description":"Error text colour for validation messages and danger text on light surfaces."},"danger-strong":{"$type":"color","$value":"#C81340","$description":"Deep danger fill behind white text, such as the danger button."},"danger-strong-hover":{"$type":"color","$value":"#AB1036","$description":"Deep danger fill while a danger button with white text is hovered."},"danger-active":{"$type":"color","$value":"#E82646","$description":"Active danger fill, the deepest vivid danger tone."},"danger":{"$type":"color","$value":"#E82646","$description":"Vivid danger fill for badges, dots and danger buttons."},"danger-50":{"$type":"color","$value":"#FC94AD","$description":"Danger tint 50 for borders and the strongest soft danger fill."},"danger-30":{"$type":"color","$value":"#FDBFCE","$description":"Danger tint 30 for soft fills and borders of alerts and badges."},"danger-20":{"$type":"color","$value":"#FED4DE","$description":"Danger tint 20 for soft fills behind danger alerts and badges."},"danger-10":{"$type":"color","$value":"#FFEAEF","$description":"Danger tint 10, the soft background of danger alerts and badges."},"danger-5":{"$type":"color","$value":"#FEF4F6","$description":"Faintest danger tint, for hover washes and soft danger backgrounds."},"chart-1":{"$type":"color","$value":"{palette.primary}","$description":"Colour of chart series 1, the brand primary."},"chart-2":{"$type":"color","$value":"#eb6834","$description":"Colour of chart series 2 of the eight categorical series."},"chart-3":{"$type":"color","$value":"#1baf7a","$description":"Colour of chart series 3 of the eight categorical series."},"chart-4":{"$type":"color","$value":"#eda100","$description":"Colour of chart series 4 of the eight categorical series."},"chart-5":{"$type":"color","$value":"#e87ba4","$description":"Colour of chart series 5 of the eight categorical series."},"chart-6":{"$type":"color","$value":"#008300","$description":"Colour of chart series 6 of the eight categorical series."},"chart-7":{"$type":"color","$value":"#2a78d6","$description":"Colour of chart series 7 of the eight categorical series."},"chart-8":{"$type":"color","$value":"#e34948","$description":"Colour of chart series 8 of the eight categorical series."},"chart-seq-0":{"$type":"color","$value":"{palette.bg-muted}","$description":"Faintest step of the magnitude ramp, for empty heatmap and calendar cells."},"chart-seq-1":{"$type":"color","$value":"{palette.primary-10}","$description":"First step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-2":{"$type":"color","$value":"{palette.primary-20}","$description":"Second step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-3":{"$type":"color","$value":"{palette.primary-30}","$description":"Third step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-4":{"$type":"color","$value":"{palette.primary-50}","$description":"Fourth step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-5":{"$type":"color","$value":"{palette.primary-hover}","$description":"Fifth step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-6":{"$type":"color","$value":"{palette.primary-pressed}","$description":"Strongest step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-diverging-low":{"$type":"color","$value":"#e34948","$description":"Colour of values below the midpoint in a diverging chart."},"chart-diverging-mid":{"$type":"color","$value":"#c4cada","$description":"Neutral midpoint colour of a diverging chart."},"chart-diverging-high":{"$type":"color","$value":"#2a78d6","$description":"Colour of values above the midpoint in a diverging chart."},"chart-neutral":{"$type":"color","$value":"#99a1b7","$description":"Context series colour, such as the last period, and the folded Other slice."},"dark-bg-page":{"$type":"color","$value":"#0f1117","$description":"Dark page background, the base of every dark-mode surface."},"dark-bg-elevated":{"$type":"color","$value":"#0d0f15","$description":"Subtle dark background, one step off the dark page."},"dark-bg-muted":{"$type":"color","$value":"#232733","$description":"Dark muted fill for grouped areas and quiet controls."},"dark-bg-surface":{"$type":"color","$value":"#181b23","$description":"Dark card and panel surface, one step above the dark page."},"dark-border":{"$type":"color","$value":"#3d4554","$description":"Dark hairline border of cards, tables and dividers."},"dark-border-strong":{"$type":"color","$value":"#515b6e","$description":"Stronger dark border for emphasised separators."},"dark-field-border":{"$type":"color","$value":"#3d4554","$description":"Resting border of input-like controls in dark mode."},"dark-field-border-hover":{"$type":"color","$value":"#515b6e","$description":"Hover border of input-like controls in dark mode."},"dark-progress-track":{"$type":"color","$value":"#323845","$description":"Unfilled track of a progress bar or meter in dark mode."},"dark-text":{"$type":"color","$value":"#e6e8ee","$description":"Primary body text colour in dark mode."},"dark-text-muted":{"$type":"color","$value":"#b4b9c6","$description":"Secondary text colour in dark mode."},"dark-text-subtle":{"$type":"color","$value":"#8a90a0","$description":"Tertiary text colour in dark mode, for hints and captions."},"dark-primary":{"$type":"color","$value":"#aeaaf5","$description":"Primary as text, rings, focus borders and the fill under dark ink in dark mode."},"dark-primary-hover":{"$type":"color","$value":"#c3c0f8","$description":"Primary fill while it is hovered in dark mode."},"dark-ai-violet":{"$type":"color","$value":"#A78BFA","$description":"Lighter violet accent of AI assistant surfaces in dark mode."},"dark-chart-2":{"$type":"color","$value":"#d95926","$description":"Dark-mode colour of chart series 2 of the categorical set."},"dark-chart-3":{"$type":"color","$value":"#199e70","$description":"Dark-mode colour of chart series 3 of the categorical set."},"dark-chart-4":{"$type":"color","$value":"#c98500","$description":"Dark-mode colour of chart series 4 of the categorical set."},"dark-chart-5":{"$type":"color","$value":"#d55181","$description":"Dark-mode colour of chart series 5 of the categorical set."},"dark-chart-6":{"$type":"color","$value":"#008300","$description":"Dark-mode colour of chart series 6 of the categorical set."},"dark-chart-7":{"$type":"color","$value":"#3987e5","$description":"Dark-mode colour of chart series 7 of the categorical set."},"dark-chart-8":{"$type":"color","$value":"#e66767","$description":"Dark-mode colour of chart series 8 of the categorical set."},"dark-chart-seq-0":{"$type":"color","$value":"#20242f","$description":"Dark-mode faintest step of the magnitude ramp, for empty heatmap cells."},"dark-chart-seq-1":{"$type":"color","$value":"#262c45","$description":"Dark-mode first step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-2":{"$type":"color","$value":"#2f3a70","$description":"Dark-mode second step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-3":{"$type":"color","$value":"#3b4ba0","$description":"Dark-mode third step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-4":{"$type":"color","$value":"#5168d2","$description":"Dark-mode fourth step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-5":{"$type":"color","$value":"#7a90ef","$description":"Dark-mode fifth step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-6":{"$type":"color","$value":"#b3c1f7","$description":"Dark-mode strongest step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-diverging-low":{"$type":"color","$value":"#e66767","$description":"Dark-mode colour of values below the midpoint in a diverging chart."},"dark-chart-diverging-mid":{"$type":"color","$value":"#3a414f","$description":"Dark-mode neutral midpoint colour of a diverging chart."},"dark-chart-diverging-high":{"$type":"color","$value":"#3987e5","$description":"Dark-mode colour of values above the midpoint in a diverging chart."},"dark-chart-neutral":{"$type":"color","$value":"#5d6475","$description":"Dark-mode context series colour, such as the last period."},"phone-bg":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-bg-subtle":{"$type":"color","$value":"#F8F8FB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-bg-muted":{"$type":"color","$value":"#F1F1F5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-inverse":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text":{"$type":"color","$value":"#252F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-body":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-muted":{"$type":"color","$value":"#52525B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-subtle":{"$type":"color","$value":"#62626B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-inverse":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-link":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-border":{"$type":"color","$value":"#E5E5EC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-border-subtle":{"$type":"color","$value":"#EFEFF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-focus-ring":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-scrim":{"$type":"color","$value":"rgba(15, 15, 26, 0.5)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-scrim":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg":{"$type":"color","$value":"#F9FBFC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border":{"$type":"color","$value":"#EBEDF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border-focus":{"$type":"color","$value":"#BED2F9","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-hover":{"$type":"color","$value":"#4F4FBF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-soft":{"$type":"color","$value":"#EEEEFC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-text":{"$type":"color","$value":"#4F4FD3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-primary":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-success":{"$type":"color","$value":"#18864F","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-success-text":{"$type":"color","$value":"#147042","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-success":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-warning":{"$type":"color","$value":"#F59E0B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-warning-text":{"$type":"color","$value":"#8F5C06","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-warning":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger":{"$type":"color","$value":"#E12C32","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger-text":{"$type":"color","$value":"#BC1B20","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-danger":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger-border":{"$type":"color","$value":"#E5484D","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-info":{"$type":"color","$value":"#1B6EF5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-info-text":{"$type":"color","$value":"#0958D9","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-info":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-neutral":{"$type":"color","$value":"#F4F4F8","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-neutral-hover":{"$type":"color","$value":"#E9E9F0","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-neutral":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-pressed":{"$type":"color","$value":"#4040A8","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-neutral-strong":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-disabled":{"$type":"color","$value":"#B4B4BB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-pressed":{"$type":"color","$value":"rgba(15, 15, 26, 0.06)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-hover":{"$type":"color","$value":"rgba(15, 15, 26, 0.04)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-selected":{"$type":"color","$value":"rgba(91, 91, 214, 0.1)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-disabled":{"$type":"color","$value":"#F1F1F5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-skeleton":{"$type":"color","$value":"#EBEDF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-skeleton-highlight":{"$type":"color","$value":"#F5F6FA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-fill":{"$type":"color","$value":"rgba(255, 255, 255, 0.28)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-border":{"$type":"color","$value":"rgba(255, 255, 255, 0.45)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-glass":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-badge":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg-focus":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg-disabled":{"$type":"color","$value":"#F5F6FA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border-error":{"$type":"color","$value":"#FDBFCE","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-label":{"$type":"color","$value":"#242F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-text":{"$type":"color","$value":"#252F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-text-disabled":{"$type":"color","$value":"#7A8197","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-placeholder":{"$type":"color","$value":"#626D8B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-placeholder-disabled":{"$type":"color","$value":"#7A8197","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon":{"$type":"color","$value":"#7A849F","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon-focus":{"$type":"color","$value":"#4B5675","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon-disabled":{"$type":"color","$value":"#C4CADA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-caret":{"$type":"color","$value":"#5B8DEE","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-message":{"$type":"color","$value":"#D81736","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-1":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-2":{"$type":"color","$value":"#0A7979","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-3":{"$type":"color","$value":"#A45A05","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-4":{"$type":"color","$value":"#CD226E","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-5":{"$type":"color","$value":"#2462EB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-6":{"$type":"color","$value":"#7C3AED","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-7":{"$type":"color","$value":"#047C57","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-8":{"$type":"color","$value":"#D42222","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-sm":{"$type":"color","$value":"rgba(0, 0, 0, 0.06)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-md":{"$type":"color","$value":"rgba(0, 0, 0, 0.08)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-lg":{"$type":"color","$value":"rgba(0, 0, 0, 0.1)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-xl":{"$type":"color","$value":"rgba(0, 0, 0, 0.14)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-thumb":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}}}`)},On={leading:{body:{$value:1.4},display:{$value:1.2}},color:{bg:{$value:`{palette.phone-bg}`},"bg-subtle":{$value:`{palette.phone-bg-subtle}`},"bg-muted":{$value:`{palette.phone-bg-muted}`},surface:{$value:`{palette.phone-surface}`},"surface-inverse":{$value:`{palette.phone-surface-inverse}`},text:{$value:`{palette.phone-text}`},"text-body":{$value:`{palette.phone-text-body}`},"text-muted":{$value:`{palette.phone-text-muted}`},"text-subtle":{$value:`{palette.phone-text-subtle}`},"text-inverse":{$value:`{palette.phone-text-inverse}`},link:{$value:`{palette.phone-link}`},border:{$value:`{palette.phone-border}`},"border-subtle":{$value:`{palette.phone-border-subtle}`},"focus-ring":{$value:`{palette.phone-focus-ring}`},scrim:{$value:`{palette.phone-scrim}`},"on-scrim":{$value:`{palette.phone-on-scrim}`},"field-bg":{$value:`{palette.phone-field-bg}`},"field-border":{$value:`{palette.phone-field-border}`},"field-border-focus":{$value:`{palette.phone-field-border-focus}`},primary:{$value:`{palette.phone-primary}`},"primary-hover":{$value:`{palette.phone-primary-hover}`},"primary-soft":{$value:`{palette.phone-primary-soft}`},"primary-text":{$value:`{palette.phone-primary-text}`},"on-primary":{$value:`{palette.phone-on-primary}`},success:{$value:`{palette.phone-success}`},"success-text":{$value:`{palette.phone-success-text}`},"on-success":{$value:`{palette.phone-on-success}`},warning:{$value:`{palette.phone-warning}`},"warning-text":{$value:`{palette.phone-warning-text}`},"on-warning":{$value:`{palette.phone-on-warning}`},danger:{$value:`{palette.phone-danger}`},"danger-text":{$value:`{palette.phone-danger-text}`},"on-danger":{$value:`{palette.phone-on-danger}`},"danger-border":{$value:`{palette.phone-danger-border}`},info:{$value:`{palette.phone-info}`},"info-text":{$value:`{palette.phone-info-text}`},"on-info":{$value:`{palette.phone-on-info}`},neutral:{$value:`{palette.phone-neutral}`},"neutral-hover":{$value:`{palette.phone-neutral-hover}`},"on-neutral":{$value:`{palette.phone-on-neutral}`}},shadow:{card:{$value:{color:`{palette.phone-shadow-sm}`,offsetX:{value:0,unit:`px`},offsetY:{value:2,unit:`px`},blur:{value:4,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:2}}},elevated:{$value:{color:`{palette.phone-shadow-md}`,offsetX:{value:0,unit:`px`},offsetY:{value:4,unit:`px`},blur:{value:8,unit:`px`},spread:{value:0,unit:`px`}}},popover:{$value:{color:`{palette.phone-shadow-lg}`,offsetX:{value:0,unit:`px`},offsetY:{value:8,unit:`px`},blur:{value:16,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:8}}},modal:{$value:{color:`{palette.phone-shadow-xl}`,offsetX:{value:0,unit:`px`},offsetY:{value:12,unit:`px`},blur:{value:24,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:12}}},drawer:{$value:{color:`{palette.phone-shadow-xl}`,offsetX:{value:0,unit:`px`},offsetY:{value:12,unit:`px`},blur:{value:24,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:12}}}},radius:{sm:{$value:{value:6,unit:`px`}},xl:{$value:{value:20,unit:`px`}}},text:{xs:{$value:{value:11,unit:`px`}},sm:{$value:{value:13,unit:`px`}},base:{$value:{value:15,unit:`px`}},lg:{$value:{value:17,unit:`px`}},xl:{$value:{value:20,unit:`px`}},"2xl":{$value:{value:24,unit:`px`}},"3xl":{$value:{value:30,unit:`px`}},"4xl":{$value:{value:36,unit:`px`}},"5xl":{$value:{value:45,unit:`px`}},"6xl":{$value:{value:57,unit:`px`}},"7xl":{$value:{value:64,unit:`px`}},"8xl":{$value:{value:72,unit:`px`}}},font:{ui:{$value:[`System`]},display:{$value:[`System`]},mono:{$value:[`System`]}},motion:{duration:{fast:{$value:{value:160,unit:`ms`}},default:{$value:{value:240,unit:`ms`}},slow:{$value:{value:360,unit:`ms`}}}},component:{button:{sm:{radius:{$value:`{radius.md}`}},md:{radius:{$value:`{radius.md}`}},lg:{radius:{$value:`{radius.lg}`}}},field:{sm:{radius:{$value:`{radius.md}`}},md:{radius:{$value:`{radius.md}`}},lg:{radius:{$value:`{radius.md}`}}},disabled:{opacity:{$value:.55}},press:{opacity:{$value:.85}}}},kn=`no meaning uses this step; propose one on the Webority UI board (bootstrap-ui.md → Tokens)`,An=new Set(Object.keys(Dn.palette??{}).filter(e=>!e.startsWith(`$`))),jn=/* @__PURE__ */ new Map,Mn=/^\{palette\.([a-z0-9-]+)\}$/;function Nn(e){return typeof e==`object`&&!!e}var Pn=[Tn,En,On];for(let e of Pn){let t=Nn(e)?e.color:void 0;if(Nn(t))for(let[e,n]of Object.entries(t)){if(e.startsWith(`$`))continue;let t=Nn(n)?n.$value:void 0;if(typeof t==`string`){let n=t.match(Mn);if(n){let t=n[1]??``,r=jn.get(t);r||(r=/* @__PURE__ */ new Set,jn.set(t,r)),r.add(e)}}}}function Fn(e){let t=jn.get(e);return t?[...t].sort():[]}function In(e,t){let n=Fn(e);return n.length===0?kn:t===`web`?`read the meaning: ${n.map(e=>`var(--color-${e})`).join(` or `)}`:`read the meaning: ${n.map(e=>`theme.colors["${e}"]`).join(` or `)}`}function Ln(e){return Object.hasOwn(He,e)}function Rn(e){return Ln(e)?`read the meaning: var(--color-${He[e]})`:kn}function zn(e){return e.startsWith(`dark-`)&&An.has(e)}function Bn(e){return`${In(e,`web`)} (the dark tier stays dark in light mode)`}var Vn=e=>e===`{`||e===`}`||e===`;`?` `:e;function T(e,t){if(t===`markup`)return Hn(e);let n=``,r=null,i=!1,a=!1;for(let o=0;o<e.length;o+=1){let s=e.charAt(o),c=e[o+1];if(a)s===`*`&&c===`/`?(a=!1,n+=` `,o+=1):n+=s===`
64
+ `?s:` `;else if(r)s===`\\`&&c!==void 0?(n+=`${Vn(s)}${Vn(c)}`,o+=1):(s===r&&(r=null),n+=Vn(s));else if(s===`"`||s===`'`)r=s,n+=s;else if(i)s===`)`&&(i=!1),n+=Vn(s);else if(s===`/`&&c===`*`)a=!0,n+=` `,o+=1;else if(t===`scss`&&s===`/`&&c===`/`){let t=e.indexOf(`
65
+ `,o);if(t===-1)break;o=t-1}else s===`(`&&n.slice(-3).toLowerCase()===`url`&&(i=!0),n+=s}return n}function Hn(e){let t=[[`@*`,`*@`],[`<!--`,`-->`],[`/*`,`*/`]],n=``,r=0;for(;r<e.length;){let i=null;for(let n of t)if(e.startsWith(n[0],r)){i=n;break}if(!i){n+=e.charAt(r),r+=1;continue}let a=e.indexOf(i[1],r+i[0].length),o=a===-1?e.length:a+i[1].length;for(let t=r;t<o;t+=1)n+=e[t]===`
63
66
  `?`
64
- `:` `;r=o}return n}function $t(e,t){let n=[0];for(let t=0;t<e.length;t+=1)e[t]===`
67
+ `:` `;r=o}return n}function Un(e,t){let n=[0];for(let t=0;t<e.length;t+=1)e[t]===`
65
68
  `&&n.push(t+1);let r=t.split(`
66
- `);return e=>{let t=0,i=n.length-1;for(;t<i;){let r=t+i+1>>1;n[r]<=e?t=r:i=r-1}return{line:t+1,text:(r[t]??``).trim().slice(0,160)}}}var en=[...pe].sort((e,t)=>t.length-e.length).join(`|`),tn=RegExp(`(?<![\\w$@.#-])(${en})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),nn=new Set(`aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen`.split(` `)),rn=/(?<![\w&-])#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})(?![0-9a-f\w-])/,an=/\b(?:rgba?|hsla?)\(\s*[-.\d]/,on=/(?<![\w$@#.-])[a-z]+(?![\w-])/g,sn=/(?<![\w&-])#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)(?![0-9a-f\w-])/g,cn=/\b(?:rgba?|hsla?)\(([^()]*)\)/g,ln=/^(?:0+(?:\.0*)?|\.0+)%?$/;function un(e){let t=e.split(`/`);if(t.length===2)return ln.test(t[1].trim());let n=e.split(`,`);return n.length===4&&ln.test(n[3].trim())}var dn=[..._e].sort((e,t)=>t.length-e.length).join(`|`),fn=RegExp(`(?<![\\w$@.#-])(${dn})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),pn=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,mn=Object.keys(xe).join(`|`),hn=RegExp(`var\\(\\s*--bs-(${mn})(?:-rgb)?\\s*[,)]`,`g`),gn=RegExp(`(?<![\\w$-])\\$(${mn})(?![\\w-])`,`g`),_n={"palette-read":0,"dark-read":1,"raw-colour":2,"raw-measure":3,"root-font-size":4,"raw-motion":5};function vn(e,t){let n=0,r=-1;for(let i=t-1;i>=0;--i){let t=e[i];if(t===`}`)n+=1;else if(t===`{`){if(n===0){r=i;break}--n}}if(r===-1)return null;let i=r-1;for(;i>=0&&!`{};`.includes(e[i]);)--i;return e.slice(i+1,r).replace(/^[\s\S]*<style\b[^>]*>/i,``).replace(/^\s*@@/,`@`).trim()}function yn(e,t){return vn(e,t)?.toLowerCase()===`@font-face`}function bn(e,t){let n=vn(e,t);return n!==null&&n.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===`html`||t===`:root`||/^(?:html|:root)(?:\[|:|\.)/.test(t)})}function xn(e,t){let n=C(e,t),r=$t(n,e),i=[];for(let e of n.matchAll(tn)){let t=e[1].toLowerCase(),a=e[2];Sn(t,a)&&!yn(n,e.index)&&i.push({rule:`raw-measure`,...r(e.index),hint:null}),(t===`font-size`||t===`font`)&&bn(n,e.index)&&i.push({rule:`root-font-size`,...r(e.index),hint:null})}for(let e of n.matchAll(fn))Cn(e[2])&&i.push({rule:`raw-colour`,...r(e.index),hint:`read a meaning: var(--color-<name>); a product-only colour goes into theme/brand.tokens.json`});for(let e of n.matchAll(pn)){let t=e[1];Ut.has(t)&&i.push({rule:Yt(t)?`dark-read`:`palette-read`,...r(e.index),hint:Yt(t)?Xt(t):qt(t,`web`)})}for(let e of n.matchAll(hn))i.push({rule:`palette-read`,...r(e.index),hint:Jt(e[1])});if(t===`scss`)for(let e of n.matchAll(gn)){let t=e.index+e[0].length;for(;t<n.length&&/\s/.test(n[t]);)t+=1;n[t]!==`:`&&i.push({rule:`palette-read`,...r(e.index),hint:Jt(e[1])})}return i.push(...Lt(n,r)),i.sort((e,t)=>e.line-t.line||_n[e.rule]-_n[t.rule]),i}function Sn(e,t){let n=t.replace(/!important/gi,``).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/\$[\w-]+/g,`$v`);for(let t of n.matchAll(/(?<![\w.#$@-])-?(?:\d+(?:\.\d+)?|\.\d+)([a-zA-Z%]*)/g)){if(parseFloat(t[0])===0)continue;let r=t[1].toLowerCase();if(be.includes(r))return!0;if(r===``&&me.includes(e)){let r=t.index-1;for(;r>=0&&/\s/.test(n[r]);)--r;let i=t.index+t[0].length;for(;i<n.length&&/\s/.test(n[i]);)i+=1;let a=r>=0?n[r]:``,o=i<n.length?n[i]:``;if(a===`*`||o===`*`||(a===`/`||o===`/`)&&e!==`font`)continue;return!0}}return!1}function Cn(e){let t=e.replace(/url\([^)]*\)/gi,`url()`).replace(/(["'])(?:\\.|(?!\1).)*\1/g,`""`).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/!important/gi,``).toLowerCase().replace(sn,``).replace(cn,(e,t)=>un(t)?``:e);if(rn.test(t)||an.test(t))return!0;for(let e of t.matchAll(on))if(nn.has(e[0]))return!0;return!1}var wn=/(?:\bfrom\s*|\brequire\(\s*)["']react-native["']/,Tn=[...ge].sort((e,t)=>t.length-e.length),En=[...ge,...pe].sort((e,t)=>t.length-e.length),Dn=Tn.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),On=En.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),kn=RegExp(`(?<![\\w$.])(?:(${Dn})|(["'])(${On})\\2)\\s*:(?!:)`,`g`),An=[...ye].sort((e,t)=>t.length-e.length),jn=[...ye,...ye.map(nr)].sort((e,t)=>t.length-e.length),Mn=An.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Nn=jn.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Pn=RegExp(`(?<![\\w$.])(?:(${Mn})|(["'])(${Nn})\\2)\\s*:(?!:)`,`g`),Fn={"palette-read":0,"dark-read":1,"raw-colour":2,"raw-measure":3,"root-font-size":4},In=Object.keys(xe).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Ln=RegExp(`var\\(\\s*--bs-(${In})(?:-rgb)?\\s*[,)]`,`g`),Rn=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,zn=/(?<![\w$])palette\s*(?:\?\.|\.|\[)/g,Bn=/(?<![\w$.])-?(?:\d+(?:\.\d+)?|\.\d+)(?![\w.])/g,Vn=`read a meaning: theme.colors["<name>"] on phone, var(--color-<name>) on web; a product-only colour goes into theme/brand.tokens.json`,Hn=`${Vn}. react-native.md: colours come from useTheme()`,Un=/(["'`])((?:\\.|(?!\1)[^\\\n])*)\1/g,Wn=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Gn=/^(?:rgba?|hsla?)\(.*\)$/i,Kn=/(?<![\w$.])(?:color|[A-Za-z]+Color)\s*=\s*$/;function qn(e){return wn.test(e)}function Jn(e,{phone:t,colourLiterals:n=!1}){let{blanked:r,lineStarts:i}=Yn(e),a=[],o=[];return Qn(r,i,e,a),$n(r,i,e,a,o,t),ar(r,i,e,a),or(r,i,e,a),t&&sr(r,i,e,a),n&&er(r,i,e,a,o),a.sort((e,t)=>e.line-t.line||Fn[e.rule]-Fn[t.rule]),a}function Yn(e){let t=[],n=[0],r=0,i=!1,a=!1,o=!1,s=!1,c=!1,l=`code`,u=!1,d=0,f=[];for(;r<e.length;){let p=e[r],m=e[r+1];if(s)p===`
69
+ `);return e=>{let t=0,i=n.length-1;for(;t<i;){let r=t+i+1>>1,a=n[r];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?t=r:i=r-1}return{line:t+1,text:(r[t]??``).trim().slice(0,160)}}}var Wn=[...Pe].sort((e,t)=>t.length-e.length).join(`|`),Gn=RegExp(`(?<![\\w$@.#-])(${Wn})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),Kn=new Set(`aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen`.split(` `)),qn=/(?<![\w&-])#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})(?![0-9a-f\w-])/,Jn=/\b(?:rgba?|hsla?)\(\s*[-.\d]/,Yn=/(?<![\w$@#.-])[a-z]+(?![\w-])/g,Xn=/(?<![\w&-])#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)(?![0-9a-f\w-])/g,Zn=/\b(?:rgba?|hsla?)\(([^()]*)\)/g,Qn=/^(?:0+(?:\.0*)?|\.0+)%?$/;function $n(e){let t=e.split(`/`);if(t.length===2)return Qn.test((t[1]??``).trim());let n=e.split(`,`);return n.length===4&&Qn.test((n[3]??``).trim())}var er=[...Re].sort((e,t)=>t.length-e.length).join(`|`),tr=RegExp(`(?<![\\w$@.#-])(${er})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),nr=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,rr=Object.keys(He).join(`|`),ir=RegExp(`var\\(\\s*--bs-(${rr})(?:-rgb)?\\s*[,)]`,`g`),ar=RegExp(`(?<![\\w$-])\\$(${rr})(?![\\w-])`,`g`),or={"palette-read":0,"dark-read":1,"raw-colour":2,"raw-measure":3,"root-font-size":4,"raw-motion":5};function sr(e,t){let n=0,r=-1;for(let i=t-1;i>=0;--i){let t=e.charAt(i);if(t===`}`)n+=1;else if(t===`{`){if(n===0){r=i;break}--n}}if(r===-1)return null;let i=r-1;for(;i>=0&&!`{};`.includes(e.charAt(i));)--i;return e.slice(i+1,r).replace(/^[\s\S]*<style\b[^>]*>/i,``).replace(/^\s*@@/,`@`).trim()}function cr(e,t){return sr(e,t)?.toLowerCase()===`@font-face`}function lr(e,t){let n=sr(e,t);return n!==null&&n.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===`html`||t===`:root`||/^(?:html|:root)(?:\[|:|\.)/.test(t)})}function ur(e,t){let n=T(e,t),r=Un(n,e),i=[];for(let e of n.matchAll(Gn)){let t=(e[1]??``).toLowerCase();dr(t,e[2]??``)&&!cr(n,e.index)&&i.push({rule:`raw-measure`,...r(e.index),hint:null}),(t===`font-size`||t===`font`)&&lr(n,e.index)&&i.push({rule:`root-font-size`,...r(e.index),hint:null})}for(let e of n.matchAll(tr))fr(e[2]??``)&&i.push({rule:`raw-colour`,...r(e.index),hint:`read a meaning: var(--color-<name>); a product-only colour goes into theme/brand.tokens.json`});for(let e of n.matchAll(nr)){let t=e[1]??``;An.has(t)&&i.push({rule:zn(t)?`dark-read`:`palette-read`,...r(e.index),hint:zn(t)?Bn(t):In(t,`web`)})}for(let e of n.matchAll(ir))i.push({rule:`palette-read`,...r(e.index),hint:Rn(e[1]??``)});if(t===`scss`)for(let e of n.matchAll(ar)){let t=e.index+e[0].length;for(;t<n.length&&/\s/.test(n.charAt(t));)t+=1;n[t]!==`:`&&i.push({rule:`palette-read`,...r(e.index),hint:Rn(e[1]??``)})}return i.push(...wn(n,r)),i.sort((e,t)=>e.line-t.line||(or[e.rule]??0)-(or[t.rule]??0)),i}function dr(e,t){let n=t.replace(/!important/gi,``).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/\$[\w-]+/g,`$v`);for(let t of n.matchAll(/(?<![\w.#$@-])-?(?:\d+(?:\.\d+)?|\.\d+)([a-zA-Z%]*)/g)){if(parseFloat(t[0])===0)continue;let r=(t[1]??``).toLowerCase();if(Ve.includes(r))return!0;if(r===``&&Fe.includes(e)){let r=t.index-1;for(;r>=0&&/\s/.test(n.charAt(r));)--r;let i=t.index+t[0].length;for(;i<n.length&&/\s/.test(n.charAt(i));)i+=1;let a=r>=0?n.charAt(r):``,o=i<n.length?n.charAt(i):``;if(a===`*`||o===`*`||(a===`/`||o===`/`)&&e!==`font`)continue;return!0}}return!1}function fr(e){let t=e.replace(/url\([^)]*\)/gi,`url()`).replace(/(["'])(?:\\.|(?!\1).)*\1/g,`""`).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/!important/gi,``).toLowerCase().replace(Xn,``).replace(Zn,(e,t)=>$n(t)?``:e);if(qn.test(t)||Jn.test(t))return!0;for(let e of t.matchAll(Yn))if(Kn.has(e[0]))return!0;return!1}var pr=/(?:\bfrom\s*|\brequire\(\s*)["']react-native["']/,mr=[...Le].sort((e,t)=>t.length-e.length),hr=[...Le,...Pe].sort((e,t)=>t.length-e.length),gr=mr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),_r=hr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),vr=RegExp(`(?<![\\w$.])(?:(${gr})|(["'])(${_r})\\2)\\s*:(?!:)`,`g`),yr=[...Be].sort((e,t)=>t.length-e.length),br=[...Be,...Be.map(Gr)].sort((e,t)=>t.length-e.length),xr=yr.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Sr=br.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Cr=RegExp(`(?<![\\w$.])(?:(${xr})|(["'])(${Sr})\\2)\\s*:(?!:)`,`g`),wr={"palette-read":0,"dark-read":1,"raw-colour":2,"raw-measure":3,"root-font-size":4},Tr=Object.keys(He).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Er=RegExp(`var\\(\\s*--bs-(${Tr})(?:-rgb)?\\s*[,)]`,`g`),Dr=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,Or=/(?<![\w$])palette\s*(?:\?\.|\.|\[)/g,kr=/(?<![\w$.])-?(?:\d+(?:\.\d+)?|\.\d+)(?![\w.])/g,Ar=`read a meaning: theme.colors["<name>"] on phone, var(--color-<name>) on web; a product-only colour goes into theme/brand.tokens.json`,jr=`${Ar}. react-native.md: colours come from useTheme()`,Mr=/(["'`])((?:\\.|(?!\1)[^\\\n])*)\1/g,Nr=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Pr=/^(?:rgba?|hsla?)\(.*\)$/i,Fr=/(?<![\w$.])(?:color|[A-Za-z]+Color)\s*=\s*$/;function Ir(e){return pr.test(e)}function Lr(e,{phone:t,colourLiterals:n=!1}){let{blanked:r,lineStarts:i}=Rr(e),a=[],o=[];return Vr(r,i,e,a),Hr(r,i,e,a,o,t),Jr(r,i,e,a),Yr(r,i,e,a),t&&Xr(r,i,e,a),n&&Ur(r,i,e,a,o),a.sort((e,t)=>e.line-t.line||(wr[e.rule]??0)-(wr[t.rule]??0)),a}function Rr(e){let t=[],n=[0],r=0,i=!1,a=!1,o=!1,s=!1,c=!1,l=`code`,u=!1,d=0,f=[];for(;r<e.length;){let p=e.charAt(r),m=e.charAt(r+1);if(s)p===`
67
70
  `?(s=!1,t.push(p),n.push(t.length)):t.push(` `),r++;else if(c)p===`*`&&m===`/`?(c=!1,t.push(` `,` `),r+=2):(p===`
68
71
  `?(t.push(p),n.push(t.length)):t.push(` `),r++);else if(i)t.push(p),p===`
69
- `&&n.push(t.length),p===`\\`?(t.push(e[r+1]),r+=2):(p===`'`&&(i=!1),r++);else if(a)t.push(p),p===`
70
- `&&n.push(t.length),p===`\\`?(t.push(e[r+1]),r+=2):(p===`"`&&(a=!1),r++);else if(o)t.push(p),p===`
71
- `&&n.push(t.length),p===`\\`?(t.push(e[r+1]),r+=2):(p==="`"&&(o=!1),r++);else if(p===`/`&&m===`/`&&l!==`text`)s=!0,t.push(` `,` `),r+=2;else if(p===`/`&&m===`*`&&l!==`text`)c=!0,t.push(` `,` `),r+=2;else if(l===`text`&&(p===`'`||p===`"`||p==="`"))t.push(` `),r++;else if(p===`'`)i=!0,t.push(p),r++;else if(p===`"`)a=!0,t.push(p),r++;else if(p==="`")o=!0,t.push(p),r++;else{if(p===`<`&&l!==`tag`){let n=m===`/`,i=n?e[r+2]:m;if(i!==void 0&&/[A-Za-z_$>]/.test(i)&&(l===`text`||!Xn(t))){l=`tag`,u=n,t.push(p),r++;continue}}p===`>`&&l===`tag`?(u?d=Math.max(0,d-1):Zn(t)!==`/`&&d++,l=d>0?`text`:`code`):p===`{`?(f.push(l),l=`code`):p===`}`&&f.length>0&&(l=f.pop()),t.push(p),p===`
72
- `&&n.push(t.length),r++}}return{blanked:t.join(``),lineStarts:n}}function Xn(e){let t=e.slice(-16).join(``).trimEnd();return!/(?:^|[^\w$])(?:return|yield|await|case|default|else|typeof|in|of)$/.test(t)&&/[\w$)\]]$/.test(t)}function Zn(e){for(let t=e.length-1;t>=0;t--)if(!/\s/.test(e[t]))return e[t];return``}function w(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1;t[i]<=e?n=i+1:r=i-1}return r+1}function T(e,t){let n=e.split(`
73
- `);return t>=1&&t<=n.length?n[t-1].trim().slice(0,160):``}function Qn(e,t,n,r){for(let i of e.matchAll(kn)){let a=i.index,o=a-1;for(;o>=0&&/\s/.test(e[o]);)o--;if(o<0||e[o]!==`{`&&e[o]!==`,`)continue;let s=i[1],c=i[3],l=s||c,u=!!c,d=i.index+i[0].length-1+1,f=tr(e,d);if(f!==-1&&rr(e.slice(d,f),u?l:nr(l))){let e=w(a,t);r.push({rule:`raw-measure`,line:e,text:T(n,e),hint:null})}}}function $n(e,t,n,r,i,a){Pn.lastIndex=0;for(let o of e.matchAll(Pn)){let s=o.index,c=s-1;for(;c>=0&&/\s/.test(e[c]);)c--;if(c<0||e[c]!==`{`&&e[c]!==`,`)continue;let l=o.index+o[0].length-1+1,u=tr(e,l);if(u===-1)continue;let d=e.slice(l,u);if(i.push([l,u]),!ir(d).some(({content:e})=>Cn(e)))continue;let f=w(s,t);r.push({rule:`raw-colour`,line:f,text:T(n,f),hint:a?Hn:Vn})}}function er(e,t,n,r,i){Un.lastIndex=0;for(let a of e.matchAll(Un)){let o=a.index;if(i.some(([e,t])=>o>=e&&o<t))continue;let s=a[2];if(a[1]==="`"&&s.includes("${"))continue;let c=Wn.test(s)||Gn.test(s),l=Kn.test(e.slice(Math.max(0,o-40),o));if(!(c||l)||!Cn(s))continue;let u=w(o,t);r.push({rule:`raw-colour`,line:u,text:T(n,u),hint:Hn})}}function tr(e,t){let n=0,r=t,i=!1,a=!1,o=!1;for(;r<e.length;){let t=e[r];if(i)t===`\\`?r+=2:(t===`'`&&(i=!1),r++);else if(a)t===`\\`?r+=2:(t===`"`&&(a=!1),r++);else if(o)t===`\\`?r+=2:(t==="`"&&(o=!1),r++);else if(t===`'`)i=!0,r++;else if(t===`"`)a=!0,r++;else if(t==="`")o=!0,r++;else if(t===`(`||t===`[`||t===`{`)n++,r++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--,r++}else{if(n===0&&(t===`,`||t===`}`||t===`)`||t===`]`||t===`;`))return r;r++}}return-1}function nr(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function rr(e,t){let n=ir(e);for(let{content:e}of n)if(Sn(t,e))return!0;let r=e;for(let{start:e,end:t}of n)r=`${r.slice(0,e)}""${r.slice(t)}`;Bn.lastIndex=0;for(let e of r.matchAll(Bn)){if(parseFloat(e[0])===0)continue;let t=e.index-1;for(;t>=0&&/\s/.test(r[t]);)t--;if(t>=0&&`[*/<>=`.includes(r[t]))continue;let n=e.index+e[0].length;for(;n<r.length&&/\s/.test(r[n]);)n++;if(!(n<r.length&&`*/<>=`.includes(r[n])))return!0}return!1}function ir(e){let t=[],n=0,r=!1,i=!1,a=!1,o=-1;for(;n<e.length;){let s=e[n];if(r)s===`\\`?n+=2:(s===`'`&&(r=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)})),n++);else if(i)s===`\\`?n+=2:(s===`"`&&(i=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)})),n++);else if(a){if(s===`\\`)n+=2;else if(s==="`"){a=!1;let r=e.slice(o+1,n);r=r.replace(/\$\{[^}]*\}/g,``),t.push({start:o,end:n+1,content:r}),n++}else s===`$`&&e[n+1]===`{`?n+=2:n++}else s===`'`?(r=!0,o=n,n++):s===`"`?(i=!0,o=n,n++):(s==="`"&&(a=!0,o=n),n++)}return t}function ar(e,t,n,r){for(let i of e.matchAll(Rn)){let e=i[1];if(Ut.has(e)){let a=w(i.index,t),o=Yt(e);r.push({rule:o?`dark-read`:`palette-read`,line:a,text:T(n,a),hint:o?Xt(e):qt(e,`web`)})}}}function or(e,t,n,r){for(let i of e.matchAll(Ln)){let e=i[1],a=w(i.index,t);r.push({rule:`palette-read`,line:a,text:T(n,a),hint:Jt(e)})}}function sr(e,t,n,r){for(let i of e.matchAll(zn)){let a=``,o=e.slice(i.index+i[0].length);if(i[0].endsWith(`[`)){let e=o.match(/^\s*(["'])([^"']*)\1/);e&&(a=e[2])}else{let e=o.match(/^\s*([\w$]+)/);e&&(a=e[1])}let s=w(i.index,t);r.push({rule:`palette-read`,line:s,text:T(n,s),hint:qt(a,`phone`)})}}var cr=/\.(?:js|jsx|ts|tsx)$/,lr=/\.(?:test|spec)\.[jt]sx?$/,ur=/* @__PURE__ */ new Set([`node_modules`,`__tests__`,`__mocks__`,`generated`,`android`,`ios`]),dr=[``,`.js`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.jsx`,`/index.ts`,`/index.tsx`],fr=/^\s*(?:\/\/|\{\s*\/\*)\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*(?:\*\/\s*\}?)?\s*$/,pr=/\bimport\s+(?:type\s+)?([^'"();]+?)\s+from\s*["']([^"']+)["']/g,mr=/\bimport\s*["']([^"']+)["']/g,hr=/\bexport\s+(?:type\s+)?(\*(?:\s+as\s+[\w$]+)?|\{[^}]*\})\s*from\s*["']([^"']+)["']/g,gr=/\brequire\(\s*["']([^"']+)["']\s*\)/g,_r=/\bimport\(\s*["']([^"']+)["']\s*\)/g;function vr(e){let t=e.split(`
72
+ `&&(n.push(t.length),i=!1),p===`\\`?(t.push(e.charAt(r+1)),e.charAt(r+1)===`
73
+ `&&n.push(t.length),r+=2):(p===`'`&&(i=!1),r++);else if(a)t.push(p),p===`
74
+ `&&(n.push(t.length),a=!1),p===`\\`?(t.push(e.charAt(r+1)),e.charAt(r+1)===`
75
+ `&&n.push(t.length),r+=2):(p===`"`&&(a=!1),r++);else if(o)t.push(p),p===`
76
+ `&&n.push(t.length),p===`\\`?(t.push(e.charAt(r+1)),e.charAt(r+1)===`
77
+ `&&n.push(t.length),r+=2):(p==="`"&&(o=!1),r++);else if(p===`/`&&m===`/`&&l!==`text`)s=!0,t.push(` `,` `),r+=2;else if(p===`/`&&m===`*`&&l!==`text`)c=!0,t.push(` `,` `),r+=2;else if(l===`text`&&(p===`'`||p===`"`||p==="`"))t.push(` `),r++;else if(p===`'`)i=!0,t.push(p),r++;else if(p===`"`)a=!0,t.push(p),r++;else if(p==="`")o=!0,t.push(p),r++;else{if(p===`<`&&l!==`tag`){let n=m===`/`,i=n?e.charAt(r+2):m;if(i!==void 0&&/[A-Za-z_$>]/.test(i)&&(l===`text`||!zr(t))){l=`tag`,u=n,t.push(p),r++;continue}}p===`>`&&l===`tag`?(u?d=Math.max(0,d-1):Br(t)!==`/`&&d++,l=d>0?`text`:`code`):p===`{`?(f.push(l),l=`code`):p===`}`&&f.length>0&&(l=f.pop()??`code`),t.push(p),p===`
78
+ `&&n.push(t.length),r++}}return{blanked:t.join(``),lineStarts:n}}function zr(e){let t=e.slice(-16).join(``).trimEnd();return!/(?:^|[^\w$])(?:return|yield|await|case|default|else|typeof|in|of)$/.test(t)&&/[\w$)\]]$/.test(t)}function Br(e){for(let t=e.length-1;t>=0;t--){let n=e[t]??``;if(!/\s/.test(n))return n}return``}function E(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?n=i+1:r=i-1}return r+1}function D(e,t){let n=e.split(`
79
+ `);return t>=1&&t<=n.length?(n[t-1]??``).trim().slice(0,160):``}function Vr(e,t,n,r){for(let i of e.matchAll(vr)){let a=i.index,o=a-1;for(;o>=0&&/\s/.test(e.charAt(o));)o--;if(o<0||e[o]!==`{`&&e[o]!==`,`)continue;let s=i[1],c=i[3],l=s||c||``,u=!!c,d=i.index+i[0].length-1+1,f=Wr(e,d);if(f!==-1&&Kr(e.slice(d,f),u?l:Gr(l))){let e=E(a,t);r.push({rule:`raw-measure`,line:e,text:D(n,e),hint:null})}}}function Hr(e,t,n,r,i,a){Cr.lastIndex=0;for(let o of e.matchAll(Cr)){let s=o.index,c=s-1;for(;c>=0&&/\s/.test(e.charAt(c));)c--;if(c<0||e[c]!==`{`&&e[c]!==`,`)continue;let l=o.index+o[0].length-1+1,u=Wr(e,l);if(u===-1)continue;let d=e.slice(l,u);if(i.push([l,u]),!qr(d).some(({content:e})=>fr(e)))continue;let f=E(s,t);r.push({rule:`raw-colour`,line:f,text:D(n,f),hint:a?jr:Ar})}}function Ur(e,t,n,r,i){Mr.lastIndex=0;for(let a of e.matchAll(Mr)){let o=a.index;if(i.some(([e,t])=>o>=e&&o<t))continue;let s=a[2]??``;if(a[1]==="`"&&s.includes("${"))continue;let c=Nr.test(s)||Pr.test(s),l=Fr.test(e.slice(Math.max(0,o-40),o));if(!(c||l)||!fr(s))continue;let u=E(o,t);r.push({rule:`raw-colour`,line:u,text:D(n,u),hint:jr})}}function Wr(e,t){let n=0,r=t,i=!1,a=!1,o=!1;for(;r<e.length;){let t=e.charAt(r);if(i)t===`\\`?r+=2:(t===`'`&&(i=!1),r++);else if(a)t===`\\`?r+=2:(t===`"`&&(a=!1),r++);else if(o)t===`\\`?r+=2:(t==="`"&&(o=!1),r++);else if(t===`'`)i=!0,r++;else if(t===`"`)a=!0,r++;else if(t==="`")o=!0,r++;else if(t===`(`||t===`[`||t===`{`)n++,r++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--,r++}else{if(n===0&&(t===`,`||t===`}`||t===`)`||t===`]`||t===`;`))return r;r++}}return-1}function Gr(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function Kr(e,t){let n=qr(e);for(let{content:e}of n)if(dr(t,e))return!0;let r=e;for(let{start:e,end:t}of n)r=`${r.slice(0,e)}""${r.slice(t)}`;kr.lastIndex=0;for(let e of r.matchAll(kr)){if(parseFloat(e[0])===0)continue;let t=e.index-1;for(;t>=0&&/\s/.test(r.charAt(t));)t--;if(t>=0&&`[*/<>=`.includes(r.charAt(t)))continue;let n=e.index+e[0].length;for(;n<r.length&&/\s/.test(r.charAt(n));)n++;if(!(n<r.length&&`*/<>=`.includes(r.charAt(n))))return!0}return!1}function qr(e){let t=[],n=0,r=!1,i=!1,a=!1,o=-1;for(;n<e.length;){let s=e.charAt(n);if(r)s===`\\`?n+=2:(s===`'`&&(r=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)})),n++);else if(i)s===`\\`?n+=2:(s===`"`&&(i=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)})),n++);else if(a){if(s===`\\`)n+=2;else if(s==="`"){a=!1;let r=e.slice(o+1,n);r=r.replace(/\$\{[^}]*\}/g,``),t.push({start:o,end:n+1,content:r}),n++}else s===`$`&&e[n+1]===`{`?n+=2:n++}else s===`'`?(r=!0,o=n,n++):s===`"`?(i=!0,o=n,n++):(s==="`"&&(a=!0,o=n),n++)}return t}function Jr(e,t,n,r){for(let i of e.matchAll(Dr)){let e=i[1]??``;if(An.has(e)){let a=E(i.index,t),o=zn(e);r.push({rule:o?`dark-read`:`palette-read`,line:a,text:D(n,a),hint:o?Bn(e):In(e,`web`)})}}}function Yr(e,t,n,r){for(let i of e.matchAll(Er)){let e=i[1]??``,a=E(i.index,t);r.push({rule:`palette-read`,line:a,text:D(n,a),hint:Rn(e)})}}function Xr(e,t,n,r){for(let i of e.matchAll(Or)){let a=``,o=e.slice(i.index+i[0].length);if(i[0].endsWith(`[`)){let e=o.match(/^\s*(["'])([^"']*)\1/);e&&(a=e[2]??``)}else{let e=o.match(/^\s*([\w$]+)/);e&&(a=e[1]??``)}let s=E(i.index,t);r.push({rule:`palette-read`,line:s,text:D(n,s),hint:In(a,`phone`)})}}var Zr=/\.(?:js|jsx|ts|tsx)$/,Qr=/\.(?:test|spec)\.[jt]sx?$/,$r=/* @__PURE__ */ new Set([`node_modules`,`__tests__`,`__mocks__`,`generated`,`android`,`ios`]),ei=[``,`.js`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.jsx`,`/index.ts`,`/index.tsx`],ti=/^\s*(?:\/\/|\{\s*\/\*)\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*(?:\*\/\s*\}?)?\s*$/,ni=/\bimport\s+(?:type\s+)?([^'"();]+?)\s+from\s*["']([^"']+)["']/g,ri=/\bimport\s*["']([^"']+)["']/g,ii=/\bexport\s+(?:type\s+)?(\*(?:\s+as\s+[\w$]+)?|\{[^}]*\})\s*from\s*["']([^"']+)["']/g,ai=/\brequire\(\s*["']([^"']+)["']\s*\)/g,oi=/\bimport\(\s*["']([^"']+)["']\s*\)/g,si=[`src/screens/index.js`,`src/screens/index.jsx`,`src/screens/index.ts`,`src/screens/index.tsx`];function ci(e){return si.find(t=>e.includes(t))??null}function li(e){let t=e.split(`
74
80
  `).length;return e.endsWith(`
75
- `)?t-1:t}function yr(e){return!cr.test(e)||lr.test(e)?!1:!e.split(`/`).slice(0,-1).some(e=>ur.has(e))}function E(e){return e.filter(yr)}function D(e,t){let n=r(d(e,t),`utf8`),{blanked:i,lineStarts:a}=Yn(n);return{file:t,text:n,blanked:i,lines:n.split(`
76
- `),lineAt:e=>{let t=0,n=a.length-1;for(;t<=n;){let r=t+n>>1;a[r]<=e?t=r+1:n=r-1}return n+1}}}function br(e){let t=e.trim();if(t===`*`)return[{name:`*`,local:`*`}];let n=[],r=t.match(/\*\s+as\s+([\w$]+)/);r&&n.push({name:`*`,local:r[1]});let i=t.match(/\{([^}]*)\}/);if(i)for(let e of i[1].split(`,`)){let t=e.trim().replace(/^type\s+/,``).match(/^([\w$]+)(?:\s+as\s+([\w$]+))?$/);t&&n.push({name:t[1],local:t[2]??t[1]})}let a=t.replace(/\{[^}]*\}/,``).replace(/\*\s+as\s+[\w$]+/,``).replace(/,/g,``).trim();return/^[\w$]+$/.test(a)&&n.push({name:`default`,local:a}),n}function O(e){let t=[],n=(n,r,i,a)=>t.push({kind:r,specifier:i,imported:a,line:e.lineAt(n)});for(let t of e.blanked.matchAll(pr))n(t.index,`import`,t[2],br(t[1]));for(let t of e.blanked.matchAll(mr))n(t.index,`import`,t[1],[]);for(let t of e.blanked.matchAll(hr))n(t.index,`export-from`,t[2],br(t[1]));for(let t of e.blanked.matchAll(gr))n(t.index,`require`,t[1],[]);for(let t of e.blanked.matchAll(_r))n(t.index,`dynamic`,t[1],[]);return t.sort((e,t)=>e.line-t.line)}function k(e,t,n){let r;if(n.startsWith(`@/`))r=`src/${n.slice(2)}`;else if(n.startsWith(`.`))r=p.normalize(p.join(p.dirname(t),n));else return null;for(let t of dr)if(e.has(r+t))return r+t;return null}function A(e,t,n){let r=[];t.lines.forEach((t,n)=>{let i=fr.exec(t);i&&i[1]===e&&r.push({line:n+1,reason:(i[2]??``).trim()})});let i=new Set(r.filter(e=>e.reason!==``).map(e=>e.line)),a=n.filter(e=>!(i.has(e.line-1)||e.line===1&&i.has(1))).map(n=>({rule:e,file:t.file,line:n.line,message:n.message,...n.note?{note:!0}:{}}));for(let n of r)n.reason===``&&a.push({rule:e,file:t.file,line:n.line,message:`layering-allow needs a reason`});return a}function j(e){return[...e].sort((e,t)=>e.file===t.file?e.line===t.line?e.message===t.message?0:e.message<t.message?-1:1:e.line-t.line:e.file<t.file?-1:1)}var xr=/^src\/screens\/(public|user)\/([^/]+)\/.+/;function Sr(e){let t=xr.exec(e);return t?`${t[1]}/${t[2]}`:null}function Cr(e,t){let n=E(t),r=new Set(n),i=[];for(let t of n){let n=Sr(t);if(n===null)continue;let a=D(e,t),o=[];for(let e of O(a)){let i=k(r,t,e.specifier),a=i===null?null:Sr(i);a!==null&&a!==n&&o.push({line:e.line,message:`imports ${i} from another screen area. react-native.md: a part two areas use lives in src/components/<area>/ or src/components/shared/.`})}i.push(...A(`cross-feature-import`,a,o))}return j(i)}var wr=/* @__PURE__ */ new Set([`assets`,`components`,`constants`,`hooks`,`navigation`,`redux`,`screens`,`services`,`utils`]),Tr=/\.(?:jsx|ts|tsx)$/,Er=/\.(?:js|jsx|ts|tsx)$/,Dr=/^src\/screens\/(?:public\/.+|user\/[^/]+\/.+)$/,Or=/[A-Za-z0-9]Screen\.js$/,M={folder:`a top-level folder of src is one of assets, components, constants, hooks, navigation, redux, screens, services, utils`,screenHome:`a screen file lives in src/screens/public/ or src/screens/user/<area>/`,script:`source files are .js, never .jsx, .ts or .tsx`,suffix:`a screen is named without a Screen suffix`,theme:`src/assets/theme holds only settings.js`,tsconfig:`an app has no tsconfig.json`},kr=(e,t)=>`${e}: react-native.md App layout: ${t}.`;function Ar(e,t){let n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Map,i=(e,t)=>{r.has(e)||r.set(e,[]),r.get(e).push({line:1,message:kr(e,t)})};for(let e of t){let t=e.split(`/`);t[0]===`src`&&(t.some(e=>e===`node_modules`||e===`generated`||e===`__tests__`)||(t.length>2&&!wr.has(t[1])&&n.add(t[1]),Tr.test(e)&&i(e,M.script),e.startsWith(`src/screens/`)&&Er.test(e)&&(e!==`src/screens/index.js`&&!Dr.test(e)&&i(e,M.screenHome),Or.test(e)&&i(e,M.suffix)),e.startsWith(`src/assets/theme/`)&&e!==`src/assets/theme/settings.js`&&i(e,M.theme)))}let a=[];for(let[t,n]of r)yr(t)?a.push(...A(`folder-layout`,D(e,t),n)):a.push(...n.map(e=>({rule:`folder-layout`,file:t,line:e.line,message:e.message})));for(let r of n){let n={rule:`folder-layout`,file:`src/${r}`,line:1,message:kr(`src/${r}`,M.folder)},i=`src/${r}/index.js`;if(!t.includes(i))a.push(n);else for(let t of A(`folder-layout`,D(e,i),[{line:1,message:n.message}]))a.push(t.message===n.message?n:t)}return t.includes(`tsconfig.json`)&&a.push({rule:`folder-layout`,file:`tsconfig.json`,line:1,message:kr(`tsconfig.json`,M.tsconfig)}),j(a)}var jr=`src/screens/index.js`;function Mr(e,t){let n=E(t),r=new Set(n),i=[];for(let t of n){if(t.startsWith(`src/screens/`)||t.startsWith(`src/navigation/`))continue;let n=D(e,t),a=[];for(let e of O(n)){let n=k(r,t,e.specifier);n?.startsWith(`src/screens/`)&&n!==jr&&a.push({line:e.line,message:`imports a screen folder from outside src/screens. react-native.md: hooks, utils and components never import screens.`})}i.push(...A(`import-into-screens`,n,a))}return j(i)}var Nr=`@webority/mobile-ui`,Pr=40,Fr=/\{\s*\.\.\.(?:props|rest)\s*\}/,Ir=[`lib/typescript/module/components/index.d.ts`,`lib/typescript/module/index.d.ts`],Lr=e=>`wraps mobile-ui ${e}. react-native.md: no restyle or pass-through wrapper; use ${e} directly, put house defaults in theme settings.`;function Rr(e){let n=/* @__PURE__ */ new Set;for(let i of Ir){let a=d(e,`node_modules`,`@webority`,`mobile-ui`,i);if(t(a))for(let e of r(a,`utf8`).matchAll(/export\s+(?!type\b)\{([^}]*)\}\s*from/g))for(let t of e[1].split(`,`)){let e=t.trim().split(/\s+as\s+/).pop();/^[\w$]+$/.test(e)&&n.add(e)}}return n}function zr(e){let t=/* @__PURE__ */ new Set;/\bexport\s+default\b/.test(e)&&t.add(`default`);for(let n of e.matchAll(/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Z][\w$]*)/g))t.add(n[1]);for(let n of e.matchAll(/\bexport\s*\{([^}]*)\}/g))for(let e of n[1].split(`,`)){let n=e.trim().split(/\s+as\s+/).pop();(n==="default"||/^[A-Z][\w$]*$/.test(n))&&t.add(n)}return t.size}function Br(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e[r];if(i===`{`)n++;else if(i===`}`)n--;else if(i===`>`&&n===0)return e.slice(t,r+1)}return e.slice(t)}function Vr(e){if(vr(e.text)>Pr)return null;let t=/* @__PURE__ */ new Set;for(let n of O(e))if(!(n.kind!==`import`||n.specifier!==Nr&&!n.specifier.startsWith(`${Nr}/`)))for(let{name:e,local:r}of n.imported)e!==`*`&&t.add(r);if(t.size===0||zr(e.blanked)!==1)return null;for(let n of e.blanked.matchAll(/(?:=>|\breturn)\s*\(?\s*<([A-Z][\w$]*)/g)){if(!t.has(n[1]))continue;let r=n.index+n[0].length-n[1].length-1;if(Fr.test(Br(e.blanked,r)))return{name:n[1],line:e.lineAt(r)}}return null}function Hr(e,t){let n=Rr(e),r=[];for(let i of E(t)){if(!i.startsWith(`src/`))continue;let t=D(e,i),a=[],o=/^App([A-Z][A-Za-z0-9]*)\.[jt]sx?$/.exec(c(i))?.[1];if(o&&n.has(o))a.push({line:1,message:Lr(o)});else{let e=Vr(t);e&&a.push({line:e.line,message:Lr(e.name)})}r.push(...A(`library-wrapper`,t,a))}return j(r)}var Ur=`@webority/mobile-ui`,Wr=/* @__PURE__ */ new Set([`makeStyles`,`useTheme`,`ThemeProvider`]),Gr=/* @__PURE__ */ new Set([`COLORS`,`PALETTE`,`LIGHT_COLORS`,`DARK_COLORS`,`commonStyles`,`FONT_SIZE`,`Responsive`]),Kr=/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Za-z_$][\w$]*)/g,qr=/\bexport\s*\{([^}]*)\}/g,Jr=e=>`local theme ${e}. react-native.md: the library owns the theme; the app supplies brand and settings only.`;function Yr(e,t){let n=[];for(let r of E(t)){if(!r.startsWith(`src/`))continue;let t=D(e,r),i=[];for(let e of O(t))if(!(e.kind!==`import`||e.specifier===Ur||e.specifier.startsWith(`${Ur}/`)))for(let{name:t,local:n}of e.imported){let r=t==="default"?n:t;Wr.has(r)&&i.push({line:e.line,message:Jr(r)})}for(let e of t.blanked.matchAll(Kr))Gr.has(e[1])&&i.push({line:t.lineAt(e.index),message:Jr(e[1])});for(let e of t.blanked.matchAll(qr))for(let n of e[1].split(`,`)){let r=n.trim().split(/\s+as\s+/).pop();Gr.has(r)&&i.push({line:t.lineAt(e.index),message:Jr(r)})}n.push(...A(`local-theme`,t,i))}return j(n)}var Xr=/^(?:workspace:|file:|link:)/;function Zr(e){let t=d(e,`package.json`),n,i;try{n=r(t,`utf8`),i=JSON.parse(n)}catch{return[]}let a={...i.dependencies,...i.devDependencies},o=Object.keys(a).filter(e=>e.startsWith(`@webority/mobile-`)||e===`@webority/biome-config`).filter(e=>!Xr.test(String(a[e]))).sort().map(e=>[e,String(a[e]).replace(/^[\^~]/,``)]),s=o[0],c=s?o.find(([,e])=>e!==s[1]):void 0;if(!s||!c)return[];let l=n.split(`
77
- `).findIndex(e=>e.includes(`"${s[0]}"`));return[{rule:`mobile-pins-lockstep`,file:`package.json`,line:l===-1?1:l+1,message:`pins ${s[0]}@${s[1]} and ${c[0]}@${c[1]}. react-native.md: the phone packages move together.`}]}var Qr=/* @__PURE__ */ new Set([`Text`,`TextInput`,`Pressable`,`TouchableOpacity`,`TouchableHighlight`,`TouchableWithoutFeedback`,`ActivityIndicator`,`Modal`,`Switch`,`Button`]),$r=e=>`${e} from react-native in a screen or product component. react-native.md: use the mobile-ui part (Text, Input, Button, Card onPress, Spinner, Modal, Switch); mark a deliberate use with // layering-allow raw-primitive: <reason>.`;function ei(e,t){let n=[];for(let r of E(t)){if(!r.startsWith(`src/screens/`)&&!r.startsWith(`src/components/`))continue;let t=D(e,r),i=/* @__PURE__ */ new Set;for(let e of O(t))if(e.kind===`import`&&e.specifier===`react-native`)for(let{name:t,local:n}of e.imported)Qr.has(t)&&i.add(n);let a=[];for(let e of i){let n=RegExp(`(?<![\\w$)\\]])<${e.replace(/\$/g,`\\$`)}(?![\\w$.-])`,`g`);for(let r of t.blanked.matchAll(n))a.push({line:t.lineAt(r.index),message:$r(e)})}n.push(...A(`raw-primitive`,t,a))}return j(n)}var ti=`src/screens/index.js`;function ni(e,t){let n=E(t);if(!n.includes(ti))return[];let r=new Set(n),i=/* @__PURE__ */ new Set;for(let t of O(D(e,ti))){if(t.kind!==`export-from`)continue;let e=k(r,ti,t.specifier);e!==null&&i.add(e)}let a=[];for(let t of n){if(t===ti||t.startsWith(`src/navigation/`))continue;let n=D(e,t),o=[];for(let e of O(n)){let n=k(r,t,e.specifier);if(n!==null&&n!==t&&i.has(n)){let t=p.basename(n).replace(/\.[^.]+$/,``);o.push({line:e.line,message:`imports the route screen ${t}. react-native.md: share the form or part as a sibling file, never a screen.`})}}a.push(...A(`screen-imports-screen`,n,o))}return j(a)}var ri=400,ii=600;function ai(e,t){let n=[];for(let r of E(t)){if(!r.startsWith(`src/screens/`))continue;let t=D(e,r),i=vr(t.text),a=i>ri?[{line:1,message:`${i} lines. react-native.md: split a screen over 400 lines; over 600 is a finding.`,note:i<=ii}]:[];n.push(...A(`screen-length`,t,a))}return j(n)}var oi=/(?:^|\/)index\.[jt]sx?$/,si=/\.(?:stories\.[jt]sx?|meta\.js)$/,ci=e=>e.startsWith(`src/screens/`)&&!oi.test(e),li=e=>!oi.test(e)&&!si.test(e),ui=e=>e.startsWith(`src/components/`)&&li(e);function di(e,t){let n=E(t),r=new Set(n),i=/* @__PURE__ */ new Map,a=t=>(i.has(t)||i.set(t,D(e,t)),i.get(t)),o=/* @__PURE__ */ new Map;for(let e of n){if(!e.startsWith(`src/components/`)||!oi.test(e))continue;let t=/* @__PURE__ */ new Map,n=[];for(let i of O(a(e))){if(i.kind!==`export-from`)continue;let a=k(r,e,i.specifier);if(a!==null)for(let{name:e,local:r}of i.imported)e===`*`&&r===`*`?n.push(a):t.set(r,a)}o.set(e,{named:t,star:n})}let s=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t.replace(/\$/g,`\\$`)}\\b|export\\s*\\{[^}]*\\b${t.replace(/\$/g,`\\$`)}\\b`).test(a(e).blanked),c=/* @__PURE__ */ new Map,l=(e,t)=>{e!==t&&li(t)&&(c.has(e)||c.set(e,/* @__PURE__ */ new Set),c.get(e).add(t))};for(let e of n)for(let t of O(a(e))){if(t.kind===`export-from`)continue;let n=k(r,e,t.specifier);if(n===null)continue;let i=o.get(n);if(!i)l(n,e);else for(let{name:n}of t.imported){let t=i.named.get(n)??i.star.find(e=>s(e,n));t&&l(t,e)}}let u=e=>{let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set([e]),r=[e];for(;r.length>0;)for(let e of c.get(r.pop())??[])n.has(e)||(n.add(e),ci(e)?t.add(e):r.push(e));return t},d=[];for(let e of n){if(!ui(e))continue;let t=c.get(e)?.size??0,n=t===0||t===1&&u(e).size===1?[{line:1,message:`${e} has ${t} importer(s). react-native.md: a part one screen uses lives beside that screen.`}]:[];d.push(...A(`shared-single-importer`,a(e),n))}return j(d)}var fi=/(?<![\w$.])Responsive\s*\.\s*(?:width|height|font)\s*\(/g,pi=`scales by screen width. react-native.md: use theme.space and the text scale.`;function mi(e,t){let n=[];for(let r of E(t)){if(!r.startsWith(`src/`))continue;let t=D(e,r),i=[...t.blanked.matchAll(fi)].map(e=>({line:t.lineAt(e.index),message:pi}));n.push(...A(`width-scaling`,t,i))}return j(n)}var hi=[ei,Cr,Mr,ni,di,Hr,ai,Zr,Ar,Yr,mi],gi=/* @__PURE__ */ new Set([`node_modules`,`android`,`ios`,`.git`]);function _i(e,t=``){let n=[];for(let r of i(d(e,t),{withFileTypes:!0})){if(gi.has(r.name))continue;let i=t?`${t}/${r.name}`:r.name;r.isDirectory()?n.push(..._i(e,i)):n.push(i)}return n}function vi(e){let t=_i(e).sort(),n=[];for(let r of hi.flatMap(n=>n(e,t))){let e=`${r.file}:${r.line} ${r.message}`;r.note?console.log(`note: ${e}`):n.push([`${r.rule}:${r.file}`,e])}return n}var yi=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`.git`,`.gradle`,`Pods`,`DerivedData`]);function N(e,t){return i(e,{withFileTypes:!0}).flatMap(n=>n.isDirectory()?t.has(n.name)?[]:N(d(e,n.name),t):[d(e,n.name)])}var bi=e=>e.split(`\\`).join(`/`);function xi(e,t){return e.replace(t,e=>e.replace(/[^\n]/g,` `))}function Si(e,t){return e.slice(0,t).split(`
78
- `).length}var Ci=/^MainActivity\.(?:kt|java)$/,wi=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Ti(e){let n=d(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of N(n,yi)){if(!Ci.test(c(t)))continue;let n=xi(xi(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=wi.exec(n);if(!a)continue;let o=bi(m(e,t));i.push([`rn-mainactivity-oncreate-bundle:${o}`,`${o}:${Si(n,a.index)} passes a bundle to super.onCreate. react-native-toolchain.md → Android: super.onCreate(null): pass null, so Android does not restore stale Screen fragments after the OS kills the app, and register the splash screen before it.`])}return i}var Ei=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Di=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,Oi=/^APP_ID=.*\.(staging|development)\s*$/m;function ki(e){let n=[{file:d(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:Ei},{file:d(e,`android`,`gradle.properties`),pattern:Oi}],r=d(e,`ios`);if(t(r))for(let e of N(r,yi))c(e)===`Expo.plist`&&n.push({file:e,pattern:Di});return n.filter(({file:e})=>t(e))}function Ai(e){let t=[];for(let{file:n,pattern:i}of ki(e)){let a=bi(m(e,n)),o=r(n,`utf8`),s=i.exec(o);s&&t.push([`mobile-production-stamps:${a}`,`${a}:${Si(o,s.index)} carries ${s[1]} values from a mobile-tools prebuild. Run \`mobile-tools prebuild --env Production\` in the app folder before committing, so production builds never read the ${s[1]} update feed or app id.`])}return t}var ji=/^spa-host\..+\.json$/,Mi=/* @__PURE__ */ new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function Ni(e){let t=[];for(let n of N(e,/* @__PURE__ */ new Set([...yi,`android`,`ios`]))){let i=c(n);if(!Mi.has(i)&&!ji.test(i))continue;let a=xi(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
79
- `).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let o=bi(m(e,n));t.push([`spa-host-immutable-assets:${o}`,`${o}:${a+1} sets a Cache-Control with immutable. react.md → SPA deploy artifacts: /assets/* is "public, max-age=31536000" without immutable, because immutable on a content-hashed URL can brick that URL in the browser cache across a bad deploy.`])}return t}var Pi=[[`eslint`,`react.md: Biome is the only lint and format tool`],[`@eslint/js`,`react.md: Biome is the only lint and format tool`],[`prettier`,`react.md: Biome is the only lint and format tool`],[`lint-staged`,`react.md: the shared pre-commit hook replaces lint-staged`]],Fi=[[`@typescript-eslint/`,`react.md: no TypeScript toolchain residue`],[`eslint-plugin-`,`react.md: Biome is the only lint and format tool`],[`eslint-config-`,`react.md: Biome is the only lint and format tool`],[`prettier-plugin-`,`react.md: Biome is the only lint and format tool`]],P=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,Ii=`react.md: Bootstrap 5.3.3 is the only UI framework`,Li=`react.md: dates format through Intl and the web-core formatters`,Ri=`react-native.md: retired; Intl and the mobile-core formatters`,zi={web:[...Pi,[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,P],[`react-day-picker`,P],[`react-aria`,P],[`react-aria-components`,P],[`@webority/ui-elements`,`bootstrap-ui.md: products use the App* wrappers, and ui-react brings the elements itself`],[`crypto-js`,`react.md: stored tokens are never encrypted client-side`],[`tailwindcss`,Ii],[`antd`,Ii],[`styled-components`,`react.md: no CSS-in-JS`],[`bootstrap-icons`,`bootstrap-ui.md: icons are AppIcon from @webority/ui-react`],[`iconsax-react`,`ui-components.md: icons are AppIcon from @webority/ui-react`],[`moment`,Li],[`moment-timezone`,Li],[`dayjs`,Li],[`date-fns`,Li]],mobile:[...Pi,[`typescript`,`react-native.md: app code is JavaScript`],[`@types/react`,`react-native.md: app code is JavaScript`],[`@react-native/typescript-config`,`react-native.md: app code is JavaScript`],[`react-native-permissions`,`react-native.md: retired; each Expo module requests its own permission`],[`moment`,Ri],[`moment-timezone`,Ri],[`dayjs`,Ri],[`react-native-fast-image`,`react-native.md: retired; expo-image`],[`@d11/react-native-fast-image`,`react-native.md: retired; expo-image`],[`formik`,`react-native.md: retired; react-hook-form`],[`yup`,`react-native.md: retired; zod with zodResolver`],[`react-native-status-bar-height`,`react-native.md: retired; react-native-safe-area-context insets`],[`react-native-flash-message`,`react-native.md: retired; the mobile-ui toast`],[`react-native-toast-message`,`react-native.md: retired; the mobile-ui toast`],[`prop-types`,`react-native.md: retired; defaults in the parameter destructure`],[`@react-navigation/stack`,`react-native.md: retired; @react-navigation/native-stack`],[`react-native-version-check`,`react-native.md: retired; the server-driven minimum version`],[`@react-native-firebase/messaging`,`react-native.md: push is expo-notifications through mobile-core`],[`@notifee/react-native`,`react-native.md: push is expo-notifications through mobile-core`],[`patch-package`,`react-native-toolchain.md: patch with pnpm patch, never patch-package`]],demo:[]},Bi={web:[...Fi,[`@mui/`,Ii],[`@chakra-ui/`,Ii],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,P],[`@react-aria/`,P]],mobile:[...Fi],demo:[]},Vi={web:[[`axios-retry`,`@webority/web-core`,`react.md: retry lives only in @webority/web-core`]],mobile:[[`axios-retry`,`@webority/mobile-core`,`react.md: retry lives only in @webority/mobile-core`]],demo:[]},Hi={web:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/web-core`,`react.md: clients, auth, errors and logging come from web-core`],[`@webority/ui-react`,`react.md: App* components come from the catalogue`],[`@webority/theme`,`bootstrap-ui.md: look and tokens come from the shared theme`],[`bootstrap`,`bootstrap-ui.md: Bootstrap 5.3.3 on every surface`],[`react-bootstrap`,`bootstrap-ui.md: react-bootstrap is a dependency from project init`],[`sass-embedded`,`react.md: the SCSS compiler is sass-embedded`]],mobile:[[`@biomejs/biome`,`react-native.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/mobile-core`,`react-native.md: apps consume the shared mobile library`],[`@webority/mobile-ui`,`react-native.md: apps consume the shared mobile library`],[`@react-native-firebase/app`,`react-native.md: Crashlytics in every app`],[`@react-native-firebase/crashlytics`,`react-native.md: Crashlytics in every app`]],demo:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`]]},Ui=[`agentation`],Wi=[[`web-import-axios`,/(?:\bfrom\s*|\bimport\s*\(\s*|\brequire\s*\(\s*|^\s*import\s*)["']axios(?:\/[^"']*)?["']/m,`imports axios`,`react.md: HTTP goes through userClient and publicClient from @webority/web-core`],[`web-import-router`,/\bimport\s*\{[^}]*\b(?:BrowserRouter|Routes)\b[^}]*\}\s*from\s*["']react-router(?:-dom)?["']/,`imports BrowserRouter or Routes`,`react.md: routes are objects passed to createBrowserRouter and rendered by RouterProvider`],[`web-import-env-branch`,/\bimport\.meta\.env\.(?:DEV|PROD)\b/,`reads import.meta.env.DEV or PROD`,`react.md: branch on AppSettings.ENVIRONMENT; DEV and PROD only say which React build is bundled`]],Gi=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],Ki=`@webority/biome-config/biome.jsonc`,qi={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`]},Ji=/* @__PURE__ */ `AppAccordion.AppAccountSwitcher.AppActionIcon.AppAlert.AppAsyncBlock.AppAuthLayout.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppCell.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorBoundary.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingButton.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLeadPopup.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.AppOrgTree.AppOtpInput.AppPageHeader.AppPhoneNumberInput.AppPopover.AppPricingCard.AppProgress.AppQrCode.AppRadio.AppRadioGroup.AppRating.AppRecordPager.AppRelativeTime.AppRepeater.AppRequiredMark.AppResizable.AppResizableHandle.AppResizablePanel.AppResourceCard.AppResult.AppRichText.AppRollingNumber.AppRouteError.AppScoreScale.AppScrollbar.AppSearch.AppSectionCallToAction.AppSectionFaq.AppSectionFeatures.AppSectionHero.AppSectionLeadCapture.AppSectionLogos.AppSectionPricing.AppSectionTestimonials.AppSegmented.AppSelect.AppSeoHead.AppShell.AppShortcutLegend.AppShowMore.AppSkeleton.AppSkeletonLines.AppSkeletonRows.AppSlider.AppSortableList.AppSparkline.AppSpinner.AppSplash.AppSplitButton.AppSplitView.AppStatusBadge.AppStepper.AppSwitch.AppTablePagination.AppTableToolbar.AppTabs.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),Yi=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`,`advisory`,`endpoint-name`];function Xi(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!Yi.includes(e)||n.includes(`all`)||n.includes(e)}var Zi={version:`0.89.0`,css:{rename:[[`--color-primary-text`,`--color-on-primary`],[`--color-primary-ink`,`--color-primary-text`],[`--color-primary-hover-text`,`--color-on-primary`],[`--color-on-primary-ink`,`--color-on-primary`],[`--color-border-light`,`--color-border-subtle`],[`--color-focus-border`,`--color-field-border-focus`],[`--color-success-active`,`--color-success-pressed`],[`--color-success-10`,`--color-success-soft`],[`--color-success-30`,`--color-success-border`],[`--color-warning-active`,`--color-warning-pressed`],[`--color-warning-10`,`--color-warning-soft`],[`--color-warning-30`,`--color-warning-border`],[`--color-danger-active`,`--color-danger-pressed`],[`--color-danger-10`,`--color-danger-soft`],[`--color-danger-30`,`--color-danger-border`],[`--color-info-active`,`--color-info-pressed`],[`--color-info-10`,`--color-info-soft`],[`--color-info-30`,`--color-info-border`],[`--color-accent`,`--color-warning`],[`--color-accent-soft`,`--color-warning-soft`],[`--color-close-filter`,`--wui-close-filter`],[`--color-pressed-overlay`,`--wui-pressed-overlay`],[`--wui-chart-grid`,`--color-chart-grid`],[`--wui-chart-axis`,`--color-chart-axis`],[`--wui-chart-label`,`--color-chart-label`],[`--wui-shadow-overlay`,`--wui-shadow-popover`],[`--wui-shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-overlay`,`--wui-shadow-popover`],[`--shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-sm`,`--wui-shadow-card`],[`--shadow-md`,`--wui-shadow-card`],[`--shadow-lg`,`--wui-shadow-card`],[`--wui-shadow-card-lifted`,`--wui-card-shadow-lifted`],[`--wui-shadow-card-lifted-hover`,`--wui-card-shadow-lifted-hover`],[`--wui-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-shadow-thumb-hover`,`--wui-thumb-shadow-hover`],[`--radius-sm`,`--wui-radius-sm`],[`--radius`,`--wui-radius-md`],[`--radius-lg`,`--wui-radius-lg`],[`--radius-xl`,`--wui-radius-xl`],[`--wui-radius`,`--wui-radius-md`],[`--wui-control-height-sm`,`--wui-control-sm`],[`--wui-control-height`,`--wui-control-md`],[`--wui-control-height-lg`,`--wui-control-lg`],[`--wui-field-radius-sm`,`--wui-field-sm-radius`],[`--wui-field-radius`,`--wui-field-md-radius`],[`--wui-field-radius-lg`,`--wui-field-lg-radius`],[`--wui-ease-out-quart`,`--wui-ease-out`],[`--wui-font-body`,`--wui-font-ui`],[`--font-sans`,`--wui-font-ui`],[`--wui-fs-smb`,`--wui-fs-sm`],[`--wui-fs-48`,`--wui-fs-4xl`],[`--wui-fs-64`,`--wui-fs-5xl`]],reads:[[`--wui-chart-1`,`--color-chart-1`],[`--wui-chart-2`,`--color-chart-2`],[`--wui-chart-3`,`--color-chart-3`],[`--wui-chart-4`,`--color-chart-4`],[`--wui-chart-5`,`--color-chart-5`],[`--wui-chart-6`,`--color-chart-6`],[`--wui-chart-7`,`--color-chart-7`],[`--wui-chart-8`,`--color-chart-8`],[`--wui-chart-seq-0`,`--color-chart-seq-0`],[`--wui-chart-seq-1`,`--color-chart-seq-1`],[`--wui-chart-seq-2`,`--color-chart-seq-2`],[`--wui-chart-seq-3`,`--color-chart-seq-3`],[`--wui-chart-seq-4`,`--color-chart-seq-4`],[`--wui-chart-seq-5`,`--color-chart-seq-5`],[`--wui-chart-seq-6`,`--color-chart-seq-6`],[`--wui-chart-diverging-low`,`--color-chart-diverging-low`],[`--wui-chart-diverging-mid`,`--color-chart-diverging-mid`],[`--wui-chart-diverging-high`,`--color-chart-diverging-high`],[`--wui-chart-neutral`,`--color-chart-neutral`],[`--wui-dark-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-dark-shadow-thumb-hover`,`--wui-thumb-shadow-hover`]],choose:{"--color-on-status-fill":`Use the ink of the fill's tone: --color-on-success, --color-on-warning, --color-on-danger or --color-on-info.`,"--color-on-status-strong":`Use the ink of the strong fill's tone: --color-on-success-strong, --color-on-warning-strong, --color-on-danger-strong or --color-on-info-strong.`,"--color-success-5":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-20":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-50":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-warning-5":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-20":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-50":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-danger-5":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-20":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-50":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-info-5":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-20":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-50":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`},checkRole:[`--wui-shadow-popover`,`--wui-shadow-modal`],ownable:[`--color-accent`,`--color-accent-soft`,`--shadow-overlay`,`--shadow-overlay-lg`,`--shadow-sm`,`--shadow-md`,`--shadow-lg`,`--radius-sm`,`--radius`,`--radius-lg`,`--radius-xl`,`--font-sans`]},themeReads:[{kind:`path`,from:`colors.primaryHover`,to:`colors.primary-hover`},{kind:`path`,from:`colors.primaryPressed`,to:`colors.primary-pressed`},{kind:`path`,from:`colors.primaryMuted`,to:`colors.primary-soft`},{kind:`path`,from:`colors.secondaryHover`,to:`colors.neutral-hover`},{kind:`path`,from:`colors.secondary`,to:`colors.neutral`},{kind:`path`,from:`colors.error`,to:`colors.danger`},{kind:`path`,from:`colors.onPrimary`,to:`colors.on-primary`},{kind:`path`,from:`colors.onNeutral`,to:`colors.on-neutral-strong`},{kind:`path`,from:`colors.onSecondary`,to:`colors.on-neutral`},{kind:`path`,from:`colors.onSuccess`,to:`colors.on-success`},{kind:`path`,from:`colors.onWarning`,to:`colors.on-warning`},{kind:`path`,from:`colors.onError`,to:`colors.on-danger`},{kind:`path`,from:`colors.onInfo`,to:`colors.on-info`},{kind:`path`,from:`colors.onOverlay`,to:`colors.on-scrim`},{kind:`path`,from:`colors.toneText.primary`,to:`colors.primary-text`},{kind:`path`,from:`colors.toneText.success`,to:`colors.success-text`},{kind:`path`,from:`colors.toneText.warning`,to:`colors.warning-text`},{kind:`path`,from:`colors.toneText.error`,to:`colors.danger-text`},{kind:`path`,from:`colors.toneText.info`,to:`colors.info-text`},{kind:`path`,from:`colors.text.primary`,to:`colors.text-body`},{kind:`path`,from:`colors.text.secondary`,to:`colors.text-muted`},{kind:`path`,from:`colors.text.tertiary`,to:`colors.text-subtle`},{kind:`path`,from:`colors.text.inverse`,to:`colors.text-inverse`},{kind:`path`,from:`colors.text.strong`,to:`colors.text`},{kind:`path`,from:`colors.text.disabled`,to:`colors.text-disabled`},{kind:`path`,from:`colors.text.link`,to:`colors.link`},{kind:`path`,from:`colors.background.primary`,to:`colors.bg`},{kind:`path`,from:`colors.background.secondary`,to:`colors.bg-subtle`},{kind:`path`,from:`colors.background.tertiary`,to:`colors.bg-muted`},{kind:`path`,from:`colors.background.elevated`,to:`colors.surface`},{kind:`path`,from:`colors.background.overlay`,to:`colors.scrim`},{kind:`path`,from:`colors.background.inverse`,to:`colors.surface-inverse`},{kind:`path`,from:`colors.border.primary`,to:`colors.border`},{kind:`path`,from:`colors.border.secondary`,to:`colors.border-subtle`},{kind:`path`,from:`colors.border.focus`,to:`colors.focus-ring`},{kind:`path`,from:`colors.border.error`,to:`colors.danger-border`},{kind:`path`,from:`colors.border.width`,to:`size.border`},{kind:`path`,from:`colors.field.backgroundFocused`,to:`colors.field-bg-focus`},{kind:`path`,from:`colors.field.backgroundDisabled`,to:`colors.field-bg-disabled`},{kind:`path`,from:`colors.field.background`,to:`colors.field-bg`},{kind:`path`,from:`colors.field.borderFocused`,to:`colors.field-border-focus`},{kind:`path`,from:`colors.field.borderError`,to:`colors.field-border-error`},{kind:`path`,from:`colors.field.border`,to:`colors.field-border`},{kind:`path`,from:`colors.field.label`,to:`colors.field-label`},{kind:`path`,from:`colors.field.textDisabled`,to:`colors.field-text-disabled`},{kind:`path`,from:`colors.field.text`,to:`colors.field-text`},{kind:`path`,from:`colors.field.placeholderDisabled`,to:`colors.field-placeholder-disabled`},{kind:`path`,from:`colors.field.placeholder`,to:`colors.field-placeholder`},{kind:`path`,from:`colors.field.iconFocused`,to:`colors.field-icon-focus`},{kind:`path`,from:`colors.field.iconDisabled`,to:`colors.field-icon-disabled`},{kind:`path`,from:`colors.field.icon`,to:`colors.field-icon`},{kind:`path`,from:`colors.field.caret`,to:`colors.field-caret`},{kind:`path`,from:`colors.field.message`,to:`colors.field-message`},{kind:`path`,from:`colors.surface.pressed`,to:`colors.surface-pressed`},{kind:`path`,from:`colors.surface.hovered`,to:`colors.surface-hover`},{kind:`path`,from:`colors.surface.selected`,to:`colors.surface-selected`},{kind:`path`,from:`colors.surface.disabled`,to:`colors.surface-disabled`},{kind:`path`,from:`colors.glass.fill`,to:`colors.glass-fill`},{kind:`path`,from:`colors.glass.border`,to:`colors.glass-border`},{kind:`path`,from:`colors.glass.on`,to:`colors.on-glass`},{kind:`path`,from:`colors.glass.badge`,to:`colors.glass-badge`},{kind:`path`,from:`colors.skeleton.background`,to:`colors.skeleton`},{kind:`path`,from:`colors.skeleton.highlight`,to:`colors.skeleton-highlight`},{kind:`gone`,from:`colors.avatarPalette`,hint:"read colors[`avatar-${n}`] for n 1 to 8"},{kind:`path`,from:`typography.fontFamily.regular`,to:`font.ui.normal`},{kind:`path`,from:`typography.fontFamily.medium`,to:`font.ui.medium`},{kind:`path`,from:`typography.fontFamily.semibold`,to:`font.ui.semibold`},{kind:`path`,from:`typography.fontFamily.bold`,to:`font.ui.bold`},{kind:`gone`,from:`typography.fontFamily.display`,hint:`font.display is a face per weight: font.display.<weight>`},{kind:`prefix`,from:`typography.fontSize.`,to:`text.`},{kind:`prefix`,from:`typography.fontWeight.`,to:`weight.`},{kind:`prefix`,from:`typography.lineHeight.`,to:`leading.`},{kind:`prefix`,from:`typography.letterSpacing.`,to:`letter-spacing.`},{kind:`prefix`,from:`spacing.`,to:`space.`},{kind:`path`,from:`shadows.sm`,to:`shadow.card`},{kind:`path`,from:`shadows.md`,to:`shadow.elevated`},{kind:`path`,from:`shadows.lg`,to:`shadow.popover`},{kind:`path`,from:`shadows.xl`,to:`shadow.modal`},{kind:`gone`,from:`shadows.xs`,hint:`use shadow.card`},{kind:`gone`,from:`shadows.2xl`,hint:`use shadow.modal`},{kind:`gone`,from:`shadows.none`,hint:`omit the shadow`},{kind:`path`,from:`motion.duration.normal`,to:`motion.duration.default`},{kind:`path`,from:`motion.easing.standard`,to:`motion.ease.in-out`},{kind:`prefix`,from:`motion.easing.`,to:`motion.ease.`},{kind:`prefix`,from:`icons`,to:`settings.icons`},{kind:`prefix`,from:`gradients`,to:`settings.gradients`},{kind:`prefix`,from:`textVariants`,to:`settings.textVariants`},{kind:`path`,from:`maxFontSizeMultiplier`,to:`settings.maxFontSizeMultiplier`},{kind:`path`,from:`components.field.defaultVariant`,to:`settings.components.field.defaultVariant`},{kind:`path`,from:`components.field.requiredMarker`,to:`settings.components.field.requiredMarker`},{kind:`path`,from:`components.input.defaultVariant`,to:`settings.components.input.defaultVariant`},{kind:`path`,from:`components.input.defaultLabelMode`,to:`settings.components.input.defaultLabelMode`},{kind:`path`,from:`components.input.tintLabelOnFocus`,to:`settings.components.input.tintLabelOnFocus`},{kind:`path`,from:`components.input.shakeOnError`,to:`settings.components.input.shakeOnError`},{kind:`path`,from:`components.searchBar.defaultVariant`,to:`settings.components.search-bar.defaultVariant`},{kind:`path`,from:`components.select.defaultVariant`,to:`settings.components.select.defaultVariant`},{kind:`path`,from:`components.otpInput.shakeOnError`,to:`settings.components.otp-input.shakeOnError`},{kind:`path`,from:`components.optionSheet.selectedMarker`,to:`settings.components.option-sheet.selectedMarker`},{kind:`path`,from:`components.profilePicker.defaultTone`,to:`settings.components.profile-picker.defaultTone`},{kind:`path`,from:`components.profilePicker.defaultVariant`,to:`settings.components.profile-picker.defaultVariant`},{kind:`path`,from:`components.profilePicker.defaultAvatarTone`,to:`settings.components.profile-picker.defaultAvatarTone`},{kind:`path`,from:`components.slider.thumbPressAnimation`,to:`settings.components.slider.thumbPressAnimation`},{kind:`path`,from:`components.rating.pulseOnPress`,to:`settings.components.rating.pulseOnPress`},{kind:`path`,from:`components.stepper.pulseAnimation`,to:`settings.components.stepper.pulseAnimation`},{kind:`path`,from:`components.tooltip.enableScaleAnimation`,to:`settings.components.tooltip.enableScaleAnimation`},{kind:`path`,from:`components.toast.enableSwipeDismiss`,to:`settings.components.toast.enableSwipeDismiss`},{kind:`path`,from:`components.toast.defaultDurationMs`,to:`settings.components.toast.defaultDurationMs`},{kind:`gone`,from:`components.field.outlined`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.filled`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.underline`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.textColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.disabledTextColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.placeholderColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.fontWeight`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.requiredMarkerColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.input.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.handleColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.switch.thumbColor`,hint:`the thumb reads colors.thumb`},{kind:`gone`,from:`components.slider.thumbPressScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelShowDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeDismissThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackScaleStep`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackMinScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconCircleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonMarginLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.containerPaddingLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.textBlockPaddingRight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.formField.inlineLabelWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressDelayMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressIntervalMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateLoopDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.determinateAnimationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.animationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.strokeWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.trackColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.colorStops`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.rating.pulseScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomSheet.handleColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.selectedFillOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.thumbnailSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.dashedBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeIconColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.inlineSelect.color`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillMaxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillInset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.underlineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingMargin`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleLift`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.viewTransitionDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerPressDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerReleaseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.decadeRangeMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.hapticDebounceMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontSizeRatio`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.text`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontWeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.accordion.cardPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.sideSlotMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.collapseTranslateDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.subtitleMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.actionButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dividerWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgePaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.closeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.maxScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.minScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.doubleTapScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.modal.scaleStartValue`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.circleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.threshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.fullSwipeThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.rubberBandFactor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.failOffsetY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.haloWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.connectorGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.gap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.screenPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.pressAutoHideMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHalfWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowCornerPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.maxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.lineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.exitDurationMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.segmentedControl.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tabs.radius`,hint:`fixed in the library since 0.89.0`},{kind:`kebab`,under:`components`,names:{searchBar:`search-bar`,emptyState:`empty-state`,listItem:`list-item`,otpInput:`otp-input`,segmentedControl:`segmented-control`,floatingActionButton:`floating-action-button`}}],props:[{package:`@webority/mobile-ui`,props:[`tone`,`variant`],from:`error`,to:`danger`}],componentProps:[],propValues:[{package:`@webority/ui-react`,components:[`AppInput`,`AppSelect`,`AppCountrySelect`],prop:`floatingLabel`,true:`border`,false:`off`}],propSplits:[{package:`@webority/ui-react`,components:[`AppInput`],prop:`passwordRequirements`,on:`shown`,off:`off`,into:`passwordPolicy`}],razorAttributes:[{tags:[`app-input`,`app-select`,`app-country-select`],attribute:`floating-label`,values:{true:`border`,false:`off`}},{tags:[`app-input`],attribute:`password-requirements`,values:{true:`shown`,false:`off`}}]},Qi=`--color-primary-text`,$i=new Set([...Zi.css.rename.map(([e])=>e),...Zi.css.reads.map(([e])=>e),...Object.keys(Zi.css.choose)].filter(e=>e!==Qi)),ea=RegExp(`(?<![\\w-])(${[...$i].join(`|`)})(?![\\w-])`,`g`),ta=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),na=/* @__PURE__ */ new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),ra=(e,t)=>ta.has(e)||e===`lib`&&c(t)===`wwwroot`,ia=e=>na.has(u(e).toLowerCase());function aa(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=d(e,n.name);n.isDirectory()?ra(n.name,e)||aa(r,t):ia(n.name)&&t.push(r)}return t}function oa(e,t){for(let n=l(e);n.length>t.length;n=l(n))if(ra(c(n),l(n)))return!0;return!1}function sa(e){let n=v(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&ia(e)).map(t=>d(e,t.split(`/`).join(g))).filter(n=>!oa(n,e)&&t(n)):aa(e)}function ca(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function la(e,t){let n=[];for(let i of sa(e)){let e=r(i,`utf8`),a=[],o=-1;for(let t of e.matchAll(ea))o<0&&(o=t.index),a.includes(t[1])||a.push(t[1]);if(a.length===0)continue;let s=m(t,i).split(`\\`).join(`/`),c=e.slice(0,o).split(`
80
- `).length;n.push([`stale-theme-name:${s}`,`${s}:${c} reads pre-0.89.0 theme names (${ca(a)}). Run webority upgrade 0.89.0 --path <folder> once for the product's style and source folders, then webority brand; no alias for the old names is shipped.`])}return n}var ua=`tracked-case`;function da(e,t){let n=/* @__PURE__ */ new Map,r=t=>{let r=n.get(t);if(r===void 0){try{r=new Set(i(d(e,t)))}catch{r=/* @__PURE__ */ new Set}n.set(t,r)}return r},a=/* @__PURE__ */ new Set,o=[];for(let e of t){let t=e.split(`/`),n=`.`;for(let e=0;e<t.length;e++){let i=t[e],s=r(n);if(s.has(i)){n=n===`.`?i:`${n}/${i}`;continue}let c=i.toLowerCase(),l=[...s].find(e=>e.toLowerCase()===c);if(l!==void 0){let n=t.slice(0,e+1).join(`/`);if(!a.has(n)){a.add(n);let r=[...t.slice(0,e),l].join(`/`);o.push([`${ua}:${n}`,`tracked as ${n} but on disk as ${r}; a Linux checkout cannot find the import. Run git mv "${n}" "${r}" so git records the rename.`])}}break}}return o}var F=e=>e.split(`\\`).join(`/`),fa=(e,t)=>F(m(e,t))||`.`;function I(e){try{return JSON.parse(r(e,`utf8`))}catch{return null}}function pa(e,t){let n=v(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout:null}function ma(e){let t=pa(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function L(e,t){let n=pa(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function ha(e){let t=pa(e,[`ls-files`,`-z`]);return t?t.split(`\0`).filter(Boolean):[]}function ga(e,n){let r=e?.dependencies??{};if(Ui.some(e=>r[e]))return null;let i=n&&(t(d(n,`android`))||t(d(n,`ios`)));return r[`react-native`]&&i?`mobile`:r[`react-dom`]&&(e?.devDependencies?.[`react-native-web`]||r[`react-native-web`])?`demo`:r[`react-native`]?`mobile`:r[`react-dom`]?`web`:null}var _a=/^https:\/\/\S+-\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?\.(?:tgz|tar\.gz)$/,va=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e)||_a.test(e),ya=/* @__PURE__ */ new Set([`@biomejs/biome`,`@webority/biome-config`]),ba=e=>/^(?:workspace:|file:|link:)/.test(e);function xa(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of zi[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of Bi[t])for(let t of a.filter(t=>t.startsWith(e)))r.push([`banned:${t}`,`"${t}" is a dependency. ${n}.`]);for(let[e,n,a]of Vi[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of Hi[t])(ya.has(e)?n:i)[e]||r.push([`required:${e}`,`"${e}" is not a dependency. ${a}.`]);let o=t===`mobile`?a:a.filter(e=>e.startsWith(`@webority/`)||e===`bootstrap`);for(let e of o){let t=String(i[e]);va(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}for(let e of Gi){let t=e.filter(e=>i[e]&&!ba(String(i[e])));if(new Set(t.map(e=>String(i[e]).replace(/^[\^~]/,``))).size>1){let n=t.map(e=>`${e}@${i[e]}`).join(`, `);r.push([`lockstep:${e[0]}`,`${n} differ. These publish together at one version; move every pin in the set together.`])}}return r}function R(e,n,r){let i=e;for(;;){for(let e of r)if(t(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function Sa(e,t){let n=e,i=null;for(;;){let e=R(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=l(e);let a;try{a=ut(r(e,`utf8`))}catch{return i}let o=l(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function Ca(e,t,n){let r=Sa(e,t),i=r&&r!==e?I(d(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function wa(e,n){let i=[],a=R(e,n,[`pnpm-lock.yaml`]);a||i.push([`pnpm:no-lockfile`,`No pnpm-lock.yaml in this folder or above it. react.md: every JS repo installs with pnpm.`]);let o=a?l(a):e,s=I(d(o,`package.json`))??I(d(e,`package.json`)),c=s?.devEngines?.packageManager;c?.name===`pnpm`&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.onFail===`error`||i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]),s?.packageManager!==void 0&&i.push([`pnpm:package-manager`,`package.json sets "packageManager", which pnpm ignores beside devEngines. Move its version into devEngines.packageManager.version and delete it. react.md: Package manager.`]);let u=d(o,`pnpm-workspace.yaml`);if(!t(u))i.push([`pnpm:no-workspace-file`,`No pnpm-workspace.yaml beside the lockfile. react.md: it holds engineStrict, strictPeerDependencies and allowBuilds.`]);else{let e=r(u,`utf8`);/^engineStrict:\s*true\s*$/m.test(e)||i.push([`pnpm:engine-strict`,`pnpm-workspace.yaml lacks engineStrict: true. react.md: a Node mismatch must fail the install.`]),/^strictPeerDependencies:\s*true\s*$/m.test(e)||i.push([`pnpm:strict-peers`,`pnpm-workspace.yaml lacks strictPeerDependencies: true. react.md: a peer conflict must fail the install.`])}for(let n of[`package-lock.json`,`yarn.lock`])t(d(e,n))&&i.push([`pnpm:${n}`,`${n} sits in this folder. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]);return i}function Ta(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=F(m(t,d(n,`index.js`)));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[].concat(e.includes??[]).some(e=>!String(e).startsWith(`!`)&&f(i,String(e))))}function Ea(e,t,n){let i=R(e,t,[`biome.json`,`biome.jsonc`]);if(!i)return[[`biome:missing`,`No biome.json in this folder or above it. react.md: one committed root biome.json.`]];let a;try{a=ut(r(i,`utf8`))}catch{return[[`biome:unreadable`,`${c(i)} does not parse.`]]}let o=[];return[].concat(a.extends??[]).some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`biome-config/biome.jsonc`))||o.push([`biome:extends`,`${c(i)} does not extend "${Ki}". react.md: every repo extends the shared preset.`]),a.formatter?.lineEnding&&o.push([`biome:line-ending`,`${c(i)} sets formatter.lineEnding. react.md: inherit it from the shared preset, never set it.`]),a.linter?.rules&&Object.keys(a.linter.rules).length>0&&o.push([`biome:root-rules`,`${c(i)} sets linter.rules at the root. react.md: never a rule's severity at the root; a per-path exception goes in overrides.`]),n===`mobile`&&!Ta(a,l(i),e,`__DEV__`)&&o.push([`biome:dev-global`,`${c(i)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),o}var Da=d(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function Oa(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(d(t,n)),a=1;for(let t=0;t<e.span[0];t++)i[t]===10&&a++;return a}function ka(e){try{return a(e)}catch{return null}}function Aa(e,t,n){let r=n.split(`/`),i=n.startsWith(`@`)?r.slice(0,2).join(`/`):r[0],a=n.slice(i.length)?`.${n.slice(i.length)}`:`.`,o=R(e,t,[d(`node_modules`,i)]),s=o&&ka(o),c=s&&I(d(s,`package.json`));if(!c)return null;let l=(typeof c.exports==`string`?{".":c.exports}:c.exports)?.[a]??(a===`.`?c.module??c.main:null);if(l&&typeof l==`object`&&(l=l.import??l.default),typeof l!=`string`)return null;let u=a===`.`&&typeof c.source==`string`?c.source:l.replace(ja,`src/`);return{pkgDir:s,entry:d(s,l),sourcePath:d(s,u),workspace:Ma(t,s)}}var ja=/^(?:\.\/)?(?:dist|lib|build)\//;function Ma(e,t){let n;try{n=a(t)}catch{return!1}let r=m(a(e),n);return!r.startsWith(`..`)&&!r.split(/[\\/]/).includes(`node_modules`)}function Na(e){try{return o(e).isFile()}catch{return!1}}var Pa=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`],Fa=[`index.ts`,`index.tsx`,`index.js`,`index.jsx`,`index.mjs`];function Ia(e){let t=e.replace(/\.(?:[cm]?jsx?|tsx?)$/,``);return[e,...Pa.map(e=>t+e),...Fa.map(t=>d(e,t))].find(Na)??null}function La(e){return e?e.workspace?Ia(e.sourcePath):e.entry:null}function Ra(e,t,n,r){let i=Aa(e,t,n);if(!i)return!1;let a=/* @__PURE__ */ new Set,o=La(i);return o===null||Ha(o,r,t,a)}function za(e,t,n,r){let i=Wa(l(t),n);return i!==null&&Ha(i,r,e,/* @__PURE__ */ new Set)}var Ba=/\bexport\s*(?:(\*)(?:\s*as\s+([\w$]+))?|\{([^}]*)\})(?:\s*from\s*["']([^"']+)["'])?/g,Va=[``,`.js`,`.mjs`,`.cjs`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.mjs`,`/index.jsx`,`/index.ts`,`/index.tsx`];function Ha(e,t,n,i){if(i.has(e))return!1;i.add(e);let a;try{a=r(e,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${t}\\b`).test(a)||t==="default"&&/\bexport\s+default\b/.test(a)||RegExp(`\\b(?:module\\.)?exports\\.${t}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${t}["']|\\bget\\s+${t}\\s*\\(`).test(a))return!0;for(let[,r,o,s,c]of a.matchAll(Ba))if(r){if(o===t||o===void 0&&c!==void 0&&Ua(e,c,t,n,i))return!0}else for(let r of s.split(`,`)){let[a,o]=r.trim().replace(/^type\s+/,``).split(/\s+as\s+/);if((o??a)===t&&(c===void 0||Ua(e,c,a,n,i)))return!0}return!1}function Ua(e,t,n,r,i){let a=t.startsWith(`.`)?Wa(l(e),t):La(Aa(l(e),r,t));return a!==null&&Ha(a,n,r,i)}function Wa(e,t){let n=d(e,t);for(let e of Va)if(o(n+e,{throwIfNoEntry:!1})?.isFile())return n+e;return null}function Ga(e,n){let r=R(e,n,[Da]);if(!r)return[];let i=t(d(e,`src`))?`src`:`.`,a=v(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0}),o=null;try{o=JSON.parse(a.stdout??``).diagnostics}catch{o=null}if(!Array.isArray(o))return[[`missing-export:unreadable`,`Biome's report could not be read: ${String(a.stderr||a.stdout||``).slice(0,200)}`]];let s=/* @__PURE__ */ new Map;for(let t of o){let r=String(t.message??``);if(!r.includes(`has no export named`))continue;let i=r.match(/^The (?:path|module) (\S+) has no export named (\w+)/);if(!i){s.set(`unreadable`,[`missing-export:unreadable`,`Biome reported a missing export in a form this check cannot read: ${r.slice(0,200)}`]);continue}let[,a,o]=i;if(Object.hasOwn(qi,a)&&qi[a].includes(o))continue;let c=h(e,String(t.location?.path));if(a.startsWith(`.`)?za(n,c,a,o):Ra(e,n,a,o))continue;let l=F(m(e,c)),u=Oa(t.location??{},e,l),d=u?`${l}:${u}`:l,f=`missing-export:${l}`,p=`${d} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${f}\0${p}`,[f,p])}return[...s.values()]}function Ka(e){let t=d(e,`node_modules`,`@webority`,`ui-react`);try{let e=JSON.parse(r(d(t,`package.json`),`utf8`)),n=typeof e.module==`string`?e.module:typeof e.main==`string`?e.main:`dist/index.js`,i=r(d(t,n),`utf8`),a=new Set([...i.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(a.size>0)return a}catch(e){if(e.code!==`ENOENT`)throw e}return new Set(Ji)}function qa(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?qa(d(e,t.name)):[d(e,t.name)])}function Ja(e){try{return JSON.parse(r(d(e,`package.json`),`utf8`)).name===`@webority/ui-root`}catch{return!1}}function Ya(e){let n=d(e,`src`);if(!t(n))return[];let r=Ka(e),i=[];for(let t of qa(n)){if(![`.jsx`,`.tsx`].includes(u(t)))continue;let n=c(t).split(`.`)[0];if(r.has(n)){let r=F(m(e,t));i.push([`catalogue-copy:${r}`,`${r} is named like the @webority/ui-react export ${n}. bootstrap-ui.md: use the catalogue component, never a local copy.`])}}return i}var Xa=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,Za=/throw\s+new\s+GradleException\s*\(/,Qa=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function $a(e){let n=[],i=d(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);Xa.test(e)&&Za.test(e)||n.push([`android-release-signing`,`android/app/build.gradle has no release signing guard. react-native-toolchain.md: when a requested task name contains "release", throw a GradleException that names each missing signing setting, and never sign a release with the debug key.`])}let a=d(e,`android`,`gradle.properties`);return t(a)&&Qa.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}var eo=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]);function to(e,n){let i=d(e,`src`);if(!t(i))return[];let a=[];for(let t of qa(i)){if(!eo.has(u(t).toLowerCase())||Ne(F(m(n,t)),n))continue;let i=r(t,`utf8`).split(`
81
+ `)?t-1:t}function ui(e){return!Zr.test(e)||Qr.test(e)?!1:!e.split(`/`).slice(0,-1).some(e=>$r.has(e))}function O(e){return e.filter(ui)}function k(e,t){let n=r(d(e,t),`utf8`),{blanked:i,lineStarts:a}=Rr(n);return{file:t,text:n,blanked:i,lines:n.split(`
82
+ `),lineAt:e=>{let t=0,n=a.length-1;for(;t<=n;){let r=t+n>>1,i=a[r];if(i===void 0)throw RangeError(`line start ${r} is missing`);i<=e?t=r+1:n=r-1}return n+1}}}function di(e){let t=e.trim();if(t===`*`)return[{name:`*`,local:`*`}];let n=[],r=t.match(/\*\s+as\s+([\w$]+)/);if(r){let e=r[1];if(e===void 0)throw TypeError(`namespace import has no local name`);n.push({name:`*`,local:e})}let i=t.match(/\{([^}]*)\}/);if(i){let e=i[1];if(e===void 0)throw TypeError(`named import clause has no body`);for(let t of e.split(`,`)){let e=t.trim().replace(/^type\s+/,``).match(/^([\w$]+)(?:\s+as\s+([\w$]+))?$/);if(e){let t=e[1];if(t===void 0)throw TypeError(`import specifier has no name`);n.push({name:t,local:e[2]??t})}}}let a=t.replace(/\{[^}]*\}/,``).replace(/\*\s+as\s+[\w$]+/,``).replace(/,/g,``).trim();return/^[\w$]+$/.test(a)&&n.push({name:`default`,local:a}),n}function A(e){let t=[],n=(n,r,i,a)=>t.push({kind:r,specifier:i,imported:a,line:e.lineAt(n)});for(let t of e.blanked.matchAll(ni)){let[,e,r]=t;if(e===void 0||r===void 0)throw TypeError(`import match lost a group`);n(t.index,`import`,r,di(e))}for(let t of e.blanked.matchAll(ri)){let[,e]=t;if(e===void 0)throw TypeError(`bare import match lost a group`);n(t.index,`import`,e,[])}for(let t of e.blanked.matchAll(ii)){let[,e,r]=t;if(e===void 0||r===void 0)throw TypeError(`export-from match lost a group`);n(t.index,`export-from`,r,di(e))}for(let t of e.blanked.matchAll(ai)){let[,e]=t;if(e===void 0)throw TypeError(`require match lost a group`);n(t.index,`require`,e,[])}for(let t of e.blanked.matchAll(oi)){let[,e]=t;if(e===void 0)throw TypeError(`dynamic import match lost a group`);n(t.index,`dynamic`,e,[])}return t.sort((e,t)=>e.line-t.line)}function fi(e,t,n){let r;if(n.startsWith(`@/`))r=`src/${n.slice(2)}`;else if(n.startsWith(`.`))r=p.normalize(p.join(p.dirname(t),n));else return null;for(let t of ei)if(e.has(r+t))return r+t;return null}function j(e,t,n){let r=[];t.lines.forEach((t,n)=>{let i=ti.exec(t);i&&i[1]===e&&r.push({line:n+1,reason:(i[2]??``).trim()})});let i=new Set(r.filter(e=>e.reason!==``).map(e=>e.line)),a=n.filter(e=>!(i.has(e.line-1)||e.line===1&&i.has(1))).map(n=>({rule:e,file:t.file,line:n.line,message:n.message,...n.note?{note:!0}:{}}));for(let n of r)n.reason===``&&a.push({rule:e,file:t.file,line:n.line,message:`layering-allow needs a reason`});return a}function M(e){return[...e].sort((e,t)=>e.file===t.file?e.line===t.line?e.message===t.message?0:e.message<t.message?-1:1:e.line-t.line:e.file<t.file?-1:1)}var pi=/^src\/screens\/(public|user)\/([^/]+)\/.+/;function mi(e){let t=pi.exec(e);return t?`${t[1]}/${t[2]}`:null}function hi(e,t){let n=O(t),r=new Set(n),i=[];for(let t of n){let n=mi(t);if(n===null)continue;let a=k(e,t),o=[];for(let e of A(a)){let i=fi(r,t,e.specifier),a=i===null?null:mi(i);a!==null&&a!==n&&o.push({line:e.line,message:`imports ${i} from another screen area. react-native.md: a part two areas use lives in src/components/<area>/ or src/components/shared/.`})}i.push(...j(`cross-feature-import`,a,o))}return M(i)}var gi=/* @__PURE__ */ new Set([`assets`,`components`,`constants`,`hooks`,`navigation`,`redux`,`screens`,`services`,`standards`,`types`,`utils`]),_i=/\.(?:js|jsx|ts|tsx)$/,vi=/^src\/screens\/(?:public\/.+|user\/[^/]+\/.+)$/,yi=/[A-Za-z0-9]Screen\.(?:js|jsx|ts|tsx)$/,bi=/^src\/screens\/index\.(?:js|ts)$/,xi=/^src\/assets\/theme\/settings\.(?:js|ts|tsx)$/,Si=[`.js`,`.ts`,`.tsx`,`.jsx`],N={folder:`a top-level folder of src is one of assets, components, constants, hooks, navigation, redux, screens, services, standards, types, utils`,screenHome:`a screen file lives in src/screens/public/ or src/screens/user/<area>/`,suffix:`a screen is named without a Screen suffix`,theme:`src/assets/theme holds only its settings file`,types:`src/types holds only ambient .d.ts declaration files`,tsconfig:`an app has a tsconfig.json at its root`},Ci=(e,t)=>`${e}: react-native.md App layout: ${t}.`;function wi(e,t){let n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Map,i=(e,t)=>{let n=r.get(e);n===void 0&&(n=[],r.set(e,n)),n.push({line:1,message:Ci(e,t)})};for(let e of t){let t=e.split(`/`);if(t[0]!==`src`||t.some(e=>e===`node_modules`||e===`generated`||e===`__tests__`))continue;let r=t[1];t.length>2&&r!==void 0&&!gi.has(r)&&n.add(r),e.startsWith(`src/screens/`)&&_i.test(e)&&(!bi.test(e)&&!vi.test(e)&&i(e,N.screenHome),yi.test(e)&&i(e,N.suffix)),e.startsWith(`src/assets/theme/`)&&!xi.test(e)&&i(e,N.theme),e.startsWith(`src/types/`)&&!e.endsWith(`.d.ts`)&&i(e,N.types)}let a=[];t.includes(`tsconfig.json`)||a.push({rule:`folder-layout`,file:`tsconfig.json`,line:1,message:Ci(`tsconfig.json`,N.tsconfig)});for(let[t,n]of r)ui(t)?a.push(...j(`folder-layout`,k(e,t),n)):a.push(...n.map(e=>({rule:`folder-layout`,file:t,line:e.line,message:e.message})));for(let r of n){let n={rule:`folder-layout`,file:`src/${r}`,line:1,message:Ci(`src/${r}`,N.folder)},i=Si.map(e=>`src/${r}/index${e}`).find(e=>t.includes(e));if(i===void 0)a.push(n);else for(let t of j(`folder-layout`,k(e,i),[{line:1,message:n.message}]))a.push(t.message===n.message?n:t)}return M(a)}function Ti(e,t){let n=O(t),r=ci(n),i=new Set(n),a=[];for(let t of n){if(t.startsWith(`src/screens/`)||t.startsWith(`src/navigation/`))continue;let n=k(e,t),o=[];for(let e of A(n)){let n=fi(i,t,e.specifier);n?.startsWith(`src/screens/`)&&n!==r&&o.push({line:e.line,message:`imports a screen folder from outside src/screens. react-native.md: hooks, utils and components never import screens.`})}a.push(...j(`import-into-screens`,n,o))}return M(a)}var Ei=`@webority/mobile-ui`,Di=40,Oi=/\{\s*\.\.\.(?:props|rest)\s*\}/,ki=[`lib/typescript/module/components/index.d.ts`,`lib/typescript/module/index.d.ts`],Ai=e=>`wraps mobile-ui ${e}. react-native.md: no restyle or pass-through wrapper; use ${e} directly, put house defaults in theme settings.`;function ji(e){let n=/* @__PURE__ */ new Set;for(let i of ki){let a=d(e,`node_modules`,`@webority`,`mobile-ui`,i);if(t(a))for(let e of r(a,`utf8`).matchAll(/export\s+(?!type\b)\{([^}]*)\}\s*from/g)){let t=e[1];if(t===void 0)throw TypeError(`export clause has no body`);for(let e of t.split(`,`)){let t=e.trim().split(/\s+as\s+/).pop();if(t===void 0)throw RangeError(`split always yields a part`);/^[\w$]+$/.test(t)&&n.add(t)}}}return n}function Mi(e){let t=/* @__PURE__ */ new Set;/\bexport\s+default\b/.test(e)&&t.add(`default`);for(let n of e.matchAll(/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Z][\w$]*)/g)){let e=n[1];if(e===void 0)throw TypeError(`export declaration has no name`);t.add(e)}for(let n of e.matchAll(/\bexport\s*\{([^}]*)\}/g)){let e=n[1];if(e===void 0)throw TypeError(`export clause has no body`);for(let n of e.split(`,`)){let e=n.trim().split(/\s+as\s+/).pop();if(e===void 0)throw RangeError(`split always yields a part`);(e==="default"||/^[A-Z][\w$]*$/.test(e))&&t.add(e)}}return t.size}function Ni(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e[r];if(i===`{`)n++;else if(i===`}`)n--;else if(i===`>`&&n===0)return e.slice(t,r+1)}return e.slice(t)}function Pi(e){if(li(e.text)>Di)return null;let t=/* @__PURE__ */ new Set;for(let n of A(e))if(!(n.kind!==`import`||n.specifier!==Ei&&!n.specifier.startsWith(`${Ei}/`)))for(let{name:e,local:r}of n.imported)e!==`*`&&t.add(r);if(t.size===0||Mi(e.blanked)!==1)return null;for(let n of e.blanked.matchAll(/(?:=>|\breturn)\s*\(?\s*<([A-Z][\w$]*)/g)){let r=n[1];if(r===void 0)throw TypeError(`component tag has no name`);if(!t.has(r))continue;let i=n.index+n[0].length-r.length-1;if(Oi.test(Ni(e.blanked,i)))return{name:r,line:e.lineAt(i)}}return null}function Fi(e,t){let n=ji(e),r=[];for(let i of O(t)){if(!i.startsWith(`src/`))continue;let t=k(e,i),a=[],o=/^App([A-Z][A-Za-z0-9]*)\.[jt]sx?$/.exec(c(i))?.[1];if(o&&n.has(o))a.push({line:1,message:Ai(o)});else{let e=Pi(t);e&&a.push({line:e.line,message:Ai(e.name)})}r.push(...j(`library-wrapper`,t,a))}return M(r)}var Ii=`@webority/mobile-ui`,Li=/* @__PURE__ */ new Set([`makeStyles`,`useTheme`,`ThemeProvider`]),Ri=/* @__PURE__ */ new Set([`COLORS`,`PALETTE`,`LIGHT_COLORS`,`DARK_COLORS`,`commonStyles`,`FONT_SIZE`,`Responsive`]),zi=/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Za-z_$][\w$]*)/g,Bi=/\bexport\s*\{([^}]*)\}/g,Vi=e=>`local theme ${e}. react-native.md: the library owns the theme; the app supplies brand and settings only.`;function Hi(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/`))continue;let t=k(e,r),i=[];for(let e of A(t))if(!(e.kind!==`import`||e.specifier===Ii||e.specifier.startsWith(`${Ii}/`)))for(let{name:t,local:n}of e.imported){let r=t==="default"?n:t;Li.has(r)&&i.push({line:e.line,message:Vi(r)})}for(let e of t.blanked.matchAll(zi)){let n=e[1];if(n===void 0)throw TypeError(`export declaration has no name`);Ri.has(n)&&i.push({line:t.lineAt(e.index),message:Vi(n)})}for(let e of t.blanked.matchAll(Bi)){let n=e[1];if(n===void 0)throw TypeError(`export clause has no body`);for(let r of n.split(`,`)){let n=r.trim().split(/\s+as\s+/).pop();if(n===void 0)throw RangeError(`split always yields a part`);Ri.has(n)&&i.push({line:t.lineAt(e.index),message:Vi(n)})}}n.push(...j(`local-theme`,t,i))}return M(n)}var Ui=/^(?:workspace:|file:|link:)/;function Wi(e){let t=d(e,`package.json`),n,i;try{n=r(t,`utf8`),i=JSON.parse(n)}catch{return[]}let a={...i.dependencies,...i.devDependencies},o=Object.keys(a).filter(e=>e.startsWith(`@webority/mobile-`)||e===`@webority/biome-config`).filter(e=>!Ui.test(String(a[e]))).sort().map(e=>[e,String(a[e]).replace(/^[\^~]/,``)]),s=o[0],c=s?o.find(([,e])=>e!==s[1]):void 0;if(!s||!c)return[];let l=n.split(`
83
+ `).findIndex(e=>e.includes(`"${s[0]}"`));return[{rule:`mobile-pins-lockstep`,file:`package.json`,line:l===-1?1:l+1,message:`pins ${s[0]}@${s[1]} and ${c[0]}@${c[1]}. react-native.md: the phone packages move together.`}]}var Gi=/* @__PURE__ */ new Set([`Text`,`TextInput`,`Pressable`,`TouchableOpacity`,`TouchableHighlight`,`TouchableWithoutFeedback`,`ActivityIndicator`,`Modal`,`Switch`,`Button`]),Ki=e=>`${e} from react-native in a screen or product component. react-native.md: use the mobile-ui part (Text, Input, Button, Card onPress, Spinner, Modal, Switch); mark a deliberate use with // layering-allow raw-primitive: <reason>.`;function qi(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/screens/`)&&!r.startsWith(`src/components/`))continue;let t=k(e,r),i=/* @__PURE__ */ new Set;for(let e of A(t))if(e.kind===`import`&&e.specifier===`react-native`)for(let{name:t,local:n}of e.imported)Gi.has(t)&&i.add(n);let a=[];for(let e of i){let n=RegExp(`(?<![\\w$)\\]])<${e.replace(/\$/g,`\\$`)}(?![\\w$.-])`,`g`);for(let r of t.blanked.matchAll(n))a.push({line:t.lineAt(r.index),message:Ki(e)})}n.push(...j(`raw-primitive`,t,a))}return M(n)}function Ji(e,t){let n=O(t),r=ci(n);if(r===null)return[];let i=new Set(n),a=/* @__PURE__ */ new Set;for(let t of A(k(e,r))){if(t.kind!==`export-from`)continue;let e=fi(i,r,t.specifier);e!==null&&a.add(e)}let o=[];for(let t of n){if(t===r||t.startsWith(`src/navigation/`))continue;let n=k(e,t),s=[];for(let e of A(n)){let n=fi(i,t,e.specifier);if(n!==null&&n!==t&&a.has(n)){let t=p.basename(n).replace(/\.[^.]+$/,``);s.push({line:e.line,message:`imports the route screen ${t}. react-native.md: share the form or part as a sibling file, never a screen.`})}}o.push(...j(`screen-imports-screen`,n,s))}return M(o)}var Yi=400,Xi=600;function Zi(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/screens/`))continue;let t=k(e,r),i=li(t.text),a=i>Yi?[{line:1,message:`${i} lines. react-native.md: split a screen over 400 lines; over 600 is a finding.`,note:i<=Xi}]:[];n.push(...j(`screen-length`,t,a))}return M(n)}var Qi=/(?:^|\/)index\.[jt]sx?$/,$i=/\.(?:stories\.[jt]sx?|meta\.js)$/,ea=e=>e.startsWith(`src/screens/`)&&!Qi.test(e),ta=e=>!Qi.test(e)&&!$i.test(e),na=e=>e.startsWith(`src/components/`)&&ta(e);function ra(e,t){let n=O(t),r=new Set(n),i=/* @__PURE__ */ new Map,a=t=>{let n=i.get(t);if(n!==void 0)return n;let r=k(e,t);return i.set(t,r),r},o=/* @__PURE__ */ new Map;for(let e of n){if(!e.startsWith(`src/components/`)||!Qi.test(e))continue;let t=/* @__PURE__ */ new Map,n=[];for(let i of A(a(e))){if(i.kind!==`export-from`)continue;let a=fi(r,e,i.specifier);if(a!==null)for(let{name:e,local:r}of i.imported)e===`*`&&r===`*`?n.push(a):t.set(r,a)}o.set(e,{named:t,star:n})}let s=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t.replace(/\$/g,`\\$`)}\\b|export\\s*\\{[^}]*\\b${t.replace(/\$/g,`\\$`)}\\b`).test(a(e).blanked),c=/* @__PURE__ */ new Map,l=(e,t)=>{if(e===t||!ta(t))return;let n=c.get(e);n||(n=/* @__PURE__ */ new Set,c.set(e,n)),n.add(t)};for(let e of n)for(let t of A(a(e))){if(t.kind===`export-from`)continue;let n=fi(r,e,t.specifier);if(n===null)continue;let i=o.get(n);if(!i)l(n,e);else for(let{name:n}of t.imported){let t=i.named.get(n)??i.star.find(e=>s(e,n));t&&l(t,e)}}let u=e=>{let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set([e]),r=[e];for(;r.length>0;){let e=r.pop();if(e===void 0)throw RangeError(`screensReached: pending is empty`);for(let i of c.get(e)??[])n.has(i)||(n.add(i),ea(i)?t.add(i):r.push(i))}return t},d=[];for(let e of n){if(!na(e))continue;let t=c.get(e)?.size??0,n=t===0||t===1&&u(e).size===1?[{line:1,message:`${e} has ${t} importer(s). react-native.md: a part one screen uses lives beside that screen.`}]:[];d.push(...j(`shared-single-importer`,a(e),n))}return M(d)}var ia=/(?<![\w$.])Responsive\s*\.\s*(?:width|height|font)\s*\(/g,aa=`scales by screen width. react-native.md: use theme.space and the text scale.`;function oa(e,t){let n=[];for(let r of O(t)){if(!r.startsWith(`src/`))continue;let t=k(e,r),i=[...t.blanked.matchAll(ia)].map(e=>({line:t.lineAt(e.index),message:aa}));n.push(...j(`width-scaling`,t,i))}return M(n)}var sa=[qi,hi,Ti,Ji,ra,Fi,Zi,Wi,wi,Hi,oa],ca=/* @__PURE__ */ new Set([`node_modules`,`android`,`ios`,`.git`]);function la(e,t=``){let n=[];for(let r of i(d(e,t),{withFileTypes:!0})){if(ca.has(r.name))continue;let i=t?`${t}/${r.name}`:r.name;r.isDirectory()?n.push(...la(e,i)):n.push(i)}return n}function ua(e){let t=la(e).sort(),n=[];for(let r of sa.flatMap(n=>n(e,t))){let e=`${r.file}:${r.line} ${r.message}`;r.note?console.log(`note: ${e}`):n.push([`${r.rule}:${r.file}`,e])}return n}var da=`@webority/mobile-`,fa=/^(\d+)\.(\d+)\.(\d+)$/,pa=/^(\d+)\.(\d+)\.(\d+)/,ma=/^(?:workspace:|file:|link:)/;function ha(e,t){let n=t.exec(e);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])]}function ga(e,t){let[n,r,i]=e,[a,o,s]=t;return n===a?r===o?i<s:r<o:n<a}function _a(e){let t;try{t=JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return/* @__PURE__ */ new Map}if(typeof t!=`object`||!t)return/* @__PURE__ */ new Map;let n=new Map(Object.entries(t)),i=/* @__PURE__ */ new Map;for(let e of[`dependencies`,`devDependencies`]){let t=n.get(e);if(typeof t==`object`&&t)for(let[e,n]of Object.entries(t))i.set(e,n)}return i}function va(e,t){let n=ha(t,fa);if(!n)throw Error(`webority-repo-checks: phone library version "${t}" is not x.y.z.`);let r=_a(e),i=[...r.keys()].filter(e=>e.startsWith(da)).sort(),a=[];for(let e of i){let i=r.get(e);if(typeof i!=`string`||ma.test(i))continue;let o=ha(i.replace(/^[\^~]/,``),pa);o&&ga(o,n)&&a.push([`mobile-library-pin:${e}`,`"${e}": "${i}" is behind the current phone library ${t}. Move every @webority/mobile-* pin to ${t} together. react-native.md: the phone packages move together.`])}return a}var ya=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`.git`,`.gradle`,`Pods`,`DerivedData`]);function ba(e,t){return i(e,{withFileTypes:!0}).flatMap(n=>n.isDirectory()?t.has(n.name)?[]:ba(d(e,n.name),t):[d(e,n.name)])}var xa=e=>e.split(`\\`).join(`/`);function Sa(e,t){return e.replace(t,e=>e.replace(/[^\n]/g,` `))}function Ca(e,t){return e.slice(0,t).split(`
84
+ `).length}var wa=/^MainActivity\.(?:kt|java)$/,Ta=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Ea(e){let n=d(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of ba(n,ya)){if(!wa.test(c(t)))continue;let n=Sa(Sa(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=Ta.exec(n);if(!a)continue;let o=xa(m(e,t));i.push([`rn-mainactivity-oncreate-bundle:${o}`,`${o}:${Ca(n,a.index)} passes a bundle to super.onCreate. react-native-toolchain.md → Android: super.onCreate(null): pass null, so Android does not restore stale Screen fragments after the OS kills the app, and register the splash screen before it.`])}return i}var Da=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Oa=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,ka=/^APP_ID=.*\.(staging|development)\s*$/m;function Aa(e){let n=[{file:d(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:Da},{file:d(e,`android`,`gradle.properties`),pattern:ka}],r=d(e,`ios`);if(t(r))for(let e of ba(r,ya))c(e)===`Expo.plist`&&n.push({file:e,pattern:Oa});return n.filter(({file:e})=>t(e))}function ja(e){let t=[];for(let{file:n,pattern:i}of Aa(e)){let a=xa(m(e,n)),o=r(n,`utf8`),s=i.exec(o);s&&t.push([`mobile-production-stamps:${a}`,`${a}:${Ca(o,s.index)} carries ${s[1]} values from a mobile-tools prebuild. Run \`mobile-tools prebuild --env Production\` in the app folder before committing, so production builds never read the ${s[1]} update feed or app id.`])}return t}var Ma=/^spa-host\..+\.json$/,Na=/* @__PURE__ */ new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function Pa(e){let t=[];for(let n of ba(e,/* @__PURE__ */ new Set([...ya,`android`,`ios`]))){let i=c(n);if(!Na.has(i)&&!Ma.test(i))continue;let a=Sa(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
85
+ `).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let o=xa(m(e,n));t.push([`spa-host-immutable-assets:${o}`,`${o}:${a+1} sets a Cache-Control with immutable. react.md → SPA deploy artifacts: /assets/* is "public, max-age=31536000" without immutable, because immutable on a content-hashed URL can brick that URL in the browser cache across a bad deploy.`])}return t}var Fa=Object.freeze([`spa-host.json`,`spa-host.Development.json`,`spa-host.Staging.json`,`spa-host.Production.json`]),Ia=Object.freeze([`vite.config.ts`,`vite.config.mts`,`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`]),La=/\.[cm]?js$/,Ra=/\btarget\s*:\s*(?:\[|["'](?:es\d|esnext|chrome|firefox|safari|edge|ios|node|modules|baseline))/;function za(e,t){let n=[e],r=e;for(;r!==t&&l(r)!==r;)r=l(r),n.push(r);return n}function Ba(e,n){let i=[];za(e,n).some(e=>t(d(e,`.nvmrc`)))||i.push([`root-file:nvmrc`,`No .nvmrc in this folder or above it. react.md, Node: commit .nvmrc with the supported Node major.`]);for(let n of Fa)t(d(e,n))||i.push([`root-file:${n}`,`${n} is missing beside package.json. react.md, SPA deploy artifacts: a portal carries spa-host.json and one spa-host.<Environment>.json per environment, as the starter does.`]);let a=Ia.find(n=>t(d(e,n)));if(a===void 0)return i;La.test(a)&&i.push([`root-file:vite-config-ts`,`${a} is JavaScript. react.md, Language: rename it to vite.config.ts.`]);let o=r(d(e,a),`utf8`);return o.includes(`codeSplitting`)||i.push([`root-file:split-groups`,`${a} has no build.rolldownOptions.output.codeSplitting groups. react.md, Build: split the framework and the design system into their own $initial chunks, as the starter's vite.config.ts does.`]),Ra.test(o)&&i.push([`root-file:build-target`,`${a} sets a build target. react.md, Build: remove build.target and keep Vite's default.`]),i}var Va=[[`eslint`,`react.md: Biome is the only lint and format tool`],[`@eslint/js`,`react.md: Biome is the only lint and format tool`],[`prettier`,`react.md: Biome is the only lint and format tool`],[`lint-staged`,`react.md: the shared pre-commit hook replaces lint-staged`]],Ha=[[`@typescript-eslint/`,`react.md: Biome is the only lint and format tool`],[`eslint-plugin-`,`react.md: Biome is the only lint and format tool`],[`eslint-config-`,`react.md: Biome is the only lint and format tool`],[`prettier-plugin-`,`react.md: Biome is the only lint and format tool`]],P=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,Ua=`react.md: Bootstrap 5.3.3 is the only UI framework`,Wa=`react.md: dates format through Intl and the web-core formatters`,Ga=`react-native.md: retired; Intl and the mobile-core formatters`,Ka={web:[...Va,[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,P],[`react-day-picker`,P],[`react-aria`,P],[`react-aria-components`,P],[`@webority/ui-elements`,`bootstrap-ui.md: products use the App* wrappers, and ui-react brings the elements itself`],[`crypto-js`,`react.md: stored tokens are never encrypted client-side`],[`tailwindcss`,Ua],[`antd`,Ua],[`styled-components`,`react.md: no CSS-in-JS`],[`bootstrap-icons`,`bootstrap-ui.md: icons are AppIcon from @webority/ui-react`],[`iconsax-react`,`ui-components.md: icons are AppIcon from @webority/ui-react`],[`moment`,Wa],[`moment-timezone`,Wa],[`dayjs`,Wa],[`date-fns`,Wa]],mobile:[...Va,[`react-native-permissions`,`react-native.md: retired; each Expo module requests its own permission`],[`moment`,Ga],[`moment-timezone`,Ga],[`dayjs`,Ga],[`react-native-fast-image`,`react-native.md: retired; expo-image`],[`@d11/react-native-fast-image`,`react-native.md: retired; expo-image`],[`formik`,`react-native.md: retired; react-hook-form`],[`yup`,`react-native.md: retired; zod with zodResolver`],[`react-native-status-bar-height`,`react-native.md: retired; react-native-safe-area-context insets`],[`react-native-flash-message`,`react-native.md: retired; the mobile-ui toast`],[`react-native-toast-message`,`react-native.md: retired; the mobile-ui toast`],[`prop-types`,`react-native.md: retired; defaults in the parameter destructure`],[`@react-navigation/stack`,`react-native.md: retired; @react-navigation/native-stack`],[`react-native-version-check`,`react-native.md: retired; the server-driven minimum version`],[`@react-native-firebase/messaging`,`react-native.md: push is expo-notifications through mobile-core`],[`@notifee/react-native`,`react-native.md: push is expo-notifications through mobile-core`],[`patch-package`,`react-native-toolchain.md: patch with pnpm patch, never patch-package`]],demo:[]},qa={web:[...Ha,[`@mui/`,Ua],[`@chakra-ui/`,Ua],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,P],[`@react-aria/`,P]],mobile:[...Ha],demo:[]},Ja={web:[[`axios-retry`,`@webority/web-core`,`react.md: retry lives only in @webority/web-core`]],mobile:[[`axios-retry`,`@webority/mobile-core`,`react.md: retry lives only in @webority/mobile-core`]],demo:[]},Ya={web:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/web-core`,`react.md: clients, auth, errors and logging come from web-core`],[`@webority/ui-react`,`react.md: App* components come from the catalogue`],[`@webority/theme`,`bootstrap-ui.md: look and tokens come from the shared theme`],[`bootstrap`,`bootstrap-ui.md: Bootstrap 5.3.3 on every surface`],[`react-bootstrap`,`bootstrap-ui.md: react-bootstrap is a dependency from project init`],[`sass-embedded`,`react.md: the SCSS compiler is sass-embedded`]],mobile:[[`@biomejs/biome`,`react-native.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/mobile-core`,`react-native.md: apps consume the shared mobile library`],[`@webority/mobile-ui`,`react-native.md: apps consume the shared mobile library`],[`@react-native-firebase/app`,`react-native.md: Crashlytics in every app`],[`@react-native-firebase/crashlytics`,`react-native.md: Crashlytics in every app`]],demo:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`]]},Xa=[`agentation`],Za=[[`web-import-axios`,/(?:\bfrom\s*|\bimport\s*\(\s*|\brequire\s*\(\s*|^\s*import\s*)["']axios(?:\/[^"']*)?["']/m,`imports axios`,`react.md: HTTP goes through userClient and publicClient from @webority/web-core`],[`web-import-router`,/\bimport\s*\{[^}]*\b(?:BrowserRouter|Routes)\b[^}]*\}\s*from\s*["']react-router(?:-dom)?["']/,`imports BrowserRouter or Routes`,`react.md: routes are objects passed to createBrowserRouter and rendered by RouterProvider`],[`web-import-env-branch`,/\bimport\.meta\.env\.(?:DEV|PROD)\b/,`reads import.meta.env.DEV or PROD`,`react.md: branch on AppSettings.ENVIRONMENT; DEV and PROD only say which React build is bundled`]],Qa=[[`web-import-axios-types`,/\b(?:import|export)\s+type\s[^;]*?\bfrom\s*["']axios(?:\/[^"']*)?["']/,`imports types from axios`,`react.md: import AxiosError, AxiosInstance, AxiosRequestConfig and AxiosResponse from @webority/web-core`]],$a=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],eo=`@webority/biome-config/biome.jsonc`,to={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`]},no=/* @__PURE__ */ `AppAccordion.AppAccountSwitcher.AppActionIcon.AppAlert.AppAsyncBlock.AppAuthLayout.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppCell.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorBoundary.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingButton.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLeadPopup.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.AppOrgTree.AppOtpInput.AppPageHeader.AppPhoneNumberInput.AppPopover.AppPricingCard.AppProgress.AppQrCode.AppRadio.AppRadioGroup.AppRating.AppRecordPager.AppRelativeTime.AppRepeater.AppRequiredMark.AppResizable.AppResizableHandle.AppResizablePanel.AppResourceCard.AppResult.AppRichText.AppRollingNumber.AppRouteError.AppScoreScale.AppScrollbar.AppSearch.AppSectionCallToAction.AppSectionFaq.AppSectionFeatures.AppSectionHero.AppSectionLeadCapture.AppSectionLogos.AppSectionPricing.AppSectionTestimonials.AppSegmented.AppSelect.AppSeoHead.AppShell.AppShortcutLegend.AppShowMore.AppSkeleton.AppSkeletonLines.AppSkeletonRows.AppSlider.AppSortableList.AppSparkline.AppSpinner.AppSplash.AppSplitButton.AppSplitView.AppStatusBadge.AppStepper.AppSwitch.AppTablePagination.AppTableToolbar.AppTabs.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),ro=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`,`advisory`,`endpoint-name`,`api-call`,`api-thunk`,`screen-service-import`,`build-typecheck`,`library-copy`,`mobile-library-pin`,`root-file`,`web-folder`,`web-import-axios-types`];function io(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!ro.includes(e)||n.includes(`all`)||n.includes(e)}var ao={version:`0.89.0`,css:{rename:[[`--color-primary-text`,`--color-on-primary`],[`--color-primary-ink`,`--color-primary-text`],[`--color-primary-hover-text`,`--color-on-primary`],[`--color-on-primary-ink`,`--color-on-primary`],[`--color-border-light`,`--color-border-subtle`],[`--color-focus-border`,`--color-field-border-focus`],[`--color-success-active`,`--color-success-pressed`],[`--color-success-10`,`--color-success-soft`],[`--color-success-30`,`--color-success-border`],[`--color-warning-active`,`--color-warning-pressed`],[`--color-warning-10`,`--color-warning-soft`],[`--color-warning-30`,`--color-warning-border`],[`--color-danger-active`,`--color-danger-pressed`],[`--color-danger-10`,`--color-danger-soft`],[`--color-danger-30`,`--color-danger-border`],[`--color-info-active`,`--color-info-pressed`],[`--color-info-10`,`--color-info-soft`],[`--color-info-30`,`--color-info-border`],[`--color-accent`,`--color-warning`],[`--color-accent-soft`,`--color-warning-soft`],[`--color-close-filter`,`--wui-close-filter`],[`--color-pressed-overlay`,`--wui-pressed-overlay`],[`--wui-chart-grid`,`--color-chart-grid`],[`--wui-chart-axis`,`--color-chart-axis`],[`--wui-chart-label`,`--color-chart-label`],[`--wui-shadow-overlay`,`--wui-shadow-popover`],[`--wui-shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-overlay`,`--wui-shadow-popover`],[`--shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-sm`,`--wui-shadow-card`],[`--shadow-md`,`--wui-shadow-card`],[`--shadow-lg`,`--wui-shadow-card`],[`--wui-shadow-card-lifted`,`--wui-card-shadow-lifted`],[`--wui-shadow-card-lifted-hover`,`--wui-card-shadow-lifted-hover`],[`--wui-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-shadow-thumb-hover`,`--wui-thumb-shadow-hover`],[`--radius-sm`,`--wui-radius-sm`],[`--radius`,`--wui-radius-md`],[`--radius-lg`,`--wui-radius-lg`],[`--radius-xl`,`--wui-radius-xl`],[`--wui-radius`,`--wui-radius-md`],[`--wui-control-height-sm`,`--wui-control-sm`],[`--wui-control-height`,`--wui-control-md`],[`--wui-control-height-lg`,`--wui-control-lg`],[`--wui-field-radius-sm`,`--wui-field-sm-radius`],[`--wui-field-radius`,`--wui-field-md-radius`],[`--wui-field-radius-lg`,`--wui-field-lg-radius`],[`--wui-ease-out-quart`,`--wui-ease-out`],[`--wui-font-body`,`--wui-font-ui`],[`--font-sans`,`--wui-font-ui`],[`--wui-fs-smb`,`--wui-fs-sm`],[`--wui-fs-48`,`--wui-fs-4xl`],[`--wui-fs-64`,`--wui-fs-5xl`]],reads:[[`--wui-chart-1`,`--color-chart-1`],[`--wui-chart-2`,`--color-chart-2`],[`--wui-chart-3`,`--color-chart-3`],[`--wui-chart-4`,`--color-chart-4`],[`--wui-chart-5`,`--color-chart-5`],[`--wui-chart-6`,`--color-chart-6`],[`--wui-chart-7`,`--color-chart-7`],[`--wui-chart-8`,`--color-chart-8`],[`--wui-chart-seq-0`,`--color-chart-seq-0`],[`--wui-chart-seq-1`,`--color-chart-seq-1`],[`--wui-chart-seq-2`,`--color-chart-seq-2`],[`--wui-chart-seq-3`,`--color-chart-seq-3`],[`--wui-chart-seq-4`,`--color-chart-seq-4`],[`--wui-chart-seq-5`,`--color-chart-seq-5`],[`--wui-chart-seq-6`,`--color-chart-seq-6`],[`--wui-chart-diverging-low`,`--color-chart-diverging-low`],[`--wui-chart-diverging-mid`,`--color-chart-diverging-mid`],[`--wui-chart-diverging-high`,`--color-chart-diverging-high`],[`--wui-chart-neutral`,`--color-chart-neutral`],[`--wui-dark-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-dark-shadow-thumb-hover`,`--wui-thumb-shadow-hover`]],choose:{"--color-on-status-fill":`Use the ink of the fill's tone: --color-on-success, --color-on-warning, --color-on-danger or --color-on-info.`,"--color-on-status-strong":`Use the ink of the strong fill's tone: --color-on-success-strong, --color-on-warning-strong, --color-on-danger-strong or --color-on-info-strong.`,"--color-success-5":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-20":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-50":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-warning-5":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-20":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-50":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-danger-5":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-20":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-50":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-info-5":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-20":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-50":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`},checkRole:[`--wui-shadow-popover`,`--wui-shadow-modal`],ownable:[`--color-accent`,`--color-accent-soft`,`--shadow-overlay`,`--shadow-overlay-lg`,`--shadow-sm`,`--shadow-md`,`--shadow-lg`,`--radius-sm`,`--radius`,`--radius-lg`,`--radius-xl`,`--font-sans`]},themeReads:[{kind:`path`,from:`colors.primaryHover`,to:`colors.primary-hover`},{kind:`path`,from:`colors.primaryPressed`,to:`colors.primary-pressed`},{kind:`path`,from:`colors.primaryMuted`,to:`colors.primary-soft`},{kind:`path`,from:`colors.secondaryHover`,to:`colors.neutral-hover`},{kind:`path`,from:`colors.secondary`,to:`colors.neutral`},{kind:`path`,from:`colors.error`,to:`colors.danger`},{kind:`path`,from:`colors.onPrimary`,to:`colors.on-primary`},{kind:`path`,from:`colors.onNeutral`,to:`colors.on-neutral-strong`},{kind:`path`,from:`colors.onSecondary`,to:`colors.on-neutral`},{kind:`path`,from:`colors.onSuccess`,to:`colors.on-success`},{kind:`path`,from:`colors.onWarning`,to:`colors.on-warning`},{kind:`path`,from:`colors.onError`,to:`colors.on-danger`},{kind:`path`,from:`colors.onInfo`,to:`colors.on-info`},{kind:`path`,from:`colors.onOverlay`,to:`colors.on-scrim`},{kind:`path`,from:`colors.toneText.primary`,to:`colors.primary-text`},{kind:`path`,from:`colors.toneText.success`,to:`colors.success-text`},{kind:`path`,from:`colors.toneText.warning`,to:`colors.warning-text`},{kind:`path`,from:`colors.toneText.error`,to:`colors.danger-text`},{kind:`path`,from:`colors.toneText.info`,to:`colors.info-text`},{kind:`path`,from:`colors.text.primary`,to:`colors.text-body`},{kind:`path`,from:`colors.text.secondary`,to:`colors.text-muted`},{kind:`path`,from:`colors.text.tertiary`,to:`colors.text-subtle`},{kind:`path`,from:`colors.text.inverse`,to:`colors.text-inverse`},{kind:`path`,from:`colors.text.strong`,to:`colors.text`},{kind:`path`,from:`colors.text.disabled`,to:`colors.text-disabled`},{kind:`path`,from:`colors.text.link`,to:`colors.link`},{kind:`path`,from:`colors.background.primary`,to:`colors.bg`},{kind:`path`,from:`colors.background.secondary`,to:`colors.bg-subtle`},{kind:`path`,from:`colors.background.tertiary`,to:`colors.bg-muted`},{kind:`path`,from:`colors.background.elevated`,to:`colors.surface`},{kind:`path`,from:`colors.background.overlay`,to:`colors.scrim`},{kind:`path`,from:`colors.background.inverse`,to:`colors.surface-inverse`},{kind:`path`,from:`colors.border.primary`,to:`colors.border`},{kind:`path`,from:`colors.border.secondary`,to:`colors.border-subtle`},{kind:`path`,from:`colors.border.focus`,to:`colors.focus-ring`},{kind:`path`,from:`colors.border.error`,to:`colors.danger-border`},{kind:`path`,from:`colors.border.width`,to:`size.border`},{kind:`path`,from:`colors.field.backgroundFocused`,to:`colors.field-bg-focus`},{kind:`path`,from:`colors.field.backgroundDisabled`,to:`colors.field-bg-disabled`},{kind:`path`,from:`colors.field.background`,to:`colors.field-bg`},{kind:`path`,from:`colors.field.borderFocused`,to:`colors.field-border-focus`},{kind:`path`,from:`colors.field.borderError`,to:`colors.field-border-error`},{kind:`path`,from:`colors.field.border`,to:`colors.field-border`},{kind:`path`,from:`colors.field.label`,to:`colors.field-label`},{kind:`path`,from:`colors.field.textDisabled`,to:`colors.field-text-disabled`},{kind:`path`,from:`colors.field.text`,to:`colors.field-text`},{kind:`path`,from:`colors.field.placeholderDisabled`,to:`colors.field-placeholder-disabled`},{kind:`path`,from:`colors.field.placeholder`,to:`colors.field-placeholder`},{kind:`path`,from:`colors.field.iconFocused`,to:`colors.field-icon-focus`},{kind:`path`,from:`colors.field.iconDisabled`,to:`colors.field-icon-disabled`},{kind:`path`,from:`colors.field.icon`,to:`colors.field-icon`},{kind:`path`,from:`colors.field.caret`,to:`colors.field-caret`},{kind:`path`,from:`colors.field.message`,to:`colors.field-message`},{kind:`path`,from:`colors.surface.pressed`,to:`colors.surface-pressed`},{kind:`path`,from:`colors.surface.hovered`,to:`colors.surface-hover`},{kind:`path`,from:`colors.surface.selected`,to:`colors.surface-selected`},{kind:`path`,from:`colors.surface.disabled`,to:`colors.surface-disabled`},{kind:`path`,from:`colors.glass.fill`,to:`colors.glass-fill`},{kind:`path`,from:`colors.glass.border`,to:`colors.glass-border`},{kind:`path`,from:`colors.glass.on`,to:`colors.on-glass`},{kind:`path`,from:`colors.glass.badge`,to:`colors.glass-badge`},{kind:`path`,from:`colors.skeleton.background`,to:`colors.skeleton`},{kind:`path`,from:`colors.skeleton.highlight`,to:`colors.skeleton-highlight`},{kind:`gone`,from:`colors.avatarPalette`,hint:"read colors[`avatar-${n}`] for n 1 to 8"},{kind:`path`,from:`typography.fontFamily.regular`,to:`font.ui.normal`},{kind:`path`,from:`typography.fontFamily.medium`,to:`font.ui.medium`},{kind:`path`,from:`typography.fontFamily.semibold`,to:`font.ui.semibold`},{kind:`path`,from:`typography.fontFamily.bold`,to:`font.ui.bold`},{kind:`gone`,from:`typography.fontFamily.display`,hint:`font.display is a face per weight: font.display.<weight>`},{kind:`prefix`,from:`typography.fontSize.`,to:`text.`},{kind:`prefix`,from:`typography.fontWeight.`,to:`weight.`},{kind:`prefix`,from:`typography.lineHeight.`,to:`leading.`},{kind:`prefix`,from:`typography.letterSpacing.`,to:`letter-spacing.`},{kind:`prefix`,from:`spacing.`,to:`space.`},{kind:`path`,from:`shadows.sm`,to:`shadow.card`},{kind:`path`,from:`shadows.md`,to:`shadow.elevated`},{kind:`path`,from:`shadows.lg`,to:`shadow.popover`},{kind:`path`,from:`shadows.xl`,to:`shadow.modal`},{kind:`gone`,from:`shadows.xs`,hint:`use shadow.card`},{kind:`gone`,from:`shadows.2xl`,hint:`use shadow.modal`},{kind:`gone`,from:`shadows.none`,hint:`omit the shadow`},{kind:`path`,from:`motion.duration.normal`,to:`motion.duration.default`},{kind:`path`,from:`motion.easing.standard`,to:`motion.ease.in-out`},{kind:`prefix`,from:`motion.easing.`,to:`motion.ease.`},{kind:`prefix`,from:`icons`,to:`settings.icons`},{kind:`prefix`,from:`gradients`,to:`settings.gradients`},{kind:`prefix`,from:`textVariants`,to:`settings.textVariants`},{kind:`path`,from:`maxFontSizeMultiplier`,to:`settings.maxFontSizeMultiplier`},{kind:`path`,from:`components.field.defaultVariant`,to:`settings.components.field.defaultVariant`},{kind:`path`,from:`components.field.requiredMarker`,to:`settings.components.field.requiredMarker`},{kind:`path`,from:`components.input.defaultVariant`,to:`settings.components.input.defaultVariant`},{kind:`path`,from:`components.input.defaultLabelMode`,to:`settings.components.input.defaultLabelMode`},{kind:`path`,from:`components.input.tintLabelOnFocus`,to:`settings.components.input.tintLabelOnFocus`},{kind:`path`,from:`components.input.shakeOnError`,to:`settings.components.input.shakeOnError`},{kind:`path`,from:`components.searchBar.defaultVariant`,to:`settings.components.search-bar.defaultVariant`},{kind:`path`,from:`components.select.defaultVariant`,to:`settings.components.select.defaultVariant`},{kind:`path`,from:`components.otpInput.shakeOnError`,to:`settings.components.otp-input.shakeOnError`},{kind:`path`,from:`components.optionSheet.selectedMarker`,to:`settings.components.option-sheet.selectedMarker`},{kind:`path`,from:`components.profilePicker.defaultTone`,to:`settings.components.profile-picker.defaultTone`},{kind:`path`,from:`components.profilePicker.defaultVariant`,to:`settings.components.profile-picker.defaultVariant`},{kind:`path`,from:`components.profilePicker.defaultAvatarTone`,to:`settings.components.profile-picker.defaultAvatarTone`},{kind:`path`,from:`components.slider.thumbPressAnimation`,to:`settings.components.slider.thumbPressAnimation`},{kind:`path`,from:`components.rating.pulseOnPress`,to:`settings.components.rating.pulseOnPress`},{kind:`path`,from:`components.stepper.pulseAnimation`,to:`settings.components.stepper.pulseAnimation`},{kind:`path`,from:`components.tooltip.enableScaleAnimation`,to:`settings.components.tooltip.enableScaleAnimation`},{kind:`path`,from:`components.toast.enableSwipeDismiss`,to:`settings.components.toast.enableSwipeDismiss`},{kind:`path`,from:`components.toast.defaultDurationMs`,to:`settings.components.toast.defaultDurationMs`},{kind:`gone`,from:`components.field.outlined`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.filled`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.underline`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.textColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.disabledTextColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.placeholderColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.fontWeight`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.requiredMarkerColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.input.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.handleColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.switch.thumbColor`,hint:`the thumb reads colors.thumb`},{kind:`gone`,from:`components.slider.thumbPressScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelShowDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeDismissThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackScaleStep`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackMinScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconCircleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonMarginLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.containerPaddingLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.textBlockPaddingRight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.formField.inlineLabelWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressDelayMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressIntervalMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateLoopDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.determinateAnimationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.animationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.strokeWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.trackColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.colorStops`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.rating.pulseScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomSheet.handleColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.selectedFillOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.thumbnailSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.dashedBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeIconColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.inlineSelect.color`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillMaxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillInset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.underlineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingMargin`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleLift`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.viewTransitionDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerPressDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerReleaseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.decadeRangeMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.hapticDebounceMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontSizeRatio`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.text`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontWeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.accordion.cardPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.sideSlotMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.collapseTranslateDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.subtitleMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.actionButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dividerWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgePaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.closeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.maxScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.minScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.doubleTapScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.modal.scaleStartValue`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.circleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.threshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.fullSwipeThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.rubberBandFactor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.failOffsetY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.haloWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.connectorGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.gap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.screenPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.pressAutoHideMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHalfWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowCornerPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.maxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.lineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.exitDurationMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.segmentedControl.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tabs.radius`,hint:`fixed in the library since 0.89.0`},{kind:`kebab`,under:`components`,names:{searchBar:`search-bar`,emptyState:`empty-state`,listItem:`list-item`,otpInput:`otp-input`,segmentedControl:`segmented-control`,floatingActionButton:`floating-action-button`}}],props:[{package:`@webority/mobile-ui`,props:[`tone`,`variant`],from:`error`,to:`danger`}],componentProps:[],propValues:[{package:`@webority/ui-react`,components:[`AppInput`,`AppSelect`,`AppCountrySelect`],prop:`floatingLabel`,true:`border`,false:`off`}],propSplits:[{package:`@webority/ui-react`,components:[`AppInput`],prop:`passwordRequirements`,on:`shown`,off:`off`,into:`passwordPolicy`}],razorAttributes:[{tags:[`app-input`,`app-select`,`app-country-select`],attribute:`floating-label`,values:{true:`border`,false:`off`}},{tags:[`app-input`],attribute:`password-requirements`,values:{true:`shown`,false:`off`}}]},oo=`--color-primary-text`,so=new Set([...ao.css.rename.map(([e])=>e),...ao.css.reads.map(([e])=>e),...Object.keys(ao.css.choose)].filter(e=>e!==oo)),co=RegExp(`(?<![\\w-])(${[...so].join(`|`)})(?![\\w-])`,`g`),lo=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),uo=/* @__PURE__ */ new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),fo=(e,t)=>lo.has(e)||e===`lib`&&c(t)===`wwwroot`,po=e=>uo.has(u(e).toLowerCase());function mo(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=d(e,n.name);n.isDirectory()?fo(n.name,e)||mo(r,t):po(n.name)&&t.push(r)}return t}function ho(e,t){for(let n=l(e);n.length>t.length;n=l(n))if(fo(c(n),l(n)))return!0;return!1}function go(e){let n=v(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&po(e)).map(t=>d(e,t.split(`/`).join(g))).filter(n=>!ho(n,e)&&t(n)):mo(e)}function _o(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function vo(e,t){let n=[];for(let i of go(e)){let e=r(i,`utf8`),a=[],o=-1;for(let t of e.matchAll(co)){let e=t[1]??``;o<0&&(o=t.index),a.includes(e)||a.push(e)}if(a.length===0)continue;let s=m(t,i).split(`\\`).join(`/`),c=e.slice(0,o).split(`
86
+ `).length;n.push([`stale-theme-name:${s}`,`${s}:${c} reads pre-0.89.0 theme names (${_o(a)}). Run webority upgrade 0.89.0 --path <folder> once for the product's style and source folders, then webority brand; no alias for the old names is shipped.`])}return n}var yo=`tracked-case`;function bo(e,t){let n=/* @__PURE__ */ new Map,r=t=>{let r=n.get(t);if(r===void 0){try{r=new Set(i(d(e,t)))}catch{r=/* @__PURE__ */ new Set}n.set(t,r)}return r},a=/* @__PURE__ */ new Set,o=[];for(let e of t){let t=e.split(`/`),n=`.`;for(let e=0;e<t.length;e++){let i=t[e]??``,s=r(n);if(s.has(i)){n=n===`.`?i:`${n}/${i}`;continue}let c=i.toLowerCase(),l=[...s].find(e=>e.toLowerCase()===c);if(l!==void 0){let n=t.slice(0,e+1).join(`/`);if(!a.has(n)){a.add(n);let r=[...t.slice(0,e),l].join(`/`);o.push([`${yo}:${n}`,`tracked as ${n} but on disk as ${r}; a Linux checkout cannot find the import. Run git mv "${n}" "${r}" so git records the rename.`])}}break}}return o}function xo(e){let t=[];return So(d(e,`src`,`components`,`base`))&&t.push([`web-folder:components/base`,`src/components/base/ exists. react.md, Folder layout: never a components/base/ folder; primitives come from @webority/ui-react and the root ErrorBoundary from @webority/web-core. Import those and delete the folder.`]),So(d(e,`src`,`components`,`features`))&&t.push([`web-folder:components/features`,`src/components/features/ is a flat catch-all. react.md, Folder layout: components/<feature>/ holds a component two or more screens of one feature share; move each component to components/<feature>/, or into its screen's file when one screen uses it.`]),t}function So(e){return o(e,{throwIfNoEntry:!1})?.isDirectory()===!0}function Co(){let e=JSON.parse(r(new URL(`../package.json`,import.meta.url),`utf8`)),t=typeof e==`object`&&e&&`version`in e?e.version:void 0;if(typeof t!=`string`)throw Error(`webority-repo-checks: its own package.json has no version.`);return t}var F=e=>e.split(`\\`).join(`/`),wo=(e,t)=>F(m(e,t))||`.`;function I(e){return typeof e==`object`&&!!e}function To(e){return I(e)&&Object.values(e).every(e=>typeof e==`string`)}var Eo=[`name`,`main`,`module`,`source`,`packageManager`],Do=[`dependencies`,`devDependencies`,`peerDependencies`],Oo=[`name`,`version`,`onFail`];function ko(e,t){let n=e=>{throw Error(`webority-repo-checks: ${t} has a ${e} of the wrong type. Fix the file, then run the checks again.`)};if(!I(e))return n(`top level`);let r={};for(let t of Eo){let i=e[t];if(i!==void 0){if(typeof i!=`string`)return n(t);r[t]=i}}for(let t of Do){let i=e[t];if(i!==void 0){if(!To(i))return n(t);r[t]=i}}let i=e.exports;if(i!==void 0){if(typeof i!=`string`&&!I(i))return n(`exports`);r.exports=i}let a=e.devEngines;if(a!==void 0){if(!I(a))return n(`devEngines`);let e=a.packageManager;if(e===void 0)r.devEngines={};else{if(!I(e))return n(`devEngines.packageManager`);let t={};for(let r of Oo){let i=e[r];if(i!==void 0){if(typeof i!=`string`)return n(`devEngines.packageManager.${r}`);t[r]=i}}r.devEngines={packageManager:t}}}return r}function Ao(e){if(!t(e))return null;let n;try{n=JSON.parse(r(e,`utf8`))}catch(t){let n=t instanceof Error?t.message:String(t);throw Error(`webority-repo-checks: ${e} is not valid JSON (${n}). Fix the file, then run the checks again.`)}return ko(n,e)}function jo(e,t){let n=v(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout:null}function Mo(e){let t=jo(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function L(e,t){let n=jo(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function No(e){let t=jo(e,[`ls-files`,`-z`]);return t?t.split(`\0`).filter(Boolean):[]}function Po(e,n){let r=e?.dependencies??{};if(Xa.some(e=>r[e]))return null;let i=n&&(t(d(n,`android`))||t(d(n,`ios`)));return r[`react-native`]&&i?`mobile`:r[`react-dom`]&&(e?.devDependencies?.[`react-native-web`]||r[`react-native-web`])?`demo`:r[`react-native`]?`mobile`:r[`react-dom`]?`web`:null}var Fo=/^https:\/\/\S+-\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?\.(?:tgz|tar\.gz)$/,Io=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e)||Fo.test(e),Lo=/* @__PURE__ */ new Set([`@biomejs/biome`,`@webority/biome-config`]),Ro=e=>/^(?:workspace:|file:|link:)/.test(e);function zo(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of Ka[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of qa[t])for(let t of a.filter(t=>t.startsWith(e)))r.push([`banned:${t}`,`"${t}" is a dependency. ${n}.`]);for(let[e,n,a]of Ja[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of Ya[t])(Lo.has(e)?n:i)[e]||r.push([`required:${e}`,`"${e}" is not a dependency. ${a}.`]);let o=t===`mobile`?a:a.filter(e=>e.startsWith(`@webority/`)||e===`bootstrap`);for(let e of o){let t=String(i[e]);Io(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}for(let e of $a){let t=e.filter(e=>i[e]&&!Ro(String(i[e])));if(new Set(t.map(e=>String(i[e]).replace(/^[\^~]/,``))).size>1){let n=t.map(e=>`${e}@${i[e]}`).join(`, `);r.push([`lockstep:${e[0]}`,`${n} differ. These publish together at one version; move every pin in the set together.`])}}return r}function R(e,n,r){let i=e;for(;;){for(let e of r)if(t(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function Bo(e,t){let n=e,i=null;for(;;){let e=R(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=l(e);let a;try{a=jt(r(e,`utf8`))}catch{return i}let o=l(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function Vo(e,t,n){let r=Bo(e,t),i=r&&r!==e?Ao(d(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function Ho(e,n){let i=[],a=R(e,n,[`pnpm-lock.yaml`]);a||i.push([`pnpm:no-lockfile`,`No pnpm-lock.yaml in this folder or above it. react.md: every JS repo installs with pnpm.`]);let o=a?l(a):e,s=Ao(d(o,`package.json`))??Ao(d(e,`package.json`)),c=s?.devEngines?.packageManager;c?.name===`pnpm`&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.onFail===`error`||i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]),s?.packageManager!==void 0&&i.push([`pnpm:package-manager`,`package.json sets "packageManager", which pnpm ignores beside devEngines. Move its version into devEngines.packageManager.version and delete it. react.md: Package manager.`]);let u=d(o,`pnpm-workspace.yaml`);if(!t(u))i.push([`pnpm:no-workspace-file`,`No pnpm-workspace.yaml beside the lockfile. react.md: it holds engineStrict, strictPeerDependencies and allowBuilds.`]);else{let e=r(u,`utf8`);/^engineStrict:\s*true\s*$/m.test(e)||i.push([`pnpm:engine-strict`,`pnpm-workspace.yaml lacks engineStrict: true. react.md: a Node mismatch must fail the install.`]),/^strictPeerDependencies:\s*true\s*$/m.test(e)||i.push([`pnpm:strict-peers`,`pnpm-workspace.yaml lacks strictPeerDependencies: true. react.md: a peer conflict must fail the install.`])}for(let n of[`package-lock.json`,`yarn.lock`])t(d(e,n))&&i.push([`pnpm:${n}`,`${n} sits in this folder. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]);return i}function Uo(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=[`index.js`,`index.jsx`,`index.ts`,`index.tsx`].map(e=>F(m(t,d(n,e))));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[e.includes??[]].flat().some(e=>!String(e).startsWith(`!`)&&i.some(t=>f(t,String(e)))))}function Wo(e,t,n){let i=R(e,t,[`biome.json`,`biome.jsonc`]);if(!i)return[[`biome:missing`,`No biome.json in this folder or above it. react.md: one committed root biome.json.`]];let a;try{a=jt(r(i,`utf8`))}catch{return[[`biome:unreadable`,`${c(i)} does not parse.`]]}let o=[];return[a.extends??[]].flat().some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`biome-config/biome.jsonc`))||o.push([`biome:extends`,`${c(i)} does not extend "${eo}". react.md: every repo extends the shared preset.`]),a.formatter?.lineEnding&&o.push([`biome:line-ending`,`${c(i)} sets formatter.lineEnding. react.md: inherit it from the shared preset, never set it.`]),a.linter?.rules&&Object.keys(a.linter.rules).length>0&&o.push([`biome:root-rules`,`${c(i)} sets linter.rules at the root. react.md: never a rule's severity at the root; a per-path exception goes in overrides.`]),n===`mobile`&&!Uo(a,l(i),e,`__DEV__`)&&o.push([`biome:dev-global`,`${c(i)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),o}var Go=d(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function Ko(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(d(t,n)),a=1;for(let t=0;t<(e.span[0]??0);t++)i[t]===10&&a++;return a}function qo(e){try{return a(e)}catch{return null}}function Jo(e,t,n){let r=n.split(`/`),i=n.startsWith(`@`)?r.slice(0,2).join(`/`):r[0]??``,a=n.slice(i.length)?`.${n.slice(i.length)}`:`.`,o=R(e,t,[d(`node_modules`,i)]),s=o&&qo(o);if(!s)return null;let c=Ao(d(s,`package.json`));if(!c)return null;let l=(typeof c.exports==`string`?{".":c.exports}:c.exports)?.[a]??(a===`.`?c.module??c.main:null);if(I(l)&&(l=l.import??l.default),typeof l!=`string`)return null;let u=a===`.`&&typeof c.source==`string`?c.source:l.replace(Yo,`src/`);return{pkgDir:s,entry:d(s,l),sourcePath:d(s,u),workspace:Xo(t,s)}}var Yo=/^(?:\.\/)?(?:dist|lib|build)\//;function Xo(e,t){let n;try{n=a(t)}catch{return!1}let r=m(a(e),n);return!r.startsWith(`..`)&&!r.split(/[\\/]/).includes(`node_modules`)}function Zo(e){try{return o(e).isFile()}catch{return!1}}var Qo=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`],$o=[`index.ts`,`index.tsx`,`index.js`,`index.jsx`,`index.mjs`];function es(e){let t=e.replace(/\.(?:[cm]?jsx?|tsx?)$/,``);return[e,...Qo.map(e=>t+e),...$o.map(t=>d(e,t))].find(Zo)??null}function ts(e){return e?e.workspace?es(e.sourcePath):e.entry:null}function ns(e,t,n,r){let i=Jo(e,t,n);if(!i)return!1;let a=/* @__PURE__ */ new Set,o=ts(i);return o===null||os(o,r,t,a)}function rs(e,t,n,r){let i=cs(l(t),n);return i!==null&&os(i,r,e,/* @__PURE__ */ new Set)}var is=/\bexport\s*(?:(\*)(?:\s*as\s+([\w$]+))?|\{([^}]*)\})(?:\s*from\s*["']([^"']+)["'])?/g,as=[``,`.js`,`.mjs`,`.cjs`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.mjs`,`/index.jsx`,`/index.ts`,`/index.tsx`];function os(e,t,n,i){if(i.has(e))return!1;i.add(e);let a;try{a=r(e,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${t}\\b`).test(a)||t==="default"&&/\bexport\s+default\b/.test(a)||RegExp(`\\b(?:module\\.)?exports\\.${t}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${t}["']|\\bget\\s+${t}\\s*\\(`).test(a))return!0;for(let[,r,o,s,c]of a.matchAll(is))if(r){if(o===t||o===void 0&&c!==void 0&&ss(e,c,t,n,i))return!0}else if(s!==void 0)for(let r of s.split(`,`)){let[a=``,o]=r.trim().replace(/^type\s+/,``).split(/\s+as\s+/);if((o??a)===t&&(c===void 0||ss(e,c,a,n,i)))return!0}return!1}function ss(e,t,n,r,i){let a=t.startsWith(`.`)?cs(l(e),t):ts(Jo(l(e),r,t));return a!==null&&os(a,n,r,i)}function cs(e,t){let n=d(e,t);for(let e of as)if(o(n+e,{throwIfNoEntry:!1})?.isFile())return n+e;return null}function ls(e,n){let r=R(e,n,[Go]);if(!r)return[];let i=t(d(e,`src`))?`src`:`.`,a=v(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0}),o=us(a.stdout??``);if(o===null)return[[`missing-export:unreadable`,`Biome's report could not be read: ${String(a.stderr||a.stdout||``).slice(0,200)}`]];let s=/* @__PURE__ */ new Map;for(let t of o){let r=String(t.message??``);if(!r.includes(`has no export named`))continue;let i=r.match(/^The (?:path|module) (\S+) has no export named (\w+)/);if(!i){s.set(`unreadable`,[`missing-export:unreadable`,`Biome reported a missing export in a form this check cannot read: ${r.slice(0,200)}`]);continue}let a=i[1]??``,o=i[2]??``;if((Object.hasOwn(to,a)?to[a]:void 0)?.includes(o))continue;let c=h(e,String(t.location?.path));if(a.startsWith(`.`)?rs(n,c,a,o):ns(e,n,a,o))continue;let l=F(m(e,c)),u=Ko(t.location??{},e,l),d=u?`${l}:${u}`:l,f=`missing-export:${l}`,p=`${d} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${f}\0${p}`,[f,p])}return[...s.values()]}function us(e){try{let t=JSON.parse(e);return!I(t)||!Array.isArray(t.diagnostics)?null:t.diagnostics}catch{return null}}function ds(e){let t=d(e,`node_modules`,`@webority`,`ui-react`);try{let e=d(t,`package.json`),n=ko(JSON.parse(r(e,`utf8`)),e),i=typeof n.module==`string`?n.module:typeof n.main==`string`?n.main:`dist/index.js`,a=r(d(t,i),`utf8`),o=new Set([...a.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(o.size>0)return o}catch(e){if(fs(e)!==`ENOENT`)throw e}return new Set(no)}function fs(e){return I(e)?e.code:void 0}function ps(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?ps(d(e,t.name)):[d(e,t.name)])}function ms(e){try{return JSON.parse(r(d(e,`package.json`),`utf8`)).name===`@webority/ui-root`}catch{return!1}}function hs(e){let n=d(e,`src`);if(!t(n))return[];let r=ds(e),i=[];for(let t of ps(n)){if(![`.jsx`,`.tsx`].includes(u(t)))continue;let n=c(t).split(`.`)[0]??``;if(r.has(n)){let r=F(m(e,t));i.push([`catalogue-copy:${r}`,`${r} is named like the @webority/ui-react export ${n}. bootstrap-ui.md: use the catalogue component, never a local copy.`])}}return i}var gs=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,_s=/throw\s+new\s+GradleException\s*\(/,vs=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function ys(e){let n=[],i=d(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);gs.test(e)&&_s.test(e)||n.push([`android-release-signing`,`android/app/build.gradle has no release signing guard. react-native-toolchain.md: when a requested task name contains "release", throw a GradleException that names each missing signing setting, and never sign a release with the debug key.`])}let a=d(e,`android`,`gradle.properties`);return t(a)&&vs.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}var bs=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]),xs=/\b(?:import|export)\s+type\s+(?:\{[^}]*\}|\*(?:\s+as\s+[\w$]+)?|[\w$]+)\s+from\s*["'][^"']*["']/g;function Ss(e,n){let i=d(e,`src`);if(!t(i))return[];let a=[];for(let t of ps(i)){if(!bs.has(u(t).toLowerCase())||et(F(m(n,t)),n))continue;let i=r(t,`utf8`).split(`
81
87
  `).map(e=>/^\s*(?:\/\/|\/\*|\*)/.test(e)?``:e).join(`
82
- `),o=F(m(e,t));for(let[e,t,n,r]of Wi)t.test(i)&&a.push([`${e}:${o}`,`${o} ${n}. ${r}.`])}return a}var no=`.husky/pre-commit`,ro=[`library`,`tool`],io=`.webority/settings.json`;function ao(e){let n=d(e,io);if(t(n)&&!ro.includes(JSON.parse(r(n,`utf8`)).kind))return[];let i=d(e,no),a=t(i)?r(i,`utf8`).replace(/\r\n/g,`
88
+ `),o=i.replace(xs,``),s=F(m(e,t));for(let[e,t,n,r]of Za)t.test(o)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`]);for(let[e,t,n,r]of Qa)t.test(i)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`])}return a}var Cs=`.husky/pre-commit`,ws=[`library`,`tool`],Ts=`.webority/settings.json`;function Es(e){let n=d(e,Ts);if(t(n)&&!ws.includes(JSON.parse(r(n,`utf8`)).kind))return[];let i=d(e,Cs),a=t(i)?r(i,`utf8`).replace(/\r\n/g,`
83
89
  `):null;return a===`# Fast only. The expensive verification is \`corepack pnpm check\`, run by hand before pushing
84
90
  # (CLAUDE.md -> Before pushing). A slow pre-commit gets bypassed within a day, and a hook people bypass is worse than none because
85
91
  # it manufactures confidence without providing it.
@@ -134,8 +140,8 @@ local_checks="$(git rev-parse --show-toplevel)/.husky/pre-commit.local"
134
140
  if [ -f "$local_checks" ]; then
135
141
  sh "$local_checks" || exit 1
136
142
  fi
137
- `?[]:[[`hook:drift`,`${no} ${a===null?`is missing`:`differs from the shared hook`}. Run pnpm exec webority-repo-checks --sync-hook from the git root; repo-only steps go in .husky/pre-commit.local.`]]}function oo(e,n=null,r={}){let i=n?new Set(n.map(t=>fa(e,t))):null,a=[],o=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0];a.push({pkg:e,id:n,message:r,...Xi(t)?{}:{warning:!0}})}};(!i||i.has(`.`))&&o(`.`,[...ao(e),...da(e,ha(e))]);for(let n of L(e,[`package-lock.json`,`yarn.lock`])){if(!t(d(e,n)))continue;let r=F(l(n))||`.`;(!i||i.has(r))&&o(r,[[`pnpm:${c(n)}`,`${c(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let s=new Set(L(e,[`package.json`]).map(t=>fa(e,d(e,l(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)));for(let n of i??[])t(d(e,n,`package.json`))&&s.add(n);let u=Ja(e),f=/* @__PURE__ */ new Set;for(let t of s){if(i&&!i.has(t))continue;let n=d(e,t),r=I(d(n,`package.json`)),s=ga(r,n),c=()=>u&&(t.startsWith(`packages/`)||t.startsWith(`samples/`))?[]:Ya(n);if(!s){({...r.dependencies,...r.devDependencies,...r.peerDependencies})[`@webority/ui-react`]&&o(t,c());continue}let l=R(n,e,[`pnpm-lock.yaml`]);l&&f.add(l);let p=wa(n,e).filter(([e])=>!a.some(n=>n.pkg===t&&n.id===e));o(t,[...xa(r,s,Ca(n,e,{...r.dependencies,...r.devDependencies})),...p,...Ea(n,e,s),...s===`demo`?[]:Ga(n,e),...s===`mobile`?[...$a(n),...Ti(n),...Ai(n)]:[],...s===`mobile`&&!t.startsWith(`samples/`)?[...vi(n),...kt(n)]:[],...s===`web`?[...c(),...to(n,e),...Ni(n),...la(n,e)]:[],...s===`mobile`||s===`web`?ct(n):[],...ft(n,R(n,e,[Da]))])}if(r.advisories===!0)for(let t of f){let n=l(t);for(let t of Ze(n,{run:r.auditRun})){let r=t.warning||!Xi(`advisory`);a.push({pkg:fa(e,n),id:t.id,message:t.message,...r?{warning:!0}:{}})}}return a}var so=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,co=`A list item needs a Canvas key from its record (data-canvas on web, testID on phone), never its index. canvas-kit ids proposes them.`,lo=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,uo=/<([A-Za-z][\w$.:-]*)/g,fo=/\{\s*\.\.\./y,po=/* @__PURE__ */ new Set([`Fragment`,`React.Fragment`]),mo=/\.(?:Screen|Group)$/,ho=/=>/g,go=/\bfunction\b/g,_o=/\breturn\b/y;function vo(e){return e?He.phone:He.web}var yo=/\bexport\s+default\s+(?:function\s+([A-Z][\w$]*)|(?:React\.)?(?:memo|forwardRef)\(\s*(?:function\s+)?([A-Z][\w$]*)|([A-Z][\w$]*)\s*;?\s*$)/m;function bo(e,{phone:t}){let n=So(e),r=wo(n,RegExp(`(?<![\\w-])${vo(t)}\\s*=`),{spreadCounts:!1}),i=/* @__PURE__ */ new Set;for(let e of r)RegExp(`\\bexport\\s+(?:const|function)\\s+${e}\\b|\\bexport\\s*\\{[^}]*\\b${e}\\b`).test(n)&&i.add(e);let a=yo.exec(n),o=a&&(a[1]??a[2]??a[3]);return o&&r.has(o)&&i.add(`default`),i}function xo(e,{phone:t,keyedImports:n=/* @__PURE__ */ new Set}){if(!so.test(e))return[];let r=vo(t),i=RegExp(`(?<![\\w-])${r}\\s*=`),a=RegExp(`(?<![\\w-])${r}\\s*=\\s*(["'])`),o=So(e),s=e.split(`
138
- `),c=Fo(e),l=[],u=(e,t,n)=>{let r=Io(c,e);l.push({rule:t,line:r,text:(s[r-1]??``).trim().slice(0,160),hint:n})},d=wo(o,i);for(let e of o.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,r=No(o,t),a=To(o,t+1,r);if(!a||mo.test(a.name))continue;let s=Po(o,a.nameEnd);s.spread||i.test(s.top)||d.has(a.name)||n.has(a.name)||u(a.index,`missing-canvas-key`,co)}let f=/* @__PURE__ */ new Map,p=z(o,0);for(;p;){let t=Po(o,p.nameEnd),n=a.exec(t.top);if(n){let r=n[1],i=n.index+n[0].length,a=t.top.indexOf(r,i);if(a!==-1){let n=e.slice(t.from+i,t.from+a),r=f.get(n)??[];r.push(p.index),f.set(n,r)}}p=z(o,p.nameEnd)}for(let e of f.values())for(let t of e.slice(1))u(t,`repeated-canvas-key`,lo);return l.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),l}function So(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e[r],a=e[r+1];if(i===`/`&&a===`/`)for(;r<n&&e[r]!==`
143
+ `?[]:[[`hook:drift`,`${Cs} ${a===null?`is missing`:`differs from the shared hook`}. Run pnpm exec webority-repo-checks --sync-hook from the git root; repo-only steps go in .husky/pre-commit.local.`]]}var Ds=/* @__PURE__ */ `lint.missing-export.stale-theme-name.advisory.raw-measure.palette-read.raw-colour.root-font-size.raw-motion.dark-read.missing-canvas-key.repeated-canvas-key.raw-bootstrap.library-class-restyle.rename-wrapper.shadowed-library-name.single-use-component.error-summary-title.route-internal-id.razor-page-handler.razor-page-link.web-route-literal.api-thunk.screen-service-import.api-call.oversize`.split(`.`);function Os(e,n=null,r={}){let i=n?new Set(n.map(t=>wo(e,t))):null,a=[],o=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0]??``;a.push({pkg:e,id:n,message:r,...io(t)?{}:{warning:!0}})}};(!i||i.has(`.`))&&o(`.`,[...Es(e),...bo(e,No(e))]);for(let n of L(e,[`package-lock.json`,`yarn.lock`])){if(!t(d(e,n)))continue;let r=F(l(n))||`.`;(!i||i.has(r))&&o(r,[[`pnpm:${c(n)}`,`${c(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let s=new Set(L(e,[`package.json`]).map(t=>wo(e,d(e,l(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)));for(let n of i??[])t(d(e,n,`package.json`))&&s.add(n);let u=r.build===!0,f=ms(e),p=/* @__PURE__ */ new Set;for(let t of s){if(i&&!i.has(t))continue;let n=d(e,t),r=Ao(d(n,`package.json`));if(r===null)throw Error(`webority-repo-checks: ${t}/package.json is missing.`);let s=Po(r,n),c=()=>f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`))?[]:hs(n),l=!(f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`)));if(!s){({...r.dependencies,...r.devDependencies,...r.peerDependencies})[`@webority/ui-react`]&&o(t,c());continue}let m=R(n,e,[`pnpm-lock.yaml`]);m&&p.add(m);let h=Ho(n,e).filter(([e])=>!a.some(n=>n.pkg===t&&n.id===e));o(t,[...zo(r,s,Vo(n,e,{...r.dependencies,...r.devDependencies})),...h,...Wo(n,e,s),...s===`demo`||u?[]:ls(n,e),...s===`mobile`?[...ys(n),...Ea(n),...ja(n)]:[],...s===`mobile`&&!t.startsWith(`samples/`)?[...ua(n),...gn(n),...va(n,Co())]:[],...s===`web`?[...c(),...Ss(n,e),...Pa(n),...l?[...Me(n),...qt(n),...Ba(n,e),...xo(n)]:[],...u?[]:vo(n,e)]:[],...s===`mobile`||s===`web`?kt(n):[],...s===`mobile`||s===`web`?Te(n):[],...u?[]:Yt(n,R(n,e,[Go]))])}if(r.advisories===!0&&!u)for(let t of p){let n=l(t);for(let t of vt(n,{run:r.auditRun})){let r=t.warning||!io(`advisory`);a.push({pkg:wo(e,n),id:t.id,message:t.message,...r?{warning:!0}:{}})}}return a}var ks=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,As=`A list item needs a Canvas key from its record (data-canvas on web, testID on phone), never its index. canvas-kit ids proposes them.`,js=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,Ms=/<([A-Za-z][\w$.:-]*)/g,Ns=/\{\s*\.\.\./y,Ps=/* @__PURE__ */ new Set([`Fragment`,`React.Fragment`]),Fs=/\.(?:Screen|Group)$/,Is=/=>/g,Ls=/\bfunction\b/g,Rs=/\breturn\b/y;function zs(e){return e?lt.phone:lt.web}var Bs=/\bexport\s+default\s+(?:function\s+([A-Z][\w$]*)|(?:React\.)?(?:memo|forwardRef)\(\s*(?:function\s+)?([A-Z][\w$]*)|([A-Z][\w$]*)\s*;?\s*$)/m;function Vs(e,{phone:t}){let n=Us(e),r=Gs(n,RegExp(`(?<![\\w-])${zs(t)}\\s*=`),{spreadCounts:!1}),i=/* @__PURE__ */ new Set;for(let e of r)RegExp(`\\bexport\\s+(?:const|function)\\s+${e}\\b|\\bexport\\s*\\{[^}]*\\b${e}\\b`).test(n)&&i.add(e);let a=Bs.exec(n),o=a&&(a[1]??a[2]??a[3]);return o&&r.has(o)&&i.add(`default`),i}function Hs(e,{phone:t,keyedImports:n=/* @__PURE__ */ new Set}){if(!ks.test(e))return[];let r=zs(t),i=RegExp(`(?<![\\w-])${r}\\s*=`),a=RegExp(`(?<![\\w-])${r}\\s*=\\s*(["'])`),o=Us(e),s=e.split(`
144
+ `),c=ic(e),l=[],u=(e,t,n)=>{let r=ac(c,e);l.push({rule:t,line:r,text:(s[r-1]??``).trim().slice(0,160),hint:n})},d=Gs(o,i);for(let e of o.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,r=ec(o,t),a=Ks(o,t+1,r);if(!a||Fs.test(a.name))continue;let s=rc(o,a.nameEnd);s.spread||i.test(s.top)||d.has(a.name)||n.has(a.name)||u(a.index,`missing-canvas-key`,As)}let f=/* @__PURE__ */ new Map,p=z(o,0);for(;p;){let t=rc(o,p.nameEnd),n=a.exec(t.top);if(n){let r=n[1]??``,i=n.index+n[0].length,a=t.top.indexOf(r,i);if(a!==-1){let n=e.slice(t.from+i,t.from+a),r=f.get(n)??[];r.push(p.index),f.set(n,r)}}p=z(o,p.nameEnd)}for(let e of f.values())for(let t of e.slice(1))u(t,`repeated-canvas-key`,js);return l.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),l}function Us(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e[r]??``,a=e[r+1];if(i===`/`&&a===`/`)for(;r<n&&e[r]!==`
139
145
  `;)t.push(` `),r++;else if(i===`/`&&a===`*`){for(t.push(` `,` `),r+=2;r<n&&(e[r]!==`*`||e[r+1]!==`/`);)t.push(e[r]===`
140
146
  `?`
141
147
  `:` `),r++;r<n&&(t.push(` `,` `),r+=2)}else if(i===`'`||i===`"`){for(t.push(i),r++;r<n&&e[r]!==i&&e[r]!==`
@@ -143,24 +149,36 @@ fi
143
149
  `?(t.push(` `,` `),r+=2):(t.push(` `),r++);r<n&&e[r]===i&&(t.push(i),r++)}else if(i==="`"){for(t.push(i),r++;r<n&&e[r]!=="`";)e[r]===`\\`&&r+1<n&&e[r+1]!==`
144
150
  `?(t.push(` `,` `),r+=2):(t.push(e[r]===`
145
151
  `?`
146
- `:` `),r++);r<n&&(t.push("`"),r++)}else t.push(i),r++}return t.join(``)}var Co=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function wo(e,t,{spreadCounts:n=!0}={}){let r=/* @__PURE__ */ new Set;for(let i of e.matchAll(Co)){let a=z(e,i.index+i[0].length);for(;a&&po.has(a.name);)a=z(e,a.nameEnd);if(!a)continue;let o=Po(e,a.nameEnd);(n&&o.spread||t.test(o.top))&&r.add(i[1]??i[2])}return r}function To(e,t,n){let r=Eo(e,t,n);if(!r.block)return jo(e,r.start,n);let i=Do(e,r.start,n);for(let t=0;t<i.length;t++){let r=t+1<i.length?i[t+1]:n,a=jo(e,i[t],r);if(a)return a}return null}function Eo(e,t,n){ho.lastIndex=t;let r=ho.exec(e);go.lastIndex=t;let i=go.exec(e),a=r&&r.index<n?r.index:-1,o=i&&i.index<n?i.index:-1;if(o!==-1&&(a===-1||o<a)){let r=e.indexOf(`(`,o),i=r===-1?-1:e.indexOf(`{`,Ao(e,r));return i===-1||i>=n?{start:t,block:!1}:{start:i+1,block:!0}}if(a===-1)return{start:t,block:!1};let s=a+2;for(;s<n&&/\s/.test(e[s]);)s++;return e[s]===`{`?{start:s+1,block:!0}:{start:s,block:!1}}function Do(e,t,n){let r=[],i=t;for(;i<n;){let t=e[i];if(t===`{`&&Oo(e,i))i=ko(e,i)+1;else if(_o.lastIndex=i,t===`r`&&_o.test(e)){let t=i+6;for(;t<n&&(e[t]===` `||e[t]===` `);)t++;t<n&&!`;
147
- \r})`.includes(e[t])&&r.push(t),i=t}else i++}return r}function Oo(e,t){let n=t-1;for(;n>=0&&/\s/.test(e[n]);)n--;if(n>=1&&e[n]===`>`&&e[n-1]===`=`)return!0;if(e[n]!==`)`)return!1;let r=0;for(;n>=0;n--)if(e[n]===`)`)r++;else if(e[n]===`(`&&--r===0)break;let i=e.slice(Math.max(0,n-80),n);return/\bfunction\b(?:\s+[\w$]+)?\s*$/.test(i)}function ko(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`{`)n++;else if(e[r]===`}`&&--n===0)return r;return e.length}function Ao(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&--n===0)return r;return e.length}function jo(e,t,n){let r=z(e,t);for(;r&&r.index<n&&po.has(r.name);)r=z(e,r.nameEnd);return!r||r.index>=n||Mo(e,t,r.index)>0?null:r}function Mo(e,t,n){let r=0;for(let i=t;i<n;i++)e[i]===`{`?r++:e[i]===`}`&&r>0&&r--;return r}function No(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;return e.length}function z(e,t){uo.lastIndex=t;let n=uo.exec(e);return n?{index:n.index,name:n[1],nameEnd:n.index+n[0].length}:null}function Po(e,t){let n=0,r=``,i=!1,a=t;for(;a<e.length;a++){let t=e[a];if(n===0&&t===`>`)break;n===0?(t===`{`&&(fo.lastIndex=a,fo.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function Fo(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
148
- `&&t.push(n+1);return t}function Io(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>1;e[i]<=t?n=i+1:r=i-1}return r+1}var Lo=[`.js`,`.jsx`,`.ts`,`.tsx`],Ro=/\.(?:js|jsx|ts|tsx)$/,zo=/(?:^|\/)index\.[jt]sx?$/,Bo=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,Vo=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,Ho=/"([^"\\\n]*)"/g,Uo=new RegExp(String.raw`\b(?:${`TopbarEndPartial`})\s*=\s*"(_[^"\\\n]*)"`,`g`),Wo=/^_[\w.-]+$/,Go=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,Ko=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,qo=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,Jo=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,Yo=/(?:^|\/)_ViewStart\.cshtml$/,Xo=/\bLayout\s*=\s*"([^"]+)"/g,Zo=/(?:^|\/)_[^/]*Layout\.cshtml$/,Qo=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function $o(e,n){let i=new Set(n),a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map,u=t=>(c.has(t)||c.set(t,D(e,t)),c.get(t)),f=/* @__PURE__ */ new Map,m=e=>{if(!zo.test(e))return null;if(!f.has(e)){let t=/* @__PURE__ */ new Map,n=[];for(let r of O(u(e))){if(r.kind!==`export-from`)continue;let a=ts(e,r.specifier,i);if(a!==null)for(let{name:e,local:i}of r.imported)e===`*`&&i===`*`?n.push(a):t.set(i,a)}f.set(e,{named:t,star:n})}return f.get(e)},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(u(e).blanked);for(let e of n)if(Ro.test(e)&&!Bo.test(e))for(let t of O(u(e))){let n=ts(e,t.specifier,i);if(n===null)continue;let r=t.kind===`export-from`?null:m(n);if(!r){t.kind===`export-from`&&zo.test(e)||B(a,n,e);continue}B(a,n,e);let o=t.imported.filter(({name:e})=>e!==`*`),s=o.length===t.imported.length&&o.length>0?o.map(({name:e})=>r.named.get(e)??r.star.find(t=>h(t,e))):[...r.named.values(),...r.star];for(let t of s)B(a,t??null,e)}let g=/* @__PURE__ */ new Set;for(let t of n){if(!Ro.test(t)&&!t.endsWith(`.cshtml`))continue;let n=es(r(d(e,t),`utf8`));for(let e of n.matchAll(Vo)){let n=(e[1]??e[2]??e[3]).split(`/`).pop().replace(/\.cshtml$/,``);B(o,n,t),Zo.test(t)&&g.add(n)}}let _=L(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(d(e,n)));for(let t of _){let n=r(d(e,t),`utf8`);if(t.endsWith(`.cs`)){let e=es(n);for(let t of e.matchAll(Uo))g.add(t[1]);for(let n of e.matchAll(Ho)){let e=n[1].split(`/`).pop().replace(/\.cshtml$/,``);Wo.test(e)&&B(o,e,t)}}else for(let e of n.matchAll(Go))B(s,p.normalize(p.join(l(t),e[1].replace(/\\/g,`/`))),t)}let v=new Set(_.filter(e=>e.endsWith(`.csproj`)).map(e=>p.dirname(e))),y=/* @__PURE__ */ new Map;for(let t of n){if(!Yo.test(t))continue;let n=es(r(d(e,t),`utf8`));for(let e of n.matchAll(Xo))B(y,os(t,v),e[1].split(`/`).pop().replace(/\.cshtml$/,``))}let b=[];for(let e of n){if(!Ro.test(e)||!is(e))continue;let t=ns(a,e,e),n=t>=2||t===1&&as(a,e),r=`used by ${t} other file${t===1?``:`s`}`;for(let t of A(`single-use-component`,u(e),n?[]:[{line:1,message:r}]))b.push({rule:`single-use-component`,file:e,line:1,text:t.message,hint:t.message===r?`move it next to the page that uses it`:null})}for(let t of n){let n=qo.exec(t);if(!n)continue;let i=ss(r(d(e,t),`utf8`));i===``&&b.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let a=Zo.test(t)||g.has(n[1])||(y.get(os(t,v))?.has(n[1])??!1);i||a||rs(b,t,ns(o,n[1],t))}for(let e of _)e.endsWith(`.csproj`)&&Jo.test(e)&&rs(b,e,ns(s,e,e));return b}function es(e){return e.split(`
152
+ `:` `),r++);r<n&&(t.push("`"),r++)}else t.push(i),r++}return t.join(``)}var Ws=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function Gs(e,t,{spreadCounts:n=!0}={}){let r=/* @__PURE__ */ new Set;for(let i of e.matchAll(Ws)){let a=z(e,i.index+i[0].length);for(;a&&Ps.has(a.name);)a=z(e,a.nameEnd);if(!a)continue;let o=rc(e,a.nameEnd);(n&&o.spread||t.test(o.top))&&r.add(i[1]??i[2]??``)}return r}function Ks(e,t,n){let r=qs(e,t,n);if(!r.block)return Qs(e,r.start,n);let i=Js(e,r.start,n);for(let t=0;t<i.length;t++){let r=t+1<i.length?i[t+1]??n:n,a=Qs(e,i[t]??n,r);if(a)return a}return null}function qs(e,t,n){Is.lastIndex=t;let r=Is.exec(e);Ls.lastIndex=t;let i=Ls.exec(e),a=r&&r.index<n?r.index:-1,o=i&&i.index<n?i.index:-1;if(o!==-1&&(a===-1||o<a)){let r=e.indexOf(`(`,o),i=r===-1?-1:e.indexOf(`{`,Zs(e,r));return i===-1||i>=n?{start:t,block:!1}:{start:i+1,block:!0}}if(a===-1)return{start:t,block:!1};let s=a+2;for(;s<n&&/\s/.test(e[s]??``);)s++;return e[s]===`{`?{start:s+1,block:!0}:{start:s,block:!1}}function Js(e,t,n){let r=[],i=t;for(;i<n;){let t=e[i]??``;if(t===`{`&&Ys(e,i))i=Xs(e,i)+1;else if(Rs.lastIndex=i,t===`r`&&Rs.test(e)){let t=i+6;for(;t<n&&(e[t]===` `||e[t]===` `);)t++;t<n&&!`;
153
+ \r})`.includes(e[t]??``)&&r.push(t),i=t}else i++}return r}function Ys(e,t){let n=t-1;for(;n>=0&&/\s/.test(e[n]??``);)n--;if(n>=1&&e[n]===`>`&&e[n-1]===`=`)return!0;if(e[n]!==`)`)return!1;let r=0;for(;n>=0;n--)if(e[n]===`)`)r++;else if(e[n]===`(`&&--r===0)break;let i=e.slice(Math.max(0,n-80),n);return/\bfunction\b(?:\s+[\w$]+)?\s*$/.test(i)}function Xs(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`{`)n++;else if(e[r]===`}`&&--n===0)return r;return e.length}function Zs(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&--n===0)return r;return e.length}function Qs(e,t,n){let r=z(e,t);for(;r&&r.index<n&&Ps.has(r.name);)r=z(e,r.nameEnd);return!r||r.index>=n||$s(e,t,r.index)>0?null:r}function $s(e,t,n){let r=0;for(let i=t;i<n;i++)e[i]===`{`?r++:e[i]===`}`&&r>0&&r--;return r}function ec(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;return e.length}function*tc(e,t){Ms.lastIndex=t;for(let t=Ms.exec(e);t;t=Ms.exec(e))nc(e,t.index)||(yield{index:t.index,name:t[1]??``,nameEnd:t.index+t[0].length})}function z(e,t){for(let n of tc(e,t))return n;return null}function nc(e,t){return/[\w$.)\]]/.test(e.charAt(t-1))}function rc(e,t){let n=0,r=``,i=!1,a=t;for(;a<e.length;a++){let t=e[a]??``;if(n===0&&t===`>`)break;n===0?(t===`{`&&(Ns.lastIndex=a,Ns.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function ic(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
154
+ `&&t.push(n+1);return t}function ac(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>1;(e[i]??0)<=t?n=i+1:r=i-1}return r+1}var oc=[`.js`,`.jsx`,`.ts`,`.tsx`],sc=/\.(?:js|jsx|ts|tsx)$/,cc=/(?:^|\/)index\.[jt]sx?$/,lc=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,uc=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,dc=/"([^"\\\n]*)"/g,fc=new RegExp(String.raw`\b(?:${`TopbarEndPartial`})\s*=\s*"(_[^"\\\n]*)"`,`g`),pc=/^_[\w.-]+$/,mc=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,hc=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,gc=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,_c=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,vc=/(?:^|\/)_ViewStart\.cshtml$/,yc=/\bLayout\s*=\s*"([^"]+)"/g,bc=/(?:^|\/)_[^/]*Layout\.cshtml$/,xc=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function Sc(e,n){let i=new Set(n),a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map,u=t=>{let n=c.get(t);if(n)return n;let r=k(e,t);return c.set(t,r),r},f=/* @__PURE__ */ new Map,m=e=>{if(!cc.test(e))return null;let t=f.get(e);if(t)return t;let n=/* @__PURE__ */ new Map,r=[];for(let t of A(u(e))){if(t.kind!==`export-from`)continue;let a=Tc(e,t.specifier,i);if(a!==null)for(let{name:e,local:i}of t.imported)e===`*`&&i===`*`?r.push(a):n.set(i,a)}let a={named:n,star:r};return f.set(e,a),a},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(u(e).blanked);for(let e of n)if(sc.test(e)&&!lc.test(e))for(let t of A(u(e))){let n=Tc(e,t.specifier,i);if(n===null)continue;let r=t.kind===`export-from`?null:m(n);if(!r){t.kind===`export-from`&&cc.test(e)||B(a,n,e);continue}B(a,n,e);let o=t.imported.filter(({name:e})=>e!==`*`),s=o.length===t.imported.length&&o.length>0?o.map(({name:e})=>r.named.get(e)??r.star.find(t=>h(t,e))):[...r.named.values(),...r.star];for(let t of s)B(a,t??null,e)}let g=/* @__PURE__ */ new Set;for(let t of n){if(!sc.test(t)&&!t.endsWith(`.cshtml`))continue;let n=Cc(r(d(e,t),`utf8`));for(let e of n.matchAll(uc)){let n=wc(e[1]??e[2]??e[3]??``);B(o,n,t),bc.test(t)&&g.add(n)}}let _=L(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(d(e,n)));for(let t of _){let n=r(d(e,t),`utf8`);if(t.endsWith(`.cs`)){let e=Cc(n);for(let t of e.matchAll(fc))t[1]!==void 0&&g.add(t[1]);for(let n of e.matchAll(dc)){let e=wc(n[1]??``);pc.test(e)&&B(o,e,t)}}else for(let e of n.matchAll(mc))B(s,p.normalize(p.join(l(t),(e[1]??``).replace(/\\/g,`/`))),t)}let v=new Set(_.filter(e=>e.endsWith(`.csproj`)).map(e=>p.dirname(e))),y=/* @__PURE__ */ new Map;for(let t of n){if(!vc.test(t))continue;let n=Cc(r(d(e,t),`utf8`));for(let e of n.matchAll(yc))B(y,Ac(t,v),wc(e[1]??``))}let b=[];for(let e of n){if(!sc.test(e)||!Oc(e))continue;let t=Ec(a,e,e),n=t>=2||t===1&&kc(a,e),r=`used by ${t} other file${t===1?``:`s`}`;for(let t of j(`single-use-component`,u(e),n?[]:[{line:1,message:r}]))b.push({rule:`single-use-component`,file:e,line:1,text:t.message,hint:t.message===r?`move it next to the page that uses it`:null})}for(let t of n){let n=gc.exec(t);if(!n)continue;let i=n[1]??``,a=jc(r(d(e,t),`utf8`));a===``&&b.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let s=bc.test(t)||g.has(i)||(y.get(Ac(t,v))?.has(i)??!1);a||s||Dc(b,t,Ec(o,i,t))}for(let e of _)e.endsWith(`.csproj`)&&_c.test(e)&&Dc(b,e,Ec(s,e,e));return b}function Cc(e){return e.split(`
149
155
  `).filter(e=>!/^\s*(?:\/\/|\/\*|\*)/.test(e)).join(`
150
- `)}function ts(e,t,n){let r;if(t.startsWith(`@/`)){let n=e.startsWith(`src/`)?0:e.indexOf(`/src/`)+1;if(n===0&&!e.startsWith(`src/`))return null;r=`${e.slice(0,n)}src/${t.slice(2)}`}else if(t.startsWith(`.`))r=p.normalize(p.join(p.dirname(e),t));else return null;return[r,...Lo.map(e=>r+e),...Lo.map(e=>p.join(r,`index${e}`))].find(e=>n.has(e))??null}function B(e,t,n){t!==null&&(e.has(t)||e.set(t,/* @__PURE__ */ new Set),e.get(t).add(n))}function ns(e,t,n){return[...e.get(t)??/* @__PURE__ */ new Set].filter(e=>e!==n).length}function rs(e,t,n){n>=2||e.push({rule:`single-use-component`,file:t,line:1,text:`used by ${n} other file${n===1?``:`s`}`,hint:`move it next to the page that uses it`})}function is(e){let t=Ko.exec(e);return t!==null&&t[1]!==`layout`&&!zo.test(e)&&!Bo.test(e)}function as(e,t){let n=[...e.get(t)??[]].filter(e=>e!==t);return n.length===1&&is(n[0])&&ns(e,n[0],n[0])>=2}function os(e,t){let n=p.dirname(e);for(;n!==`.`&&!t.has(n);)n=p.dirname(n);return n}function ss(e){let t=Qo.exec(e.split(`
151
- `,1)[0]);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var cs=`error-summary-title`,ls=/<app-error-summary(?=[\s/>])/g,us=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,ds=/please\s+(fix|correct)|(fix|correct)\s+the\s+following|the\s+following\s+(errors?|problems?|issues?)|there\s+(is|are|was|were)\s+(an?\s+|some\s+)?(errors?|problems?)/i;function fs(e,t){let n=null;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=null);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return e.length}function ps(e){let t=C(e,`markup`),n=e.split(`
152
- `),r=[];for(let e of t.matchAll(ls)){let i=us.exec(t.slice(e.index,fs(t,e.index)));if(!i)continue;let a=i[1]??i[2];if(a.includes(`@`)||!ds.test(a))continue;let o=t.slice(0,e.index).split(`
153
- `).length;r.push({rule:cs,line:o,text:(n[o-1]??``).trim().slice(0,160),hint:`drop the title: the library error summary writes the standard heading`})}return r}var ms=/\.([A-Za-z_][\w-]*)/g,hs=/[^\s>+~,]+/g,gs=/^\s*(?:,|$)/;function*_s(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e[n];r===`{`?(yield{text:e.slice(t,n),index:t},t=n+1):(r===`}`||r===`;`)&&(t=n+1)}}function vs(e,t,n){let r=C(e,t),i=e.split(`
154
- `),a=[];for(let e of _s(r)){let t=ys(e.text,n);if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
155
- `).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t.name}; use a library prop or token, or a product class`})}return a}function ys(e,t){for(let n of e.matchAll(hs))if(gs.test(e.slice(n.index+n[0].length))){for(let e of n[0].matchAll(ms))if(t.has(e[1]))return{index:n.index+e.index,name:e[1]}}return null}var bs=/*#__PURE__*/ JSON.parse(`["accordion","accordion-body","accordion-button","accordion-collapse","accordion-flush","accordion-header","accordion-item","alert","alert-accent","alert-action","alert-borderless","alert-content","alert-danger","alert-dark","alert-dismissible","alert-has-action","alert-has-icon","alert-heading","alert-icon","alert-icon-image","alert-info","alert-lg","alert-light","alert-link","alert-neutral","alert-primary","alert-secondary","alert-sm","alert-stack","alert-success","alert-warning","app-content","app-footer","app-main","app-nav-badge","app-nav-caret","app-nav-group","app-nav-group-label","app-nav-icon","app-nav-item","app-nav-sub","app-nav-sub-inner","app-nav-subitem","app-nav-text","app-nav-trailing","app-phone-number-input","app-popover","app-scrim","app-shell","app-sidebar","app-sidebar-brand","app-sidebar-brand-text","app-sidebar-foot","app-sidebar-scroll","app-sidebar-start","app-sidebar-start-compact","app-sidebar-toggle","app-tab","app-tab-count","app-tab-icon","app-tab-img","app-tab-indicator","app-tabs","app-tabs-fitted","app-tabs-group","app-tabs-lg","app-tabs-pills","app-tabs-scroll-btn","app-tabs-sm","app-tabs-vertical","app-tabs-wrap","app-topbar","app-topbar-end","app-topbar-menu","app-topbar-start","badge","badge-danger","badge-dot","badge-info","badge-primary","badge-success","badge-warning","breadcrumb","breadcrumb-item","btn","btn-anim-expand","btn-anim-fill","btn-anim-glow","btn-anim-none","btn-anim-roll","btn-anim-sheen","btn-check","btn-close","btn-close-white","btn-danger","btn-dark","btn-ghost-danger","btn-ghost-info","btn-ghost-neutral","btn-ghost-primary","btn-ghost-success","btn-ghost-warning","btn-glass","btn-group","btn-group-lg","btn-group-sm","btn-group-vertical","btn-icon","btn-info","btn-lg","btn-light","btn-link","btn-link-danger","btn-link-info","btn-link-neutral","btn-link-primary","btn-link-success","btn-link-warning","btn-neutral","btn-outline-danger","btn-outline-dark","btn-outline-info","btn-outline-light","btn-outline-neutral","btn-outline-primary","btn-outline-secondary","btn-outline-success","btn-outline-warning","btn-pill","btn-pill-sm","btn-primary","btn-radius-xl","btn-secondary","btn-sm","btn-soft-danger","btn-soft-info","btn-soft-neutral","btn-soft-primary","btn-soft-success","btn-soft-warning","btn-static","btn-success","btn-toolbar","btn-warning","card","card-accent","card-body","card-clickable","card-close","card-compact","card-constrained","card-divided","card-elevated","card-flush","card-footer","card-group","card-header","card-header-actions","card-header-icon","card-header-main","card-header-pills","card-header-tabs","card-header-titles","card-img","card-img-bottom","card-img-overlay","card-img-top","card-lifted","card-link","card-media","card-muted","card-outlined","card-pad-lg","card-pad-none","card-pad-sm","card-subtitle","card-text","card-title","dropdown","dropdown-center","dropdown-divider","dropdown-header","dropdown-item","dropdown-item-text","dropdown-menu","dropdown-menu-dark","dropdown-menu-end","dropdown-menu-lg-end","dropdown-menu-lg-start","dropdown-menu-md-end","dropdown-menu-md-start","dropdown-menu-sm-end","dropdown-menu-sm-start","dropdown-menu-start","dropdown-menu-xl-end","dropdown-menu-xl-start","dropdown-menu-xxl-end","dropdown-menu-xxl-start","dropdown-search-icon","dropdown-search-input","dropdown-search-wrapper","dropdown-toggle","dropdown-toggle-split","form-check","form-check-circle","form-check-inline","form-check-input","form-check-label","form-check-lg","form-check-reverse","form-check-sm","form-control","form-control-color","form-control-lg","form-control-plaintext","form-control-sm","form-label","form-select","form-select-lg","form-select-sm","form-text","input-group","input-group-lg","input-group-sm","input-group-text","list-group","list-group-flush","list-group-horizontal","list-group-horizontal-lg","list-group-horizontal-md","list-group-horizontal-sm","list-group-horizontal-xl","list-group-horizontal-xxl","list-group-item","list-group-item-action","list-group-item-danger","list-group-item-dark","list-group-item-info","list-group-item-light","list-group-item-primary","list-group-item-secondary","list-group-item-success","list-group-item-warning","list-group-numbered","modal","modal-backdrop","modal-body","modal-content","modal-dialog","modal-dialog-centered","modal-dialog-scrollable","modal-footer","modal-fullscreen","modal-fullscreen-lg-down","modal-fullscreen-md-down","modal-fullscreen-sm-down","modal-fullscreen-xl-down","modal-fullscreen-xxl-down","modal-header","modal-lg","modal-open","modal-sm","modal-static","modal-title","modal-xl","nav-link","nav-pills","nav-tabs","offcanvas","offcanvas-backdrop","offcanvas-body","offcanvas-bottom","offcanvas-end","offcanvas-header","offcanvas-lg","offcanvas-md","offcanvas-sm","offcanvas-start","offcanvas-title","offcanvas-top","offcanvas-xl","offcanvas-xxl","page-item","page-link","pagination","pagination-lg","pagination-sm","progress","progress-bar","progress-bar-animated","progress-bar-striped","progress-sm","progress-stacked","spinner-border","spinner-border-sm","table","table-active","table-bordered","table-borderless","table-danger","table-dark","table-group-divider","table-hover","table-info","table-ledger","table-light","table-pagination","table-primary","table-responsive","table-responsive-lg","table-responsive-md","table-responsive-sm","table-responsive-xl","table-responsive-xxl","table-secondary","table-sm","table-striped","table-striped-columns","table-success","table-warning","table-wrap","wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-account-switcher","wui-account-switcher-badge","wui-account-switcher-label","wui-account-switcher-list","wui-account-switcher-option","wui-account-switcher-option-name","wui-account-switcher-option-note","wui-account-switcher-option-text","wui-account-switcher-tick","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-attach-error","wui-attach-progress","wui-auth","wui-auth-aside","wui-auth-body","wui-auth-footer","wui-auth-logo","wui-auth-main","wui-auth-panel","wui-auth-split","wui-banner","wui-banner-action","wui-banner-body","wui-banner-danger","wui-banner-dismiss","wui-banner-has-action","wui-banner-icon","wui-banner-info","wui-banner-neutral","wui-banner-success","wui-banner-warning","wui-bell-body","wui-bell-count","wui-bell-dot","wui-bell-foot","wui-bell-head","wui-bell-icon","wui-bell-item","wui-bell-item-read","wui-bell-item-title","wui-bell-list","wui-bell-markall","wui-bell-menu","wui-bell-state","wui-bell-title","wui-bell-trigger","wui-bell-when","wui-brand-dark","wui-brand-has-mark","wui-brand-light","wui-brand-link","wui-brand-logo","wui-brand-mark","wui-brand-mark-only","wui-brand-themed","wui-btn-group","wui-btn-group-full","wui-btn-pin-end","wui-btn-pin-icon","wui-btn-roll","wui-btn-roll-ico","wui-btn-roll-ico__next","wui-btn-roll__a","wui-btn-roll__b","wui-btn-shape-pill","wui-btn-shape-sharp","wui-calendar-chip","wui-calendar-chip-time","wui-calendar-chip-title","wui-calendar-event-danger","wui-calendar-event-info","wui-calendar-event-neutral","wui-calendar-event-primary","wui-calendar-event-success","wui-calendar-event-warning","wui-calendar-fallback","wui-calendar-nav","wui-calendar-nav-btn","wui-calendar-stack","wui-calendar-status","wui-calendar-status-text","wui-calendar-surface","wui-calendar-title","wui-calendar-today-btn","wui-calendar-toolbar","wui-calendar-view-btn","wui-calendar-views","wui-carousel","wui-carousel-arrow","wui-carousel-dot","wui-carousel-dots","wui-carousel-pause","wui-carousel-pause-icon","wui-carousel-pause-text","wui-carousel-slide","wui-carousel-stage","wui-carousel-track","wui-cell","wui-cell-end","wui-cell-mono","wui-cell-numeric","wui-cell-primary","wui-cell-secondary","wui-chart-canvas","wui-chart-card","wui-chart-card-legend-off","wui-chart-card-legend-tool","wui-chart-card-retry","wui-chart-card-tool","wui-chart-legend","wui-chart-legend-item","wui-chart-legend-label","wui-chart-legend-swatch","wui-chart-legend-swatch-line","wui-chart-num","wui-chart-skeleton","wui-chart-state","wui-chart-state-text","wui-chart-surface","wui-chart-table","wui-chart-table-note","wui-chart-table-wrap","wui-chart-tooltip","wui-chart-tooltip-body","wui-chart-tooltip-foot","wui-chart-tooltip-label","wui-chart-tooltip-row","wui-chart-tooltip-swatch","wui-chart-tooltip-swatch-line","wui-chart-tooltip-title","wui-chart-tooltip-value","wui-check","wui-chip-count","wui-chip-group","wui-chip-group-nowrap","wui-choice-chip-solid","wui-cmd-back","wui-cmd-card","wui-cmd-crumb","wui-cmd-crumbs","wui-cmd-empty","wui-cmd-footer","wui-cmd-group","wui-cmd-group-label","wui-cmd-input","wui-cmd-item","wui-cmd-item-chevron","wui-cmd-item-desc","wui-cmd-item-icon","wui-cmd-item-label","wui-cmd-item-meta","wui-cmd-item-text","wui-cmd-list","wui-cmd-mark","wui-cmd-page","wui-cmd-recents","wui-cmd-search","wui-cmd-search-icon","wui-cmd-spinner","wui-cmd-tabs","wui-cmd-trail","wui-code-bar","wui-code-block","wui-code-copy","wui-code-copy-icon","wui-code-line","wui-code-pre","wui-code-source","wui-code-t-attr","wui-code-t-comment","wui-code-t-function","wui-code-t-keyword","wui-code-t-literal","wui-code-t-number","wui-code-t-punct","wui-code-t-string","wui-code-t-tag","wui-code-t-type","wui-code-t-variable","wui-code-title","wui-code-view","wui-col-grow","wui-col-hidden","wui-col-resizable","wui-col-resize","wui-col-span-2","wui-col-span-3","wui-col-span-full","wui-cols-2","wui-cols-3","wui-cols-4","wui-column-menu","wui-column-menu-item","wui-column-menu-title","wui-comment--internal","wui-comment--mine","wui-comment-action","wui-comment-actions","wui-comment-attachment","wui-comment-attachment-size","wui-comment-attachments","wui-comment-author","wui-comment-avatar","wui-comment-composer","wui-comment-composer-avatar","wui-comment-composer-inline","wui-comment-confirm","wui-comment-confirm-text","wui-comment-edited","wui-comment-editor","wui-comment-empty","wui-comment-error","wui-comment-form-actions","wui-comment-head","wui-comment-internal-badge","wui-comment-list","wui-comment-main","wui-comment-reactions","wui-comment-replies","wui-comment-reply","wui-comment-row","wui-comment-text","wui-comment-text--markdown","wui-comment-text-deleted","wui-comment-thread","wui-comment-thread--conversation","wui-comment-time","wui-compare-center","wui-compare-code","wui-compare-group","wui-compare-group-row","wui-compare-nowrap","wui-compare-relaxed","wui-compare-scroll","wui-compare-scroll-table","wui-compare-state","wui-compare-state-no","wui-compare-state-partial","wui-compare-state-warn","wui-compare-state-yes","wui-compare-sticky-first","wui-compare-sticky-head","wui-confirm","wui-confirm-actions","wui-confirm-body","wui-confirm-content","wui-confirm-icon","wui-confirm-msg","wui-confirm-plain","wui-confirm-title","wui-consent-banner-accept","wui-consent-banner-actions","wui-consent-banner-category","wui-consent-banner-category-description","wui-consent-banner-description","wui-consent-banner-heading","wui-consent-banner-panel","wui-consent-banner-policy","wui-consent-banner-reject","wui-consent-banner-save","wui-consent-banner-settings","wui-consent-banner-settings-toggle","wui-context-menu-chevron","wui-context-menu-hint","wui-context-menu-panel","wui-context-menu-search","wui-context-menu-sub","wui-context-menu-subpanel","wui-context-menu-tick","wui-control","wui-control-group","wui-control-label","wui-crop-controls","wui-crop-frame","wui-crop-frame--round","wui-crop-handle","wui-crop-handle--ne","wui-crop-handle--nw","wui-crop-handle--se","wui-crop-handle--sw","wui-crop-img","wui-crop-preview","wui-crop-previews","wui-crop-previews--round","wui-crop-stage","wui-crop-toolbtn","wui-crop-tools","wui-crop-zoom","wui-crop-zoombtn","wui-dashboard-cell","wui-dashboard-cell-3","wui-dashboard-cell-4","wui-dashboard-cell-6","wui-dashboard-cell-8","wui-dashboard-grid","wui-daterange-main","wui-daterange-pop--presets","wui-daterange-preset","wui-daterange-presets","wui-descs-col-4","wui-descs-emphasis","wui-descs-icon","wui-descs-link","wui-descs-list","wui-descs-span-1","wui-descs-span-10","wui-descs-span-11","wui-descs-span-12","wui-descs-span-2","wui-descs-span-3","wui-descs-span-4","wui-descs-span-5","wui-descs-span-6","wui-descs-span-7","wui-descs-span-8","wui-descs-span-9","wui-descs-summary","wui-detail-pane","wui-drawer","wui-drawer-backdrop","wui-drawer-body","wui-drawer-close","wui-drawer-discard","wui-drawer-discard-text","wui-drawer-discarding","wui-drawer-footer","wui-drawer-grip","wui-drawer-handle","wui-drawer-header","wui-drawer-headtext","wui-drawer-locked","wui-drawer-panel","wui-drawer-subtitle","wui-drawer-title","wui-drawer-title-ic","wui-drop-tray","wui-dropdown-form","wui-dropdown-item-disabled","wui-dropdown-menu-fit","wui-dropdown-menu-lg","wui-dropdown-menu-md","wui-dropdown-menu-sm","wui-dropdown-trigger","wui-dropdown-trigger-neutral","wui-due-date","wui-due-date-danger","wui-due-date-empty","wui-due-date-warning","wui-empty-illustration","wui-empty-illustration-custom","wui-empty-state-table","wui-error-summary","wui-error-summary-list","wui-error-summary-title","wui-expand-cell","wui-expand-toggle","wui-field-busy","wui-field-message","wui-file-busy","wui-file-input-button-field","wui-file-tile","wui-file-tile-ext","wui-file-tile-meta","wui-file-tile-name","wui-file-tile-text","wui-file-tiles","wui-file-viewer-actions","wui-file-viewer-audio-art","wui-file-viewer-body","wui-file-viewer-canvas","wui-file-viewer-center","wui-file-viewer-controls","wui-file-viewer-divider","wui-file-viewer-download","wui-file-viewer-end","wui-file-viewer-fullscreen","wui-file-viewer-group","wui-file-viewer-hit","wui-file-viewer-hit-current","wui-file-viewer-image","wui-file-viewer-image-scroll","wui-file-viewer-image-stage","wui-file-viewer-links","wui-file-viewer-menu","wui-file-viewer-menu-tick","wui-file-viewer-name","wui-file-viewer-page","wui-file-viewer-page-input","wui-file-viewer-page-total","wui-file-viewer-pages","wui-file-viewer-panning","wui-file-viewer-player","wui-file-viewer-player-audio","wui-file-viewer-print-frame","wui-file-viewer-row","wui-file-viewer-scroll","wui-file-viewer-search","wui-file-viewer-search-count","wui-file-viewer-search-field","wui-file-viewer-seek","wui-file-viewer-sheet","wui-file-viewer-skeleton","wui-file-viewer-slot","wui-file-viewer-speed","wui-file-viewer-stage","wui-file-viewer-start","wui-file-viewer-status","wui-file-viewer-text","wui-file-viewer-thumb","wui-file-viewer-thumb-frame","wui-file-viewer-thumb-no","wui-file-viewer-thumbs","wui-file-viewer-time","wui-file-viewer-toolbar","wui-file-viewer-video","wui-file-viewer-view-end","wui-file-viewer-volume","wui-file-viewer-zoom","wui-filter-bar","wui-filter-bar--folded","wui-filter-chip-inline","wui-filter-count-desktop","wui-filter-count-phone","wui-filter-form","wui-filter-more","wui-filter-more-head","wui-filter-more-panel","wui-filter-more-panel-end","wui-filter-more-trigger","wui-filter-popover","wui-filter-popover-field","wui-filter-popover-foot","wui-filter-popover-grid","wui-filter-popover-head","wui-filter-popover-more","wui-filter-popover-note","wui-filter-popover-panel","wui-filter-popover-title","wui-filter-popover-trigger","wui-flag","wui-float-above","wui-floating-btn","wui-floating-btn--lg","wui-floating-btn--secondary","wui-floating-btn--sm","wui-floating-stack","wui-floating-stack-item","wui-floating-stack-item--primary","wui-floating-stack-item--secondary","wui-force-active","wui-force-focus","wui-force-hover","wui-form-cols-1","wui-form-cols-10","wui-form-cols-11","wui-form-cols-12","wui-form-cols-2","wui-form-cols-3","wui-form-cols-4","wui-form-cols-5","wui-form-cols-6","wui-form-cols-7","wui-form-cols-8","wui-form-cols-9","wui-form-compact","wui-form-inline","wui-form-labels-start","wui-form-row-keep","wui-form-rule-none","wui-form-section","wui-form-section-head","wui-form-section-title","wui-form-side","wui-form-title-display","wui-grid","wui-grid-lg-2","wui-grid-lg-3","wui-grid-lg-4","wui-grid-md-2","wui-grid-md-3","wui-grid-md-4","wui-group-cell","wui-group-count","wui-group-label","wui-group-row","wui-group-toggle","wui-has-value-avatar","wui-hidden-from-lg","wui-hidden-from-md","wui-hidden-from-sm","wui-hidden-from-xl","wui-hover-card-loading","wui-hover-card-panel","wui-hover-card-trigger","wui-icon","wui-icon-tip","wui-ill-accent","wui-ill-accent-line","wui-ill-card","wui-ill-danger","wui-ill-danger-fill","wui-ill-danger-line","wui-ill-dash","wui-ill-ink","wui-ill-mute","wui-ill-soft","wui-ill-thick","wui-illustration","wui-image-picker","wui-image-picker-avatar","wui-image-picker-buttons","wui-image-picker-buttons-actions","wui-image-picker-buttons-badge","wui-image-picker-buttons-camera","wui-image-picker-buttons-face","wui-image-picker-buttons-img","wui-image-picker-buttons-placeholder","wui-image-picker-field","wui-image-picker-field-inline","wui-image-picker-field-profile","wui-image-picker-hint","wui-image-picker-img","wui-image-picker-logo","wui-image-picker-meta","wui-image-picker-overlay","wui-image-picker-remove","wui-image-picker-ring","wui-image-picker-rounded","wui-image-picker-row","wui-image-picker-shell","wui-image-picker-square","wui-image-picker-subtitle","wui-image-picker-title","wui-inline-edit","wui-inline-edit--nowrap","wui-inline-edit-display","wui-inline-edit-editor","wui-inline-edit-error","wui-inline-edit-icon","wui-inline-edit-saved","wui-inline-edit-spinner","wui-inline-edit-status","wui-inline-edit-value","wui-input-group","wui-input-leading","wui-input-trailing","wui-kanban","wui-kanban-action","wui-kanban-actions","wui-kanban-board","wui-kanban-body","wui-kanban-card","wui-kanban-card-title","wui-kanban-collapse","wui-kanban-column","wui-kanban-count","wui-kanban-dot","wui-kanban-drop-note","wui-kanban-empty","wui-kanban-ghost","wui-kanban-head","wui-kanban-hint","wui-kanban-lock","wui-kanban-more","wui-kanban-summary","wui-kanban-switch","wui-kanban-switch-title","wui-kanban-switcher","wui-kanban-title","wui-kbd","wui-kpi-delta--danger","wui-kpi-delta--neutral","wui-kpi-delta--success","wui-leaving","wui-lightbox","wui-lightbox-bar","wui-lightbox-btn","wui-lightbox-caption","wui-lightbox-count","wui-lightbox-image","wui-lightbox-item","wui-lightbox-nav","wui-lightbox-next","wui-lightbox-overlay","wui-lightbox-prev","wui-lightbox-stage","wui-lightbox-status","wui-lightbox-tools","wui-lightbox-zoomed","wui-link","wui-link--bracket","wui-link--clamp","wui-link--fade","wui-link--glow","wui-link--grow","wui-link--highlight","wui-link--icon","wui-link--lg","wui-link--none","wui-link--shine","wui-link--slide","wui-link--sm","wui-link--static","wui-link--surface-dark","wui-link--underline","wui-link--underline-center","wui-link__ic","wui-link__ic--left","wui-link__ic--right","wui-link__label","wui-list-card-count","wui-list-card-filters","wui-markdown","wui-markdown-citation","wui-markdown-source","wui-mention","wui-mention-empty","wui-mention-input","wui-mention-input-text","wui-mention-menu","wui-mention-option","wui-mention-option-description","wui-mention-option-label","wui-mention-option-photo","wui-mention-option-text","wui-meta-list","wui-metric","wui-metric-label","wui-metric-note","wui-metric-strip","wui-metric-strip-cols-3","wui-metric-strip-cols-4","wui-metric-strip-cols-5","wui-metric-strip-sm","wui-metric-tone-danger","wui-metric-tone-info","wui-metric-tone-success","wui-metric-tone-warning","wui-metric-value","wui-modal","wui-modal-back","wui-modal-backdrop-stacked","wui-modal-body","wui-modal-close","wui-modal-dim","wui-modal-eyebrow","wui-modal-footer","wui-modal-fullscreen","wui-modal-header","wui-modal-header-actions","wui-modal-headicon","wui-modal-heading","wui-modal-headtext","wui-modal-loading","wui-modal-shell","wui-modal-skeleton","wui-modal-skeleton--short","wui-modal-stacked","wui-modal-state","wui-modal-state-actions","wui-modal-state-text","wui-modal-state-title","wui-modal-submit-error","wui-modal-subtitle","wui-modal-title","wui-money","wui-mono","wui-name-cell","wui-nav-depth-2","wui-nav-depth-3","wui-nav-depth-4","wui-nav-depth-5","wui-nav-depth-6","wui-nav-group-after","wui-nav-group-body","wui-nav-group-caret","wui-nav-group-collapsible","wui-nav-group-folded","wui-nav-group-text","wui-nav-group-toggle","wui-nav-header","wui-nav-list","wui-nav-list-count","wui-nav-list-divider","wui-nav-list-dot","wui-nav-list-icon","wui-nav-list-item","wui-nav-list-label","wui-nav-menu-chevron","wui-nav-menu-item","wui-nav-menu-link","wui-nav-menu-link-desc","wui-nav-menu-link-label","wui-nav-menu-link-text","wui-nav-menu-links","wui-nav-menu-list","wui-nav-menu-panel","wui-nav-menu-toplink","wui-nav-menu-trigger","wui-nav-new","wui-nav-split","wui-nav-split-link","wui-nav-split-toggle","wui-notification-center","wui-notification-center-body","wui-notification-center-count","wui-notification-center-day","wui-notification-center-dot","wui-notification-center-empty","wui-notification-center-foot","wui-notification-center-head","wui-notification-center-icon","wui-notification-center-item","wui-notification-center-item-read","wui-notification-center-item-text","wui-notification-center-item-title","wui-notification-center-items","wui-notification-center-list","wui-notification-center-live","wui-notification-center-markall","wui-notification-center-panel","wui-notification-center-tabs","wui-notification-center-title","wui-notification-center-trigger","wui-notification-center-unread-label","wui-notification-center-when","wui-onboarding","wui-onboarding-bar","wui-onboarding-body","wui-onboarding-card","wui-onboarding-chevron","wui-onboarding-count","wui-onboarding-desc","wui-onboarding-dismiss","wui-onboarding-head","wui-onboarding-label","wui-onboarding-mark","wui-onboarding-restore","wui-onboarding-seg","wui-onboarding-step","wui-onboarding-steps","wui-onboarding-title","wui-onboarding-toggle","wui-opt-avatar","wui-opt-hint","wui-opt-label","wui-opt-name","wui-org-tree","wui-org-tree-canvas","wui-org-tree-children","wui-org-tree-count","wui-org-tree-item","wui-org-tree-match","wui-org-tree-name","wui-org-tree-node","wui-org-tree-overlay","wui-org-tree-role","wui-org-tree-search","wui-org-tree-team","wui-org-tree-text","wui-org-tree-toggle","wui-org-tree-toolbar","wui-overflow","wui-overflow-item","wui-overflow-menu","wui-overflow-more","wui-page-header-meta-below","wui-page-header-subtitle-inline","wui-page-title-slot","wui-pager-summary","wui-period-month","wui-period-month-label","wui-period-picker","wui-phone-prefix","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-pre-line","wui-prewrap","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","wui-progress-primary","wui-progress-success","wui-progress-warning","wui-pw-inline","wui-radio","wui-radio-group","wui-radio-group-card","wui-radio-group-inline","wui-radio-option-desc","wui-rating","wui-rating-fill","wui-rating-glyphs","wui-rating-input","wui-rating-lg","wui-rating-previewing","wui-rating-sm","wui-rating-star","wui-rating-star-full","wui-rating-star-half","wui-rating-star-preview","wui-rating-stars","wui-rating-value","wui-rb-dialog","wui-reaction","wui-reaction-add","wui-reaction-choice","wui-reaction-count","wui-reaction-mine","wui-reaction-picker","wui-record-pager","wui-record-pager-next","wui-record-pager-position","wui-record-pager-prev","wui-relative-time","wui-remote-drawer","wui-remote-drawer-dialog","wui-resizable","wui-resizable-handle","wui-resizable-panel","wui-rich-text-button","wui-rich-text-content","wui-rich-text-empty","wui-rich-text-glyph","wui-rich-text-glyph-bold","wui-rich-text-glyph-italic","wui-rich-text-group","wui-rich-text-link-apply","wui-rich-text-link-cancel","wui-rich-text-link-error","wui-rich-text-link-input","wui-rich-text-link-remove","wui-rich-text-linkbar","wui-rich-text-prose","wui-rich-text-shell","wui-rich-text-toolbar","wui-rolling-number","wui-rolling-number-char","wui-rolling-number-digit","wui-rolling-number-reel","wui-rolling-number-roll","wui-rolling-number-text","wui-row-active","wui-row-dragging","wui-row-expanded","wui-row-header","wui-row-link","wui-row-save-error","wui-row-switch","wui-row-switch__thumb","wui-row-switch__track","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-search-collapsible","wui-search-toggle","wui-section","wui-section-actions","wui-section-call-to-action","wui-section-call-to-action--band","wui-section-center","wui-section-eyebrow","wui-section-eyebrow-danger","wui-section-eyebrow-info","wui-section-eyebrow-neutral","wui-section-eyebrow-pill","wui-section-eyebrow-primary","wui-section-eyebrow-success","wui-section-eyebrow-warning","wui-section-faq","wui-section-faq--split","wui-section-faq-body","wui-section-feature","wui-section-feature-body","wui-section-feature-icon","wui-section-feature-text","wui-section-feature-title","wui-section-features","wui-section-features-list","wui-section-features-rows","wui-section-head","wui-section-hero","wui-section-inner","wui-section-lead-consent","wui-section-lead-fields","wui-section-lead-form","wui-section-lead-success","wui-section-lead-text","wui-section-logo","wui-section-logo-img","wui-section-logo-text","wui-section-logos","wui-section-logos-list","wui-section-media","wui-section-muted","wui-section-pricing","wui-section-subtitle","wui-section-testimonial","wui-section-testimonial-author","wui-section-testimonial-avatar","wui-section-testimonial-name","wui-section-testimonial-quote","wui-section-testimonial-role","wui-section-testimonial-who","wui-section-testimonials-list","wui-section-title","wui-section-title-body","wui-segmented-borderless","wui-segmented-option-count","wui-select","wui-select-add","wui-select-caret","wui-select-cell","wui-select-check","wui-select-chips","wui-select-clear","wui-select-clear-all","wui-select-control","wui-select-draft","wui-select-empty","wui-select-error","wui-select-footer","wui-select-group","wui-select-hint","wui-select-icon","wui-select-input","wui-select-lg","wui-select-loading","wui-select-menu","wui-select-menu-fixed","wui-select-multi","wui-select-opt-desc","wui-select-opt-meta","wui-select-opt-name","wui-select-option","wui-select-option-rich","wui-select-option-text","wui-select-options","wui-select-placeholder","wui-select-prefix","wui-select-reset","wui-select-search","wui-select-sep","wui-select-sm","wui-select-spinner","wui-select-value","wui-select-value-avatar","wui-shell-launcher","wui-shell-top","wui-shell-top-brand","wui-shell-top-nav","wui-shortcut-close","wui-shortcut-group","wui-shortcut-group-title","wui-shortcut-keys","wui-shortcut-legend","wui-shortcut-sheet","wui-shortcut-sheet-below","wui-shortcut-sheet-head","wui-shortcut-sheet-start","wui-shortcut-sheet-title","wui-shortcut-toggle","wui-show-more","wui-show-more-body","wui-show-more-toggle","wui-skeleton-cell","wui-skeleton-lines","wui-skip-link","wui-slider-rail","wui-sort-lead","wui-sortable-active","wui-sortable-body","wui-sortable-dragging","wui-sortable-ghost","wui-sortable-handle","wui-sortable-item","wui-sortable-live","wui-sparkline","wui-spin","wui-spinner","wui-spinner-sm","wui-split-all","wui-split-badge","wui-split-button","wui-split-check","wui-split-chips","wui-split-count","wui-split-empty","wui-split-head","wui-split-head-bulk","wui-split-head-main","wui-split-item","wui-split-item-end","wui-split-item-main","wui-split-item-meta","wui-split-item-title","wui-split-items","wui-split-legend","wui-split-link","wui-split-list","wui-split-menu","wui-split-pane","wui-split-pane-body","wui-split-pane-error","wui-split-pane-head","wui-split-reading","wui-split-skeleton","wui-split-skeleton-meta","wui-split-skeleton-title","wui-split-view","wui-step-done-tone-danger","wui-step-done-tone-info","wui-step-done-tone-primary","wui-step-done-tone-success","wui-step-done-tone-warning","wui-step-size-lg","wui-step-size-sm","wui-step-tile","wui-step-tile-body","wui-step-tile-state","wui-step-tiles","wui-step-tone-danger","wui-step-tone-info","wui-step-tone-primary","wui-step-tone-success","wui-step-tone-warning","wui-stepper-no-connectors","wui-stepper-start","wui-struct-card-filled","wui-struct-card-glyph","wui-struct-card-glyph-on","wui-struct-card-lg","wui-struct-card-no-check","wui-struct-card-sm","wui-struct-card-stacked","wui-support-composer","wui-support-event","wui-support-reply","wui-support-reply-agent","wui-support-reply-body","wui-support-reply-head","wui-support-search","wui-support-subject","wui-support-subject-meta","wui-support-tabs","wui-support-toolbar","wui-tab-label","wui-tabbar","wui-tabbar-badge","wui-tabbar-icon","wui-tabbar-item","wui-tabbar-label","wui-table-compact","wui-table-cozy","wui-table-empty","wui-table-error","wui-table-flush","wui-table-pager","wui-table-pagination-sm","wui-table-pagination-standalone","wui-table-scroll","wui-table-server","wui-table-stack","wui-table-sticky-actions","wui-table-sticky-first","wui-table-striped","wui-table-toolbar","wui-table-toolbar-actions","wui-table-toolbar-all","wui-table-toolbar-bulk","wui-table-toolbar-clear","wui-table-toolbar-count","wui-table-toolbar-filters","wui-table-toolbar-main","wui-text-2xl","wui-text-3xl","wui-text-4xl","wui-text-base","wui-text-lg","wui-text-sm","wui-text-xl","wui-text-xs","wui-theme-switching","wui-theme-toggle","wui-timeline--lg","wui-timeline--sm","wui-timeline--steps","wui-timeline--steps-vertical","wui-timeline-eyebrow","wui-timeline-note--markdown","wui-timepicker-col","wui-timepicker-cols","wui-timepicker-error","wui-timepicker-field","wui-timepicker-toggle","wui-toast","wui-toast--anim-jelly","wui-toast--anim-organic","wui-toast--anim-spring","wui-toast--danger","wui-toast--dragging","wui-toast--info","wui-toast--shape-pill","wui-toast--shape-sharp","wui-toast--success","wui-toast--surface-inverse","wui-toast--warning","wui-toast-action","wui-toast-close","wui-toast-container","wui-toast-content","wui-toast-icon","wui-toast-message","wui-toast-more","wui-toast-progress","wui-toast-task","wui-toast-title","wui-toast-track","wui-toast-track-fill","wui-toast-track-pct","wui-tooltip","wui-tooltip-inverse","wui-topsearch","wui-topsearch-all","wui-topsearch-empty","wui-topsearch-group","wui-topsearch-group-label","wui-topsearch-hit","wui-topsearch-hit-icon","wui-topsearch-hit-sub","wui-topsearch-hit-text","wui-topsearch-hit-title","wui-topsearch-open","wui-topsearch-panel","wui-topsearch-results","wui-tour-actions","wui-tour-arrow","wui-tour-back","wui-tour-card","wui-tour-end","wui-tour-end-button","wui-tour-end-mark","wui-tour-end-message","wui-tour-end-next","wui-tour-end-title","wui-tour-hint","wui-tour-layer","wui-tour-media","wui-tour-media-toggle","wui-tour-nav","wui-tour-next","wui-tour-pointer","wui-tour-position","wui-tour-progress-bar","wui-tour-progress-segment","wui-tour-skip","wui-tour-spot","wui-tour-text","wui-tour-title","wui-tree","wui-tree-badge","wui-tree-check","wui-tree-group","wui-tree-icon","wui-tree-item","wui-tree-label","wui-tree-row","wui-tree-row-error","wui-tree-row-selected","wui-tree-spinner","wui-tree-toggle","wui-truncate","wui-truncate-multi","wui-truncate-text","wui-usermenu-caret","wui-usermenu-extra","wui-usermenu-foot","wui-usermenu-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","wui-usermenu-section","wui-usermenu-text","wui-usermenu-trigger","wui-usermenu-who","wui-virtual-off","wui-virtual-spacer","wui-whats-new","wui-whats-new-body","wui-whats-new-date","wui-whats-new-dot","wui-whats-new-empty","wui-whats-new-entry","wui-whats-new-entry-title","wui-whats-new-image","wui-whats-new-link","wui-whats-new-list","wui-whats-new-name","wui-whats-new-panel","wui-whats-new-title","wui-whats-new-trigger","wui-whats-new-unread","wui-wizard-topbar","wui-wizard-topbar-close","wui-wizard-topbar-count","wui-wizard-topbar-title"]`),xs=`raw-bootstrap`,Ss=/* @__PURE__ */ new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-badge> (AppStatusBadge/<app-status-badge> when it shows a status)`],[`alert`,`AppAlert/<app-alert>`],[`form-control`,`AppInput/<app-input>`],[`form-select`,`AppSelect/<app-select>`],[`form-check-input`,`AppCheckbox/<app-checkbox>`],[`pagination`,`AppTablePagination/<app-table-pagination>`],[`nav-tabs`,`AppTabs/<app-tabs>`],[`dropdown-menu`,`AppDropdown/<app-dropdown>`],[`offcanvas`,`AppDrawer/<app-drawer>`],[`breadcrumb`,`AppBreadcrumbs/<app-breadcrumbs>`],[`progress`,`AppProgress/<app-progress>`],[`spinner-border`,`AppSpinner/<app-spinner>`],[`accordion`,`AppAccordion/<app-accordion>`]]),Cs=/(?<![\w-])(?:class|className)\s*=\s*/g,ws=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function Ts(e){let t=``,n=null;for(let r=0;r<e.length;r+=1){let i=e[r],a=e[r+1];if(n)t+=i,i===`\\`&&a!==void 0?(t+=a,r+=1):(i===n||i===`
156
+ `)}function wc(e){return(e.split(`/`).pop()??``).replace(/\.cshtml$/,``)}function Tc(e,t,n){let r;if(t.startsWith(`@/`)){let n=e.startsWith(`src/`)?0:e.indexOf(`/src/`)+1;if(n===0&&!e.startsWith(`src/`))return null;r=`${e.slice(0,n)}src/${t.slice(2)}`}else if(t.startsWith(`.`))r=p.normalize(p.join(p.dirname(e),t));else return null;return[r,...oc.map(e=>r+e),...oc.map(e=>p.join(r,`index${e}`))].find(e=>n.has(e))??null}function B(e,t,n){if(t===null)return;let r=e.get(t)??/* @__PURE__ */ new Set;r.add(n),e.set(t,r)}function Ec(e,t,n){return[...e.get(t)??/* @__PURE__ */ new Set].filter(e=>e!==n).length}function Dc(e,t,n){n>=2||e.push({rule:`single-use-component`,file:t,line:1,text:`used by ${n} other file${n===1?``:`s`}`,hint:`move it next to the page that uses it`})}function Oc(e){let t=hc.exec(e);return t!==null&&t[1]!==`layout`&&!cc.test(e)&&!lc.test(e)}function kc(e,t){let n=[...e.get(t)??[]].filter(e=>e!==t);return n.length===1&&Oc(n[0]??``)&&Ec(e,n[0]??``,n[0]??``)>=2}function Ac(e,t){let n=p.dirname(e);for(;n!==`.`&&!t.has(n);)n=p.dirname(n);return n}function jc(e){let t=xc.exec(e.split(`
157
+ `,1)[0]??``);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var Mc=`error-summary-title`,Nc=/<app-error-summary(?=[\s/>])/g,Pc=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,Fc=/please\s+(fix|correct)|(fix|correct)\s+the\s+following|the\s+following\s+(errors?|problems?|issues?)|there\s+(is|are|was|were)\s+(an?\s+|some\s+)?(errors?|problems?)/i;function Ic(e,t){let n=null;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=null);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return e.length}function Lc(e){let t=T(e,`markup`),n=e.split(`
158
+ `),r=[];for(let e of t.matchAll(Nc)){let i=Pc.exec(t.slice(e.index,Ic(t,e.index)));if(!i)continue;let a=i[1]??i[2]??``;if(a.includes(`@`)||!Fc.test(a))continue;let o=t.slice(0,e.index).split(`
159
+ `).length;r.push({rule:Mc,line:o,text:(n[o-1]??``).trim().slice(0,160),hint:`drop the title: the library error summary writes the standard heading`})}return r}var Rc=/\.([A-Za-z_][\w-]*)/g,zc=/[^\s>+~,]+/g,Bc=/^\s*(?:,|$)/;function*Vc(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e[n];r===`{`?(yield{text:e.slice(t,n),index:t},t=n+1):(r===`}`||r===`;`)&&(t=n+1)}}function Hc(e,t,n){let r=T(e,t),i=e.split(`
160
+ `),a=[];for(let e of Vc(r)){let t=Uc(e.text,n);if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
161
+ `).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t.name}; use a library prop or token, or a product class`})}return a}function Uc(e,t){for(let n of e.matchAll(zc))if(Bc.test(e.slice(n.index+n[0].length))){for(let e of n[0].matchAll(Rc))if(t.has(e[1]??``))return{index:n.index+e.index,name:e[1]??``}}return null}var Wc=/*#__PURE__*/ JSON.parse(`["accordion","accordion-body","accordion-button","accordion-collapse","accordion-flush","accordion-header","accordion-item","alert","alert-accent","alert-action","alert-borderless","alert-content","alert-danger","alert-dark","alert-dismissible","alert-has-action","alert-has-icon","alert-heading","alert-icon","alert-icon-image","alert-info","alert-lg","alert-light","alert-link","alert-neutral","alert-primary","alert-secondary","alert-sm","alert-stack","alert-success","alert-warning","app-content","app-footer","app-main","app-nav-badge","app-nav-caret","app-nav-group","app-nav-group-label","app-nav-icon","app-nav-item","app-nav-sub","app-nav-sub-inner","app-nav-subitem","app-nav-text","app-nav-trailing","app-phone-number-input","app-popover","app-scrim","app-shell","app-sidebar","app-sidebar-brand","app-sidebar-brand-text","app-sidebar-foot","app-sidebar-scroll","app-sidebar-start","app-sidebar-start-compact","app-sidebar-toggle","app-tab","app-tab-count","app-tab-icon","app-tab-img","app-tab-indicator","app-tabs","app-tabs-fitted","app-tabs-group","app-tabs-lg","app-tabs-pills","app-tabs-scroll-btn","app-tabs-sm","app-tabs-vertical","app-tabs-wrap","app-topbar","app-topbar-end","app-topbar-menu","app-topbar-start","badge","badge-danger","badge-dot","badge-info","badge-primary","badge-success","badge-warning","breadcrumb","breadcrumb-item","btn","btn-anim-expand","btn-anim-fill","btn-anim-glow","btn-anim-none","btn-anim-roll","btn-anim-sheen","btn-check","btn-close","btn-close-white","btn-danger","btn-dark","btn-ghost-danger","btn-ghost-info","btn-ghost-neutral","btn-ghost-primary","btn-ghost-success","btn-ghost-warning","btn-glass","btn-group","btn-group-lg","btn-group-sm","btn-group-vertical","btn-icon","btn-info","btn-lg","btn-light","btn-link","btn-link-danger","btn-link-info","btn-link-neutral","btn-link-primary","btn-link-success","btn-link-warning","btn-neutral","btn-outline-danger","btn-outline-dark","btn-outline-info","btn-outline-light","btn-outline-neutral","btn-outline-primary","btn-outline-secondary","btn-outline-success","btn-outline-warning","btn-pill","btn-pill-sm","btn-primary","btn-radius-xl","btn-secondary","btn-sm","btn-soft-danger","btn-soft-info","btn-soft-neutral","btn-soft-primary","btn-soft-success","btn-soft-warning","btn-static","btn-success","btn-toolbar","btn-warning","card","card-accent","card-body","card-clickable","card-close","card-compact","card-constrained","card-divided","card-elevated","card-flush","card-footer","card-group","card-header","card-header-actions","card-header-icon","card-header-main","card-header-pills","card-header-tabs","card-header-titles","card-img","card-img-bottom","card-img-overlay","card-img-top","card-lifted","card-link","card-media","card-muted","card-outlined","card-pad-lg","card-pad-none","card-pad-sm","card-subtitle","card-text","card-title","dropdown","dropdown-center","dropdown-divider","dropdown-header","dropdown-item","dropdown-item-text","dropdown-menu","dropdown-menu-dark","dropdown-menu-end","dropdown-menu-lg-end","dropdown-menu-lg-start","dropdown-menu-md-end","dropdown-menu-md-start","dropdown-menu-sm-end","dropdown-menu-sm-start","dropdown-menu-start","dropdown-menu-xl-end","dropdown-menu-xl-start","dropdown-menu-xxl-end","dropdown-menu-xxl-start","dropdown-search-icon","dropdown-search-input","dropdown-search-wrapper","dropdown-toggle","dropdown-toggle-split","form-check","form-check-circle","form-check-inline","form-check-input","form-check-label","form-check-lg","form-check-reverse","form-check-sm","form-control","form-control-color","form-control-lg","form-control-plaintext","form-control-sm","form-label","form-select","form-select-lg","form-select-sm","form-text","input-group","input-group-lg","input-group-sm","input-group-text","list-group","list-group-flush","list-group-horizontal","list-group-horizontal-lg","list-group-horizontal-md","list-group-horizontal-sm","list-group-horizontal-xl","list-group-horizontal-xxl","list-group-item","list-group-item-action","list-group-item-danger","list-group-item-dark","list-group-item-info","list-group-item-light","list-group-item-primary","list-group-item-secondary","list-group-item-success","list-group-item-warning","list-group-numbered","modal","modal-backdrop","modal-body","modal-content","modal-dialog","modal-dialog-centered","modal-dialog-scrollable","modal-footer","modal-fullscreen","modal-fullscreen-lg-down","modal-fullscreen-md-down","modal-fullscreen-sm-down","modal-fullscreen-xl-down","modal-fullscreen-xxl-down","modal-header","modal-lg","modal-open","modal-sm","modal-static","modal-title","modal-xl","nav-link","nav-pills","nav-tabs","offcanvas","offcanvas-backdrop","offcanvas-body","offcanvas-bottom","offcanvas-end","offcanvas-header","offcanvas-lg","offcanvas-md","offcanvas-sm","offcanvas-start","offcanvas-title","offcanvas-top","offcanvas-xl","offcanvas-xxl","page-item","page-link","pagination","pagination-lg","pagination-sm","progress","progress-bar","progress-bar-animated","progress-bar-striped","progress-sm","progress-stacked","spinner-border","spinner-border-sm","table","table-active","table-bordered","table-borderless","table-danger","table-dark","table-group-divider","table-hover","table-info","table-ledger","table-light","table-pagination","table-primary","table-responsive","table-responsive-lg","table-responsive-md","table-responsive-sm","table-responsive-xl","table-responsive-xxl","table-secondary","table-sm","table-striped","table-striped-columns","table-success","table-warning","table-wrap","wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-account-switcher","wui-account-switcher-badge","wui-account-switcher-label","wui-account-switcher-list","wui-account-switcher-option","wui-account-switcher-option-name","wui-account-switcher-option-note","wui-account-switcher-option-text","wui-account-switcher-tick","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-attach-error","wui-attach-progress","wui-auth","wui-auth-aside","wui-auth-body","wui-auth-footer","wui-auth-logo","wui-auth-main","wui-auth-panel","wui-auth-split","wui-banner","wui-banner-action","wui-banner-body","wui-banner-danger","wui-banner-dismiss","wui-banner-has-action","wui-banner-icon","wui-banner-info","wui-banner-neutral","wui-banner-success","wui-banner-warning","wui-bell-body","wui-bell-count","wui-bell-dot","wui-bell-foot","wui-bell-head","wui-bell-icon","wui-bell-item","wui-bell-item-read","wui-bell-item-title","wui-bell-list","wui-bell-markall","wui-bell-menu","wui-bell-state","wui-bell-title","wui-bell-trigger","wui-bell-when","wui-bordered","wui-brand-dark","wui-brand-has-mark","wui-brand-light","wui-brand-link","wui-brand-logo","wui-brand-mark","wui-brand-mark-only","wui-brand-themed","wui-btn-group","wui-btn-group-full","wui-btn-pin-end","wui-btn-pin-icon","wui-btn-roll","wui-btn-roll-ico","wui-btn-roll-ico__next","wui-btn-roll__a","wui-btn-roll__b","wui-btn-shape-pill","wui-btn-shape-sharp","wui-calendar-chip","wui-calendar-chip-time","wui-calendar-chip-title","wui-calendar-event-danger","wui-calendar-event-info","wui-calendar-event-neutral","wui-calendar-event-primary","wui-calendar-event-success","wui-calendar-event-warning","wui-calendar-fallback","wui-calendar-nav","wui-calendar-nav-btn","wui-calendar-stack","wui-calendar-status","wui-calendar-status-text","wui-calendar-surface","wui-calendar-title","wui-calendar-today-btn","wui-calendar-toolbar","wui-calendar-view-btn","wui-calendar-views","wui-carousel","wui-carousel-arrow","wui-carousel-dot","wui-carousel-dots","wui-carousel-pause","wui-carousel-pause-icon","wui-carousel-pause-text","wui-carousel-slide","wui-carousel-stage","wui-carousel-track","wui-cell","wui-cell-end","wui-cell-mono","wui-cell-numeric","wui-cell-primary","wui-cell-secondary","wui-chart-canvas","wui-chart-card","wui-chart-card-legend-off","wui-chart-card-legend-tool","wui-chart-card-retry","wui-chart-card-tool","wui-chart-legend","wui-chart-legend-item","wui-chart-legend-label","wui-chart-legend-swatch","wui-chart-legend-swatch-line","wui-chart-num","wui-chart-skeleton","wui-chart-state","wui-chart-state-text","wui-chart-surface","wui-chart-table","wui-chart-table-note","wui-chart-table-wrap","wui-chart-tooltip","wui-chart-tooltip-body","wui-chart-tooltip-foot","wui-chart-tooltip-label","wui-chart-tooltip-row","wui-chart-tooltip-swatch","wui-chart-tooltip-swatch-line","wui-chart-tooltip-title","wui-chart-tooltip-value","wui-check","wui-chip-count","wui-chip-group","wui-chip-group-nowrap","wui-choice-chip-solid","wui-cmd-back","wui-cmd-card","wui-cmd-crumb","wui-cmd-crumbs","wui-cmd-empty","wui-cmd-footer","wui-cmd-group","wui-cmd-group-label","wui-cmd-input","wui-cmd-item","wui-cmd-item-chevron","wui-cmd-item-desc","wui-cmd-item-icon","wui-cmd-item-label","wui-cmd-item-meta","wui-cmd-item-text","wui-cmd-list","wui-cmd-mark","wui-cmd-page","wui-cmd-recents","wui-cmd-search","wui-cmd-search-icon","wui-cmd-spinner","wui-cmd-tabs","wui-cmd-trail","wui-code-bar","wui-code-block","wui-code-copy","wui-code-copy-icon","wui-code-line","wui-code-pre","wui-code-source","wui-code-t-attr","wui-code-t-comment","wui-code-t-function","wui-code-t-keyword","wui-code-t-literal","wui-code-t-number","wui-code-t-punct","wui-code-t-string","wui-code-t-tag","wui-code-t-type","wui-code-t-variable","wui-code-title","wui-code-view","wui-col-grow","wui-col-hidden","wui-col-resizable","wui-col-resize","wui-col-span-2","wui-col-span-3","wui-col-span-full","wui-cols-2","wui-cols-3","wui-cols-4","wui-column-menu","wui-column-menu-item","wui-column-menu-title","wui-comment--internal","wui-comment--mine","wui-comment-action","wui-comment-actions","wui-comment-attachment","wui-comment-attachment-size","wui-comment-attachments","wui-comment-author","wui-comment-avatar","wui-comment-composer","wui-comment-composer-avatar","wui-comment-composer-inline","wui-comment-confirm","wui-comment-confirm-text","wui-comment-edited","wui-comment-editor","wui-comment-empty","wui-comment-error","wui-comment-form-actions","wui-comment-head","wui-comment-internal-badge","wui-comment-list","wui-comment-main","wui-comment-reactions","wui-comment-replies","wui-comment-reply","wui-comment-row","wui-comment-text","wui-comment-text--markdown","wui-comment-text-deleted","wui-comment-thread","wui-comment-thread--conversation","wui-comment-time","wui-compare-center","wui-compare-code","wui-compare-group","wui-compare-group-row","wui-compare-nowrap","wui-compare-relaxed","wui-compare-scroll","wui-compare-scroll-table","wui-compare-state","wui-compare-state-no","wui-compare-state-partial","wui-compare-state-warn","wui-compare-state-yes","wui-compare-sticky-first","wui-compare-sticky-head","wui-confirm","wui-confirm-actions","wui-confirm-body","wui-confirm-content","wui-confirm-icon","wui-confirm-msg","wui-confirm-plain","wui-confirm-title","wui-consent-banner-accept","wui-consent-banner-actions","wui-consent-banner-category","wui-consent-banner-category-description","wui-consent-banner-description","wui-consent-banner-heading","wui-consent-banner-panel","wui-consent-banner-policy","wui-consent-banner-reject","wui-consent-banner-save","wui-consent-banner-settings","wui-consent-banner-settings-toggle","wui-context-menu-chevron","wui-context-menu-hint","wui-context-menu-panel","wui-context-menu-search","wui-context-menu-sub","wui-context-menu-subpanel","wui-context-menu-tick","wui-control","wui-control-group","wui-control-label","wui-crop-controls","wui-crop-frame","wui-crop-frame--round","wui-crop-handle","wui-crop-handle--ne","wui-crop-handle--nw","wui-crop-handle--se","wui-crop-handle--sw","wui-crop-img","wui-crop-preview","wui-crop-previews","wui-crop-previews--round","wui-crop-stage","wui-crop-toolbtn","wui-crop-tools","wui-crop-zoom","wui-crop-zoombtn","wui-dashboard-cell","wui-dashboard-cell-3","wui-dashboard-cell-4","wui-dashboard-cell-6","wui-dashboard-cell-8","wui-dashboard-cell-fifth","wui-dashboard-grid","wui-daterange-main","wui-daterange-pop--presets","wui-daterange-preset","wui-daterange-presets","wui-descs-col-4","wui-descs-emphasis","wui-descs-icon","wui-descs-link","wui-descs-list","wui-descs-span-1","wui-descs-span-10","wui-descs-span-11","wui-descs-span-12","wui-descs-span-2","wui-descs-span-3","wui-descs-span-4","wui-descs-span-5","wui-descs-span-6","wui-descs-span-7","wui-descs-span-8","wui-descs-span-9","wui-descs-summary","wui-detail-pane","wui-drawer","wui-drawer-backdrop","wui-drawer-body","wui-drawer-close","wui-drawer-discard","wui-drawer-discard-text","wui-drawer-discarding","wui-drawer-footer","wui-drawer-grip","wui-drawer-handle","wui-drawer-header","wui-drawer-headtext","wui-drawer-locked","wui-drawer-panel","wui-drawer-subtitle","wui-drawer-title","wui-drawer-title-ic","wui-drop-tray","wui-dropdown-form","wui-dropdown-item-disabled","wui-dropdown-menu-fit","wui-dropdown-menu-lg","wui-dropdown-menu-md","wui-dropdown-menu-sm","wui-dropdown-trigger","wui-dropdown-trigger-neutral","wui-due-date","wui-due-date-danger","wui-due-date-empty","wui-due-date-warning","wui-empty-illustration","wui-empty-illustration-custom","wui-empty-state-table","wui-error-summary","wui-error-summary-list","wui-error-summary-title","wui-expand-cell","wui-expand-toggle","wui-field-busy","wui-field-message","wui-file-busy","wui-file-input-button-field","wui-file-tile","wui-file-tile-ext","wui-file-tile-meta","wui-file-tile-name","wui-file-tile-text","wui-file-tiles","wui-file-viewer-actions","wui-file-viewer-audio-art","wui-file-viewer-body","wui-file-viewer-canvas","wui-file-viewer-center","wui-file-viewer-controls","wui-file-viewer-divider","wui-file-viewer-download","wui-file-viewer-end","wui-file-viewer-fullscreen","wui-file-viewer-group","wui-file-viewer-hit","wui-file-viewer-hit-current","wui-file-viewer-image","wui-file-viewer-image-scroll","wui-file-viewer-image-stage","wui-file-viewer-links","wui-file-viewer-menu","wui-file-viewer-menu-tick","wui-file-viewer-name","wui-file-viewer-page","wui-file-viewer-page-input","wui-file-viewer-page-total","wui-file-viewer-pages","wui-file-viewer-panning","wui-file-viewer-player","wui-file-viewer-player-audio","wui-file-viewer-print-frame","wui-file-viewer-row","wui-file-viewer-scroll","wui-file-viewer-search","wui-file-viewer-search-count","wui-file-viewer-search-field","wui-file-viewer-seek","wui-file-viewer-sheet","wui-file-viewer-skeleton","wui-file-viewer-slot","wui-file-viewer-speed","wui-file-viewer-stage","wui-file-viewer-start","wui-file-viewer-status","wui-file-viewer-text","wui-file-viewer-thumb","wui-file-viewer-thumb-frame","wui-file-viewer-thumb-no","wui-file-viewer-thumbs","wui-file-viewer-time","wui-file-viewer-toolbar","wui-file-viewer-video","wui-file-viewer-view-end","wui-file-viewer-volume","wui-file-viewer-zoom","wui-filter-bar","wui-filter-bar--folded","wui-filter-chip-inline","wui-filter-count-desktop","wui-filter-count-phone","wui-filter-form","wui-filter-more","wui-filter-more-head","wui-filter-more-panel","wui-filter-more-panel-end","wui-filter-more-trigger","wui-filter-popover","wui-filter-popover-field","wui-filter-popover-foot","wui-filter-popover-grid","wui-filter-popover-head","wui-filter-popover-more","wui-filter-popover-note","wui-filter-popover-panel","wui-filter-popover-title","wui-filter-popover-trigger","wui-flag","wui-float-above","wui-floating-btn","wui-floating-btn--lg","wui-floating-btn--secondary","wui-floating-btn--sm","wui-floating-stack","wui-floating-stack-item","wui-floating-stack-item--primary","wui-floating-stack-item--secondary","wui-force-active","wui-force-focus","wui-force-hover","wui-form-cols-1","wui-form-cols-10","wui-form-cols-11","wui-form-cols-12","wui-form-cols-2","wui-form-cols-3","wui-form-cols-4","wui-form-cols-5","wui-form-cols-6","wui-form-cols-7","wui-form-cols-8","wui-form-cols-9","wui-form-compact","wui-form-inline","wui-form-labels-start","wui-form-row-keep","wui-form-rule-none","wui-form-section","wui-form-section-head","wui-form-section-title","wui-form-side","wui-form-title-display","wui-grid","wui-grid-lg-2","wui-grid-lg-3","wui-grid-lg-4","wui-grid-md-2","wui-grid-md-3","wui-grid-md-4","wui-group-cell","wui-group-count","wui-group-label","wui-group-row","wui-group-toggle","wui-has-value-avatar","wui-hidden-from-lg","wui-hidden-from-md","wui-hidden-from-sm","wui-hidden-from-xl","wui-hover-card-loading","wui-hover-card-panel","wui-hover-card-trigger","wui-icon","wui-icon-tip","wui-ill-accent","wui-ill-accent-line","wui-ill-card","wui-ill-danger","wui-ill-danger-fill","wui-ill-danger-line","wui-ill-dash","wui-ill-ink","wui-ill-mute","wui-ill-soft","wui-ill-thick","wui-illustration","wui-image-picker","wui-image-picker-avatar","wui-image-picker-buttons","wui-image-picker-buttons-actions","wui-image-picker-buttons-badge","wui-image-picker-buttons-camera","wui-image-picker-buttons-face","wui-image-picker-buttons-img","wui-image-picker-buttons-placeholder","wui-image-picker-field","wui-image-picker-field-inline","wui-image-picker-field-profile","wui-image-picker-hint","wui-image-picker-img","wui-image-picker-logo","wui-image-picker-meta","wui-image-picker-overlay","wui-image-picker-remove","wui-image-picker-ring","wui-image-picker-rounded","wui-image-picker-row","wui-image-picker-shell","wui-image-picker-square","wui-image-picker-subtitle","wui-image-picker-title","wui-inline-edit","wui-inline-edit--nowrap","wui-inline-edit-display","wui-inline-edit-editor","wui-inline-edit-error","wui-inline-edit-icon","wui-inline-edit-saved","wui-inline-edit-spinner","wui-inline-edit-status","wui-inline-edit-value","wui-input-group","wui-input-leading","wui-input-trailing","wui-kanban","wui-kanban-action","wui-kanban-actions","wui-kanban-board","wui-kanban-body","wui-kanban-card","wui-kanban-card-title","wui-kanban-collapse","wui-kanban-column","wui-kanban-count","wui-kanban-dot","wui-kanban-drop-note","wui-kanban-empty","wui-kanban-ghost","wui-kanban-head","wui-kanban-hint","wui-kanban-lock","wui-kanban-more","wui-kanban-summary","wui-kanban-switch","wui-kanban-switch-title","wui-kanban-switcher","wui-kanban-title","wui-kbd","wui-kpi-delta--danger","wui-kpi-delta--neutral","wui-kpi-delta--success","wui-leaving","wui-lightbox","wui-lightbox-bar","wui-lightbox-btn","wui-lightbox-caption","wui-lightbox-count","wui-lightbox-image","wui-lightbox-item","wui-lightbox-nav","wui-lightbox-next","wui-lightbox-overlay","wui-lightbox-prev","wui-lightbox-stage","wui-lightbox-status","wui-lightbox-tools","wui-lightbox-zoomed","wui-link","wui-link--bracket","wui-link--clamp","wui-link--fade","wui-link--glow","wui-link--grow","wui-link--highlight","wui-link--icon","wui-link--lg","wui-link--none","wui-link--shine","wui-link--slide","wui-link--sm","wui-link--static","wui-link--surface-dark","wui-link--underline","wui-link--underline-center","wui-link__ic","wui-link__ic--left","wui-link__ic--right","wui-link__label","wui-list-card-count","wui-list-card-filters","wui-markdown","wui-markdown-citation","wui-markdown-source","wui-mention","wui-mention-empty","wui-mention-input","wui-mention-input-text","wui-mention-menu","wui-mention-option","wui-mention-option-description","wui-mention-option-label","wui-mention-option-photo","wui-mention-option-text","wui-meta-list","wui-metric","wui-metric-label","wui-metric-note","wui-metric-strip","wui-metric-strip-cols-3","wui-metric-strip-cols-4","wui-metric-strip-cols-5","wui-metric-strip-sm","wui-metric-tone-danger","wui-metric-tone-info","wui-metric-tone-success","wui-metric-tone-warning","wui-metric-value","wui-modal","wui-modal-back","wui-modal-backdrop-stacked","wui-modal-body","wui-modal-close","wui-modal-dim","wui-modal-eyebrow","wui-modal-footer","wui-modal-fullscreen","wui-modal-header","wui-modal-header-actions","wui-modal-headicon","wui-modal-heading","wui-modal-headtext","wui-modal-loading","wui-modal-shell","wui-modal-skeleton","wui-modal-skeleton--short","wui-modal-stacked","wui-modal-state","wui-modal-state-actions","wui-modal-state-text","wui-modal-state-title","wui-modal-submit-error","wui-modal-subtitle","wui-modal-title","wui-money","wui-mono","wui-name-cell","wui-nav-depth-2","wui-nav-depth-3","wui-nav-depth-4","wui-nav-depth-5","wui-nav-depth-6","wui-nav-group-after","wui-nav-group-body","wui-nav-group-caret","wui-nav-group-collapsible","wui-nav-group-folded","wui-nav-group-text","wui-nav-group-toggle","wui-nav-header","wui-nav-list","wui-nav-list-count","wui-nav-list-divider","wui-nav-list-dot","wui-nav-list-icon","wui-nav-list-item","wui-nav-list-label","wui-nav-menu-chevron","wui-nav-menu-item","wui-nav-menu-link","wui-nav-menu-link-desc","wui-nav-menu-link-label","wui-nav-menu-link-text","wui-nav-menu-links","wui-nav-menu-list","wui-nav-menu-panel","wui-nav-menu-toplink","wui-nav-menu-trigger","wui-nav-new","wui-nav-split","wui-nav-split-link","wui-nav-split-toggle","wui-notification-center","wui-notification-center-body","wui-notification-center-count","wui-notification-center-day","wui-notification-center-dot","wui-notification-center-empty","wui-notification-center-foot","wui-notification-center-head","wui-notification-center-icon","wui-notification-center-item","wui-notification-center-item-read","wui-notification-center-item-text","wui-notification-center-item-title","wui-notification-center-items","wui-notification-center-list","wui-notification-center-live","wui-notification-center-markall","wui-notification-center-panel","wui-notification-center-tabs","wui-notification-center-title","wui-notification-center-trigger","wui-notification-center-unread-label","wui-notification-center-when","wui-onboarding","wui-onboarding-bar","wui-onboarding-body","wui-onboarding-card","wui-onboarding-chevron","wui-onboarding-count","wui-onboarding-desc","wui-onboarding-dismiss","wui-onboarding-head","wui-onboarding-label","wui-onboarding-mark","wui-onboarding-restore","wui-onboarding-seg","wui-onboarding-step","wui-onboarding-steps","wui-onboarding-title","wui-onboarding-toggle","wui-opt-avatar","wui-opt-hint","wui-opt-label","wui-opt-name","wui-org-tree","wui-org-tree-canvas","wui-org-tree-children","wui-org-tree-count","wui-org-tree-item","wui-org-tree-match","wui-org-tree-name","wui-org-tree-node","wui-org-tree-overlay","wui-org-tree-role","wui-org-tree-search","wui-org-tree-team","wui-org-tree-text","wui-org-tree-toggle","wui-org-tree-toolbar","wui-overflow","wui-overflow-item","wui-overflow-menu","wui-overflow-more","wui-page-header-meta-below","wui-page-header-subtitle-inline","wui-page-title-slot","wui-pager-summary","wui-period-month","wui-period-month-label","wui-period-picker","wui-phone-prefix","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-pre-line","wui-prewrap","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","wui-progress-primary","wui-progress-success","wui-progress-warning","wui-pw-inline","wui-radio","wui-radio-group","wui-radio-group-card","wui-radio-group-inline","wui-radio-option-desc","wui-rating","wui-rating-fill","wui-rating-glyphs","wui-rating-input","wui-rating-lg","wui-rating-previewing","wui-rating-sm","wui-rating-star","wui-rating-star-full","wui-rating-star-half","wui-rating-star-preview","wui-rating-stars","wui-rating-value","wui-rb-dialog","wui-reaction","wui-reaction-add","wui-reaction-choice","wui-reaction-count","wui-reaction-mine","wui-reaction-picker","wui-record-pager","wui-record-pager-next","wui-record-pager-position","wui-record-pager-prev","wui-relative-time","wui-remote-drawer","wui-remote-drawer-dialog","wui-resizable","wui-resizable-handle","wui-resizable-panel","wui-rich-text-button","wui-rich-text-content","wui-rich-text-empty","wui-rich-text-glyph","wui-rich-text-glyph-bold","wui-rich-text-glyph-italic","wui-rich-text-group","wui-rich-text-link-apply","wui-rich-text-link-cancel","wui-rich-text-link-error","wui-rich-text-link-input","wui-rich-text-link-remove","wui-rich-text-linkbar","wui-rich-text-prose","wui-rich-text-shell","wui-rich-text-toolbar","wui-rolling-number","wui-rolling-number-char","wui-rolling-number-digit","wui-rolling-number-reel","wui-rolling-number-roll","wui-rolling-number-text","wui-row-active","wui-row-dragging","wui-row-expanded","wui-row-header","wui-row-link","wui-row-save-error","wui-row-switch","wui-row-switch__thumb","wui-row-switch__track","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-search-collapsible","wui-search-toggle","wui-section","wui-section-actions","wui-section-call-to-action","wui-section-call-to-action--band","wui-section-center","wui-section-eyebrow","wui-section-eyebrow-danger","wui-section-eyebrow-info","wui-section-eyebrow-neutral","wui-section-eyebrow-pill","wui-section-eyebrow-primary","wui-section-eyebrow-success","wui-section-eyebrow-warning","wui-section-faq","wui-section-faq--split","wui-section-faq-body","wui-section-feature","wui-section-feature-body","wui-section-feature-icon","wui-section-feature-text","wui-section-feature-title","wui-section-features","wui-section-features-list","wui-section-features-rows","wui-section-head","wui-section-hero","wui-section-inner","wui-section-lead-consent","wui-section-lead-fields","wui-section-lead-form","wui-section-lead-success","wui-section-lead-text","wui-section-logo","wui-section-logo-img","wui-section-logo-text","wui-section-logos","wui-section-logos-list","wui-section-media","wui-section-muted","wui-section-pricing","wui-section-subtitle","wui-section-testimonial","wui-section-testimonial-author","wui-section-testimonial-avatar","wui-section-testimonial-name","wui-section-testimonial-quote","wui-section-testimonial-role","wui-section-testimonial-who","wui-section-testimonials-list","wui-section-title","wui-section-title-body","wui-segmented-borderless","wui-segmented-option-count","wui-select","wui-select-add","wui-select-caret","wui-select-cell","wui-select-check","wui-select-chips","wui-select-clear","wui-select-clear-all","wui-select-control","wui-select-draft","wui-select-empty","wui-select-error","wui-select-footer","wui-select-group","wui-select-hint","wui-select-icon","wui-select-input","wui-select-lg","wui-select-loading","wui-select-menu","wui-select-menu-fixed","wui-select-multi","wui-select-opt-desc","wui-select-opt-meta","wui-select-opt-name","wui-select-option","wui-select-option-rich","wui-select-option-text","wui-select-options","wui-select-placeholder","wui-select-prefix","wui-select-reset","wui-select-search","wui-select-sep","wui-select-sm","wui-select-spinner","wui-select-value","wui-select-value-avatar","wui-shell-launcher","wui-shell-top","wui-shell-top-brand","wui-shell-top-nav","wui-shortcut-close","wui-shortcut-group","wui-shortcut-group-title","wui-shortcut-keys","wui-shortcut-legend","wui-shortcut-sheet","wui-shortcut-sheet-below","wui-shortcut-sheet-head","wui-shortcut-sheet-start","wui-shortcut-sheet-title","wui-shortcut-toggle","wui-show-more","wui-show-more-body","wui-show-more-toggle","wui-skeleton-cell","wui-skeleton-lines","wui-skip-link","wui-slider-rail","wui-sort-lead","wui-sortable-active","wui-sortable-body","wui-sortable-dragging","wui-sortable-ghost","wui-sortable-handle","wui-sortable-item","wui-sortable-live","wui-sparkline","wui-spin","wui-spinner","wui-spinner-sm","wui-split-all","wui-split-badge","wui-split-button","wui-split-check","wui-split-chips","wui-split-count","wui-split-empty","wui-split-head","wui-split-head-bulk","wui-split-head-main","wui-split-item","wui-split-item-end","wui-split-item-main","wui-split-item-meta","wui-split-item-title","wui-split-items","wui-split-legend","wui-split-link","wui-split-list","wui-split-menu","wui-split-pane","wui-split-pane-body","wui-split-pane-error","wui-split-pane-head","wui-split-reading","wui-split-skeleton","wui-split-skeleton-meta","wui-split-skeleton-title","wui-split-view","wui-step-done-tone-danger","wui-step-done-tone-info","wui-step-done-tone-primary","wui-step-done-tone-success","wui-step-done-tone-warning","wui-step-size-lg","wui-step-size-sm","wui-step-tile","wui-step-tile-body","wui-step-tile-state","wui-step-tiles","wui-step-tone-danger","wui-step-tone-info","wui-step-tone-primary","wui-step-tone-success","wui-step-tone-warning","wui-stepper-no-connectors","wui-stepper-start","wui-struct-card-filled","wui-struct-card-glyph","wui-struct-card-glyph-on","wui-struct-card-lg","wui-struct-card-no-check","wui-struct-card-sm","wui-struct-card-stacked","wui-support-composer","wui-support-event","wui-support-reply","wui-support-reply-agent","wui-support-reply-body","wui-support-reply-head","wui-support-search","wui-support-subject","wui-support-subject-meta","wui-support-tabs","wui-support-toolbar","wui-tab-label","wui-tabbar","wui-tabbar-badge","wui-tabbar-icon","wui-tabbar-item","wui-tabbar-label","wui-table-compact","wui-table-cozy","wui-table-empty","wui-table-error","wui-table-flush","wui-table-pager","wui-table-pagination-sm","wui-table-pagination-standalone","wui-table-scroll","wui-table-server","wui-table-stack","wui-table-sticky-actions","wui-table-sticky-first","wui-table-striped","wui-table-toolbar","wui-table-toolbar-actions","wui-table-toolbar-all","wui-table-toolbar-bulk","wui-table-toolbar-clear","wui-table-toolbar-count","wui-table-toolbar-filters","wui-table-toolbar-main","wui-text-2xl","wui-text-3xl","wui-text-4xl","wui-text-base","wui-text-lg","wui-text-sm","wui-text-xl","wui-text-xs","wui-theme-switching","wui-theme-toggle","wui-timeline--lg","wui-timeline--sm","wui-timeline--steps","wui-timeline--steps-vertical","wui-timeline-eyebrow","wui-timeline-note--markdown","wui-timepicker-col","wui-timepicker-cols","wui-timepicker-error","wui-timepicker-field","wui-timepicker-toggle","wui-toast","wui-toast--anim-jelly","wui-toast--anim-organic","wui-toast--anim-spring","wui-toast--danger","wui-toast--dragging","wui-toast--info","wui-toast--shape-pill","wui-toast--shape-sharp","wui-toast--success","wui-toast--surface-inverse","wui-toast--warning","wui-toast-action","wui-toast-close","wui-toast-container","wui-toast-content","wui-toast-icon","wui-toast-message","wui-toast-more","wui-toast-progress","wui-toast-task","wui-toast-title","wui-toast-track","wui-toast-track-fill","wui-toast-track-pct","wui-tooltip","wui-tooltip-inverse","wui-topsearch","wui-topsearch-all","wui-topsearch-empty","wui-topsearch-group","wui-topsearch-group-label","wui-topsearch-hit","wui-topsearch-hit-icon","wui-topsearch-hit-sub","wui-topsearch-hit-text","wui-topsearch-hit-title","wui-topsearch-open","wui-topsearch-panel","wui-topsearch-results","wui-tour-actions","wui-tour-arrow","wui-tour-back","wui-tour-card","wui-tour-end","wui-tour-end-button","wui-tour-end-mark","wui-tour-end-message","wui-tour-end-next","wui-tour-end-title","wui-tour-hint","wui-tour-layer","wui-tour-media","wui-tour-media-toggle","wui-tour-nav","wui-tour-next","wui-tour-pointer","wui-tour-position","wui-tour-progress-bar","wui-tour-progress-segment","wui-tour-skip","wui-tour-spot","wui-tour-text","wui-tour-title","wui-tree","wui-tree-badge","wui-tree-check","wui-tree-group","wui-tree-icon","wui-tree-item","wui-tree-label","wui-tree-row","wui-tree-row-error","wui-tree-row-selected","wui-tree-spinner","wui-tree-toggle","wui-truncate","wui-truncate-multi","wui-truncate-text","wui-usermenu-caret","wui-usermenu-extra","wui-usermenu-foot","wui-usermenu-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","wui-usermenu-section","wui-usermenu-text","wui-usermenu-trigger","wui-usermenu-who","wui-virtual-off","wui-virtual-spacer","wui-whats-new","wui-whats-new-body","wui-whats-new-date","wui-whats-new-dot","wui-whats-new-empty","wui-whats-new-entry","wui-whats-new-entry-title","wui-whats-new-image","wui-whats-new-link","wui-whats-new-list","wui-whats-new-name","wui-whats-new-panel","wui-whats-new-title","wui-whats-new-trigger","wui-whats-new-unread","wui-wizard-topbar","wui-wizard-topbar-close","wui-wizard-topbar-count","wui-wizard-topbar-title"]`),Gc=`raw-bootstrap`,Kc=/* @__PURE__ */ new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-badge> (AppStatusBadge/<app-status-badge> when it shows a status)`],[`alert`,`AppAlert/<app-alert>`],[`form-control`,`AppInput/<app-input>`],[`form-select`,`AppSelect/<app-select>`],[`form-check-input`,`AppCheckbox/<app-checkbox>`],[`pagination`,`AppTablePagination/<app-table-pagination>`],[`nav-tabs`,`AppTabs/<app-tabs>`],[`dropdown-menu`,`AppDropdown/<app-dropdown>`],[`offcanvas`,`AppDrawer/<app-drawer>`],[`breadcrumb`,`AppBreadcrumbs/<app-breadcrumbs>`],[`progress`,`AppProgress/<app-progress>`],[`spinner-border`,`AppSpinner/<app-spinner>`],[`accordion`,`AppAccordion/<app-accordion>`]]),qc=/(?<![\w-])(?:class|className)\s*=\s*/g,Jc=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function Yc(e){let t=``,n=null;for(let r=0;r<e.length;r+=1){let i=e.charAt(r),a=e[r+1];if(n)t+=i,i===`\\`&&a!==void 0?(t+=a,r+=1):(i===n||i===`
156
162
  `&&n!=="`")&&(n=null);else if(i===`/`&&a===`/`){let n=e.indexOf(`
157
- `,r),i=n===-1?e.length:n;t+=` `.repeat(i-r),r=i-1}else if(i===`/`&&a===`*`){let n=e.indexOf(`*/`,r+2),i=n===-1?e.length:n+2;t+=e.slice(r,i).replace(/[^\n]/g,` `),r=i-1}else(i===`"`||i===`'`||i==="`")&&(n=i),t+=i}return t}function Es(e,t){let n=[],r=e[t];if(r===`"`||r===`'`){let i=e.indexOf(r,t+1);i!==-1&&n.push({base:t+1,content:e.slice(t+1,i)})}else if(r===`{`){let r=0,i=t;for(;i<e.length;i+=1)if(e[i]===`{`)r+=1;else if(e[i]===`}`&&(--r,r===0))break;let a=e.slice(t,i);for(let e of a.matchAll(ws))n.push({base:t+e.index+1,content:e[2]})}return n}function Ds(e,t){let n=t===`markup`?C(e,`markup`):Ts(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
163
+ `,r),i=n===-1?e.length:n;t+=` `.repeat(i-r),r=i-1}else if(i===`/`&&a===`*`){let n=e.indexOf(`*/`,r+2),i=n===-1?e.length:n+2;t+=e.slice(r,i).replace(/[^\n]/g,` `),r=i-1}else(i===`"`||i===`'`||i==="`")&&(n=i),t+=i}return t}function Xc(e,t){let n=[],r=e.charAt(t);if(r===`"`||r===`'`){let i=e.indexOf(r,t+1);i!==-1&&n.push({base:t+1,content:e.slice(t+1,i)})}else if(r===`{`){let r=0,i=t;for(;i<e.length;i+=1)if(e[i]===`{`)r+=1;else if(e[i]===`}`&&(--r,r===0))break;let a=e.slice(t,i);for(let e of a.matchAll(Jc))n.push({base:t+e.index+1,content:e[2]??``})}return n}function Zc(e,t){let n=t===`markup`?T(e,`markup`):Yc(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
158
164
  `&&r.push(e+1);let i=e.split(`
159
- `),a=e=>{let t=0,n=r.length-1;for(;t<n;){let i=t+n+1>>1;r[i]<=e?t=i:n=i-1}return t},o=[];for(let e of n.matchAll(Cs)){let t=e.index+e[0].length;for(let e of Es(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=Ss.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:xs,line:r+1,text:(i[r]??``).trim().slice(0,160),hint:`use ${n} in place of the raw Bootstrap class "${t[0]}"`})}}return o.sort((e,t)=>e.line-t.line),o}var Os=`route-internal-id`,ks=`route by the record's public id ("{publicId:guid}"), never its internal number`,As=`pass the record's PublicId, never its internal Id`,js=/^\s*@page\s+"([^"]*)"/gm,Ms=/\basp-route-([A-Za-z][\w-]*)\s*=\s*"@\(?\s*([\w.?!]+?)\.Id\s*\)?"/g,Ns=/\b(?:Route|Http(?:Get|Post|Put|Patch|Delete))\s*\(\s*@?"([^"]*)"/g,Ps=/\.Map(?:Get|Post|Put|Patch|Delete|Methods)?\s*\(\s*@?"([^"]*)"/g,Fs=/\{([^{}]*)\}/g,Is=/^(?:[Ii]d|[a-z][A-Za-z0-9]*Id)$/,Ls=[`int`,`long`];function Rs(e){let t=[];for(let n of e.matchAll(Fs)){let[e,...r]=n[1].replace(/^\*{1,2}/,``).split(`:`),i=e.replace(/=.*$/,``).replace(/\?$/,``);Is.test(i)&&r.some(e=>Ls.includes(e.replace(/\?$/,``)))&&t.push(i)}return t}function zs(e){let t=[];for(let n of e.matchAll(Fs)){let[e,...r]=n[1].replace(/^\*{1,2}/,``).split(`:`);r.some(e=>e.replace(/\?$/,``)===`guid`)&&t.push(e.replace(/=.*$/,``).replace(/\?$/,``))}return t}function Bs(e,t){return e.slice(0,t).split(`
160
- `).length}var Vs=/\basp-page\s*=\s*"([^"]*)"/,Hs=/\basp-area\s*=\s*"([^"]*)"/,Us=/(?:^|\/)(?:Areas\/([^/]+)\/)?Pages(\/.+)\.cshtml$/i;function Ws(e){let t=e?Us.exec(e.replaceAll(`\\`,`/`)):null;return t?{area:t[1]??null,path:t[2]}:null}function Gs(e,t,n){let r=e.lastIndexOf(`<`,t),i=e.indexOf(`>`,t),a=e.slice(r===-1?0:r,i===-1?e.length:i),o=Hs.exec(a)?.[1],s=Vs.exec(a)?.[1];return s===void 0?o===void 0||n!==null&&o.toLowerCase()===(n.area??``).toLowerCase():n===null||o!==void 0&&o.toLowerCase()!==(n.area??``).toLowerCase()?!1:s.startsWith(`/`)?s.toLowerCase()===n.path.toLowerCase():s.split(`/`).pop()?.toLowerCase()===n.path.split(`/`).pop()?.toLowerCase()}function Ks(e,t,n){let r=e.split(`
161
- `),i=[],a=(e,t)=>{i.push({rule:Os,line:e,text:(r[e-1]??``).trim().slice(0,160),hint:t})},o=(e,t)=>{for(let n of Rs(e))a(t,ks)};if(t===`markup`){let t=C(e,`markup`),r=/* @__PURE__ */ new Set;for(let e of t.matchAll(js)){o(e[1],Bs(t,e.index+e[0].indexOf(`@page`)));for(let t of zs(e[1]))r.add(t.toLowerCase())}let s=Ws(n);for(let e of t.matchAll(Ms))r.has(e[1].toLowerCase())&&Gs(t,e.index,s)||a(Bs(t,e.index),As);return i}for(let t of[Ns,Ps])for(let n of e.matchAll(t)){let t=Bs(e,n.index);(r[t-1]??``).trim().startsWith(`//`)||o(n[1],t)}return i}function qs(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
165
+ `),a=e=>{let t=0,n=r.length-1;for(;t<n;){let i=t+n+1>>1,a=r[i];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?t=i:n=i-1}return t},o=[];for(let e of n.matchAll(qc)){let t=e.index+e[0].length;for(let e of Xc(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=Kc.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:Gc,line:r+1,text:(i[r]??``).trim().slice(0,160),hint:`use ${n} in place of the raw Bootstrap class "${t[0]}"`})}}return o.sort((e,t)=>e.line-t.line),o}var Qc=/* @__PURE__ */ new Set(/* @__PURE__ */ `public.private.protected.internal.static.abstract.sealed.partial.unsafe.file.readonly.ref.new.virtual.override.extern.async.required.volatile.const.fixed.implicit.explicit.operator.event.delegate`.split(`.`)),$c=/* @__PURE__ */ new Set([`await`,`return`,`throw`,`yield`,`in`,`is`,`as`,`and`,`or`,`not`,`case`,`when`,`else`,`do`,`lock`,`using`]),el=/^((?:(?:public|private|protected|internal|static|abstract|sealed|partial|unsafe|file|readonly|ref|new)\s+)*)(class|struct|interface|record)\b(?:\s+(?:class|struct))?\s*(@?[A-Za-z_]\w*)/,tl=/^\s*(?:global\s+)?using\b/,nl=/^(?:global\s+)?using\s+(?:static\s+)?(?:@?\w+\s*=\s*)?([^;]+?)\s*$/,rl=/^namespace\s+([\w.@\s]+?)\s*$/,il=/\boperator\b[^(]*$/,al=/\bconst\s+string\s+(@?[A-Za-z_]\w*)\s*$/,ol=`<[\\w\\s,.?\\[\\]<>:]*>`,sl=/^nameof\s*\(\s*([^()]*?)\s*\)$/,cl=/^(?:global::)?((?:@?[A-Za-z_]\w*\s*\.\s*)*?@?[A-Za-z_]\w*)\s*\.\s*(@?[A-Za-z_]\w*)$/,ll=/^@?[A-Za-z_]\w*$/,ul=/[\p{L}\p{N}_]/u,dl=/* @__PURE__ */ new WeakMap;function fl(e,t){let{blanked:n,code:r}=Tl(t),i=Cl(t),a={file:e,text:t,blanked:n,lineAt:i,...zl(r,n,i)};return dl.set(a,r),a}function pl(e,t){if(t.length===0)return[];let n=dl.get(e)??Tl(e.blanked).code,r=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),i=RegExp(`\\.\\s*(${r})\\s*(?:${ol})?\\s*\\(`,`g`),a=RegExp(`(?<![\\p{L}\\p{N}_.@$])(${r})\\s*(?:${ol})?\\s*\\(`,`gu`),o=[];for(let t of n.matchAll(a)){let r=t[1]??``;if(!vl(n,t.index))continue;let i=t.index+t[0].length-1,a=Bl(n,i+1);a<0||o.push({receiver:``,method:r,firstArgument:e.blanked.slice(i+1,a).trim(),index:t.index,line:e.lineAt(t.index)})}for(let t of n.matchAll(i)){let r=t[1]??``,i=t.index,a=i+t[0].indexOf(r,1),s=i+t[0].length-1,c=Bl(n,s+1);if(c<0)continue;let l=i;for(;l>0&&V(n.charAt(l-1));)l--;(n.charAt(l-1)===`?`||n.charAt(l-1)===`!`)&&l--;let u=Wl(n,l);o.push({receiver:e.blanked.slice(u,l).trim().replace(/\s*\.\s*/g,`.`).replace(/\s+/g,` `),method:r,firstArgument:e.blanked.slice(s+1,c).trim(),index:a,line:e.lineAt(a)})}return o.sort((e,t)=>e.index-t.index)}var ml=/* @__PURE__ */ new Set([`=`,`(`,`,`,`{`,`;`,`!`,`?`,`:`,`&`,`|`,`+`,`[`,`}`,``]),hl=/* @__PURE__ */ new Set([`return`,`await`,`yield`,`else`,`case`,`in`,`when`]),gl=/* @__PURE__ */ new Set([`if`,`while`,`for`,`foreach`,`using`,`lock`,`switch`]),_l=/^\s*@?[A-Za-z_][\w.]*(?:\s*<[\w\s,.?[\]<>]*>)?\s*\??\s*$/;function vl(e,t){let n=t;for(;n>0&&V(e.charAt(n-1));)n--;let r=e.charAt(n-1);if(r===`>`)return e.charAt(n-2)===`=`;if(r===`)`)return yl(e,n-1);if(ml.has(r))return!0;if(!H(r))return!1;let i=n;for(;i>0&&H(e.charAt(i-1));)i--;return hl.has(e.slice(i,n))}function yl(e,t){let n=Hl(e,t);if(n<0)return!1;let r=e.slice(n+1,t),i=Vl(e,n-1),a=i+1;for(;a>0&&H(e.charAt(a-1));)a--;let o=e.slice(a,i+1);return o===``?ml.has(e.charAt(i))&&_l.test(r):gl.has(o)||hl.has(o)&&_l.test(r)}function bl(e,t,n,r){return Kl(e,t,n,r,0)}function xl(e){let t=/* @__PURE__ */ new Map;for(let n of e)for(let e of n.classes){let n=t.get(e.name);n?n.push(e):t.set(e.name,[e])}return t}function Sl(e,t){let n=null;for(let r of e.classes)r.bodyStart>=t||t>=r.bodyEnd||(n===null||r.bodyEnd-r.bodyStart<n.bodyEnd-n.bodyStart)&&(n=r);return n}function V(e){return e===` `||e===` `||e===`
166
+ `||e===`\r`}function H(e){return e!==``&&ul.test(e)}function Cl(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}function wl(e,t){let n=e.indexOf(`
167
+ `,t);return n<0?e.length:n}function Tl(e){let t=e.split(``),n=e.split(``),r=e.length,i=(e,t,n)=>{for(let r=t;r<n;r++)e[r]!==`
168
+ `&&e[r]!==`\r`&&(e[r]=` `)},a=0,o=!0;for(;a<r;){let s=e.charAt(a);if(s===`
169
+ `){o=!0,a++;continue}if(s===` `||s===` `||s===`\r`||s===``){a++;continue}let c=o;if(o=!1,s===`/`&&e.charAt(a+1)===`/`){let r=wl(e,a);i(t,a,r),i(n,a,r),a=r;continue}if(s===`/`&&e.charAt(a+1)===`*`){let o=e.indexOf(`*/`,a+2),s=o<0?r:o+2;i(t,a,s),i(n,a,s),a=s;continue}if(s===`#`&&c){let r=wl(e,a),o=e.indexOf(`//`,a);o>=0&&o<r&&i(t,o,r),i(n,a,r),a=r;continue}let l=El(e,a);if(l){let t=Dl(e,l);i(n,l.quoteAt+1,t-1),a=Math.max(t,a+1)}else if(s===`'`){let t=kl(e,a);i(n,a+1,t-1),a=t}else a++}return{blanked:t.join(``),code:n.join(``)}}function El(e,t){let n=t,r=0,i=!1;for(;e.charAt(n)===`$`||e.charAt(n)===`@`;)e.charAt(n)===`$`?r++:i=!0,n++;if(e.charAt(n)!==`"`)return null;let a=0;for(;e.charAt(n+a)===`"`;)a++;return{quoteAt:n,dollars:r,verbatim:i,quotes:a}}function Dl(e,t){let n=e.length,r=!t.verbatim&&t.quotes>=3;if(!t.verbatim&&t.quotes===2)return t.quoteAt+2;if(r){let r=t.quotes,i=t.quoteAt+r;for(;i<n;){let n=e.charAt(i);if(n===`"`){let t=1;for(;e.charAt(i+t)===`"`;)t++;if(t>=r)return i+t;i+=t}else if(t.dollars>0&&n===`{`){let n=1;for(;e.charAt(i+n)===`{`;)n++;if(n<t.dollars){i+=n;continue}i=Ol(e,i+n,t.dollars)}else i++}return n}let i=t.quoteAt+1;for(;i<n;){let n=e.charAt(i);if(t.verbatim){if(n===`"`){if(e.charAt(i+1)===`"`){i+=2;continue}return i+1}}else{if(n===`\\`){i+=2;continue}if(n===`"`)return i+1;if(n===`
170
+ `)return i}if(t.dollars>0&&n===`{`){if(e.charAt(i+1)===`{`){i+=2;continue}i=Ol(e,i+1,1)}else i++}return n}function Ol(e,t,n){let r=e.length,i=0,a=t;for(;a<r;){let t=e.charAt(a);if(t===`{`)i++,a++;else if(t===`}`){if(i>0)i--,a++;else return Math.min(r,a+n)}else if(t===`'`)a=kl(e,a);else{let t=El(e,a);a=t?Math.max(Dl(e,t),a+1):a+1}}return r}function kl(e,t){if(e.charAt(t+1)===`\\`){let n=e.indexOf(`'`,t+3);return n<0||n-t>12?t+1:n+1}return e.charAt(t+2)===`'`?t+3:t+1}function Al(e,t){let n=e.charAt(t),r=n===`(`?`)`:n===`[`?`]`:`}`,i=0;for(let a=t;a<e.length;a++){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return e.length-1}function jl(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--}else if(t===`;`&&n===0)return r}return e.length}function Ml(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e.charAt(r);if(i===`(`||i===`[`)n++;else if(i===`)`||i===`]`)n=Math.max(0,n-1);else if(n===0){if(i===`{`||i===`;`||i===`}`)return{end:r,terminator:i};if(i===`=`){let n=e.slice(t,r);if(tl.test(n)||il.test(n))continue;return{end:r,terminator:e.charAt(r+1)===`>`?`=>`:`=`}}}}return{end:e.length,terminator:`eof`}}function Nl(e,t,n,r){let i=[],a=0,o=t;for(let s=t;s<n;s++){let t=e.charAt(s);t===`(`||t===`[`||t===`{`?a++:t===`)`||t===`]`||t===`}`?a--:t===r&&a===0&&(i.push([o,s]),o=s+1)}return i.push([o,n]),i}function Pl(e,t,n){let r=[],i=t;for(;;){for(;i<n&&V(e.charAt(i));)i++;if(e.charAt(i)!==`[`)break;let t=Al(e,i);if(t>=n)break;r.push([i,t+1]),i=t+1}return{restStart:i,ranges:r}}function Fl(e,t,n){for(let[r,i]of n){let n=/\bHubMethodName(?:Attribute)?\s*\(/.exec(e.slice(r,i));if(!n)continue;let a=r+n.index+n[0].length-1,o=Al(e,a);return ru(t.slice(a+1,o).trim())}return null}function Il(e){let t=0,n=()=>{for(;t<e.length&&V(e.charAt(t));)t++},r=(n,r)=>{let i=0;for(;t<e.length;t++){let a=e.charAt(t);if(a===n)i++;else if(a===r&&(i--,i===0)){t++;return}}};if(n(),e.charAt(t)===`<`&&r(`<`,`>`),n(),e.charAt(t)===`(`&&r(`(`,`)`),n(),e.charAt(t)!==`:`)return[];let i=[],a=0,o=t+1,s=t=>{let n=Ll(e.slice(o,t)).replace(/\s+/g,` `).trim();n!==``&&i.push(n)};for(let n=t+1;n<e.length;n++){let t=e.charAt(n);if(t===`<`||t===`(`||t===`[`)a++;else if(t===`>`||t===`)`||t===`]`)a--;else if(a===0&&t===`,`)s(n),o=n+1;else if(a===0&&e.startsWith(`where`,n)&&!H(e.charAt(n-1))&&V(e.charAt(n+5)))return s(n),i}return s(e.length),i}function Ll(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`<`)t++;else if(r===`>`)t--;else if(r===`(`&&t===0)return e.slice(0,n)}return e}function Rl(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`(`){if(t===0){let t=RegExp(`(@?[A-Za-z_]\\w*)\\s*(?:${ol})?\\s*$`).exec(e.slice(0,n)),r=t?.[1]??``;if(t&&!Qc.has(r))return{name:r.replace(/^@/,``),index:t.index}}t++}else r===`)`&&(t=Math.max(0,t-1))}return null}function zl(e,t,n){let r=[],i=[],a=[],o=null,s=``,c=()=>{for(let e=a.length-1;e>=0;e--){let t=a[e];if(t?.kind===`type`)return t}return null},l=()=>[s,...a.filter(e=>e.kind===`namespace`).map(e=>e.namespaceName)].filter(Boolean).join(`.`),u=(r,i,a,o)=>{let s=r.cls,c=Rl(i);if(!s||!c||c.name===s.name)return;let l=i.slice(0,c.index);if(/\b(?:operator|delegate|event)\b/.test(l))return;let u=new Set(l.split(/\s+/));s.methods.push({name:c.name,isPublic:u.has(`public`)||r.isInterface&&!u.has(`private`)&&!u.has(`protected`)&&!u.has(`internal`),isStatic:u.has(`static`),isOverride:u.has(`override`),hubMethodName:Fl(e,t,o),line:n(a+c.index)})},d=(n,r,i,a)=>{let o=n.cls;if(!o)return;let s=Nl(e,i,a,`,`),c=r.replace(/^@/,``);s.forEach(([n,r],i)=>{let a=n;if(i>0){let t=/^\s*(@?[A-Za-z_]\w*)\s*=/.exec(e.slice(n,r));if(!t)return;c=(t[1]??``).replace(/^@/,``),a=n+t[0].length}let s=ru(t.slice(a,r).trim());s!==null&&o.constStrings.set(c,s)})},f=(t,f,p)=>{let{restStart:m,ranges:h}=Pl(e,t,f.end),g=m;for(;g<f.end&&V(e.charAt(g));)g++;let _=e.slice(g,f.end);if(_.trim()===``)return null;if(f.terminator===`;`){let e=nl.exec(_);if(e)return r.push((e[1]??``).replace(/\s+/g,``)),null}let v=rl.exec(_);if(v){let e=(v[1]??``).replace(/\s+/g,``);if(f.terminator===`;`)return s=e,o??=e,null;let t=[l(),e].filter(Boolean).join(`.`);return o??=t,{kind:`namespace`,cls:null,isInterface:!1,namespaceName:e}}let y=el.exec(_);if(y){let e=c(),t=(y[3]??``).replace(/^@/,``),r={name:t,fullName:e?.cls?`${e.cls.fullName}.${t}`:t,namespace:l(),bodyStart:f.end,bodyEnd:f.end,baseTypes:Il(_.slice(y[0].length)),isAbstract:/\babstract\b/.test(y[1]??``),methods:[],constStrings:/* @__PURE__ */ new Map,line:n(g+y[0].length-(y[3]??``).length)};return i.push(r),{kind:`type`,cls:r,isInterface:y[2]===`interface`,namespaceName:``}}let b=a[a.length-1];if(b?.kind!==`type`)return null;if(f.terminator===`=`){let e=al.exec(_);return e&&d(b,e[1]??``,f.end+1,p),null}return u(b,_,g,h),null},p=0;for(;p<e.length;){let t=Ml(e,p);if(t.terminator===`eof`)break;if(t.terminator===`}`){let e=a.pop();e?.cls&&(e.cls.bodyEnd=t.end),p=t.end+1;continue}if(t.terminator===`=`||t.terminator===`=>`){let n=jl(e,t.end+(t.terminator===`=>`?2:1));f(p,t,n),p=e.charAt(n)===`;`?n+1:n;continue}let n=f(p,t,t.end);t.terminator===`{`?n?(a.push(n),p=t.end+1):p=Al(e,t.end)+1:p=t.end+1}return{namespace:o,usings:r,classes:i}}function Bl(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return t===`)`?r:-1;n--}else if(t===`,`&&n===0)return r}return-1}function Vl(e,t){let n=t;for(;n>=0&&V(e.charAt(n));)n--;return n}function Hl(e,t){let n=e.charAt(t),r=n===`)`?`(`:`[`,i=0;for(let a=t;a>=0;a--){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return-1}function Ul(e,t){let n=0;for(let r=t;r>=0;r--){let t=e.charAt(r);if(t===`>`)n++;else if(t===`<`){if(n--,n===0)return r}else if(!/[\w\s,.?[\]:]/.test(t))return-1}return-1}function Wl(e,t){let n=t;for(;;){let t=Gl(e,n);if(t<0)return n;n=t;let r=/(?<![\w@])new\s+$/.exec(e.slice(Math.max(0,n-40),n));r&&(n-=r[0].length);let i=Vl(e,n-1);if(e.charAt(i)!==`.`||e.charAt(i-1)===`.`)return n;n=i;let a=Vl(e,i-1);(e.charAt(a)===`?`||e.charAt(a)===`!`)&&(n=a)}}function Gl(e,t){let n=Vl(e,t-1),r=-1;for(;;){let t=e.charAt(n);if(t===`)`||t===`]`){let i=Hl(e,n);if(i<0)return r;if(r=i,n=Vl(e,i-1),t===`)`&&e.charAt(n)===`>`){let t=Ul(e,n);t>=0&&(r=t,n=Vl(e,t-1))}}else{if(H(t)){let t=n;for(;t>0&&H(e.charAt(t-1));)t--;return $c.has(e.slice(t,n+1))&&r>=0?r:(t>0&&e.charAt(t-1)===`@`&&t--,t)}return r}}}function Kl(e,t,n,r,i){if(i>8)return null;let a=$l(e.trim());if(a===``)return null;let o=ru(a);if(o!==null)return[o];let s=eu(a);if(s){let e=Kl(s.whenTrue,t,n,r,i+1),a=Kl(s.whenFalse,t,n,r,i+1);return!e||!a?null:[.../* @__PURE__ */ new Set([...e,...a])]}let c=sl.exec(a);if(c){let e=c[1]??``;for(;/<[^<>]*>/.test(e);)e=e.replace(/<[^<>]*>/g,``);let t=(e.split(`.`).pop()??``).trim().replace(/^@/,``);return ll.test(t)?[t]:null}let l=cl.exec(a);return l?ql(l[1]??``,l[2]??``,t,n,r):ll.test(a)?n===null?null:Jl(a.replace(/^@/,``),t,n,r):null}function ql(e,t,n,r,i){let a=e.replace(/\s+/g,``).split(`.`).map(e=>e.replace(/^@/,``)),o=a.join(`.`),s=t.replace(/^@/,``),c=i.get(a[a.length-1]??``)??[],l=r?.namespace??n.namespace??``,u=[];a.length>1&&u.push(c.filter(e=>{let t=Xl(e);return t===o||t.endsWith(`.${o}`)})),u.push(c.filter(e=>Zl(e.namespace,l)),c.filter(e=>n.usings.includes(e.namespace)),c);for(let e of u)if(e.some(e=>e.constStrings.has(s)))return Ql(e,s);return null}function Jl(e,t,n,r){let i=t.classes.filter(e=>e!==n&&e.namespace===n.namespace&&n.fullName.startsWith(`${e.fullName}.`)).sort((e,t)=>t.fullName.length-e.fullName.length),a=[];for(let t of[n,...i]){let n=(r.get(t.name)??[]).filter(e=>e.namespace===t.namespace&&e.fullName===t.fullName),i=n.includes(t)?n:[t,...n];if(a.push(...i),i.some(t=>t.constStrings.has(e)))return Ql(i,e)}let o=new Set(a),s=a;for(let t=0;t<8;t++){let t=[];for(let e of s)for(let i of e.baseTypes)for(let e of Yl(i,n.namespace,r))o.has(e)||(o.add(e),t.push(e));if(t.length===0)return null;if(t.some(t=>t.constStrings.has(e)))return Ql(t,e);s=t}return null}function Yl(e,t,n){let r=(e.replace(/<.*$/,``).trim().split(`.`).pop()??``).replace(/^@/,``),i=n.get(r)??[],a=i.filter(e=>e.namespace===t);return a.length>0?a:i}function Xl(e){return e.namespace===``?e.fullName:`${e.namespace}.${e.fullName}`}function Zl(e,t){return e===``||t===e||t.startsWith(`${e}.`)}function Ql(e,t){let n=/* @__PURE__ */ new Set;for(let r of e){let e=r.constStrings.get(t);e!==void 0&&n.add(e)}return n.size===1?[...n]:null}function $l(e){let t=e;for(;t.startsWith(`(`);){let e=Tl(t).code;if(Al(e,0)!==t.length-1)break;t=t.slice(1,-1).trim()}return t}function eu(e){let t=Tl(e).code,n=e=>t.charAt(e)===`?`&&!`?.[`.includes(t.charAt(e+1)),r=0,i=-1;for(let e=0;e<t.length&&i<0;e++){let a=t.charAt(e);a===`(`||a===`[`||a===`{`?r++:a===`)`||a===`]`||a===`}`?r--:a===`?`&&r===0&&(n(e)?i=e:t.charAt(e+1)===`?`&&e++)}if(i<0)return null;r=0;let a=0;for(let o=i+1;o<t.length;o++){let s=t.charAt(o);if(s===`(`||s===`[`||s===`{`)r++;else if(s===`)`||s===`]`||s===`}`)r--;else if(r===0&&s===`?`&&n(o))a++;else if(r===0&&s===`:`){if(t.charAt(o+1)===`:`){o++;continue}if(a===0)return{whenTrue:e.slice(i+1,o),whenFalse:e.slice(o+1)};a--}}return null}var tu={n:`
171
+ `,r:`\r`,t:` `,0:`\0`,a:`\x07`,b:`\b`,f:`\f`,v:`\v`,"\\":`\\`,'"':`"`,"'":`'`};function nu(e){return e.replace(/\\(u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|x[0-9a-fA-F]{1,4}|[\s\S])/g,(e,t)=>{let n=t.charAt(0);return t.length>1?String.fromCodePoint(Number.parseInt(t.slice(1),16)):tu[n]??n})}function ru(e){let t=/^[$@]*/.exec(e)?.[0]??``,n=t.split(`$`).length-1,r=t.includes(`@`),i=e.slice(t.length),a;if(r){let e=/^"((?:[^"]|"")*)"$/.exec(i);if(!e)return null;a=(e[1]??``).replace(/""/g,`"`)}else if(i.startsWith(`"""`)){let e=/^"+/.exec(i)?.[0]??``;if(!i.endsWith(e)||i.length<e.length*2)return null;let t=iu(i.slice(e.length,i.length-e.length));return t===null||n>0&&/[{}]/.test(t)?null:t}else{let e=/^"((?:[^"\\\r\n]|\\.)*)"$/.exec(i);if(!e)return null;a=e[1]??``}return n>0&&/[{}]/.test(a.replace(/\{\{|\}\}/g,``))?null:(r||(a=nu(a)),n>0&&(a=a.replace(/\{\{/g,`{`).replace(/\}\}/g,`}`)),a)}function iu(e){if(!/[\r\n]/.test(e))return e;let t=e.split(/\r?\n/),n=t.shift()??``,r=t.pop()??``;return n.trim()!==``||r.trim()!==``?null:t.map(e=>e.startsWith(r)?e.slice(r.length):e.trimStart()).join(`
172
+ `)}var au=/^(?:Areas\/([^/]+)\/)?Pages\/(.+)\.cshtml$/i,ou=/^[ \t]*@page\b/m,su=/^[ \t]*@model\s+([^\r\n]+?)\s*$/m,cu=/^[ \t]*@inherits\b/m,lu=/^[ \t]*@namespace\s+([\w.]+)/m,uu=/^[ \t]*@using\s+([\w.]+)\s*;?[ \t]*$/gm,du=/<ProjectReference\b[^>]*?\bInclude\s*=\s*"([^"]+)"/g,fu=/(?:^|\/)Areas\/([^/]+)\//i,pu=/<([A-Za-z][\w:.-]*)((?:"[^"]*"|'[^']*'|[^>"'])*)>/g,mu=/([A-Za-z_@:][\w:.@-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,hu=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,gu=/"((?:[^"\\\n]|\\.)*)"|'((?:[^'\\\n]|\\.)*)'|`((?:[^`\\]|\\.)*)`/g,_u=/[?&]handler=([^&#]*)/,vu=/^On(?:Get|Post|Put|Delete|Patch|Head|Options)(.*?)(?:Async)?$/,yu=/\bOn(?:Get|Post|Put|Delete|Patch|Head|Options)(\w*?)(?:Async)?\s*\(/g,bu=/^@?([A-Za-z_]\w*)\s*:(?!:)\s*([\s\S]*)$/,xu=/\barea\s*=\s*(?:"([^"]*)"|(\w[\w.]*))/i,Su=/^I[A-Z]/,Cu=/* @__PURE__ */ new Set([`url`,`urlhelper`,`_urlhelper`]),wu=/* @__PURE__ */ new Set([`PageModel`,`object`,`Object`]),Tu=/Page\s*\(|RedirectToPage/;function Eu(e,t){let n={dynamicHandlers:0,unverifiedPages:0,foreignAreaLinks:0,unreadRouteValues:0,unresolvedLinks:0},i=[],a=new Set(t),o=/* @__PURE__ */ new Map,s=t=>{let n=o.get(t);if(n!==void 0)return n;let i=``;try{i=r(d(e,t),`utf8`).replace(/^/,``)}catch(e){if(!(e instanceof Error&&`code`in e&&e.code===`ENOENT`))throw e}return o.set(t,i),i},c=/* @__PURE__ */ new Map,l=(e,t,n,r)=>{let a=c.get(e);a||(a=s(e).split(`
173
+ `),c.set(e,a)),i.push({rule:n,file:e,line:t,text:(a[t-1]??``).trim().slice(0,160),hint:r})},u=t.filter(e=>e.endsWith(`.csproj`)).sort(),f=/* @__PURE__ */ new Map,m=/* @__PURE__ */ new Map;for(let e of u){let t=p.dirname(e),n=f.get(t);if(n){m.set(e,n);continue}let r={dir:t,name:p.basename(e,`.csproj`),own:/* @__PURE__ */ new Map,references:[],index:/* @__PURE__ */ new Map};f.set(t,r),m.set(e,r)}if(f.size===0)return{hits:i,skipped:n};let h=e=>{let t=p.dirname(e);for(;;){let e=f.get(t);if(e)return e;if(t===`.`||t===`/`)return null;t=p.dirname(t)}},g=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t)continue;let n=t.dir===`.`?e:e.slice(t.dir.length+1),r=au.exec(n);if(!r||!ou.test(T(s(e),`markup`)))continue;let i=`/${r[2]}`,a={file:e,project:t.dir,area:r[1]??null,name:i,folder:p.dirname(i)};g.set(e,a),t.own.set(Du(a.area,i),a)}if(g.size===0)return{hits:i,skipped:n};for(let e of u){let t=m.get(e);if(t&&t.dir===p.dirname(e))for(let n of s(e).matchAll(du)){let e=p.normalize(p.join(t.dir,(n[1]??``).replaceAll(`\\`,`/`))),r=m.get(e);r&&r!==t&&!t.references.includes(r.dir)&&t.references.push(r.dir)}}for(let e of f.values()){e.index=new Map(e.own);let t=/* @__PURE__ */ new Set([e.dir]),n=[...e.references];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.own)e.index.has(t)||e.index.set(t,n);n.push(...i.references)}}}let _=/* @__PURE__ */ new Map;for(let e of f.values())for(let t of e.references)_.set(t,[..._.get(t)??[],e.dir]);for(let e of f.values()){let t=/* @__PURE__ */ new Set([e.dir]),n=[..._.get(e.dir)??[]];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.index)e.index.has(t)||e.index.set(t,n);n.push(..._.get(r)??[])}}}let v=/* @__PURE__ */ new Set;for(let e of t){let t=fu.exec(e)?.[1];t&&v.add(t.toLowerCase())}let y=[],b=/* @__PURE__ */ new Map,x=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cs`))continue;let t=fl(e,s(e));y.push(t),b.set(e,t);for(let e of t.classes)x.set(e,t)}let S=xl(y),ee=/* @__PURE__ */ new Map,te=e=>{let t=ee.get(e);if(t!==void 0)return t;let n=T(s(e),`markup`);return ee.set(e,n),n},ne=e=>{let t=/* @__PURE__ */ new Set,n=e=>{let n=te(e),r=lu.exec(n)?.[1];r&&t.add(r);for(let e of n.matchAll(uu))e[1]&&t.add(e[1])};n(e.file);for(let t=p.dirname(e.file);;t=p.dirname(t)){let r=p.join(t,`_ViewImports.cshtml`);if(a.has(r)&&n(r),t===e.project||t===`.`||t===`/`)break}return t},C=(e,t,n)=>{if(n.has(e))return!0;n.add(e);for(let n of e.methods){if(!n.isPublic||n.isStatic)continue;let e=vu.exec(n.name);e&&t.add((e[1]??``).toLowerCase())}let r=e.baseTypes[0];if(r===void 0)return!0;let i=Ou(r);if(Su.test(i))return!0;let a=S.get(i);if(!a)return wu.has(i);let o=!0;for(let e of a)o=C(e,t,n)&&o;return o},re=/* @__PURE__ */ new Map,ie=e=>{if(re.has(e.file))return re.get(e.file)??null;let t=ae(e);return re.set(e.file,t),t},ae=e=>{let t=te(e.file),n=/* @__PURE__ */ new Set;for(let e of t.matchAll(yu))n.add((e[1]??``).toLowerCase());let r=su.exec(t)?.[1];if(r===void 0)return cu.test(t)?null:{name:`the page`,handlers:n};let i=r.replace(/<.*$/,``).trim().split(`.`),a=i[i.length-1]??``,o=i.slice(0,-1).join(`.`),s=S.get(a)??[];if(s.length===0)return null;let c=s.filter(t=>x.get(t)?.file===`${e.file}.cs`);if(c.length>0)s=c;else if(s.length>1){let t=s.filter(t=>h(x.get(t)?.file??``)?.dir===e.project);if(t.length>0&&(s=t),s.length>1){let t=ne(e);o&&t.add(o);let n=s.filter(e=>t.has(x.get(e)?.namespace??``));n.length>0&&(s=n)}}let l=new Set(s.map(e=>`${x.get(e)?.namespace??``}|${e.fullName}`));if(l.size>1)return null;let[u]=l;s=(S.get(a)??[]).filter(e=>`${x.get(e)?.namespace??``}|${e.fullName}`===u);let d=new Set(n),f=/* @__PURE__ */ new Set,p=!0;for(let e of s)p=C(e,d,f)&&p;return p?{name:a,handlers:d}:null},oe=/* @__PURE__ */ new Set,w=(e,t,n,r)=>{let i=ie(e);i?i.handlers.has(t.toLowerCase())||l(n,r,`razor-page-handler`,`add On<Verb>${t}Async to ${i.name}, or fix the handler name`):oe.add(e.file)},se=(e,t,r,i,a,o)=>{let s=Au(t,r,i);if(!s)return n.unresolvedLinks++,null;let c=e.index.get(Du(s.area,s.path));if(c)return c;if(s.area!==null&&!v.has(s.area.toLowerCase()))return n.foreignAreaLinks++,null;let u=s.area===null?s.path:`${s.path} (area ${s.area})`;return l(a,o,`razor-page-link`,`no page ${u} in ${e.name}; fix the link or add the page`),null},ce=(e,t,r,i)=>{let a=e.indexOf(`?`);if(a<0)return;let o=_u.exec(e.slice(a))?.[1];o!==void 0&&(e.slice(0,a).trim()===``?/[@${]/.test(o)?n.dynamicHandlers++:o!==``&&(t?w(t,o,r,i):n.unresolvedLinks++):n.unresolvedLinks++)};for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t||t.index.size===0)continue;let r=s(e),i=te(e),a=Fu(r),o=g.get(e)??null,c=o?{area:o.area,folder:o.folder}:{area:fu.exec(e)?.[1]??null,folder:null};for(let r of i.matchAll(pu)){let i=r.index+1+(r[1]?.length??0),s=/* @__PURE__ */ new Map;for(let e of(r[2]??``).matchAll(mu))s.set((e[1]??``).toLowerCase(),{value:e[2]??e[3]??``,at:i+e.index});let l=s.get(`asp-page`),u=s.get(`asp-area`),d=s.get(`asp-page-handler`),f=o;if(l&&(!l.value.includes(`@`)&&!u?.value.includes(`@`)?f=se(t,l.value,u?.value,c,e,a(l.at)):(f=null,n.unresolvedLinks++)),d){let t=d.value.trim();t.includes(`@`)?n.dynamicHandlers++:t!==``&&f?w(f,t,e,a(d.at)):t!==``&&!l&&n.unresolvedLinks++}for(let t of[`href`,`action`,`formaction`]){let n=s.get(t);n&&ce(n.value,o,e,a(n.at))}}for(let t of i.matchAll(hu)){if(/\bsrc\s*=/i.test(t[1]??``))continue;let n=t[2]??``,r=t.index+t[0].length-9-n.length;for(let t of n.matchAll(gu))ce(t[1]??t[2]??t[3]??``,o,e,a(r+t.index))}}for(let e of y){let t=e.file,r=h(t);if(!r||r.index.size===0||!Tu.test(e.blanked))continue;let i=g.get(t.replace(/\.cs$/,``))??null,a=i?{area:i.area,folder:i.folder}:{area:fu.exec(t)?.[1]??null,folder:null},o=Pu(e.blanked),s=[];for(let t of pl(e,[`Page`,`RedirectToPage`,`RedirectToPagePermanent`])){if(t.method===`Page`&&!ku(t.receiver))continue;let n=o.indexOf(`(`,t.index);n>=0&&s.push({method:t.method,open:n,at:Sl(e,t.index)})}for(let i of s){let s=Nu(o,e.blanked,i.open);if(!s){n.unresolvedLinks++;continue}let c=Mu(s,0,`pageName`);if(c===void 0)continue;let l=bl(c,e,i.at,S);if(!l){n.unresolvedLinks++;continue}if(s.slice(1).some(t=>{let n=(bu.exec(t)?.[2]??t).trim();return n!==`null`&&!/^new\s*\{/.test(n)&&bl(n,e,i.at,S)===null})){n.unreadRouteValues++;continue}let u=ju(s.slice(1).join(`,`));if(u===null){n.unreadRouteValues++;continue}let d=Mu(s,1,`pageHandler`),f=d===void 0?null:bl(d,e,i.at,S),p=e.lineAt(i.open);for(let e of l){let n=se(r,e,u,a,t,p);if(n&&f)for(let e of f)e!==``&&w(n,e,t,p)}}}return n.unverifiedPages=oe.size,i.sort((e,t)=>e.file<t.file?-1:e.file>t.file?1:e.line-t.line),{hits:i,skipped:n}}function Du(e,t){return`${(e??``).toLowerCase()}|${t.toLowerCase()}`}function Ou(e){let t=e.replace(/<.*$/,``).trim().split(`.`);return t[t.length-1]??``}function ku(e){let t=e.split(`.`).pop()?.replace(/[?!]$/,``).toLowerCase()??``;return Cu.has(t)}function Au(e,t,n){let r=e.trim();if(r===``||/[@{?#]/.test(r))return null;let i=t===void 0?n.area:t===``?null:t,a;if(r.startsWith(`/`))a=p.normalize(r);else if(n.folder===null)return null;else a=p.normalize(p.join(n.folder,r));return a=a.replace(/\/+$/,``),a===``?null:{area:i,path:a}}function ju(e){let t=xu.exec(e);if(t)return t[1]??null}function Mu(e,t,n){for(let t of e){let e=bu.exec(t);if(e?.[1]===n)return e[2]}let r=e[t];return r===void 0||bu.test(r)?void 0:r}function Nu(e,t,n){let r=[],i=0,a=n+1;for(let o=n;o<e.length;o++){let n=e.charAt(o);if(n===`(`||n===`[`||n===`{`)i++;else if(n===`)`||n===`]`||n===`}`){if(i--,i===0)return r.push(t.slice(a,o).trim()),r.length===1&&r[0]===``?[]:r}else n===`,`&&i===1&&(r.push(t.slice(a,o).trim()),a=o+1)}return null}function Pu(e){let t=e.split(``),n=e.length,r=(e,n)=>{for(let r=e;r<n;r++)t[r]!==`
174
+ `&&t[r]!==`\r`&&(t[r]=` `)},i=0;for(;i<n;){let t=e.charAt(i);if(t===`'`){let t=e.charAt(i+1)===`\\`?e.indexOf(`'`,i+3):e.charAt(i+2)===`'`?i+2:-1;t>0&&t-i<=10?(r(i+1,t),i=t+1):i++;continue}if(t!==`"`&&t!==`$`&&t!==`@`){i++;continue}let a=i,o=!1;for(;e.charAt(a)===`$`||e.charAt(a)===`@`;)e.charAt(a)===`@`&&(o=!0),a++;if(e.charAt(a)!==`"`){i=a;continue}let s=0;for(;e.charAt(a+s)===`"`;)s++;if(!o&&s>=3){let t=e.indexOf(`"`.repeat(s),a+s),o=t<0?n:t;r(a+s,o),i=o+s;continue}if(s===2){i=a+2;continue}let c=a+1;for(;c<n;){let t=e.charAt(c);if(t===`\\`&&!o)c+=2;else if(t===`"`){if(o&&e.charAt(c+1)===`"`)c+=2;else break}else if(t===`
175
+ `&&!o)break;else c++}r(a+1,Math.min(c,n)),i=c+1}return t.join(``)}function Fu(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}var Iu=`route-internal-id`,Lu=`route by the record's public id ("{publicId:guid}"), never its internal number`,Ru=`pass the record's PublicId, never its internal Id`,zu=/^\s*@page\s+"([^"]*)"/gm,Bu=/\basp-route-([A-Za-z][\w-]*)\s*=\s*"@\(?\s*([\w.?!]+?)\.Id\s*\)?"/g,Vu=/\b(?:Route|Http(?:Get|Post|Put|Patch|Delete))\s*\(\s*@?"([^"]*)"/g,Hu=/\.Map(?:Get|Post|Put|Patch|Delete|Methods)?\s*\(\s*@?"([^"]*)"/g,Uu=/\{([^{}]*)\}/g,Wu=/^(?:[Ii]d|[a-z][A-Za-z0-9]*Id)$/,Gu=[`int`,`long`];function Ku(e){let t=[];for(let n of e.matchAll(Uu)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`),i=e.replace(/=.*$/,``).replace(/\?$/,``);Wu.test(i)&&r.some(e=>Gu.includes(e.replace(/\?$/,``)))&&t.push(i)}return t}function qu(e){let t=[];for(let n of e.matchAll(Uu)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`);r.some(e=>e.replace(/\?$/,``)===`guid`)&&t.push(e.replace(/=.*$/,``).replace(/\?$/,``))}return t}function Ju(e,t){return e.slice(0,t).split(`
176
+ `).length}var Yu=/\basp-page\s*=\s*"([^"]*)"/,Xu=/\basp-area\s*=\s*"([^"]*)"/,Zu=/(?:^|\/)(?:Areas\/([^/]+)\/)?Pages(\/.+)\.cshtml$/i;function Qu(e){let t=e?Zu.exec(e.replaceAll(`\\`,`/`)):null;return t?{area:t[1]??null,path:t[2]??``}:null}function $u(e,t,n){let r=e.lastIndexOf(`<`,t),i=e.indexOf(`>`,t),a=e.slice(r===-1?0:r,i===-1?e.length:i),o=Xu.exec(a)?.[1],s=Yu.exec(a)?.[1];return s===void 0?o===void 0||n!==null&&o.toLowerCase()===(n.area??``).toLowerCase():n===null||o!==void 0&&o.toLowerCase()!==(n.area??``).toLowerCase()?!1:s.startsWith(`/`)?s.toLowerCase()===n.path.toLowerCase():s.split(`/`).pop()?.toLowerCase()===n.path.split(`/`).pop()?.toLowerCase()}function ed(e,t,n){let r=e.split(`
177
+ `),i=[],a=(e,t)=>{i.push({rule:Iu,line:e,text:(r[e-1]??``).trim().slice(0,160),hint:t})},o=(e,t)=>{for(let n of Ku(e))a(t,Lu)};if(t===`markup`){let t=T(e,`markup`),r=/* @__PURE__ */ new Set;for(let e of t.matchAll(zu)){o(e[1]??``,Ju(t,e.index+e[0].indexOf(`@page`)));for(let t of qu(e[1]??``))r.add(t.toLowerCase())}let s=Qu(n);for(let e of t.matchAll(Bu))r.has((e[1]??``).toLowerCase())&&$u(t,e.index,s)||a(Ju(t,e.index),Ru);return i}for(let t of[Vu,Hu])for(let n of e.matchAll(t)){let t=Ju(e,n.index);(r[t-1]??``).trim().startsWith(`//`)||o(n[1]??``,t)}return i}var td=`web-route-literal`,nd=`pass href("<path>") from react-router so the route table checks it`,rd=/<(?:Link|NavLink|Navigate)(?=[\s/>])/g,id=/to\s*=\s*/y,ad=/(?<![\w$.])([\w$]+)\s*\(/g,od=/(?<![\w$.])(?:const|let|var)\s+([\w$]+)\s*(?::[^=;\n]+)?=\s*useNavigate\s*\(/g,sd=/\bimport\s+(?:type\s+)?(?:[\w$]+\s*,\s*)?\{([^}]*)\}\s*from\s*["'](?:react-router|react-router-dom)["']/g,cd=/^\s*redirect(?:\s+as\s+([\w$]+))?\s*$/;function ld(e){let{blanked:t,lineStarts:n}=Rr(e),r=e.split(`
178
+ `),i=[],a=e=>{let t=gd(n,e);i.push({rule:td,line:t+1,text:(r[t]??``).trim().slice(0,160),hint:nd})};for(let e of t.matchAll(rd)){let n=(e.index??0)+e[0].length;for(let e of ud(t,n))dd(t,e.value)&&a(e.at)}let o=/* @__PURE__ */ new Set;for(let e of t.matchAll(od))e[1]&&o.add(e[1]);for(let e of t.matchAll(sd))for(let t of(e[1]??``).split(`,`)){let e=cd.exec(t);e&&o.add(e[1]??`redirect`)}if(o.size>0)for(let e of t.matchAll(ad)){if(!o.has(e[1]??``))continue;let n=fd(t,hd(t,(e.index??0)+e[0].length));n&&md(n)&&/[,)]/.test(t.charAt(hd(t,n.end)))&&a(e.index??0)}return i.sort((e,t)=>e.line-t.line),i}function ud(e,t){let n=[],r=0,i=t;for(;i<e.length;){let t=e.charAt(i);if(t===`"`||t===`'`||t==="`"){let t=fd(e,i);i=t?t.end:i+1}else{if(t===`{`)r+=1;else if(t===`}`)r=Math.max(0,r-1);else if(t===`>`&&r===0)break;else if(r===0&&t===`t`&&/\s/.test(e.charAt(i-1))){id.lastIndex=i;let t=id.exec(e);t&&n.push({at:i,value:i+t[0].length})}i+=1}}return n}function dd(e,t){if(e.charAt(t)===`{`){let n=fd(e,hd(e,t+1));return n!==null&&md(n)&&e.charAt(hd(e,n.end))===`}`}let n=fd(e,t);return n!==null&&!n.subst&&md(n)}function fd(e,t){let n=e.charAt(t);if(n!==`"`&&n!==`'`&&n!=="`")return null;let r=-1,i=t+1;for(;i<e.length;){let a=e.charAt(i);if(a===`\\`)i+=2;else{if(a===n)return{head:r===-1?e.slice(t+1,i):e.slice(t+1,r),subst:r!==-1,end:i+1};if(n==="`"&&a===`$`&&e.charAt(i+1)===`{`)r===-1&&(r=i),i=pd(e,i+1);else{if(a===`
179
+ `&&n!=="`")return null;i+=1}}}return null}function pd(e,t){let n=0;for(let r=t;r<e.length;r+=1){let t=e.charAt(r);if(t===`{`)n+=1;else if(t===`}`&&(--n,n===0))return r+1}return e.length}function md(e){return e.head.startsWith(`/`)||e.head.startsWith(`.`)}function hd(e,t){let n=t;for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n}function gd(e,t){let n=0,r=e.length-1;for(;n<r;){let i=n+r+1>>1;(e[i]??1/0)<=t?n=i:r=i-1}return n}function _d(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
162
180
  `)?t.split(`
163
181
  `).length-1:t.split(`
164
- `).length;return n>800?[{rule:`oversize`,line:1,text:`over 800 lines: split it along its concerns`,hint:null}]:n>600?[{rule:`oversize`,line:1,text:`over 600 lines`,hint:null}]:[]}var Js=`rename-wrapper`,Ys=`@webority/ui-react`,Xs=`["']${Ys}["']`,V=e=>e.replace(/[^\n]/g,` `),Zs=`shadowed-library-name`;function H(e,t,n,r=Js){let i=e.slice(0,t).split(`
165
- `).length;return{rule:r,line:i,text:e.split(`
166
- `)[i-1].trim(),hint:n}}function Qs(e){return e.replace(/\/\*[\s\S]*?\*\//g,V).replace(/\/\/[^\n]*/g,V)}function $s(e){let t=/* @__PURE__ */ new Map,n=RegExp(`import\\s+(?:type\\s+)?([^;'"]*?)\\s+from\\s*${Xs}`,`g`);for(let r of e.matchAll(n)){let e=r[1],n=e.match(/\{([^}]*)\}/);if(n)for(let e of n[1].split(`,`)){let n=e.trim().replace(/^type\s+/,``).split(/\s+as\s+/);n[0]&&t.set(n[n.length-1],n[0])}let i=e.match(/\*\s*as\s+(\w+)/);i&&t.set(i[1],`*`);let a=e.replace(/\{[^}]*\}/,``).replace(/\*\s*as\s+\w+/,``);for(let e of a.split(`,`)){let n=e.trim();/^\w+$/.test(n)&&t.set(n,`default`)}}return t}function ec(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${Xs}`,`gm`);return[...e.matchAll(t)].map(t=>H(e,t.index,`Import the name from ${Ys} where it is used; a file that only re-exports it adds nothing.`))}function tc(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${Ys} where it is used instead of exporting it through this file.`;for(let i of e.matchAll(/^[ \t]*export\s*\{([^}]*)\}(?!\s*from)/gm))i[1].split(`,`).some(e=>t.has(e.trim().replace(/^type\s+/,``).split(/\s+as\s+/)[0]))&&n.push(H(e,i.index,r));for(let i of e.matchAll(/^[ \t]*export\s+default\s+(\w+)\s*;?[ \t]*$/gm))t.has(i[1])&&n.push(H(e,i.index,r));return n}function nc(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=Qs(t);if(/\buse[A-Z]\w*\s*[(<]/.test(i)||/\b(if|switch)\s*\(/.test(i)||[...i.matchAll(/\breturn\b/g)].length>1)return[];let a=i.match(/(?:\breturn|=>)\s*\(?\s*<([A-Za-z][\w.]*)/);if(!a)return[];let o=a[1],s=r.get(o);return!s||s===`*`||!n.has(s)||[...i.matchAll(/<([A-Za-z][\w.]*)/g)].length!==1||/[?]|&&|\|\|/.test(i.slice(a.index))?[]:[H(t,a.index,`Import ${s} from ${Ys} and use it where this component is used instead of a wrapper.`)]}function rc(e,t){let n=e.split(/[\\/]/).pop();if(!n.startsWith(`_`)||!n.endsWith(`.cshtml`))return[];let r=t.replace(/@\*[\s\S]*?\*@/g,V).replace(/<!--[\s\S]*?-->/g,V).replace(/^[ \t]*@(?:model|using)\b[^\n]*/gm,V),i=r.search(/\S/);if(i<0)return[];let a=r.slice(i).trimEnd(),o=a.match(/^<(app-[a-z0-9-]+)/);return!o||!a.endsWith(`/>`)&&!a.endsWith(`</${o[1]}>`)||(a.match(/<[A-Za-z]/g)||[]).length!==1?[]:[H(t,i,`Render the <${o[1]}> tag directly where the partial is used instead of a partial that only renders it.`)]}function ic(e,t,n,r){let i=[];for(let[a,o]of r){if(a===o||!n.has(o))continue;let r=RegExp(`\\b(?:function|class|const|let|var)\\s+${o}\\b`).exec(e);r&&i.push(H(t,r.index,`Declares ${o} over the library's ${o}; use the library component and its props, or give the product component its own name.`,Zs))}return i}function ac(e,t,n){let r=$s(t);return[...ec(t),...tc(t,r),...nc(e,t,n,r),...rc(e,t),.../\.(jsx|tsx)$/.test(e)?ic(Qs(t),t,n,r):[]]}var oc=()=>new Set(bs),sc=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`],cc=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui)(?:\/[^"']*)?["']/;function lc(e,t,n,i,a){let o=/* @__PURE__ */ new Set;for(let s of O(D(e,t))){if(s.kind!==`import`||s.imported.length===0)continue;let c=ts(t,s.specifier,i);if(c===null)continue;let l=`${n}:${c}`;a.has(l)||a.set(l,bo(r(d(e,c),`utf8`),{phone:n}));let u=a.get(l);for(let{name:e,local:t}of s.imported)u.has(e)&&o.add(t)}return o}var uc=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function dc(e){let n=[];for(let i of L(e,[`package.json`])){if(!t(d(e,i)))continue;let a;try{a=JSON.parse(r(d(e,i),`utf8`))}catch{continue}if(ga(a,d(e,p.dirname(i)))!==`mobile`)continue;let o=p.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function fc(e,n=null){let i=n?n.map(t=>fa(e,t)):null,a=dc(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=L(e,Object.keys(Se).map(e=>`*${e}`)).filter(n=>t(d(e,n))&&!Ne(n,e)&&o(n)),c=[],l=oc(),f=Ja(e),p=Ka(e),m=null,h=/* @__PURE__ */ new Map;for(let n of s){let i=u(n).toLowerCase(),o=Se[i],s=r(d(e,n),`utf8`),g=n.startsWith(`packages/`)||n.startsWith(`samples/`),_=f&&g,v=()=>_?[]:[...Ds(s,o),...ac(n,s,p)],y=[];if(o===`scss`||o===`css`||o===`markup`)y=xn(s,o),o!==`scss`&&o!==`css`||_||y.push(...vs(s,o,l)),o===`markup`&&y.push(...v(),...g?[]:ps(s),...g?[]:Ks(s,`markup`,n),...qs(n,s));else if(o===`script`){let r=!g&&a.some(e=>n.startsWith(e)),o=qn(s)||r;if(Ce.includes(i)&&!o)continue;let c=[];if(!g){let i=r||cc.test(s);m??=new Set(L(e,sc).filter(n=>t(d(e,n)))),c=xo(s,{phone:i,keyedImports:s.includes(`.map(`)?lc(e,n,i,m,h):/* @__PURE__ */ new Set})}y=[...Jn(s,{phone:o,colourLiterals:r}),...c],r&&a.some(e=>n===`${e}assets/theme/settings.js`)&&(y=y.filter(e=>e.rule!==`raw-colour`)),(i===`.jsx`||i===`.tsx`)&&y.push(...v(),...qs(n,s))}else o===`csharp`&&(g||(y=Ks(s,`csharp`)));for(let e of y)c.push({id:`${e.rule}:${n}`,line:e.line,text:e.text,hint:e.hint})}let g=L(e,uc).filter(n=>t(d(e,n)));for(let t of $o(e,g)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!Ne(t.file,e)&&!n&&c.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}return c.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function pc(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var U=process.argv.slice(2),mc=/* @__PURE__ */ new Set([`--baseline-accept`,`--reason`,`--baseline-adopt`]),hc=new Set(U.flatMap((e,t)=>mc.has(e)?[t+1]:[])),W=new Set(U.filter((e,t)=>e.startsWith(`--`)&&!hc.has(t))),G=U.filter((e,t)=>!e.startsWith(`--`)&&!hc.has(t)),gc=W.has(`--sync-hook`),_c=e=>U.includes(e)?U[U.indexOf(e)+1]:void 0,vc=_c(`--baseline-accept`),yc=_c(`--reason`),bc=_c(`--baseline-adopt`)?.split(`,`).map(e=>e.trim()).filter(Boolean),xc=e=>typeof e==`string`&&e.trim()!==``,K=e=>process.stdout.write(`${e}\n`),q=e=>process.stderr.write(`${e}\n`);W.has(`--json`)&&(console.log=(...e)=>console.error(...e));var Sc=/* @__PURE__ */ new Set([`--json`,`--offline`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`,`--baseline-adopt`]),Cc=[...W].filter(e=>!Sc.has(e)),wc=W.has(`--baseline-accept`),Tc=(wc||W.has(`--reason`))&&!(xc(vc)&&xc(yc)),Ec=wc&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||gc||W.has(`--baseline-adopt`)),Dc=W.has(`--baseline-adopt`)&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||gc);(Cc.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||gc&&(W.size>1||G.length)||Tc||Ec||Dc)&&(q(`repo-checks: unknown or conflicting options ${Cc.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--offline] [--baseline-init | --baseline-shrink] [--baseline-accept <folder> --reason <text>] [--baseline-adopt <rule,...>] [app folder ...]`),q(` webority-repo-checks --sync-hook`),process.exit(2));var J=ma(process.cwd());if(J||(q(`repo-checks: not inside a git repository.`),process.exit(2)),gc){let t=d(J,no);n(l(t),{recursive:!0}),s(t,lt),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var Oc=W.has(`--offline`);Oc&&q(`repo-checks: advisory rule skipped (--offline).`);var kc=oo(J,G.length?G.map(e=>h(process.cwd(),e)):null,{advisories:!Oc}).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),Ac=kc.filter(e=>e.warning),jc=kc.filter(e=>!e.warning),Mc=jc.filter(e=>e.id.startsWith(`lint:`)),Nc=jc.filter(e=>!e.id.startsWith(`lint:`)),Pc=fc(J,G.length?G.map(e=>h(process.cwd(),e)):null),Y={findings:Nc.map(e=>ee(e.pkg,e.id)),counts:pc(Pc)},Fc=new Map(Nc.map(e=>[ee(e.pkg,e.id),e]));if(W.has(`--baseline-init`)){G.length&&(q(`repo-checks: --baseline-init reads the whole repository; run it without folder arguments.`),process.exit(2)),t(d(J,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${y} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ae(J,oe(Y));let e=Object.keys(Y.counts).length;K(`repo-checks: recorded ${Nc.length} finding(s) and ${e} counted file(s) (${Pc.length} code finding(s)) in ${y}.`),process.exit(0)}var X=(()=>{try{return te(J)}catch(e){throw e instanceof x&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}})();if(W.has(`--baseline-shrink`)){G.length&&(q(`repo-checks: --baseline-shrink reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(q(`repo-checks: no ${y}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=le(X,Y);ae(J,ue(X,Y)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${y}.`),process.exit(0)}if(wc){G.length&&(q(`repo-checks: --baseline-accept reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(q(`repo-checks: no ${y}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=de(X,Y,vc,yc),t=new Set(X.findings),n=e.findings.filter(e=>!t.has(e)).length,r=Object.keys(e.counts).filter(t=>(X.counts[t]??0)<e.counts[t]).length;ae(J,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${vc} (${yc}).`),process.exit(0)}if(W.has(`--baseline-adopt`)){G.length&&(q(`repo-checks: --baseline-adopt reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(q(`repo-checks: no ${y}; run webority-repo-checks --baseline-init first.`),process.exit(2)),bc?.length||(q(`repo-checks: --baseline-adopt needs a comma-separated list of rule ids.`),process.exit(2));let e;try{e=se(X,Y,bc)}catch(e){throw e instanceof x&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}ae(J,e);let t=new Set(X.findings);for(let n of bc){let r=e.findings.filter(e=>!t.has(e)&&S(e)[1].split(`:`)[0]===n).length,i=Object.keys(e.counts).filter(e=>!(e in X.counts)&&e.split(`:`)[0]===n).length;K(`repo-checks: adopted ${r} finding(s) and ${i} count(s) for ${n} in ${y}.`)}process.exit(0)}var Ic=new Set(G.map(e=>m(J,h(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),Lc=G.length?{pkgs:Ic,dirs:[...Ic]}:null,Z=le(ce(X??{version:2,findings:[],counts:{}},Lc),Y),Rc={"raw-measure":Pe,"palette-read":Le,"raw-colour":Fe,"root-font-size":Ie,"raw-motion":Re,"dark-read":ze,"missing-canvas-key":Be,"repeated-canvas-key":Ve},zc=e=>Rc[e.slice(0,e.indexOf(`:`))],Q=[...Z.fresh.map(e=>Fc.get(e)),...Mc],Bc=Z.known.map(e=>Fc.get(e)),Vc=e=>[`${e.current} found, ${e.baseline} recorded.`,zc(e.id)].filter(Boolean).join(` `),Hc=e=>Xi(e.id.split(`:`)[0]),$=Z.over.filter(Hc).map(e=>({pkg:`.`,id:e.id,message:Vc(e),lines:Pc.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),Uc=Z.over.filter(e=>!Hc(e)).map(e=>({pkg:`.`,id:e.id,message:Vc(e)})),Wc=Z.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),Gc=[...Z.stale.map(S),...Z.fallen.map(e=>[`.`,e.id])],Kc=[...Ac,...Uc];if(W.has(`--json`)||(()=>{if(Kc.length!==0){q(`repo-checks: ${Kc.length} warning(s), not enforced yet. Name a rule in REPO_CHECKS_ENFORCE (comma list, or all) to fail on it:`);for(let e of Kc)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:J,new:[...Q,...$],known:[...Bc,...Wc],stale:Gc,warnings:Kc.map(e=>({pkg:e.pkg,id:e.id,message:e.message}))};K(JSON.stringify(e,null,2)),process.exitCode=Q.length||$.length?1:0}else if(Q.length||$.length){if(Q.length){q(`repo-checks: ${Q.length} new finding(s)`);let e=null;for(let t of Q)t.pkg!==e&&(e=t.pkg,q(` ${e}`)),q(` - ${t.id}: ${t.message}`)}if($.length){q(`repo-checks: ${$.length} file(s) above their recorded count`);for(let e of $){q(` ${e.id}: ${e.message}`);for(let t of e.lines)q(` ${t.line}: ${t.text}`),t.hint!==null&&q(` ${t.hint}`)}}process.exitCode=1}else{if(K(`repo-checks: no new findings.`),Bc.length||Wc.length){let e=Z.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${Bc.length} known finding(s) and ${e} counted code finding(s) in ${Wc.length} file(s) recorded in ${y}.`)}if(Z.stale.length){K(`repo-checks: ${Z.stale.length} baseline entr${Z.stale.length===1?`y is`:`ies are`} fixed; drop them with webority-repo-checks --baseline-shrink:`);for(let e of Z.stale.map(S))K(` ${e[0]} ${e[1]}`)}if(Z.fallen.length){K(`repo-checks: ${Z.fallen.length} count(s) fell; record them with webority-repo-checks --baseline-shrink:`);for(let e of Z.fallen)K(` ${e.id} ${e.baseline} -> ${e.current}`)}}export{};
182
+ `).length;return n>800?[{rule:`oversize`,line:1,text:`over 800 lines: split it along its concerns`,hint:null}]:n>600?[{rule:`oversize`,line:1,text:`over 600 lines`,hint:null}]:[]}var vd=`move this API call to an RTK Query endpoint in services/api (react.md: API data)`,yd=`read data through the RTK Query api module; a screen holds no loading flag of its own`,bd=/\bconst\s+([A-Za-z_$][\w$]*)\s*=\s*createAsyncThunk\.withTypes\b/g,xd=/\bimport\s+(?:type\s+)?(?:[^'"();]+?\s+from\s+)?["']([^"']+)["']/g,Sd=/^((?:.*\/)?)src\/screens\//,Cd=/\.(?:test|spec)\.[jt]sx?$|(?:^|\/)__tests__\//;function wd(e){return Cd.test(e)}function Td(e){return RegExp(`(?<![\\w$.])${e.replace(/\$/g,`\\$`)}\\s*(?:<[^\\n()]*>\\s*)?\\(`,`g`)}function Ed(e,t){let n=[...e.matchAll(bd)].flatMap(e=>e[1]===void 0?[]:[e[1]]),r=[];for(let t of[`createAsyncThunk`,...n])for(let n of e.matchAll(Td(t)))r.push(n.index);return r.sort((e,t)=>e-t).map(e=>({rule:`api-thunk`,...t(e),hint:vd}))}function Dd(e,t,n){let r=Sd.exec(e);if(r===null)return[];let i=`${r[1]??``}src/services`,a=[];for(let r of t.matchAll(xd)){let t=r[1]??``;if(!t.startsWith(`.`))continue;let o=p.join(p.dirname(e),t),s=o===i||o.startsWith(`${i}/`),c=o===`${i}/api`||o.startsWith(`${i}/api/`);s&&!c&&a.push({rule:`screen-service-import`,...n(r.index),hint:yd})}return a}var Od=`rename-wrapper`,kd=`@webority/ui-react`,Ad=`["']${kd}["']`,jd=e=>e.replace(/[^\n]/g,` `),Md=`shadowed-library-name`;function Nd(e,t,n,r=Od){let i=e.slice(0,t).split(`
183
+ `).length;return{rule:r,line:i,text:(e.split(`
184
+ `)[i-1]??``).trim(),hint:n}}function Pd(e){return e.replace(/\/\*[\s\S]*?\*\//g,jd).replace(/\/\/[^\n]*/g,jd)}function Fd(e){let t=/* @__PURE__ */ new Map,n=RegExp(`import\\s+(?:type\\s+)?([^;'"]*?)\\s+from\\s*${Ad}`,`g`);for(let r of e.matchAll(n)){let e=r[1]??``,n=e.match(/\{([^}]*)\}/);if(n)for(let e of(n[1]??``).split(`,`)){let n=e.trim().replace(/^type\s+/,``).split(/\s+as\s+/);n[0]&&t.set(n[n.length-1]??``,n[0])}let i=e.match(/\*\s*as\s+(\w+)/);i&&t.set(i[1]??``,`*`);let a=e.replace(/\{[^}]*\}/,``).replace(/\*\s*as\s+\w+/,``);for(let e of a.split(`,`)){let n=e.trim();/^\w+$/.test(n)&&t.set(n,`default`)}}return t}function Id(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${Ad}`,`gm`);return[...e.matchAll(t)].map(t=>Nd(e,t.index,`Import the name from ${kd} where it is used; a file that only re-exports it adds nothing.`))}function Ld(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${kd} where it is used instead of exporting it through this file.`;for(let i of e.matchAll(/^[ \t]*export\s*\{([^}]*)\}(?!\s*from)/gm))(i[1]??``).split(`,`).some(e=>t.has(e.trim().replace(/^type\s+/,``).split(/\s+as\s+/)[0]??``))&&n.push(Nd(e,i.index,r));for(let i of e.matchAll(/^[ \t]*export\s+default\s+(\w+)\s*;?[ \t]*$/gm))t.has(i[1]??``)&&n.push(Nd(e,i.index,r));return n}function Rd(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=Pd(t);if(/\buse[A-Z]\w*\s*[(<]/.test(i)||/\b(if|switch)\s*\(/.test(i)||[...i.matchAll(/\breturn\b/g)].length>1)return[];let a=i.match(/(?:\breturn|=>)\s*\(?\s*<([A-Za-z][\w.]*)/);if(!a)return[];let o=a[1]??``,s=r.get(o);return!s||s===`*`||!n.has(s)||[...i.matchAll(/<([A-Za-z][\w.]*)/g)].length!==1||/[?]|&&|\|\|/.test(i.slice(a.index??0))?[]:[Nd(t,a.index??0,`Import ${s} from ${kd} and use it where this component is used instead of a wrapper.`)]}function zd(e,t){let n=e.split(/[\\/]/).pop()??``;if(!n.startsWith(`_`)||!n.endsWith(`.cshtml`))return[];let r=t.replace(/@\*[\s\S]*?\*@/g,jd).replace(/<!--[\s\S]*?-->/g,jd).replace(/^[ \t]*@(?:model|using)\b[^\n]*/gm,jd),i=r.search(/\S/);if(i<0)return[];let a=r.slice(i).trimEnd(),o=a.match(/^<(app-[a-z0-9-]+)/);return!o||!a.endsWith(`/>`)&&!a.endsWith(`</${o[1]}>`)||(a.match(/<[A-Za-z]/g)||[]).length!==1?[]:[Nd(t,i,`Render the <${o[1]}> tag directly where the partial is used instead of a partial that only renders it.`)]}function Bd(e,t,n,r){let i=[];for(let[a,o]of r){if(a===o||!n.has(o))continue;let r=RegExp(`\\b(?:function|class|const|let|var)\\s+${o}\\b`).exec(e);r&&i.push(Nd(t,r.index,`Declares ${o} over the library's ${o}; use the library component and its props, or give the product component its own name.`,Md))}return i}function Vd(e,t,n){let r=Fd(t);return[...Id(t),...Ld(t,r),...Rd(e,t,n,r),...zd(e,t),.../\.(jsx|tsx)$/.test(e)?Bd(Pd(t),t,n,r):[]]}var Hd=()=>new Set(Wc),Ud=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`],Wd=[`settings.js`,`settings.ts`,`settings.jsx`,`settings.tsx`],Gd=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui)(?:\/[^"']*)?["']/;function Kd(e,t,n,i,a){let o=/* @__PURE__ */ new Set;for(let s of A(k(e,t))){if(s.kind!==`import`||s.imported.length===0)continue;let c=Tc(t,s.specifier,i);if(c===null)continue;let l=`${n}:${c}`,u=a.get(l);u||(u=Vs(r(d(e,c),`utf8`),{phone:n}),a.set(l,u));for(let{name:e,local:t}of s.imported)u.has(e)&&o.add(t)}return o}var qd=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function Jd(e){let n=[];for(let i of L(e,[`package.json`])){if(!t(d(e,i)))continue;let a;try{a=JSON.parse(r(d(e,i),`utf8`))}catch{continue}if(Po(a,d(e,p.dirname(i)))!==`mobile`)continue;let o=p.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function Yd(e,n=null){let i=n?n.map(t=>wo(e,t)):null,a=Jd(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=L(e,Object.keys(Ue).map(e=>`*${e}`)).filter(n=>t(d(e,n))&&!et(n,e)&&o(n)),c=[],l=Hd(),f=ms(e),p=ds(e),m=null,h=/* @__PURE__ */ new Map;for(let n of s){let i=u(n).toLowerCase(),o=Ue[i];if(o===void 0)continue;let s=r(d(e,n),`utf8`),g=n.startsWith(`packages/`)||n.startsWith(`samples/`),_=f&&g,v=e=>_?[]:[...Zc(s,e),...Vd(n,s,p)],y=[];if(o===`scss`||o===`css`||o===`markup`)y=ur(s,o),o!==`scss`&&o!==`css`||_||y.push(...Hc(s,o,l)),o===`markup`&&y.push(...v(`markup`),...g?[]:Lc(s),...g?[]:ed(s,`markup`,n),..._d(n,s));else if(o===`script`){let r=!g&&a.some(e=>n.startsWith(e)),o=Ir(s)||r;if(We.includes(i)&&!o)continue;let c=[];if(!g){let i=r||Gd.test(s);m??=new Set(L(e,Ud).filter(n=>t(d(e,n)))),c=Hs(s,{phone:i,keyedImports:s.includes(`.map(`)?Kd(e,n,i,m,h):/* @__PURE__ */ new Set})}y=[...Lr(s,{phone:o,colourLiterals:r}),...c],r&&a.some(e=>Wd.some(t=>n===`${e}assets/theme/${t}`))&&(y=y.filter(e=>e.rule!==`raw-colour`)),(i===`.jsx`||i===`.tsx`)&&(y.push(...v(`script`),..._d(n,s)),!g&&!o&&y.push(...ld(s)))}else o===`csharp`&&(g||(y=ed(s,`csharp`)));for(let e of y)c.push({id:`${e.rule}:${n}`,line:e.line,text:e.text,hint:e.hint})}for(let t of s){if(Ue[u(t).toLowerCase()]!==`script`||wd(t)||t.startsWith(`packages/`)||t.startsWith(`samples/`))continue;let n=k(e,t),r=e=>{let t=n.lineAt(e);return{line:t,text:(n.lines[t-1]??``).trim()}};for(let e of[...Ed(n.blanked,r),...Dd(t,n.blanked,r)])c.push({id:`${e.rule}:${t}`,line:e.line,text:e.text,hint:e.hint})}let g=L(e,qd).filter(n=>t(d(e,n)));for(let t of Sc(e,g)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!et(t.file,e)&&!n&&c.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}let _=Eu(e,L(e,[`*.cshtml`,`*.cs`,`*.csproj`,`*.js`,`*.jsx`,`*.ts`,`*.tsx`]).filter(n=>t(d(e,n))&&!et(n,e)));for(let e of _.hits){let t=e.file.startsWith(`packages/`)||e.file.startsWith(`samples/`);o(e.file)&&!t&&c.push({id:`${e.rule}:${e.file}`,line:e.line,text:e.text,hint:e.hint})}let v=[{count:_.skipped.unverifiedPages,what:`pages whose model or base class is outside the repo`},{count:_.skipped.dynamicHandlers,what:`handler names built at render time`},{count:_.skipped.foreignAreaLinks,what:`links into areas no folder in the repo holds`},{count:_.skipped.unreadRouteValues,what:`C# page calls whose route values are in a variable`},{count:_.skipped.unresolvedLinks,what:`page links whose target is built at render time or is not a page name`}].filter(e=>e.count>0);return v.length>0&&console.log(`note: Razor links not checked: ${v.map(e=>`${e.count} ${e.what}`).join(`; `)}.`),c.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function Xd(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var Zd=process.argv.slice(2),Qd=/* @__PURE__ */ new Set([`--baseline-accept`,`--reason`,`--baseline-adopt`]),$d=new Set(Zd.flatMap((e,t)=>Qd.has(e)?[t+1]:[])),U=new Set(Zd.filter((e,t)=>e.startsWith(`--`)&&!$d.has(t))),W=Zd.filter((e,t)=>!e.startsWith(`--`)&&!$d.has(t)),ef=U.has(`--sync-hook`),tf=e=>Zd.includes(e)?Zd[Zd.indexOf(e)+1]:void 0,nf=tf(`--baseline-accept`),rf=tf(`--reason`),af=tf(`--baseline-adopt`)?.split(`,`).map(e=>e.trim()).filter(Boolean),of=e=>typeof e==`string`&&e.trim()!==``,G=e=>process.stdout.write(`${e}\n`),K=e=>process.stderr.write(`${e}\n`);U.has(`--json`)&&(console.log=(...e)=>console.error(...e));var sf=/* @__PURE__ */ new Set([`--json`,`--offline`,`--build`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`,`--baseline-adopt`]),cf=[...U].filter(e=>!sf.has(e)),lf=U.has(`--baseline-accept`),uf=(lf||U.has(`--reason`))&&!(of(nf)&&of(rf)),df=lf&&(U.has(`--baseline-init`)||U.has(`--baseline-shrink`)||ef||U.has(`--baseline-adopt`)),ff=U.has(`--baseline-adopt`)&&(U.has(`--baseline-init`)||U.has(`--baseline-shrink`)||U.has(`--baseline-accept`)||ef),q=U.has(`--build`),pf=q&&(U.has(`--baseline-init`)||U.has(`--baseline-shrink`)||U.has(`--baseline-accept`)||U.has(`--baseline-adopt`)||ef);(cf.length||U.has(`--baseline-init`)&&U.has(`--baseline-shrink`)||ef&&(U.size>1||W.length)||uf||df||ff||pf)&&(K(`repo-checks: unknown or conflicting options ${cf.join(` `)}`.trim()),K(`usage: webority-repo-checks [--json] [--offline] [--build] [--baseline-init | --baseline-shrink] [--baseline-accept <folder> --reason <text>] [--baseline-adopt <rule,...>] [app folder ...]`),K(` webority-repo-checks --sync-hook`),process.exit(2));var J=Mo(process.cwd());if(J||(K(`repo-checks: not inside a git repository.`),process.exit(2)),ef){let t=d(J,Cs);n(l(t),{recursive:!0}),s(t,At),e(t,493),G(`repo-checks: wrote ${t}`),process.exit(0)}var mf=U.has(`--offline`);mf&&!q&&K(`repo-checks: advisory rule skipped (--offline).`);var hf=Os(J,W.length?W.map(e=>h(process.cwd(),e)):null,{advisories:!mf&&!q,build:q}).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),gf=hf.filter(e=>e.warning),_f=hf.filter(e=>!e.warning),vf=_f.filter(e=>e.id.startsWith(`lint:`)),yf=_f.filter(e=>!e.id.startsWith(`lint:`)),bf=q?[]:Yd(J,W.length?W.map(e=>h(process.cwd(),e)):null),Y={findings:yf.map(e=>ne(e.pkg,e.id)),counts:Xd(bf)},xf=new Map(yf.map(e=>[ne(e.pkg,e.id),e]));if(U.has(`--baseline-init`)){W.length&&(K(`repo-checks: --baseline-init reads the whole repository; run it without folder arguments.`),process.exit(2)),t(d(J,`.webority/baselines/repo-checks-baseline.json`))&&(K(`repo-checks: ${y} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),w(J,se(Y));let e=Object.keys(Y.counts).length;G(`repo-checks: recorded ${yf.length} finding(s) and ${e} counted file(s) (${bf.length} code finding(s)) in ${y}.`),process.exit(0)}var X=(()=>{try{return re(J)}catch(e){throw e instanceof x&&(K(`repo-checks: ${e.message}`),process.exit(2)),e}})();if(U.has(`--baseline-shrink`)){W.length&&(K(`repo-checks: --baseline-shrink reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(K(`repo-checks: no ${y}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=ue(X,Y);w(J,de(X,Y)),G(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${y}.`),process.exit(0)}if(lf){if(W.length&&(K(`repo-checks: --baseline-accept reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(K(`repo-checks: no ${y}; run webority-repo-checks --baseline-init first.`),process.exit(2)),nf===void 0||rf===void 0)throw Error(`webority-repo-checks: --baseline-accept needs a folder and --reason text.`);let e=fe(X,Y,nf,rf),t=new Set(X.findings),n=e.findings.filter(e=>!t.has(e)).length,r=Object.entries(e.counts).filter(([e,t])=>(X.counts[e]??0)<t).length;w(J,e),G(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${nf} (${rf}).`),process.exit(0)}if(U.has(`--baseline-adopt`)){W.length&&(K(`repo-checks: --baseline-adopt reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(K(`repo-checks: no ${y}; run webority-repo-checks --baseline-init first.`),process.exit(2)),af?.length||(K(`repo-checks: --baseline-adopt needs a comma-separated list of rule ids.`),process.exit(2));let e;try{e=ce(X,Y,af)}catch(e){throw e instanceof x&&(K(`repo-checks: ${e.message}`),process.exit(2)),e}w(J,e);let t=new Set(X.findings);for(let n of af){let r=e.findings.filter(e=>!t.has(e)&&C(e)[1].split(`:`)[0]===n).length,i=Object.keys(e.counts).filter(e=>!(e in X.counts)&&e.split(`:`)[0]===n).length;G(`repo-checks: adopted ${r} finding(s) and ${i} count(s) for ${n} in ${y}.`)}process.exit(0)}var Sf=new Set(W.map(e=>m(J,h(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),Cf=W.length?{pkgs:Sf,dirs:[...Sf]}:null,wf=le(X??{version:2,findings:[],counts:{}},Cf),Z=ue(q?{...wf,counts:{},findings:wf.findings.filter(e=>!Ds.includes(C(e)[1].split(`:`)[0]??``))}:wf,Y),Tf={"raw-measure":tt,"palette-read":it,"raw-colour":nt,"root-font-size":rt,"raw-motion":at,"dark-read":ot,"missing-canvas-key":st,"repeated-canvas-key":ct},Ef=e=>Tf[e.slice(0,e.indexOf(`:`))],Df=e=>{let t=xf.get(e);if(t===void 0)throw Error(`webority-repo-checks: finding ${e} is missing.`);return t},Q=[...Z.fresh.map(Df),...vf],Of=Z.known.map(Df),kf=e=>[`${e.current} found, ${e.baseline} recorded.`,Ef(e.id)].filter(Boolean).join(` `),Af=e=>io(e.id.split(`:`)[0]??``),$=Z.over.filter(Af).map(e=>({pkg:`.`,id:e.id,message:kf(e),lines:bf.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),jf=Z.over.filter(e=>!Af(e)).map(e=>({pkg:`.`,id:e.id,message:kf(e)})),Mf=Z.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),Nf=[...Z.stale.map(C),...Z.fallen.map(e=>[`.`,e.id])],Pf=[...gf,...jf];if(U.has(`--json`)||(()=>{if(Pf.length!==0){K(`repo-checks: ${Pf.length} warning(s), not enforced yet. Name a rule in REPO_CHECKS_ENFORCE (comma list, or all) to fail on it:`);for(let e of Pf)K(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),U.has(`--json`)){let e={root:J,new:[...Q,...$],known:[...Of,...Mf],stale:Nf,warnings:Pf.map(e=>({pkg:e.pkg,id:e.id,message:e.message}))};G(JSON.stringify(e,null,2)),process.exitCode=Q.length||$.length?1:0}else if(Q.length||$.length){if(Q.length){K(`repo-checks: ${Q.length} new finding(s)`);let e=null;for(let t of Q)t.pkg!==e&&(e=t.pkg,K(` ${e}`)),K(` - ${t.id}: ${t.message}`)}if($.length){K(`repo-checks: ${$.length} file(s) above their recorded count`);for(let e of $){K(` ${e.id}: ${e.message}`);for(let t of e.lines)K(` ${t.line}: ${t.text}`),t.hint!==null&&K(` ${t.hint}`)}}process.exitCode=1}else{if(G(`repo-checks: no new findings.`),Of.length||Mf.length){let e=Z.within.reduce((e,t)=>e+t.current,0);G(`repo-checks: ${Of.length} known finding(s) and ${e} counted code finding(s) in ${Mf.length} file(s) recorded in ${y}.`)}if(Z.stale.length&&!q){G(`repo-checks: ${Z.stale.length} baseline entr${Z.stale.length===1?`y is`:`ies are`} fixed; drop them with webority-repo-checks --baseline-shrink:`);for(let e of Z.stale.map(C))G(` ${e[0]} ${e[1]}`)}if(Z.fallen.length&&!q){G(`repo-checks: ${Z.fallen.length} count(s) fell; record them with webority-repo-checks --baseline-shrink:`);for(let e of Z.fallen)G(` ${e.id} ${e.baseline} -> ${e.current}`)}}export{};