@webority/repo-checks 0.120.0 → 0.121.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.
- package/dist/repo-checks.js +19 -19
- package/package.json +2 -2
package/dist/repo-checks.js
CHANGED
|
@@ -62,7 +62,7 @@ fi
|
|
|
62
62
|
`?`
|
|
63
63
|
`:` `;r=o}return n}function yt(e,t){let n=[0];for(let t=0;t<e.length;t+=1)e[t]===`
|
|
64
64
|
`&&n.push(t+1);let r=t.split(`
|
|
65
|
-
`);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 bt=[...fe].sort((e,t)=>t.length-e.length).join(`|`),xt=RegExp(`(?<![\\w$@.#-])(${bt})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),St=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(` `)),Ct=/(?<![\w&-])#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})(?![0-9a-f\w-])/,wt=/\b(?:rgba?|hsla?)\(\s*[-.\d]/,Tt=/(?<![\w$@#.-])[a-z]+(?![\w-])/g,Et=/(?<![\w&-])#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)(?![0-9a-f\w-])/g,Dt=/\b(?:rgba?|hsla?)\(([^()]*)\)/g,Ot=/^(?:0+(?:\.0*)?|\.0+)%?$/;function kt(e){let t=e.split(`/`);if(t.length===2)return Ot.test(t[1].trim());let n=e.split(`,`);return n.length===4&&Ot.test(n[3].trim())}var At=[...ge].sort((e,t)=>t.length-e.length).join(`|`),jt=RegExp(`(?<![\\w$@.#-])(${At})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),Mt=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,Nt=Object.keys(ye).join(`|`),Pt=RegExp(`var\\(\\s*--bs-(${Nt})(?:-rgb)?\\s*[,)]`,`g`),Ft=RegExp(`(?<![\\w$-])\\$(${Nt})(?![\\w-])`,`g`),It={"palette-read":0,"raw-colour":1,"raw-measure":2,"root-font-size":3};function Lt(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).trim()}function Rt(e,t){return Lt(e,t)?.toLowerCase()===`@font-face`}function zt(e,t){let n=Lt(e,t);return n!==null&&n.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===`html`||t===`:root`||/^(?:html|:root)(?:\[|:|\.)/.test(t)})}function Bt(e,t){let n=x(e,t),r=yt(n,e),i=[];for(let e of n.matchAll(xt)){let t=e[1].toLowerCase(),a=e[2];Vt(t,a)&&!Rt(n,e.index)&&i.push({rule:`raw-measure`,...r(e.index),hint:null}),(t===`font-size`||t===`font`)&&zt(n,e.index)&&i.push({rule:`root-font-size`,...r(e.index),hint:null})}for(let e of n.matchAll(jt))Ht(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(Mt)){let t=e[1];dt.has(t)&&i.push({rule:`palette-read`,...r(e.index),hint:ht(t,`web`)})}for(let e of n.matchAll(Pt))i.push({rule:`palette-read`,...r(e.index),hint:gt(e[1])});if(t===`scss`)for(let e of n.matchAll(Ft)){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:gt(e[1])})}return i.sort((e,t)=>e.line-t.line||It[e.rule]-It[t.rule]),i}function Vt(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===``&&pe.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 Ht(e){let t=e.replace(/url\([^)]*\)/gi,`url()`).replace(/(["'])(?:\\.|(?!\1).)*\1/g,`""`).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/!important/gi,``).toLowerCase().replace(Et,``).replace(Dt,(e,t)=>kt(t)?``:e);if(Ct.test(t)||wt.test(t))return!0;for(let e of t.matchAll(Tt))if(St.has(e[0]))return!0;return!1}var Ut=/(?:\bfrom\s*|\brequire\(\s*)["']react-native["']/,Wt=[...he].sort((e,t)=>t.length-e.length),Gt=[...he,...fe].sort((e,t)=>t.length-e.length),Kt=Wt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),qt=Gt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Jt=RegExp(`(?<![\\w$.])(?:(${Kt})|(["'])(${qt})\\2)\\s*:(?!:)`,`g`),Yt=[..._e].sort((e,t)=>t.length-e.length),Xt=[..._e,..._e.map(Sn)].sort((e,t)=>t.length-e.length),Zt=Yt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Qt=Xt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),$t=RegExp(`(?<![\\w$.])(?:(${Zt})|(["'])(${Qt})\\2)\\s*:(?!:)`,`g`),en={"palette-read":0,"raw-colour":1,"raw-measure":2,"root-font-size":3},tn=Object.keys(ye).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),nn=RegExp(`var\\(\\s*--bs-(${tn})(?:-rgb)?\\s*[,)]`,`g`),rn=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,an=/(?<![\w$])palette\s*(?:\?\.|\.|\[)/g,on=/(?<![\w$.])-?(?:\d+(?:\.\d+)?|\.\d+)(?![\w.])/g,sn=`read a meaning: theme.colors["<name>"] on phone, var(--color-<name>) on web; a product-only colour goes into theme/brand.tokens.json`,cn=`${sn}. react-native.md: colours come from useTheme()`,ln=/(["'`])((?:\\.|(?!\1)[^\\\n])*)\1/g,un=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,dn=/^(?:rgba?|hsla?)\(.*\)$/i,fn=/(?<![\w$.])(?:color|[A-Za-z]+Color)\s*=\s*$/;function pn(e){return Ut.test(e)}function mn(e,{phone:t,colourLiterals:n=!1}){let{blanked:r,lineStarts:i}=hn(e),a=[],o=[];return vn(r,i,e,a),yn(r,i,e,a,o,t),Tn(r,i,e,a),En(r,i,e,a),t&&Dn(r,i,e,a),n&&bn(r,i,e,a,o),a.sort((e,t)=>e.line-t.line||en[e.rule]-en[t.rule]),a}function hn(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===`
|
|
65
|
+
`);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 bt=[...fe].sort((e,t)=>t.length-e.length).join(`|`),xt=RegExp(`(?<![\\w$@.#-])(${bt})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),St=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(` `)),Ct=/(?<![\w&-])#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})(?![0-9a-f\w-])/,wt=/\b(?:rgba?|hsla?)\(\s*[-.\d]/,Tt=/(?<![\w$@#.-])[a-z]+(?![\w-])/g,Et=/(?<![\w&-])#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)(?![0-9a-f\w-])/g,Dt=/\b(?:rgba?|hsla?)\(([^()]*)\)/g,Ot=/^(?:0+(?:\.0*)?|\.0+)%?$/;function kt(e){let t=e.split(`/`);if(t.length===2)return Ot.test(t[1].trim());let n=e.split(`,`);return n.length===4&&Ot.test(n[3].trim())}var At=[...ge].sort((e,t)=>t.length-e.length).join(`|`),jt=RegExp(`(?<![\\w$@.#-])(${At})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),Mt=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,Nt=Object.keys(ye).join(`|`),Pt=RegExp(`var\\(\\s*--bs-(${Nt})(?:-rgb)?\\s*[,)]`,`g`),Ft=RegExp(`(?<![\\w$-])\\$(${Nt})(?![\\w-])`,`g`),It={"palette-read":0,"raw-colour":1,"raw-measure":2,"root-font-size":3};function Lt(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 Rt(e,t){return Lt(e,t)?.toLowerCase()===`@font-face`}function zt(e,t){let n=Lt(e,t);return n!==null&&n.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===`html`||t===`:root`||/^(?:html|:root)(?:\[|:|\.)/.test(t)})}function Bt(e,t){let n=x(e,t),r=yt(n,e),i=[];for(let e of n.matchAll(xt)){let t=e[1].toLowerCase(),a=e[2];Vt(t,a)&&!Rt(n,e.index)&&i.push({rule:`raw-measure`,...r(e.index),hint:null}),(t===`font-size`||t===`font`)&&zt(n,e.index)&&i.push({rule:`root-font-size`,...r(e.index),hint:null})}for(let e of n.matchAll(jt))Ht(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(Mt)){let t=e[1];dt.has(t)&&i.push({rule:`palette-read`,...r(e.index),hint:ht(t,`web`)})}for(let e of n.matchAll(Pt))i.push({rule:`palette-read`,...r(e.index),hint:gt(e[1])});if(t===`scss`)for(let e of n.matchAll(Ft)){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:gt(e[1])})}return i.sort((e,t)=>e.line-t.line||It[e.rule]-It[t.rule]),i}function Vt(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===``&&pe.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 Ht(e){let t=e.replace(/url\([^)]*\)/gi,`url()`).replace(/(["'])(?:\\.|(?!\1).)*\1/g,`""`).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/!important/gi,``).toLowerCase().replace(Et,``).replace(Dt,(e,t)=>kt(t)?``:e);if(Ct.test(t)||wt.test(t))return!0;for(let e of t.matchAll(Tt))if(St.has(e[0]))return!0;return!1}var Ut=/(?:\bfrom\s*|\brequire\(\s*)["']react-native["']/,Wt=[...he].sort((e,t)=>t.length-e.length),Gt=[...he,...fe].sort((e,t)=>t.length-e.length),Kt=Wt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),qt=Gt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Jt=RegExp(`(?<![\\w$.])(?:(${Kt})|(["'])(${qt})\\2)\\s*:(?!:)`,`g`),Yt=[..._e].sort((e,t)=>t.length-e.length),Xt=[..._e,..._e.map(Sn)].sort((e,t)=>t.length-e.length),Zt=Yt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Qt=Xt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),$t=RegExp(`(?<![\\w$.])(?:(${Zt})|(["'])(${Qt})\\2)\\s*:(?!:)`,`g`),en={"palette-read":0,"raw-colour":1,"raw-measure":2,"root-font-size":3},tn=Object.keys(ye).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),nn=RegExp(`var\\(\\s*--bs-(${tn})(?:-rgb)?\\s*[,)]`,`g`),rn=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,an=/(?<![\w$])palette\s*(?:\?\.|\.|\[)/g,on=/(?<![\w$.])-?(?:\d+(?:\.\d+)?|\.\d+)(?![\w.])/g,sn=`read a meaning: theme.colors["<name>"] on phone, var(--color-<name>) on web; a product-only colour goes into theme/brand.tokens.json`,cn=`${sn}. react-native.md: colours come from useTheme()`,ln=/(["'`])((?:\\.|(?!\1)[^\\\n])*)\1/g,un=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,dn=/^(?:rgba?|hsla?)\(.*\)$/i,fn=/(?<![\w$.])(?:color|[A-Za-z]+Color)\s*=\s*$/;function pn(e){return Ut.test(e)}function mn(e,{phone:t,colourLiterals:n=!1}){let{blanked:r,lineStarts:i}=hn(e),a=[],o=[];return vn(r,i,e,a),yn(r,i,e,a,o,t),Tn(r,i,e,a),En(r,i,e,a),t&&Dn(r,i,e,a),n&&bn(r,i,e,a,o),a.sort((e,t)=>e.line-t.line||en[e.rule]-en[t.rule]),a}function hn(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===`
|
|
66
66
|
`?(s=!1,t.push(p),n.push(t.length)):t.push(` `),r++;continue}if(c){p===`*`&&m===`/`?(c=!1,t.push(` `,` `),r+=2):(p===`
|
|
67
67
|
`?(t.push(p),n.push(t.length)):t.push(` `),r++);continue}if(i){t.push(p),p===`
|
|
68
68
|
`&&n.push(t.length),p===`\\`?(t.push(e[r+1]),r+=2):(p===`'`&&(i=!1),r++);continue}if(a){t.push(p),p===`
|
|
@@ -75,12 +75,12 @@ fi
|
|
|
75
75
|
`),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 Bn(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 E(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(Nn))n(t.index,`import`,t[2],Bn(t[1]));for(let t of e.blanked.matchAll(Pn))n(t.index,`import`,t[1],[]);for(let t of e.blanked.matchAll(Fn))n(t.index,`export-from`,t[2],Bn(t[1]));for(let t of e.blanked.matchAll(In))n(t.index,`require`,t[1],[]);for(let t of e.blanked.matchAll(Ln))n(t.index,`dynamic`,t[1],[]);return t.sort((e,t)=>e.line-t.line)}function D(e,t,n){let r;if(n.startsWith(`@/`))r=`src/${n.slice(2)}`;else if(n.startsWith(`.`))r=d.normalize(d.join(d.dirname(t),n));else return null;for(let t of jn)if(e.has(r+t))return r+t;return null}function O(e,t,n){let r=[];t.lines.forEach((t,n)=>{let i=Mn.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 k(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 Vn=/^src\/screens\/(public|user)\/([^/]+)\/.+/;function Hn(e){let t=Vn.exec(e);return t?`${t[1]}/${t[2]}`:null}function Un(e,t){let n=w(t),r=new Set(n),i=[];for(let t of n){let n=Hn(t);if(n===null)continue;let a=T(e,t),o=[];for(let e of E(a)){let i=D(r,t,e.specifier),a=i===null?null:Hn(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(...O(`cross-feature-import`,a,o))}return k(i)}var Wn=new Set([`assets`,`components`,`constants`,`hooks`,`navigation`,`redux`,`screens`,`services`,`utils`]),Gn=/\.(?:jsx|ts|tsx)$/,Kn=/\.(?:js|jsx|ts|tsx)$/,qn=/^src\/screens\/(?:public\/.+|user\/[^/]+\/.+)$/,Jn=/[A-Za-z0-9]Screen\.js$/,A={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`},Yn=(e,t)=>`${e}: react-native.md App layout: ${t}.`;function Xn(e,t){let n=new Set,r=new Map,i=(e,t)=>{r.has(e)||r.set(e,[]),r.get(e).push({line:1,message:Yn(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&&!Wn.has(t[1])&&n.add(t[1]),Gn.test(e)&&i(e,A.script),e.startsWith(`src/screens/`)&&Kn.test(e)&&(e!==`src/screens/index.js`&&!qn.test(e)&&i(e,A.screenHome),Jn.test(e)&&i(e,A.suffix)),e.startsWith(`src/assets/theme/`)&&e!==`src/assets/theme/settings.js`&&i(e,A.theme)))}let a=[];for(let[t,n]of r)zn(t)?a.push(...O(`folder-layout`,T(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:Yn(`src/${r}`,A.folder)},i=`src/${r}/index.js`;if(!t.includes(i)){a.push(n);continue}for(let t of O(`folder-layout`,T(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:Yn(`tsconfig.json`,A.tsconfig)}),k(a)}var Zn=`src/screens/index.js`;function Qn(e,t){let n=w(t),r=new Set(n),i=[];for(let t of n){if(t.startsWith(`src/screens/`)||t.startsWith(`src/navigation/`))continue;let n=T(e,t),a=[];for(let e of E(n)){let n=D(r,t,e.specifier);n?.startsWith(`src/screens/`)&&n!==Zn&&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(...O(`import-into-screens`,n,a))}return k(i)}var $n=`@webority/mobile-ui`,er=40,tr=/\{\s*\.\.\.(?:props|rest)\s*\}/,nr=[`lib/typescript/module/components/index.d.ts`,`lib/typescript/module/index.d.ts`],rr=e=>`wraps mobile-ui ${e}. react-native.md: no restyle or pass-through wrapper; use ${e} directly, put house defaults in theme settings.`;function ir(e){let n=new Set;for(let i of nr){let a=l(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 ar(e){let t=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 or(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 sr(e){if(Rn(e.text)>er)return null;let t=new Set;for(let n of E(e))if(!(n.kind!==`import`||n.specifier!==$n&&!n.specifier.startsWith(`${$n}/`)))for(let{name:e,local:r}of n.imported)e!==`*`&&t.add(r);if(t.size===0||ar(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(tr.test(or(e.blanked,r)))return{name:n[1],line:e.lineAt(r)}}return null}function cr(e,t){let n=ir(e),r=[];for(let i of w(t)){if(!i.startsWith(`src/`))continue;let t=T(e,i),a=[],s=/^App([A-Z][A-Za-z0-9]*)\.[jt]sx?$/.exec(o(i))?.[1];if(s&&n.has(s))a.push({line:1,message:rr(s)});else{let e=sr(t);e&&a.push({line:e.line,message:rr(e.name)})}r.push(...O(`library-wrapper`,t,a))}return k(r)}var lr=`@webority/mobile-ui`,ur=new Set([`makeStyles`,`useTheme`,`ThemeProvider`]),dr=new Set([`COLORS`,`PALETTE`,`LIGHT_COLORS`,`DARK_COLORS`,`commonStyles`,`FONT_SIZE`,`Responsive`]),fr=/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Za-z_$][\w$]*)/g,pr=/\bexport\s*\{([^}]*)\}/g,mr=e=>`local theme ${e}. react-native.md: the library owns the theme; the app supplies brand and settings only.`;function hr(e,t){let n=[];for(let r of w(t)){if(!r.startsWith(`src/`))continue;let t=T(e,r),i=[];for(let e of E(t))if(!(e.kind!==`import`||e.specifier===lr||e.specifier.startsWith(`${lr}/`)))for(let{name:t,local:n}of e.imported){let r=t==="default"?n:t;ur.has(r)&&i.push({line:e.line,message:mr(r)})}for(let e of t.blanked.matchAll(fr))dr.has(e[1])&&i.push({line:t.lineAt(e.index),message:mr(e[1])});for(let e of t.blanked.matchAll(pr))for(let n of e[1].split(`,`)){let r=n.trim().split(/\s+as\s+/).pop();dr.has(r)&&i.push({line:t.lineAt(e.index),message:mr(r)})}n.push(...O(`local-theme`,t,i))}return k(n)}var gr=/^(?:workspace:|file:|link:)/;function _r(e){let t=l(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=>!gr.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 u=n.split(`
|
|
76
76
|
`).findIndex(e=>e.includes(`"${s[0]}"`));return[{rule:`mobile-pins-lockstep`,file:`package.json`,line:u===-1?1:u+1,message:`pins ${s[0]}@${s[1]} and ${c[0]}@${c[1]}. react-native.md: the phone packages move together.`}]}var vr=new Set([`Text`,`TextInput`,`Pressable`,`TouchableOpacity`,`TouchableHighlight`,`TouchableWithoutFeedback`,`ActivityIndicator`,`Modal`,`Switch`,`Button`]),yr=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 br(e,t){let n=[];for(let r of w(t)){if(!r.startsWith(`src/screens/`)&&!r.startsWith(`src/components/`))continue;let t=T(e,r),i=new Set;for(let e of E(t))if(!(e.kind!==`import`||e.specifier!==`react-native`))for(let{name:t,local:n}of e.imported)vr.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:yr(e)})}n.push(...O(`raw-primitive`,t,a))}return k(n)}var j=`src/screens/index.js`;function xr(e,t){let n=w(t);if(!n.includes(j))return[];let r=new Set(n),i=new Set;for(let t of E(T(e,j))){if(t.kind!==`export-from`)continue;let e=D(r,j,t.specifier);e!==null&&i.add(e)}let a=[];for(let t of n){if(t===j||t.startsWith(`src/navigation/`))continue;let n=T(e,t),o=[];for(let e of E(n)){let n=D(r,t,e.specifier);if(n!==null&&n!==t&&i.has(n)){let t=d.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(...O(`screen-imports-screen`,n,o))}return k(a)}var Sr=400,Cr=600;function wr(e,t){let n=[];for(let r of w(t)){if(!r.startsWith(`src/screens/`))continue;let t=T(e,r),i=Rn(t.text),a=i>Sr?[{line:1,message:`${i} lines. react-native.md: split a screen over 400 lines; over 600 is a finding.`,note:i<=Cr}]:[];n.push(...O(`screen-length`,t,a))}return k(n)}var Tr=/(?:^|\/)index\.[jt]sx?$/,Er=e=>e.startsWith(`src/components/`)&&!Tr.test(e);function Dr(e,t){let n=w(t),r=new Set(n),i=new Map,a=t=>(i.has(t)||i.set(t,T(e,t)),i.get(t)),o=new Map;for(let e of n){if(!e.startsWith(`src/components/`)||!Tr.test(e))continue;let t=new Map,n=[];for(let i of E(a(e))){if(i.kind!==`export-from`)continue;let a=D(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=new Map,l=(e,t)=>{e!==t&&(c.has(e)||c.set(e,new Set),c.get(e).add(t))};for(let e of n)for(let t of E(a(e))){if(t.kind===`export-from`)continue;let n=D(r,e,t.specifier);if(n===null)continue;let i=o.get(n);if(!i){l(n,e);continue}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=[];for(let e of n){if(!Er(e))continue;let t=c.get(e)?.size??0,n=t<2?[{line:1,message:`${e} has ${t} importer(s). react-native.md: a part one screen uses lives beside that screen.`}]:[];u.push(...O(`shared-single-importer`,a(e),n))}return k(u)}var Or=/(?<![\w$.])Responsive\s*\.\s*(?:width|height|font)\s*\(/g,kr=`scales by screen width. react-native.md: use theme.space and the text scale.`;function Ar(e,t){let n=[];for(let r of w(t)){if(!r.startsWith(`src/`))continue;let t=T(e,r),i=[...t.blanked.matchAll(Or)].map(e=>({line:t.lineAt(e.index),message:kr}));n.push(...O(`width-scaling`,t,i))}return k(n)}var jr=[br,Un,Qn,xr,Dr,cr,wr,_r,Xn,hr,Ar],Mr=new Set([`node_modules`,`android`,`ios`,`.git`]);function Nr(e,t=``){let n=[];for(let r of i(l(e,t),{withFileTypes:!0})){if(Mr.has(r.name))continue;let i=t?`${t}/${r.name}`:r.name;r.isDirectory()?n.push(...Nr(e,i)):n.push(i)}return n}function Pr(e){let t=Nr(e).sort(),n=[];for(let r of jr.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 Fr=new Set([`node_modules`,`dist`,`build`,`.git`,`.gradle`,`Pods`,`DerivedData`]);function M(e,t){return i(e,{withFileTypes:!0}).flatMap(n=>n.isDirectory()?t.has(n.name)?[]:M(l(e,n.name),t):[l(e,n.name)])}var Ir=e=>e.split(`\\`).join(`/`);function Lr(e,t){return e.replace(t,e=>e.replace(/[^\n]/g,` `))}function Rr(e,t){return e.slice(0,t).split(`
|
|
77
77
|
`).length}var zr=/^MainActivity\.(?:kt|java)$/,Br=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Vr(e){let n=l(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of M(n,Fr)){if(!zr.test(o(t)))continue;let n=Lr(Lr(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=Br.exec(n);if(!a)continue;let s=Ir(f(e,t));i.push([`rn-mainactivity-oncreate-bundle:${s}`,`${s}:${Rr(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 Hr=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Ur=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,Wr=/^APP_ID=.*\.(staging|development)\s*$/m;function Gr(e){let n=[{file:l(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:Hr},{file:l(e,`android`,`gradle.properties`),pattern:Wr}],r=l(e,`ios`);if(t(r))for(let e of M(r,Fr))o(e)===`Expo.plist`&&n.push({file:e,pattern:Ur});return n.filter(({file:e})=>t(e))}function Kr(e){let t=[];for(let{file:n,pattern:i}of Gr(e)){let a=Ir(f(e,n)),o=r(n,`utf8`),s=i.exec(o);s&&t.push([`mobile-production-stamps:${a}`,`${a}:${Rr(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 qr=/^spa-host\..+\.json$/,Jr=new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function Yr(e){let t=[];for(let n of M(e,new Set([...Fr,`android`,`ios`]))){let i=o(n);if(!Jr.has(i)&&!qr.test(i))continue;let a=Lr(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
|
|
78
|
-
`).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let s=Ir(f(e,n));t.push([`spa-host-immutable-assets:${s}`,`${s}:${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 Xr=[[`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`]],Zr=[[`@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`]],N=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,P=`react.md: Bootstrap 5.3.3 is the only UI framework`,Qr=`react.md: dates format through Intl and the web-core formatters`,$r=`react-native.md: retired; Intl and the mobile-core formatters`,ei={web:[...Xr,[`typescript`,`react.md: JavaScript only, never TypeScript`],[`sass`,`react.md: the SCSS compiler is sass-embedded, never the pure-JS sass`],[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,N],[`react-day-picker`,N],[`react-aria`,N],[`react-aria-components`,N],[`@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`,P],[`antd`,P],[`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`,Qr],[`moment-timezone`,Qr],[`dayjs`,Qr],[`date-fns`,Qr]],mobile:[...Xr,[`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`,$r],[`moment-timezone`,$r],[`dayjs`,$r],[`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:[]},ti={web:[...Zr,[`@mui/`,P],[`@chakra-ui/`,P],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,N],[`@react-aria/`,N]],mobile:[...Zr],demo:[]},ni={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:[]},ri={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`]]},ii=`5.3.3`,ai=[`agentation`],oi=`>=24.15 <25`,si=[[`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`]],ci=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/chat-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],li=`@webority/biome-config/biome.jsonc`,ui={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`]},di=`AppAccordion.AppActionIcon.AppAlert.AppAsyncBlock.AppAutocomplete.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppCountrySelect.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppMultiSelect.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.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.AppTagInput.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),fi=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`];function pi(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!fi.includes(e)||n.includes(`all`)||n.includes(e)}var mi={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`]},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`}}]},hi=`--color-primary-text`,gi=new Set([...mi.css.rename.map(([e])=>e),...mi.css.reads.map(([e])=>e),...Object.keys(mi.css.choose)].filter(e=>e!==hi)),_i=RegExp(`(?<![\\w-])(${[...gi].join(`|`)})(?![\\w-])`,`g`),vi=new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),yi=new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),bi=(e,t)=>vi.has(e)||e===`lib`&&o(t)===`wwwroot`,xi=e=>yi.has(c(e).toLowerCase());function Si(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=l(e,n.name);n.isDirectory()?bi(n.name,e)||Si(r,t):xi(n.name)&&t.push(r)}return t}function Ci(e,t){for(let n=s(e);n.length>t.length;n=s(n))if(bi(o(n),s(n)))return!0;return!1}function wi(e){let n=h(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:64*1024*1024});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&xi(e)).map(t=>l(e,t.split(`/`).join(m))).filter(n=>!Ci(n,e)&&t(n)):Si(e)}function Ti(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function Ei(e,t){let n=[];for(let i of wi(e)){let e=r(i,`utf8`),a=[],o=-1;for(let t of e.matchAll(_i))o<0&&(o=t.index),a.includes(t[1])||a.push(t[1]);if(a.length===0)continue;let s=f(t,i).split(`\\`).join(`/`),c=e.slice(0,o).split(`
|
|
79
|
-
`).length;n.push([`stale-theme-name:${s}`,`${s}:${c} reads pre-0.89.0 theme names (${Ti(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 Di=`tracked-case`;function Oi(e,t){let n=new Map,r=t=>{let r=n.get(t);if(r===void 0){try{r=new Set(i(l(e,t)))}catch{r=new Set}n.set(t,r)}return r},a=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([`${Di}:${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(`/`),ki=(e,t)=>F(f(e,t))||`.`;function I(e){try{return JSON.parse(r(e,`utf8`))}catch{return null}}function Ai(e,t){let n=h(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:64*1024*1024});return n.status===0?n.stdout:null}function ji(e){let t=Ai(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function L(e,t){let n=Ai(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function Mi(e){let t=Ai(e,[`ls-files`,`-z`]);return t?t.split(`\0`).filter(Boolean):[]}function Ni(e){let t=e?.dependencies??{};return ai.some(e=>t[e])?null:t[`react-native`]?`mobile`:t[`react-dom`]?e?.devDependencies?.[`react-native-web`]||t[`react-native-web`]?`demo`:`web`:null}var Pi=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e),Fi=new Set([`@biomejs/biome`,`@webority/biome-config`]),Ii=e=>/^(?:workspace:|file:|link:)/.test(e);function Li(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of ei[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of ti[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 ni[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of ri[t])(Fi.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]);Pi(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}i.bootstrap&&String(i.bootstrap).replace(/^[\^~]/,``)!==`5.3.3`&&r.push([`bootstrap-version`,`bootstrap is "${i.bootstrap}". bootstrap-ui.md: every surface pins ${ii}.`]);for(let e of ci){let t=e.filter(e=>i[e]&&!Ii(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(l(i,e)))return l(i,e);if(i===n)return null;let e=s(i);if(e===i)return null;i=e}}function Ri(e,t){let n=e,i=null;for(;;){let e=R(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=s(e);let a;try{a=Be(r(e,`utf8`))}catch{return i}let o=s(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function zi(e,t,n){let r=Ri(e,t),i=r&&r!==e?I(l(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function Bi(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?s(a):e,c=I(l(o,`package.json`))??I(l(e,`package.json`)),u=c?.devEngines?.packageManager;(u?.name!==`pnpm`||!/^\d+\.\d+\.\d+$/.test(u?.version??``)||u?.onFail!==`error`)&&i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]),c?.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 d=l(o,`pnpm-workspace.yaml`);if(!t(d))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(d,`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(l(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 Vi(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=F(f(t,l(n,`index.js`)));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[].concat(e.includes??[]).some(e=>!String(e).startsWith(`!`)&&u(i,String(e))))}function Hi(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=Be(r(i,`utf8`))}catch{return[[`biome:unreadable`,`${o(i)} does not parse.`]]}let c=[];return[].concat(a.extends??[]).some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`biome-config/biome.jsonc`))||c.push([`biome:extends`,`${o(i)} does not extend "${li}". react.md: every repo extends the shared preset.`]),a.formatter?.lineEnding&&c.push([`biome:line-ending`,`${o(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&&c.push([`biome:root-rules`,`${o(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`&&!Vi(a,s(i),e,`__DEV__`)&&c.push([`biome:dev-global`,`${o(i)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),c}var Ui=l(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function Wi(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(l(t,n)),a=1;for(let t=0;t<e.span[0];t++)i[t]===10&&a++;return a}function Gi(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,[l(`node_modules`,i)]),s=o&&I(l(o,`package.json`));if(!s)return null;let c=(typeof s.exports==`string`?{".":s.exports}:s.exports)?.[a]??(a===`.`?s.module??s.main:null);return c&&typeof c==`object`&&(c=c.import??c.default),typeof c==`string`?l(o,c):null}function Ki(e,t,n,i){if(n.startsWith(`.`))return!1;let a=Gi(e,t,n);if(!a)return!1;let o;try{o=r(a,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${i}\\b`).test(o)||RegExp(`\\b(?:module\\.)?exports\\.${i}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${i}["']|\\bget\\s+${i}\\s*\\(`).test(o))return!0;for(let e of o.matchAll(/\bexport\s*\{([^}]*)\}/g))for(let t of e[1].split(`,`))if(t.trim().split(/\s+as\s+/).pop()===i)return!0;return!1}function qi(e,n){let r=R(e,n,[Ui]);if(!r)return[];let i=t(l(e,`src`))?`src`:`.`,a=h(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:64*1024*1024,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=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(ui,a)&&ui[a].includes(o)||Ki(e,n,a,o))continue;let c=F(f(e,p(e,String(t.location?.path)))),l=Wi(t.location??{},e,c),u=l?`${c}:${l}`:c,d=`missing-export:${c}`,m=`${u} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${d}\0${m}`,[d,m])}return[...s.values()]}function Ji(e){let t=l(e,`node_modules`,`@webority`,`ui-react`);try{let e=JSON.parse(r(l(t,`package.json`),`utf8`)),n=r(l(t,typeof e.module==`string`?e.module:typeof e.main==`string`?e.main:`dist/index.js`),`utf8`),i=new Set([...n.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(i.size>0)return i}catch{}return new Set(di)}function Yi(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?Yi(l(e,t.name)):[l(e,t.name)])}function Xi(e){let n=l(e,`src`,`components`);if(!t(n))return[];let r=Ji(e),i=[];for(let t of Yi(n)){let n=o(t).split(`.`)[0];if(r.has(n)){let r=F(f(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 Zi=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,Qi=/throw\s+new\s+GradleException\s*\(/,$i=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function ea(e){let n=[],i=l(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);(!Zi.test(e)||!Qi.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=l(e,`android`,`gradle.properties`);return t(a)&&$i.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}function ta(e,t,n){let i=[],a=R(e,t,[`pnpm-lock.yaml`]),o=a?I(l(s(a),`package.json`)):null,c=n.engines?.node??o?.engines?.node??null;c===null?i.push([`engines-node-floor:package.json`,`package.json has no engines.node. react.md: engines.node is "${oi}", with engineStrict: true.`]):String(c).trim().replace(/\s+/g,` `)!==`>=24.15 <25`&&i.push([`engines-node-floor:package.json`,`engines.node is "${c}". react.md: it is "${oi}"; the floor is the one jsdom needs, and the ceiling holds one Node major.`]);let u=R(e,t,[`.nvmrc`]);if(!u)i.push([`engines-node-floor:.nvmrc`,`No .nvmrc in this folder or above it. react.md: commit one holding 24.`]);else{let e=r(u,`utf8`).trim();e!==`24`&&i.push([`engines-node-floor:.nvmrc`,`.nvmrc holds "${e}". react.md: it holds 24.`])}return i}var na=new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]);function ra(e,n){let i=l(e,`src`);if(!t(i))return[];let a=[];for(let t of Yi(i)){if(!na.has(c(t).toLowerCase())||je(F(f(n,t)),n))continue;let i=r(t,`utf8`).split(`
|
|
78
|
+
`).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let s=Ir(f(e,n));t.push([`spa-host-immutable-assets:${s}`,`${s}:${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 Xr=[[`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`]],Zr=[[`@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`]],N=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,P=`react.md: Bootstrap 5.3.3 is the only UI framework`,Qr=`react.md: dates format through Intl and the web-core formatters`,$r=`react-native.md: retired; Intl and the mobile-core formatters`,ei={web:[...Xr,[`typescript`,`react.md: JavaScript only, never TypeScript`],[`sass`,`react.md: the SCSS compiler is sass-embedded, never the pure-JS sass`],[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,N],[`react-day-picker`,N],[`react-aria`,N],[`react-aria-components`,N],[`@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`,P],[`antd`,P],[`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`,Qr],[`moment-timezone`,Qr],[`dayjs`,Qr],[`date-fns`,Qr]],mobile:[...Xr,[`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`,$r],[`moment-timezone`,$r],[`dayjs`,$r],[`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:[]},ti={web:[...Zr,[`@mui/`,P],[`@chakra-ui/`,P],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,N],[`@react-aria/`,N]],mobile:[...Zr],demo:[]},ni={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:[]},ri={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`]]},ii=`5.3.3`,ai=[`agentation`],oi=`>=24.15 <25`,si=[[`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`]],ci=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/chat-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],li=`@webority/biome-config/biome.jsonc`,ui={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`]},di=`AppAccordion.AppActionIcon.AppAlert.AppAsyncBlock.AppAutocomplete.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppCountrySelect.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppMultiSelect.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.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.AppTagInput.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),fi=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`];function pi(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!fi.includes(e)||n.includes(`all`)||n.includes(e)}var mi={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`}}]},hi=`--color-primary-text`,gi=new Set([...mi.css.rename.map(([e])=>e),...mi.css.reads.map(([e])=>e),...Object.keys(mi.css.choose)].filter(e=>e!==hi)),_i=RegExp(`(?<![\\w-])(${[...gi].join(`|`)})(?![\\w-])`,`g`),vi=new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),yi=new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),bi=(e,t)=>vi.has(e)||e===`lib`&&o(t)===`wwwroot`,xi=e=>yi.has(c(e).toLowerCase());function Si(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=l(e,n.name);n.isDirectory()?bi(n.name,e)||Si(r,t):xi(n.name)&&t.push(r)}return t}function Ci(e,t){for(let n=s(e);n.length>t.length;n=s(n))if(bi(o(n),s(n)))return!0;return!1}function wi(e){let n=h(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:64*1024*1024});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&xi(e)).map(t=>l(e,t.split(`/`).join(m))).filter(n=>!Ci(n,e)&&t(n)):Si(e)}function Ti(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function Ei(e,t){let n=[];for(let i of wi(e)){let e=r(i,`utf8`),a=[],o=-1;for(let t of e.matchAll(_i))o<0&&(o=t.index),a.includes(t[1])||a.push(t[1]);if(a.length===0)continue;let s=f(t,i).split(`\\`).join(`/`),c=e.slice(0,o).split(`
|
|
79
|
+
`).length;n.push([`stale-theme-name:${s}`,`${s}:${c} reads pre-0.89.0 theme names (${Ti(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 Di=`tracked-case`;function Oi(e,t){let n=new Map,r=t=>{let r=n.get(t);if(r===void 0){try{r=new Set(i(l(e,t)))}catch{r=new Set}n.set(t,r)}return r},a=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([`${Di}:${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(`/`),ki=(e,t)=>F(f(e,t))||`.`;function I(e){try{return JSON.parse(r(e,`utf8`))}catch{return null}}function Ai(e,t){let n=h(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:64*1024*1024});return n.status===0?n.stdout:null}function ji(e){let t=Ai(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function L(e,t){let n=Ai(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function Mi(e){let t=Ai(e,[`ls-files`,`-z`]);return t?t.split(`\0`).filter(Boolean):[]}function Ni(e){let t=e?.dependencies??{};return ai.some(e=>t[e])?null:t[`react-dom`]&&(e?.devDependencies?.[`react-native-web`]||t[`react-native-web`])?`demo`:t[`react-native`]?`mobile`:t[`react-dom`]?`web`:null}var Pi=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e),Fi=new Set([`@biomejs/biome`,`@webority/biome-config`]),Ii=e=>/^(?:workspace:|file:|link:)/.test(e);function Li(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of ei[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of ti[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 ni[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of ri[t])(Fi.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]);Pi(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}i.bootstrap&&String(i.bootstrap).replace(/^[\^~]/,``)!==`5.3.3`&&r.push([`bootstrap-version`,`bootstrap is "${i.bootstrap}". bootstrap-ui.md: every surface pins ${ii}.`]);for(let e of ci){let t=e.filter(e=>i[e]&&!Ii(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(l(i,e)))return l(i,e);if(i===n)return null;let e=s(i);if(e===i)return null;i=e}}function Ri(e,t){let n=e,i=null;for(;;){let e=R(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=s(e);let a;try{a=Be(r(e,`utf8`))}catch{return i}let o=s(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function zi(e,t,n){let r=Ri(e,t),i=r&&r!==e?I(l(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function Bi(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?s(a):e,c=I(l(o,`package.json`))??I(l(e,`package.json`)),u=c?.devEngines?.packageManager;(u?.name!==`pnpm`||!/^\d+\.\d+\.\d+$/.test(u?.version??``)||u?.onFail!==`error`)&&i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]),c?.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 d=l(o,`pnpm-workspace.yaml`);if(!t(d))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(d,`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(l(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 Vi(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=F(f(t,l(n,`index.js`)));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[].concat(e.includes??[]).some(e=>!String(e).startsWith(`!`)&&u(i,String(e))))}function Hi(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=Be(r(i,`utf8`))}catch{return[[`biome:unreadable`,`${o(i)} does not parse.`]]}let c=[];return[].concat(a.extends??[]).some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`biome-config/biome.jsonc`))||c.push([`biome:extends`,`${o(i)} does not extend "${li}". react.md: every repo extends the shared preset.`]),a.formatter?.lineEnding&&c.push([`biome:line-ending`,`${o(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&&c.push([`biome:root-rules`,`${o(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`&&!Vi(a,s(i),e,`__DEV__`)&&c.push([`biome:dev-global`,`${o(i)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),c}var Ui=l(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function Wi(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(l(t,n)),a=1;for(let t=0;t<e.span[0];t++)i[t]===10&&a++;return a}function Gi(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,[l(`node_modules`,i)]),s=o&&I(l(o,`package.json`));if(!s)return null;let c=(typeof s.exports==`string`?{".":s.exports}:s.exports)?.[a]??(a===`.`?s.module??s.main:null);return c&&typeof c==`object`&&(c=c.import??c.default),typeof c==`string`?l(o,c):null}function Ki(e,t,n,i){if(n.startsWith(`.`))return!1;let a=Gi(e,t,n);if(!a)return!1;let o;try{o=r(a,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${i}\\b`).test(o)||RegExp(`\\b(?:module\\.)?exports\\.${i}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${i}["']|\\bget\\s+${i}\\s*\\(`).test(o))return!0;for(let e of o.matchAll(/\bexport\s*\{([^}]*)\}/g))for(let t of e[1].split(`,`))if(t.trim().split(/\s+as\s+/).pop()===i)return!0;return!1}function qi(e,n){let r=R(e,n,[Ui]);if(!r)return[];let i=t(l(e,`src`))?`src`:`.`,a=h(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:64*1024*1024,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=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(ui,a)&&ui[a].includes(o)||Ki(e,n,a,o))continue;let c=F(f(e,p(e,String(t.location?.path)))),l=Wi(t.location??{},e,c),u=l?`${c}:${l}`:c,d=`missing-export:${c}`,m=`${u} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${d}\0${m}`,[d,m])}return[...s.values()]}function Ji(e){let t=l(e,`node_modules`,`@webority`,`ui-react`);try{let e=JSON.parse(r(l(t,`package.json`),`utf8`)),n=r(l(t,typeof e.module==`string`?e.module:typeof e.main==`string`?e.main:`dist/index.js`),`utf8`),i=new Set([...n.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(i.size>0)return i}catch{}return new Set(di)}function Yi(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?Yi(l(e,t.name)):[l(e,t.name)])}function Xi(e){let n=l(e,`src`,`components`);if(!t(n))return[];let r=Ji(e),i=[];for(let t of Yi(n)){let n=o(t).split(`.`)[0];if(r.has(n)){let r=F(f(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 Zi=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,Qi=/throw\s+new\s+GradleException\s*\(/,$i=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function ea(e){let n=[],i=l(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);(!Zi.test(e)||!Qi.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=l(e,`android`,`gradle.properties`);return t(a)&&$i.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}function ta(e,t,n){let i=[],a=R(e,t,[`pnpm-lock.yaml`]),o=a?I(l(s(a),`package.json`)):null,c=n.engines?.node??o?.engines?.node??null;c===null?i.push([`engines-node-floor:package.json`,`package.json has no engines.node. react.md: engines.node is "${oi}", with engineStrict: true.`]):String(c).trim().replace(/\s+/g,` `)!==`>=24.15 <25`&&i.push([`engines-node-floor:package.json`,`engines.node is "${c}". react.md: it is "${oi}"; the floor is the one jsdom needs, and the ceiling holds one Node major.`]);let u=R(e,t,[`.nvmrc`]);if(!u)i.push([`engines-node-floor:.nvmrc`,`No .nvmrc in this folder or above it. react.md: commit one holding 24.`]);else{let e=r(u,`utf8`).trim();e!==`24`&&i.push([`engines-node-floor:.nvmrc`,`.nvmrc holds "${e}". react.md: it holds 24.`])}return i}var na=new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]);function ra(e,n){let i=l(e,`src`);if(!t(i))return[];let a=[];for(let t of Yi(i)){if(!na.has(c(t).toLowerCase())||je(F(f(n,t)),n))continue;let i=r(t,`utf8`).split(`
|
|
80
80
|
`).map(e=>/^\s*(?:\/\/|\/\*|\*)/.test(e)?``:e).join(`
|
|
81
81
|
`),o=F(f(e,t));for(let[e,t,n,r]of si)t.test(i)&&a.push([`${e}:${o}`,`${o} ${n}. ${r}.`])}return a}var ia=`.husky/pre-commit`;function aa(e){if(t(l(e,`.github/workflows/production.yml`)))return[];let n=l(e,ia),i=t(n)?r(n,`utf8`).replace(/\r\n/g,`
|
|
82
|
-
`):null;return i===ze?[]:[[`hook:drift`,`${ia} ${i===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 oa(e,n=null){let r=n?new Set(n.map(t=>ki(e,t))):null,i=[],a=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0];i.push({pkg:e,id:n,message:r,...pi(t)?{}:{warning:!0}})}};(!r||r.has(`.`))&&a(`.`,[...aa(e),...Oi(e,Mi(e))]);for(let n of L(e,[`package-lock.json`,`yarn.lock`])){if(!t(l(e,n)))continue;let i=F(s(n))||`.`;r&&!r.has(i)||a(i,[[`pnpm:${o(n)}`,`${o(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let c=new Set(L(e,[`package.json`]).map(t=>ki(e,l(e,s(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)));for(let n of r??[])t(l(e,n,`package.json`))&&c.add(n);for(let t of c){if(r&&!r.has(t))continue;let n=l(e,t),o=I(l(n,`package.json`)),s=Ni(o);if(!s)continue;let c=Bi(n,e).filter(([e])=>!i.some(n=>n.pkg===t&&n.id===e));a(t,[...Li(o,s,zi(n,e,{...o.dependencies,...o.devDependencies})),...c,...Hi(n,e,s),...s===`demo`?[]:qi(n,e),...ta(n,e,o),...s===`mobile`?[...ea(n),...Vr(n),...Kr(n)]:[],...s===`mobile`&&!t.startsWith(`samples/`)?[...Pr(n),...at(n)]:[],...s===`web`?[...Xi(n),...ra(n,e),...Yr(n),...Ei(n,e)]:[],...He(n,R(n,e,[Ui]))])}return i}var sa=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui
|
|
83
|
-
`),c=
|
|
82
|
+
`):null;return i===ze?[]:[[`hook:drift`,`${ia} ${i===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 oa(e,n=null){let r=n?new Set(n.map(t=>ki(e,t))):null,i=[],a=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0];i.push({pkg:e,id:n,message:r,...pi(t)?{}:{warning:!0}})}};(!r||r.has(`.`))&&a(`.`,[...aa(e),...Oi(e,Mi(e))]);for(let n of L(e,[`package-lock.json`,`yarn.lock`])){if(!t(l(e,n)))continue;let i=F(s(n))||`.`;r&&!r.has(i)||a(i,[[`pnpm:${o(n)}`,`${o(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let c=new Set(L(e,[`package.json`]).map(t=>ki(e,l(e,s(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)));for(let n of r??[])t(l(e,n,`package.json`))&&c.add(n);for(let t of c){if(r&&!r.has(t))continue;let n=l(e,t),o=I(l(n,`package.json`)),s=Ni(o);if(!s)continue;let c=Bi(n,e).filter(([e])=>!i.some(n=>n.pkg===t&&n.id===e));a(t,[...Li(o,s,zi(n,e,{...o.dependencies,...o.devDependencies})),...c,...Hi(n,e,s),...s===`demo`?[]:qi(n,e),...ta(n,e,o),...s===`mobile`?[...ea(n),...Vr(n),...Kr(n)]:[],...s===`mobile`&&!t.startsWith(`samples/`)?[...Pr(n),...at(n)]:[],...s===`web`?[...Xi(n),...ra(n,e),...Yr(n),...Ei(n,e)]:[],...He(n,R(n,e,[Ui]))])}return i}var sa=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,ca=`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.`,la=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,ua=/<([A-Za-z][\w$.:-]*)/g,da=/\{\s*\.\.\./y,fa=new Set([`Fragment`,`React.Fragment`]),pa=/\.(?:Screen|Group)$/,ma=/^\s*(?:\([^)]*\)|[\w$]+)\s*=>\s*\(\s*\{/;function ha(e){return e?Re.phone:Re.web}var ga=/\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 _a(e,{phone:t}){let n=ya(e),r=xa(n,RegExp(`(?<![\\w-])${ha(t)}\\s*=`),{spreadCounts:!1}),i=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=ga.exec(n),o=a&&(a[1]??a[2]??a[3]);return o&&r.has(o)&&i.add(`default`),i}function va(e,{phone:t,keyedImports:n=new Set}){if(!sa.test(e))return[];let r=ha(t),i=RegExp(`(?<![\\w-])${r}\\s*=`),a=RegExp(`(?<![\\w-])${r}\\s*=\\s*(["'])`),o=ya(e),s=e.split(`
|
|
83
|
+
`),c=wa(e),l=[],u=(e,t,n)=>{let r=Ta(c,e);l.push({rule:t,line:r,text:(s[r-1]??``).trim().slice(0,160),hint:n})},d=xa(o,i);for(let e of o.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,r=Sa(o,t),a=z(o,t+1);for(;a&&a.index<r&&fa.has(a.name);)a=z(o,a.nameEnd);if(!a||a.index>=r||pa.test(a.name)||ma.test(o.slice(t+1,a.index)))continue;let s=Ca(o,a.nameEnd);!s.spread&&!i.test(s.top)&&!d.has(a.name)&&!n.has(a.name)&&u(a.index,`missing-canvas-key`,ca)}let f=new Map,p=z(o,0);for(;p;){let t=Ca(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`,la);return l.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),l}function ya(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]!==`
|
|
84
84
|
`;)t.push(` `),r++;continue}if(i===`/`&&a===`*`){for(t.push(` `,` `),r+=2;r<n&&!(e[r]===`*`&&e[r+1]===`/`);)t.push(e[r]===`
|
|
85
85
|
`?`
|
|
86
86
|
`:` `),r++;r<n&&(t.push(` `,` `),r+=2);continue}if(i===`'`||i===`"`){for(t.push(i),r++;r<n&&e[r]!==i&&e[r]!==`
|
|
@@ -88,23 +88,23 @@ fi
|
|
|
88
88
|
`?(t.push(` `,` `),r+=2):(t.push(` `),r++);r<n&&e[r]===i&&(t.push(i),r++);continue}if(i==="`"){for(t.push(i),r++;r<n&&e[r]!=="`";)e[r]===`\\`&&r+1<n&&e[r+1]!==`
|
|
89
89
|
`?(t.push(` `,` `),r+=2):(t.push(e[r]===`
|
|
90
90
|
`?`
|
|
91
|
-
`:` `),r++);r<n&&(t.push("`"),r++);continue}t.push(i),r++}return t.join(``)}var
|
|
92
|
-
`&&t.push(n+1);return t}function
|
|
91
|
+
`:` `),r++);r<n&&(t.push("`"),r++);continue}t.push(i),r++}return t.join(``)}var ba=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function xa(e,t,{spreadCounts:n=!0}={}){let r=new Set;for(let i of e.matchAll(ba)){let a=z(e,i.index+i[0].length);for(;a&&fa.has(a.name);)a=z(e,a.nameEnd);if(!a)continue;let o=Ca(e,a.nameEnd);(n&&o.spread||t.test(o.top))&&r.add(i[1]??i[2])}return r}function Sa(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){ua.lastIndex=t;let n=ua.exec(e);return n?{index:n.index,name:n[1],nameEnd:n.index+n[0].length}:null}function Ca(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===`{`&&(da.lastIndex=a,da.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function wa(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
|
|
92
|
+
`&&t.push(n+1);return t}function Ta(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 Ea=[`.js`,`.jsx`,`.ts`,`.tsx`],Da=/\.(?:js|jsx|ts|tsx)$/,Oa=/(?:^|\/)index\.[jt]sx?$/,ka=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,Aa=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,ja=/"([^"\\\n]*)"/g,Ma=/^_[\w.-]+$/,Na=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,Pa=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,Fa=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,Ia=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,La=/(?:^|\/)_ViewStart\.cshtml$/,Ra=/\bLayout\s*=\s*"([^"]+)"/g,za=/(?:^|\/)_[^/]*Layout\.cshtml$/,Ba=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function Va(e,n){let i=new Set(n),a=new Map,o=new Map,c=new Map,u=new Map,f=t=>(u.has(t)||u.set(t,T(e,t)),u.get(t)),p=new Map,m=e=>{if(!Oa.test(e))return null;if(!p.has(e)){let t=new Map,n=[];for(let r of E(f(e))){if(r.kind!==`export-from`)continue;let a=Ua(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)}p.set(e,{named:t,star:n})}return p.get(e)},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(f(e).blanked);for(let e of n)if(!(!Da.test(e)||ka.test(e)))for(let t of E(f(e))){let n=Ua(e,t.specifier,i);if(n===null)continue;let r=t.kind===`export-from`?null:m(n);if(!r){(t.kind!==`export-from`||!Oa.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)}for(let t of n){if(!Da.test(t)&&!t.endsWith(`.cshtml`))continue;let n=Ha(r(l(e,t),`utf8`));for(let e of n.matchAll(Aa))B(o,(e[1]??e[2]??e[3]).split(`/`).pop().replace(/\.cshtml$/,``),t)}let g=L(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(l(e,n)));for(let t of g){let n=r(l(e,t),`utf8`);if(t.endsWith(`.cs`)){for(let e of Ha(n).matchAll(ja)){let n=e[1].split(`/`).pop().replace(/\.cshtml$/,``);Ma.test(n)&&B(o,n,t)}continue}for(let e of n.matchAll(Na))B(c,d.normalize(d.join(s(t),e[1].replace(/\\/g,`/`))),t)}let _=new Set(g.filter(e=>e.endsWith(`.csproj`)).map(e=>d.dirname(e))),v=new Map;for(let t of n){if(!La.test(t))continue;let n=Ha(r(l(e,t),`utf8`));for(let e of n.matchAll(Ra))B(v,Ka(t,_),e[1].split(`/`).pop().replace(/\.cshtml$/,``))}let y=[];for(let e of n){if(!Da.test(e))continue;let t=Pa.exec(e);t&&t[1]!==`layout`&&!Oa.test(e)&&!ka.test(e)&&Ga(y,e,Wa(a,e,e))}for(let t of n){let n=Fa.exec(t);if(!n)continue;let i=qa(r(l(e,t),`utf8`));i===``&&y.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let a=za.test(t)||(v.get(Ka(t,_))?.has(n[1])??!1);i||a||Ga(y,t,Wa(o,n[1],t))}for(let e of g)e.endsWith(`.csproj`)&&Ia.test(e)&&Ga(y,e,Wa(c,e,e));return y}function Ha(e){return e.split(`
|
|
93
93
|
`).filter(e=>!/^\s*(?:\/\/|\/\*|\*)/.test(e)).join(`
|
|
94
|
-
`)}function
|
|
95
|
-
`,1)[0]);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var
|
|
96
|
-
`),r=[];for(let e of t.matchAll(
|
|
97
|
-
`).length;r.push({rule:
|
|
98
|
-
`),a=[];for(let e of
|
|
99
|
-
`).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t[1]}; use a library prop or token, or a product class`})}return a}var ao=JSON.parse(`["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","wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-attach-error","wui-attach-progress","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-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-end","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-chat-body","wui-chat-bubble","wui-chat-composer","wui-chat-empty","wui-chat-foot","wui-chat-launcher","wui-chat-panel","wui-chat-question","wui-check","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-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-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-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-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-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-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--secondary","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-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-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-input-xl","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--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-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-ms-custom-error","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-desc","wui-opt-hint","wui-opt-label","wui-opt-name","wui-opt-rich","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-period-month","wui-period-month-label","wui-period-picker","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","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-link","wui-row-save-error","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-search-collapsible","wui-search-select-xl","wui-search-toggle","wui-section","wui-section-actions","wui-section-call-to-action","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-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-cell","wui-shell-launcher","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-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-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-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-title","wui-tour-hint","wui-tour-layer","wui-tour-media","wui-tour-media-toggle","wui-tour-nav","wui-tour-next","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-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","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"]`),oo=`raw-bootstrap`,so=new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-status-badge>`],[`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>`]]),co=/(?<![\w-])(?:class|className)\s*=\s*/g,lo=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function uo(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===`
|
|
94
|
+
`)}function Ua(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=d.normalize(d.join(d.dirname(e),t));else return null;return[r,...Ea.map(e=>r+e),...Ea.map(e=>d.join(r,`index${e}`))].find(e=>n.has(e))??null}function B(e,t,n){t!==null&&(e.has(t)||e.set(t,new Set),e.get(t).add(n))}function Wa(e,t,n){return[...e.get(t)??new Set].filter(e=>e!==n).length}function Ga(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 Ka(e,t){let n=d.dirname(e);for(;n!==`.`&&!t.has(n);)n=d.dirname(n);return n}function qa(e){let t=Ba.exec(e.split(`
|
|
95
|
+
`,1)[0]);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var Ja=`error-summary-title`,Ya=/<app-error-summary(?=[\s/>])/g,Xa=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,Za=/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 Qa(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 $a(e){let t=x(e,`markup`),n=e.split(`
|
|
96
|
+
`),r=[];for(let e of t.matchAll(Ya)){let i=Xa.exec(t.slice(e.index,Qa(t,e.index)));if(!i)continue;let a=i[1]??i[2];if(a.includes(`@`)||!Za.test(a))continue;let o=t.slice(0,e.index).split(`
|
|
97
|
+
`).length;r.push({rule:Ja,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 eo=/\.([A-Za-z_][\w-]*)/g;function*to(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 no(e,t,n){let r=x(e,t),i=e.split(`
|
|
98
|
+
`),a=[];for(let e of to(r)){let t=[...e.text.matchAll(eo)].find(e=>n.has(e[1]));if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
|
|
99
|
+
`).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t[1]}; use a library prop or token, or a product class`})}return a}var ro=JSON.parse(`["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","wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-attach-error","wui-attach-progress","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-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-end","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-chat-body","wui-chat-bubble","wui-chat-composer","wui-chat-empty","wui-chat-foot","wui-chat-launcher","wui-chat-panel","wui-chat-question","wui-check","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-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-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-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-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-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-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--secondary","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-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-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-input-xl","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--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-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-ms-custom-error","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-desc","wui-opt-hint","wui-opt-label","wui-opt-name","wui-opt-rich","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-period-month","wui-period-month-label","wui-period-picker","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","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-link","wui-row-save-error","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-search-collapsible","wui-search-select-xl","wui-search-toggle","wui-section","wui-section-actions","wui-section-call-to-action","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-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-cell","wui-shell-launcher","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-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-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-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-title","wui-tour-hint","wui-tour-layer","wui-tour-media","wui-tour-media-toggle","wui-tour-nav","wui-tour-next","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-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","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"]`),io=`raw-bootstrap`,ao=new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-status-badge>`],[`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>`]]),oo=/(?<![\w-])(?:class|className)\s*=\s*/g,so=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function co(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===`
|
|
100
100
|
`&&n!=="`")&&(n=null);else if(i===`/`&&a===`/`){let n=e.indexOf(`
|
|
101
|
-
`,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
|
|
101
|
+
`,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 lo(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(so))n.push({base:t+e.index+1,content:e[2]})}return n}function uo(e,t){let n=t===`markup`?x(e,`markup`):co(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
|
|
102
102
|
`&&r.push(e+1);let i=e.split(`
|
|
103
|
-
`),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(
|
|
104
|
-
`).length}function
|
|
105
|
-
`),r=[],i=(e,t)=>{r.push({rule:
|
|
103
|
+
`),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(oo)){let t=e.index+e[0].length;for(let e of lo(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=ao.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:io,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 fo=`route-internal-id`,po=`route by the record's public id ("{publicId:guid}"), never its internal number`,mo=`pass the record's PublicId, never its internal Id`,ho=/^\s*@page\s+"([^"]*)"/gm,go=/\basp-route-([A-Za-z][\w-]*)\s*=\s*"@\(?\s*([\w.?!]+?)\.Id\s*\)?"/g,_o=/\b(?:Route|Http(?:Get|Post|Put|Patch|Delete))\s*\(\s*@?"([^"]*)"/g,vo=/\.Map(?:Get|Post|Put|Patch|Delete|Methods)?\s*\(\s*@?"([^"]*)"/g,yo=/\{([^{}]*)\}/g,bo=/^(?:[Ii]d|[a-z][A-Za-z0-9]*Id)$/,xo=[`int`,`long`];function So(e){let t=[];for(let n of e.matchAll(yo)){let[e,...r]=n[1].replace(/^\*{1,2}/,``).split(`:`),i=e.replace(/=.*$/,``).replace(/\?$/,``);bo.test(i)&&r.some(e=>xo.includes(e.replace(/\?$/,``)))&&t.push(i)}return t}function Co(e,t){return e.slice(0,t).split(`
|
|
104
|
+
`).length}function wo(e,t){let n=e.split(`
|
|
105
|
+
`),r=[],i=(e,t)=>{r.push({rule:fo,line:e,text:(n[e-1]??``).trim().slice(0,160),hint:t})},a=(e,t)=>{for(let n of So(e))i(t,po)};if(t===`markup`){let t=x(e,`markup`);for(let e of t.matchAll(ho))a(e[1],Co(t,e.index+e[0].indexOf(`@page`)));for(let e of t.matchAll(go))i(Co(t,e.index),mo);return r}for(let t of[_o,vo])for(let r of e.matchAll(t)){let t=Co(e,r.index);(n[t-1]??``).trim().startsWith(`//`)||a(r[1],t)}return r}function To(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
|
|
106
106
|
`)?t.split(`
|
|
107
107
|
`).length-1:t.split(`
|
|
108
|
-
`).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
|
|
108
|
+
`).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 Eo=`rename-wrapper`,Do=`@webority/ui-react`,Oo=`["']${Do}["']`,V=e=>e.replace(/[^\n]/g,` `),ko=`shadowed-library-name`;function H(e,t,n,r=Eo){let i=e.slice(0,t).split(`
|
|
109
109
|
`).length;return{rule:r,line:i,text:e.split(`
|
|
110
|
-
`)[i-1].trim(),hint:n}}function Mo(e){return e.replace(/\/\*[\s\S]*?\*\//g,V).replace(/\/\/[^\n]*/g,V)}function No(e){let t=new Map,n=RegExp(`import\\s+(?:type\\s+)?([^;'"]*?)\\s+from\\s*${Ao}`,`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 Po(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${Ao}`,`gm`);return[...e.matchAll(t)].map(t=>H(e,t.index,`Import the name from ${ko} where it is used; a file that only re-exports it adds nothing.`))}function Fo(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${ko} 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 Io(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=Mo(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 ${ko} and use it where this component is used instead of a wrapper.`)]}function Lo(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 Ro(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.`,jo))}return i}function zo(e,t,n){let r=No(t);return[...Po(t),...Fo(t,r),...Io(e,t,n,r),...Lo(e,t),.../\.(jsx|tsx)$/.test(e)?Ro(Mo(t),t,n,r):[]]}var Bo=()=>new Set(ao),Vo=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`];function Ho(e,t,n,i,a){let o=new Set;for(let s of E(T(e,t))){if(s.kind!==`import`||s.imported.length===0)continue;let c=Ga(t,s.specifier,i);if(c===null)continue;let u=`${n}:${c}`;a.has(u)||a.set(u,ya(r(l(e,c),`utf8`),{phone:n}));let d=a.get(u);for(let{name:e,local:t}of s.imported)d.has(e)&&o.add(t)}return o}var Uo=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function Wo(e){let n=[];for(let i of L(e,[`package.json`])){if(!t(l(e,i)))continue;let a;try{a=JSON.parse(r(l(e,i),`utf8`))}catch{continue}if(Ni(a)!==`mobile`)continue;let o=d.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function Go(e,n=null){let i=n?n.map(t=>ki(e,t)):null,a=Wo(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=L(e,Object.keys(be).map(e=>`*${e}`)).filter(n=>t(l(e,n))&&!je(n,e)&&o(n)),u=[],d=Bo(),f=Ji(e),p=null,m=new Map;for(let n of s){let i=c(n).toLowerCase(),o=be[i],s=r(l(e,n),`utf8`),h=n.startsWith(`packages/`)||n.startsWith(`samples/`),g=()=>h?[]:[...po(s,o),...zo(n,s,f)],_=[];if(o===`scss`||o===`css`||o===`markup`)_=Bt(s,o),(o===`scss`||o===`css`)&&!h&&_.push(...io(s,o,d)),o===`markup`&&_.push(...g(),...h?[]:to(s),...h?[]:Eo(s,`markup`),...Do(n,s));else if(o===`script`){let r=!h&&a.some(e=>n.startsWith(e)),o=pn(s)||r;if(xe.includes(i)&&!o)continue;let c=[];if(!h){let r=ga(s);p??=new Set(L(e,Vo).filter(n=>t(l(e,n)))),c=ba(s,{phone:r,keyedImports:s.includes(`.map(`)?Ho(e,n,r,p,m):new Set})}_=[...mn(s,{phone:o,colourLiterals:r}),...c],r&&a.some(e=>n===`${e}assets/theme/settings.js`)&&(_=_.filter(e=>e.rule!==`raw-colour`)),(i===`.jsx`||i===`.tsx`)&&_.push(...g(),...Do(n,s))}else o===`csharp`&&(h||(_=Eo(s,`csharp`)));for(let e of _)u.push({id:`${e.rule}:${n}`,line:e.line,text:e.text,hint:e.hint})}let h=L(e,Uo).filter(n=>t(l(e,n)));for(let t of Ua(e,h)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!je(t.file,e)&&!n&&u.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}return u.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function Ko(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var U=process.argv.slice(2),qo=new Set([`--baseline-accept`,`--reason`,`--baseline-adopt`]),Jo=new Set(U.flatMap((e,t)=>qo.has(e)?[t+1]:[])),W=new Set(U.filter((e,t)=>e.startsWith(`--`)&&!Jo.has(t))),G=U.filter((e,t)=>!e.startsWith(`--`)&&!Jo.has(t)),Yo=W.has(`--sync-hook`),Xo=e=>U.includes(e)?U[U.indexOf(e)+1]:void 0,Zo=Xo(`--baseline-accept`),Qo=Xo(`--reason`),$o=Xo(`--baseline-adopt`)?.split(`,`).map(e=>e.trim()).filter(Boolean),es=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 ts=new Set([`--json`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`,`--baseline-adopt`]),ns=[...W].filter(e=>!ts.has(e)),rs=W.has(`--baseline-accept`),is=(rs||W.has(`--reason`))&&!(es(Zo)&&es(Qo)),as=rs&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||Yo||W.has(`--baseline-adopt`)),os=W.has(`--baseline-adopt`)&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||Yo);(ns.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||Yo&&(W.size>1||G.length)||is||as||os)&&(q(`repo-checks: unknown or conflicting options ${ns.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--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=ji(process.cwd());if(J||(q(`repo-checks: not inside a git repository.`),process.exit(2)),Yo){let t=l(J,ia);n(s(t),{recursive:!0}),a(t,ze),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var ss=oa(J,G.length?G.map(e=>p(process.cwd(),e)):null).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),cs=ss.filter(e=>e.warning),ls=ss.filter(e=>!e.warning),us=ls.filter(e=>e.id.startsWith(`lint:`)),ds=ls.filter(e=>!e.id.startsWith(`lint:`)),fs=Go(J,G.length?G.map(e=>p(process.cwd(),e)):null),Y={findings:ds.map(e=>y(e.pkg,e.id)),counts:Ko(fs)},ps=new Map(ds.map(e=>[y(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(l(J,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${g} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ie(J,ae(Y));let e=Object.keys(Y.counts).length;K(`repo-checks: recorded ${ds.length} finding(s) and ${e} counted file(s) (${fs.length} code finding(s)) in ${g}.`),process.exit(0)}var X=(()=>{try{return ee(J)}catch(e){throw e instanceof v&&(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 ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=ce(X,Y);ie(J,le(X,Y)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${g}.`),process.exit(0)}if(rs){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 ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=ue(X,Y,Zo,Qo),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;ie(J,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${Zo} (${Qo}).`),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 ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2)),$o?.length||(q(`repo-checks: --baseline-adopt needs a comma-separated list of rule ids.`),process.exit(2));let e;try{e=oe(X,Y,$o)}catch(e){throw e instanceof v&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}ie(J,e);let t=new Set(X.findings);for(let n of $o){let r=e.findings.filter(e=>!t.has(e)&&b(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 ${g}.`)}process.exit(0)}var ms=new Set(G.map(e=>f(J,p(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),hs=G.length?{pkgs:ms,dirs:[...ms]}:null,Z=ce(se(X??{version:2,findings:[],counts:{}},hs),Y),gs={"raw-measure":Me,"palette-read":Fe,"raw-colour":Ne,"root-font-size":Pe,"missing-canvas-key":Ie,"repeated-canvas-key":Le},_s=e=>gs[e.slice(0,e.indexOf(`:`))],Q=[...Z.fresh.map(e=>ps.get(e)),...us],vs=Z.known.map(e=>ps.get(e)),ys=e=>[`${e.current} found, ${e.baseline} recorded.`,_s(e.id)].filter(Boolean).join(` `),bs=e=>pi(e.id.split(`:`)[0]),$=Z.over.filter(bs).map(e=>({pkg:`.`,id:e.id,message:ys(e),lines:fs.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),xs=Z.over.filter(e=>!bs(e)).map(e=>({pkg:`.`,id:e.id,message:ys(e)})),Ss=Z.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),Cs=[...Z.stale.map(b),...Z.fallen.map(e=>[`.`,e.id])],ws=[...cs,...xs];if(W.has(`--json`)||(()=>{if(ws.length!==0){q(`repo-checks: ${ws.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 ws)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:J,new:[...Q,...$],known:[...vs,...Ss],stale:Cs,warnings:ws.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.`),vs.length||Ss.length){let e=Z.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${vs.length} known finding(s) and ${e} counted code finding(s) in ${Ss.length} file(s) recorded in ${g}.`)}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(b))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{};
|
|
110
|
+
`)[i-1].trim(),hint:n}}function Ao(e){return e.replace(/\/\*[\s\S]*?\*\//g,V).replace(/\/\/[^\n]*/g,V)}function jo(e){let t=new Map,n=RegExp(`import\\s+(?:type\\s+)?([^;'"]*?)\\s+from\\s*${Oo}`,`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 Mo(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${Oo}`,`gm`);return[...e.matchAll(t)].map(t=>H(e,t.index,`Import the name from ${Do} where it is used; a file that only re-exports it adds nothing.`))}function No(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${Do} 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 Po(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=Ao(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 ${Do} and use it where this component is used instead of a wrapper.`)]}function Fo(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 Io(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.`,ko))}return i}function Lo(e,t,n){let r=jo(t);return[...Mo(t),...No(t,r),...Po(e,t,n,r),...Fo(e,t),.../\.(jsx|tsx)$/.test(e)?Io(Ao(t),t,n,r):[]]}var Ro=()=>new Set(ro),zo=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`];function Bo(e,t,n,i,a){let o=new Set;for(let s of E(T(e,t))){if(s.kind!==`import`||s.imported.length===0)continue;let c=Ua(t,s.specifier,i);if(c===null)continue;let u=`${n}:${c}`;a.has(u)||a.set(u,_a(r(l(e,c),`utf8`),{phone:n}));let d=a.get(u);for(let{name:e,local:t}of s.imported)d.has(e)&&o.add(t)}return o}var Vo=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function Ho(e){let n=[];for(let i of L(e,[`package.json`])){if(!t(l(e,i)))continue;let a;try{a=JSON.parse(r(l(e,i),`utf8`))}catch{continue}if(Ni(a)!==`mobile`)continue;let o=d.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function Uo(e,n=null){let i=n?n.map(t=>ki(e,t)):null,a=Ho(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=L(e,Object.keys(be).map(e=>`*${e}`)).filter(n=>t(l(e,n))&&!je(n,e)&&o(n)),u=[],d=Ro(),f=Ji(e),p=null,m=new Map;for(let n of s){let i=c(n).toLowerCase(),o=be[i],s=r(l(e,n),`utf8`),h=n.startsWith(`packages/`)||n.startsWith(`samples/`),g=()=>h?[]:[...uo(s,o),...Lo(n,s,f)],_=[];if(o===`scss`||o===`css`||o===`markup`)_=Bt(s,o),(o===`scss`||o===`css`)&&!h&&_.push(...no(s,o,d)),o===`markup`&&_.push(...g(),...h?[]:$a(s),...h?[]:wo(s,`markup`),...To(n,s));else if(o===`script`){let r=!h&&a.some(e=>n.startsWith(e)),o=pn(s)||r;if(xe.includes(i)&&!o)continue;let c=[];if(!h){let i=r;p??=new Set(L(e,zo).filter(n=>t(l(e,n)))),c=va(s,{phone:i,keyedImports:s.includes(`.map(`)?Bo(e,n,i,p,m):new Set})}_=[...mn(s,{phone:o,colourLiterals:r}),...c],r&&a.some(e=>n===`${e}assets/theme/settings.js`)&&(_=_.filter(e=>e.rule!==`raw-colour`)),(i===`.jsx`||i===`.tsx`)&&_.push(...g(),...To(n,s))}else o===`csharp`&&(h||(_=wo(s,`csharp`)));for(let e of _)u.push({id:`${e.rule}:${n}`,line:e.line,text:e.text,hint:e.hint})}let h=L(e,Vo).filter(n=>t(l(e,n)));for(let t of Va(e,h)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!je(t.file,e)&&!n&&u.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}return u.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function Wo(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var U=process.argv.slice(2),Go=new Set([`--baseline-accept`,`--reason`,`--baseline-adopt`]),Ko=new Set(U.flatMap((e,t)=>Go.has(e)?[t+1]:[])),W=new Set(U.filter((e,t)=>e.startsWith(`--`)&&!Ko.has(t))),G=U.filter((e,t)=>!e.startsWith(`--`)&&!Ko.has(t)),qo=W.has(`--sync-hook`),Jo=e=>U.includes(e)?U[U.indexOf(e)+1]:void 0,Yo=Jo(`--baseline-accept`),Xo=Jo(`--reason`),Zo=Jo(`--baseline-adopt`)?.split(`,`).map(e=>e.trim()).filter(Boolean),Qo=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 $o=new Set([`--json`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`,`--baseline-adopt`]),es=[...W].filter(e=>!$o.has(e)),ts=W.has(`--baseline-accept`),ns=(ts||W.has(`--reason`))&&!(Qo(Yo)&&Qo(Xo)),rs=ts&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||qo||W.has(`--baseline-adopt`)),is=W.has(`--baseline-adopt`)&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||qo);(es.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||qo&&(W.size>1||G.length)||ns||rs||is)&&(q(`repo-checks: unknown or conflicting options ${es.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--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=ji(process.cwd());if(J||(q(`repo-checks: not inside a git repository.`),process.exit(2)),qo){let t=l(J,ia);n(s(t),{recursive:!0}),a(t,ze),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var as=oa(J,G.length?G.map(e=>p(process.cwd(),e)):null).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),os=as.filter(e=>e.warning),ss=as.filter(e=>!e.warning),cs=ss.filter(e=>e.id.startsWith(`lint:`)),ls=ss.filter(e=>!e.id.startsWith(`lint:`)),us=Uo(J,G.length?G.map(e=>p(process.cwd(),e)):null),Y={findings:ls.map(e=>y(e.pkg,e.id)),counts:Wo(us)},ds=new Map(ls.map(e=>[y(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(l(J,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${g} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ie(J,ae(Y));let e=Object.keys(Y.counts).length;K(`repo-checks: recorded ${ls.length} finding(s) and ${e} counted file(s) (${us.length} code finding(s)) in ${g}.`),process.exit(0)}var X=(()=>{try{return ee(J)}catch(e){throw e instanceof v&&(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 ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=ce(X,Y);ie(J,le(X,Y)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${g}.`),process.exit(0)}if(ts){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 ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=ue(X,Y,Yo,Xo),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;ie(J,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${Yo} (${Xo}).`),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 ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2)),Zo?.length||(q(`repo-checks: --baseline-adopt needs a comma-separated list of rule ids.`),process.exit(2));let e;try{e=oe(X,Y,Zo)}catch(e){throw e instanceof v&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}ie(J,e);let t=new Set(X.findings);for(let n of Zo){let r=e.findings.filter(e=>!t.has(e)&&b(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 ${g}.`)}process.exit(0)}var fs=new Set(G.map(e=>f(J,p(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),ps=G.length?{pkgs:fs,dirs:[...fs]}:null,Z=ce(se(X??{version:2,findings:[],counts:{}},ps),Y),ms={"raw-measure":Me,"palette-read":Fe,"raw-colour":Ne,"root-font-size":Pe,"missing-canvas-key":Ie,"repeated-canvas-key":Le},hs=e=>ms[e.slice(0,e.indexOf(`:`))],Q=[...Z.fresh.map(e=>ds.get(e)),...cs],gs=Z.known.map(e=>ds.get(e)),_s=e=>[`${e.current} found, ${e.baseline} recorded.`,hs(e.id)].filter(Boolean).join(` `),vs=e=>pi(e.id.split(`:`)[0]),$=Z.over.filter(vs).map(e=>({pkg:`.`,id:e.id,message:_s(e),lines:us.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),ys=Z.over.filter(e=>!vs(e)).map(e=>({pkg:`.`,id:e.id,message:_s(e)})),bs=Z.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),xs=[...Z.stale.map(b),...Z.fallen.map(e=>[`.`,e.id])],Ss=[...os,...ys];if(W.has(`--json`)||(()=>{if(Ss.length!==0){q(`repo-checks: ${Ss.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 Ss)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:J,new:[...Q,...$],known:[...gs,...bs],stale:xs,warnings:Ss.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.`),gs.length||bs.length){let e=Z.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${gs.length} known finding(s) and ${e} counted code finding(s) in ${bs.length} file(s) recorded in ${g}.`)}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(b))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{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/repo-checks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.121.0",
|
|
4
4
|
"description": "Repository checks for Webority React web portals, React Native apps and Razor sites: banned and required dependencies, pnpm only, exact pins, the shared Biome preset, and token use in style, markup and component code. Run before a push; existing findings and per-file counts sit in a baseline that only shrinks.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"node": ">=24.15 <25"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@webority/theme": "0.
|
|
25
|
+
"@webority/theme": "0.121.0",
|
|
26
26
|
"vite": "^8.0.12"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|