@ncino/web-components 5.0.0-preview.7 → 5.0.0-preview.9
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/components/chip/chip.js +1 -1
- package/dist/components/chip/gator/chip.gator.js +15 -5
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.4/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +1 -1
- package/dist/packages/web-components/src/components/button-card/gator/button-card.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
- package/dist/types/components/chip/chip.d.ts +10 -0
- package/dist/types/components/chip/gator/chip.gator.d.ts +1 -0
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +1 -1
- package/web-types.json +20 -4
- package/dist/_virtual/sourcemap-codec.umd.js +0 -1
- package/dist/_virtual/sourcemap-codec.umd2.js +0 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{property as t}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{TestableLitElement as
|
|
1
|
+
import{property as t}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{TestableLitElement as n}from"../../utils/components/testable-lit-element/testable-lit-element.js";var d=Object.defineProperty,e=(s,p,a,y)=>{for(var o=void 0,i=s.length-1,l;i>=0;i--)(l=s[i])&&(o=l(p,a,o)||o);return o&&d(p,a,o),o};class r extends n{constructor(){super(...arguments),this.disabled=!1,this.readonly=!1,this.type=null,this.size=null,this.hideBorder=!1,this.startIcon="",this.dismissible=!1}}e([t({type:Boolean})],r.prototype,"disabled");e([t({type:Boolean})],r.prototype,"readonly");e([t()],r.prototype,"type");e([t()],r.prototype,"size");e([t({type:Boolean,attribute:"hide-border"})],r.prototype,"hideBorder");e([t({type:String,attribute:"start-icon"})],r.prototype,"startIcon");e([t({type:Boolean,attribute:"dismissible"})],r.prototype,"dismissible");export{r as NjcChip};
|
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as r,html as i}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import b from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import u from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import g from"../../../packages/web-components/src/components/chip/gator/chip.gator.scss.js";import{NjcChip as d}from"../chip.js";import{classMap as h}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js";import{unsafeCSS as l}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.getOwnPropertyDescriptor,f=(s,o,p,n)=>{for(var t=n>1?void 0:n?v(o,p):o,a=s.length-1,c;a>=0;a--)(c=s[a])&&(t=c(t)||t);return t};let e=class extends d{render(){return this.readonly||this.dismissible?this.readonlyChipMarkup:this.chipMarkup}get chipMarkup(){return i`
|
|
2
2
|
<button
|
|
3
3
|
class=${h(this.classes)}
|
|
4
4
|
?disabled="${this.disabled}"
|
|
5
5
|
@click=${this.handleClick}
|
|
6
6
|
>
|
|
7
|
-
|
|
7
|
+
${this.startIcon?i`<ngc-icon name="${this.startIcon}" size="x-small"></ngc-icon>`:r}
|
|
8
|
+
<div class="chip-label"><slot></slot></div>
|
|
8
9
|
</button>
|
|
9
|
-
`}get readonlyChipMarkup(){return
|
|
10
|
+
`}get readonlyChipMarkup(){return i`
|
|
10
11
|
<div
|
|
11
12
|
class="gator-chip__read-only ${h(this.classes)}"
|
|
12
13
|
aria-disabled="${this.disabled}"
|
|
13
14
|
@click=${this.handleClick}
|
|
14
15
|
>
|
|
15
|
-
|
|
16
|
+
${this.startIcon?i`<ngc-icon name="${this.startIcon}" size="x-small"></ngc-icon>`:r}
|
|
17
|
+
<div class="chip-label"><slot></slot></div>
|
|
18
|
+
${this.dismissible?i`
|
|
19
|
+
<ngc-icon-button
|
|
20
|
+
icon-name="exit-circle"
|
|
21
|
+
size="small"
|
|
22
|
+
@click=${this.handleDismiss}
|
|
23
|
+
?disabled="${this.disabled}"
|
|
24
|
+
.ariaLabel="Remove ${this.textContent?.trim()}"
|
|
25
|
+
></ngc-icon-button>`:r}
|
|
16
26
|
</div>
|
|
17
|
-
`}handleClick(
|
|
27
|
+
`}handleClick(s){s.stopPropagation(),s.preventDefault(),!(this.disabled||this.readonly||this.dismissible)&&this.dispatchEvent(new Event("click",{bubbles:!0}))}handleDismiss(s){s.stopPropagation(),s.preventDefault(),!this.disabled&&this.dispatchEvent(new Event("dismiss",{bubbles:!0}))}get classes(){return{"gator-chip":!0,"gator-chip_small":this.size==="small","gator-chip_disabled":this.disabled,"hide-border":this.hideBorder,[`gator-chip_${this.type}`]:this.type!==null}}};e.shadowRootOptions={...d.shadowRootOptions,delegatesFocus:!0};e.styles=[l(g),l(b),l(u)];e=f([m("ngc-chip")],e);export{e as NgcChip};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var m=44,p=59,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=new Uint8Array(64),v=new Uint8Array(128);for(let t=0;t<a.length;t++){const e=a.charCodeAt(t);w[t]=e,v[e]=t}function s(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),t.write(w[i])}while(n>0);return e}var d=1024*16,g=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},y=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(d)}write(t){const{buffer:e}=this;e[this.pos++]=t,this.pos===d&&(this.out+=g.decode(e),this.pos=0)}flush(){const{buffer:t,out:e,pos:r}=this;return r>0?e+g.decode(t.subarray(0,r)):e}};function C(t){const e=new y;let r=0,n=0,i=0,l=0;for(let c=0;c<t.length;c++){const u=t[c];if(c>0&&e.write(p),u.length===0)continue;let h=0;for(let f=0;f<u.length;f++){const o=u[f];f>0&&e.write(m),h=s(e,o[0],h),o.length!==1&&(r=s(e,o[1],r),n=s(e,o[2],n),i=s(e,o[3],i),o.length!==4&&(l=s(e,o[4],l)))}}return e.flush()}export{C as encode};
|
package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js","
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js","node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.4/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{__vitePreload as be}from"../../../../../../../_virtual/preload-helper.js";import{format as $e,plugins as ke}from"../../../../../@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js";import{r as Ne}from"../../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js";const Pe=44,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Re=new Uint8Array(64),me=new Uint8Array(128);for(let t=0;t<Y.length;t++){const e=Y.charCodeAt(t);Re[t]=e,me[e]=t}function M(t,e){let n=0,s=0,i=0;do{const a=t.next();i=me[a],n|=(i&31)<<s,s+=5}while(i&32);const r=n&1;return n>>>=1,r&&(n=-2147483648|-n),e+n}function ee(t,e){return t.pos>=e?!1:t.peek()!==Pe}class Ce{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:s}=this,i=n.indexOf(e,s);return i===-1?n.length:i}}function Te(t){const{length:e}=t,n=new Ce(t),s=[];let i=0,r=0,a=0,l=0,o=0;do{const c=n.indexOf(";"),d=[];let p=!0,u=0;for(i=0;n.pos<c;){let S;i=M(n,i),i<u&&(p=!1),u=i,ee(n,c)?(r=M(n,r),a=M(n,a),l=M(n,l),ee(n,c)?(o=M(n,o),S=[i,r,a,l,o]):S=[i,r,a,l]):S=[i],d.push(S),n.pos++}p||Oe(d),s.push(d),n.pos=c+1}while(n.pos<=e);return s}function Oe(t){t.sort(Ae)}function Ae(t,e){return t[0]-e[0]}const Me=/^[\w+.-]+:\/\//,Fe=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Le=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var y;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(y||(y={}));function Be(t){return Me.test(t)}function De(t){return t.startsWith("//")}function ge(t){return t.startsWith("/")}function Je(t){return t.startsWith("file:")}function te(t){return/^[.?#]/.test(t)}function L(t){const e=Fe.exec(t);return Se(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Xe(t){const e=Le.exec(t),n=e[2];return Se("file:","",e[1]||"","",ge(n)?n:"/"+n,e[3]||"",e[4]||"")}function Se(t,e,n,s,i,r,a){return{scheme:t,user:e,host:n,port:s,path:i,query:r,hash:a,type:y.Absolute}}function ne(t){if(De(t)){const n=L("http:"+t);return n.scheme="",n.type=y.SchemeRelative,n}if(ge(t)){const n=L("http://foo.com"+t);return n.scheme="",n.host="",n.type=y.AbsolutePath,n}if(Je(t))return Xe(t);if(Be(t))return L(t);const e=L("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?y.Query:t.startsWith("#")?y.Hash:y.RelativePath:y.Empty,e}function je(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function We(t,e){_e(e,e.type),t.path==="/"?t.path=e.path:t.path=je(e.path)+t.path}function _e(t,e){const n=e<=y.RelativePath,s=t.path.split("/");let i=1,r=0,a=!1;for(let o=1;o<s.length;o++){const c=s[o];if(!c){a=!0;continue}if(a=!1,c!=="."){if(c===".."){r?(a=!0,r--,i--):n&&(s[i++]=c);continue}s[i++]=c,r++}}let l="";for(let o=1;o<i;o++)l+="/"+s[o];(!l||a&&!l.endsWith("/.."))&&(l+="/"),t.path=l}function Ke(t,e){if(!t&&!e)return"";const n=ne(t);let s=n.type;if(e&&s!==y.Absolute){const r=ne(e),a=r.type;switch(s){case y.Empty:n.hash=r.hash;case y.Hash:n.query=r.query;case y.Query:case y.RelativePath:We(n,r);case y.AbsolutePath:n.user=r.user,n.host=r.host,n.port=r.port;case y.SchemeRelative:n.scheme=r.scheme}a>s&&(s=a)}_e(n,s);const i=n.query+n.hash;switch(s){case y.Hash:case y.Query:return i;case y.RelativePath:{const r=n.path.slice(1);return r?te(e||t)&&!te(r)?"./"+r+i:r+i:i||"."}case y.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function se(t,e){return e&&!e.endsWith("/")&&(e+="/"),Ke(t,e)}function Ue(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const R=0,qe=1,ze=2,He=3,Ge=4;function Ve(t,e){const n=ie(t,0);if(n===t.length)return t;e||(t=t.slice());for(let s=n;s<t.length;s=ie(t,s+1))t[s]=Ze(t[s],e);return t}function ie(t,e){for(let n=e;n<t.length;n++)if(!Qe(t[n]))return n;return t.length}function Qe(t){for(let e=1;e<t.length;e++)if(t[e][R]<t[e-1][R])return!1;return!0}function Ze(t,e){return e||(t=t.slice()),t.sort(Ye)}function Ye(t,e){return t[R]-e[R]}let J=!1;function et(t,e,n,s){for(;n<=s;){const i=n+(s-n>>1),r=t[i][R]-e;if(r===0)return J=!0,i;r<0?n=i+1:s=i-1}return J=!1,n-1}function tt(t,e,n){for(let s=n+1;s<t.length&&t[s][R]===e;n=s++);return n}function nt(t,e,n){for(let s=n-1;s>=0&&t[s][R]===e;n=s--);return n}function st(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function it(t,e,n,s){const{lastKey:i,lastNeedle:r,lastIndex:a}=n;let l=0,o=t.length-1;if(s===i){if(e===r)return J=a!==-1&&t[a][R]===e,a;e>=r?l=a===-1?0:a:o=a}return n.lastKey=s,n.lastNeedle=e,n.lastIndex=et(t,e,l,o)}const rt="`line` must be greater than 0 (lines start at line 1)",at="`column` must be greater than or equal to 0 (columns start at column 0)",re=-1,ot=1;class lt{constructor(e,n){const s=typeof e=="string";if(!s&&e._decodedMemo)return e;const i=s?JSON.parse(e):e,{version:r,file:a,names:l,sourceRoot:o,sources:c,sourcesContent:d}=i;this.version=r,this.file=a,this.names=l||[],this.sourceRoot=o,this.sources=c,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const p=se(o||"",Ue(n));this.resolvedSources=c.map(S=>se(S||"",p));const{mappings:u}=i;typeof u=="string"?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=Ve(u,s)),this._decodedMemo=st(),this._bySources=void 0,this._bySourceMemos=void 0}}function ct(t){var e;return(e=t)._decoded||(e._decoded=Te(t._encoded))}function ut(t,e){let{line:n,column:s,bias:i}=e;if(n--,n<0)throw new Error(rt);if(s<0)throw new Error(at);const r=ct(t);if(n>=r.length)return B(null,null,null,null);const a=r[n],l=ht(a,t._decodedMemo,n,s,i||ot);if(l===-1)return B(null,null,null,null);const o=a[l];if(o.length===1)return B(null,null,null,null);const{names:c,resolvedSources:d}=t;return B(d[o[qe]],o[ze]+1,o[He],o.length===5?c[o[Ge]]:null)}function B(t,e,n,s){return{source:t,line:e,column:n,name:s}}function ht(t,e,n,s,i){let r=it(t,s,e,n);return J?r=(i===re?tt:nt)(t,s,r):i===re&&r++,r===-1||r===t.length?-1:r}function ye(t){return t!=null}function dt(t){return t===null||typeof t!="function"&&typeof t!="object"}function D(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function ft(t){let e=-1,n=null,s=0,i=0,r=null;for(;e<=t.length;){r=t[e],e++;const a=t[e];if((a==='"'||a==="'"||a==="`")&&r!=="\\"&&(n===a?n=null:n||(n=a)),n||(a==="("&&s++,a===")"&&i++),s&&i&&s===i)return e}return null}const ve=/^\s*at .*(?:\S:\d+|\(native\))/m,pt=/^(?:eval@)?(?:\[native code\])?$/,mt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function xe(t){if(!t.includes(":"))return[t];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!n)return[t];let s=n[1];if(s.startsWith("async ")&&(s=s.slice(6)),s.startsWith("http:")||s.startsWith("https:")){const i=new URL(s);i.searchParams.delete("import"),i.searchParams.delete("browserv"),s=i.pathname+i.hash+i.search}if(s.startsWith("/@fs/")){const i=/^\/@fs\/[a-zA-Z]:\//.test(s);s=s.slice(i?5:4)}return[s,n[2]||void 0,n[3]||void 0]}function gt(t){let e=t.trim();if(pt.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,s=e.match(n),i=s&&s[1]?s[1]:void 0,[r,a,l]=xe(e.replace(n,""));return!r||!a||!l?null:{file:r,method:i||"",line:Number.parseInt(a),column:Number.parseInt(l)}}function St(t){let e=t.trim();if(!ve.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const s=n.match(/ (\(.+\)$)/);n=s?n.replace(s[0],""):n;const[i,r,a]=xe(s?s[1]:n);let l=s&&n||"",o=i&&["eval","<anonymous>"].includes(i)?void 0:i;return!o||!r||!a?null:(l.startsWith("async ")&&(l=l.slice(6)),o.startsWith("file://")&&(o=o.slice(7)),o=o.startsWith("node:")||o.startsWith("internal:")?o:Ne(o),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"")),{method:l,file:o,line:Number.parseInt(r),column:Number.parseInt(a)})}function X(t,e={}){const{ignoreStackEntries:n=mt}=e;return(ve.test(t)?yt(t):_t(t)).map(i=>{var r;e.getUrlId&&(i.file=e.getUrlId(i.file));const a=(r=e.getSourceMap)===null||r===void 0?void 0:r.call(e,i.file);if(!a||typeof a!="object"||!a.version)return ae(n,i.file)?null:i;const l=new lt(a),{line:o,column:c,source:d,name:p}=ut(l,i);let u=i.file;if(d){const S=i.file.startsWith("file://")?i.file:`file://${i.file}`,w=a.sourceRoot?new URL(a.sourceRoot,S):S;u=new URL(d,w).pathname,u.match(/\/\w:\//)&&(u=u.slice(1))}return ae(n,u)?null:o!=null&&c!=null?{line:o,column:c,file:u,method:p||i.method}:i}).filter(i=>i!=null)}function ae(t,e){return t.some(n=>e.match(n))}function _t(t){return t.split(`
|
|
3
3
|
`).map(e=>gt(e)).filter(ye)}function yt(t){return t.split(`
|
|
4
|
-
`).map(e=>St(e)).filter(ye)}function vt(t,e={}){if(!t||dt(t))return[];if(t.stacks)return t.stacks;const n=t.stack||"";let s=typeof n=="string"?X(n,e):[];if(!s.length){const i=t;i.fileName!=null&&i.lineNumber!=null&&i.columnNumber!=null&&(s=X(`${i.fileName}:${i.lineNumber}:${i.columnNumber}`,e)),i.sourceURL!=null&&i.line!=null&&i._column!=null&&(s=X(`${i.sourceURL}:${i.line}:${i.column}`,e))}return e.frameFilter&&(s=s.filter(i=>e.frameFilter(t,i)!==!1)),t.stacks=s,s}let xt=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(xt=(s,i)=>{const[r,a]=t(s);return r===e?"Promise{<pending>}":`Promise${r===n?"!":""}{${i.inspect(a,i)}}`})}catch{}function wt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j,oe;function It(){if(oe)return j;oe=1;var t,e,n,s,i,r,a,l,o,c,d,p,u,S,w,E,b,I,$;return u=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,w=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,E=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,$=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,o=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,I=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,b=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,r=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,c=RegExp(l.source),j=function*(_,{jsx:C=!1}={}){var x,N,T,f,m,Q,h,P,Z,k,O,g,A,v;for({length:Q}=_,f=0,m="",v=[{tag:"JS"}],x=[],O=0,g=!1;f<Q;){switch(P=v[v.length-1],P.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[f]==="/"&&(I.test(m)||r.test(m))&&(u.lastIndex=f,h=u.exec(_))){f=u.lastIndex,m=h[0],g=!0,yield{type:"RegularExpressionLiteral",value:h[0],closed:h[1]!==void 0&&h[1]!=="\\"};continue}if(p.lastIndex=f,h=p.exec(_)){switch(A=h[0],Z=p.lastIndex,k=A,A){case"(":m==="?NonExpressionParenKeyword"&&v.push({tag:"JSNonExpressionParen",nesting:O}),O++,g=!1;break;case")":O--,g=!0,P.tag==="JSNonExpressionParen"&&O===P.nesting&&(v.pop(),k="?NonExpressionParenEnd",g=!1);break;case"{":p.lastIndex=0,T=!b.test(m)&&(I.test(m)||r.test(m)),x.push(T),g=!1;break;case"}":switch(P.tag){case"InterpolationInTemplate":if(x.length===P.nesting){E.lastIndex=f,h=E.exec(_),f=E.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",g=!1,yield{type:"TemplateMiddle",value:h[0]}):(v.pop(),g=!0,yield{type:"TemplateTail",value:h[0],closed:h[1]==="`"});continue}break;case"InterpolationInJSX":if(x.length===P.nesting){v.pop(),f+=1,m="}",yield{type:"JSXPunctuator",value:"}"};continue}}g=x.pop(),k=g?"?ExpressionBraceEnd":"}";break;case"]":g=!0;break;case"++":case"--":k=g?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(C&&(I.test(m)||r.test(m))){v.push({tag:"JSXTag"}),f+=1,m="<",yield{type:"JSXPunctuator",value:A};continue}g=!1;break;default:g=!1}f=Z,m=k,yield{type:"Punctuator",value:A};continue}if(t.lastIndex=f,h=t.exec(_)){switch(f=t.lastIndex,k=h[0],h[0]){case"for":case"if":case"while":case"with":m!=="."&&m!=="?."&&(k="?NonExpressionParenKeyword")}m=k,g=!r.test(h[0]),yield{type:h[1]==="#"?"PrivateIdentifier":"IdentifierName",value:h[0]};continue}if(w.lastIndex=f,h=w.exec(_)){f=w.lastIndex,m=h[0],g=!0,yield{type:"StringLiteral",value:h[0],closed:h[2]!==void 0};continue}if(d.lastIndex=f,h=d.exec(_)){f=d.lastIndex,m=h[0],g=!0,yield{type:"NumericLiteral",value:h[0]};continue}if(E.lastIndex=f,h=E.exec(_)){f=E.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",v.push({tag:"InterpolationInTemplate",nesting:x.length}),g=!1,yield{type:"TemplateHead",value:h[0]}):(g=!0,yield{type:"NoSubstitutionTemplate",value:h[0],closed:h[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=f,h=n.exec(_)){switch(f=n.lastIndex,k=h[0],h[0]){case"<":v.push({tag:"JSXTag"});break;case">":v.pop(),m==="/"||P.tag==="JSXTagEnd"?(k="?JSX",g=!0):v.push({tag:"JSXChildren"});break;case"{":v.push({tag:"InterpolationInJSX",nesting:x.length}),k="?InterpolationInJSX",g=!1;break;case"/":m==="<"&&(v.pop(),v[v.length-1].tag==="JSXChildren"&&v.pop(),v.push({tag:"JSXTagEnd"}))}m=k,yield{type:"JSXPunctuator",value:h[0]};continue}if(e.lastIndex=f,h=e.exec(_)){f=e.lastIndex,m=h[0],yield{type:"JSXIdentifier",value:h[0]};continue}if(s.lastIndex=f,h=s.exec(_)){f=s.lastIndex,m=h[0],yield{type:"JSXString",value:h[0],closed:h[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=f,h=i.exec(_)){f=i.lastIndex,m=h[0],yield{type:"JSXText",value:h[0]};continue}switch(_[f]){case"<":v.push({tag:"JSXTag"}),f++,m="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":v.push({tag:"InterpolationInJSX",nesting:x.length}),f++,m="?InterpolationInJSX",g=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if($.lastIndex=f,h=$.exec(_)){f=$.lastIndex,yield{type:"WhiteSpace",value:h[0]};continue}if(l.lastIndex=f,h=l.exec(_)){f=l.lastIndex,g=!1,a.test(m)&&(m="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:h[0]};continue}if(o.lastIndex=f,h=o.exec(_)){f=o.lastIndex,c.test(h[0])&&(g=!1,a.test(m)&&(m="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:h[0],closed:h[1]!==void 0};continue}if(S.lastIndex=f,h=S.exec(_)){f=S.lastIndex,g=!1,yield{type:"SingleLineComment",value:h[0]};continue}N=String.fromCodePoint(_.codePointAt(f)),f+=N.length,m=N,g=!1,yield{type:P.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:N}}},j}It();var we={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(we.keyword);new Set(we.strict);var Et={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},bt=Object.entries(Et);function q(t){return String(t)}q.open="";q.close="";function $t(t=!1){let e=typeof process<"u"?process:void 0,n=e?.env||{},s=e?.argv||[];return!("NO_COLOR"in n||s.includes("--no-color"))&&("FORCE_COLOR"in n||s.includes("--color")||e?.platform==="win32"||t&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function kt(t=!1){let e=$t(t),n=(a,l,o,c)=>{let d="",p=0;do d+=a.substring(p,c)+o,p=c+l.length,c=a.indexOf(l,p);while(~c);return d+a.substring(p)},s=(a,l,o=a)=>{let c=d=>{let p=String(d),u=p.indexOf(l,a.length);return~u?a+n(p,l,o,u)+l:a+p+l};return c.open=a,c.close=l,c},i={isColorSupported:e},r=a=>`\x1B[${a}m`;for(let[a,l]of bt)i[a]=e?s(r(l[0]),r(l[1]),l[2]):q;return i}kt();const z=/\r?\n/;function Nt(t,e,n){const s=t.split(z),i=/\r\n/.test(t)?2:1;let r=0;if(e>s.length)return t.length;for(let a=0;a<e-1;a++)r+=s[a].length+i;return r+n}function Pt(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(z),s=/\r\n/.test(t)?2:1;let i=0,r=0;for(;r<n.length;r++){const a=n[r].length+s;if(i+a>=e)break;i+=a}return r+1}async function Rt(t,e){const n=(await be(async()=>{const{default:i}=await import("../../../../../magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js");return{default:i}},__vite__mapDeps([0,1
|
|
4
|
+
`).map(e=>St(e)).filter(ye)}function vt(t,e={}){if(!t||dt(t))return[];if(t.stacks)return t.stacks;const n=t.stack||"";let s=typeof n=="string"?X(n,e):[];if(!s.length){const i=t;i.fileName!=null&&i.lineNumber!=null&&i.columnNumber!=null&&(s=X(`${i.fileName}:${i.lineNumber}:${i.columnNumber}`,e)),i.sourceURL!=null&&i.line!=null&&i._column!=null&&(s=X(`${i.sourceURL}:${i.line}:${i.column}`,e))}return e.frameFilter&&(s=s.filter(i=>e.frameFilter(t,i)!==!1)),t.stacks=s,s}let xt=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(xt=(s,i)=>{const[r,a]=t(s);return r===e?"Promise{<pending>}":`Promise${r===n?"!":""}{${i.inspect(a,i)}}`})}catch{}function wt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j,oe;function It(){if(oe)return j;oe=1;var t,e,n,s,i,r,a,l,o,c,d,p,u,S,w,E,b,I,$;return u=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,w=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,E=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,$=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,o=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,I=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,b=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,r=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,c=RegExp(l.source),j=function*(_,{jsx:C=!1}={}){var x,N,T,f,m,Q,h,P,Z,k,O,g,A,v;for({length:Q}=_,f=0,m="",v=[{tag:"JS"}],x=[],O=0,g=!1;f<Q;){switch(P=v[v.length-1],P.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[f]==="/"&&(I.test(m)||r.test(m))&&(u.lastIndex=f,h=u.exec(_))){f=u.lastIndex,m=h[0],g=!0,yield{type:"RegularExpressionLiteral",value:h[0],closed:h[1]!==void 0&&h[1]!=="\\"};continue}if(p.lastIndex=f,h=p.exec(_)){switch(A=h[0],Z=p.lastIndex,k=A,A){case"(":m==="?NonExpressionParenKeyword"&&v.push({tag:"JSNonExpressionParen",nesting:O}),O++,g=!1;break;case")":O--,g=!0,P.tag==="JSNonExpressionParen"&&O===P.nesting&&(v.pop(),k="?NonExpressionParenEnd",g=!1);break;case"{":p.lastIndex=0,T=!b.test(m)&&(I.test(m)||r.test(m)),x.push(T),g=!1;break;case"}":switch(P.tag){case"InterpolationInTemplate":if(x.length===P.nesting){E.lastIndex=f,h=E.exec(_),f=E.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",g=!1,yield{type:"TemplateMiddle",value:h[0]}):(v.pop(),g=!0,yield{type:"TemplateTail",value:h[0],closed:h[1]==="`"});continue}break;case"InterpolationInJSX":if(x.length===P.nesting){v.pop(),f+=1,m="}",yield{type:"JSXPunctuator",value:"}"};continue}}g=x.pop(),k=g?"?ExpressionBraceEnd":"}";break;case"]":g=!0;break;case"++":case"--":k=g?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(C&&(I.test(m)||r.test(m))){v.push({tag:"JSXTag"}),f+=1,m="<",yield{type:"JSXPunctuator",value:A};continue}g=!1;break;default:g=!1}f=Z,m=k,yield{type:"Punctuator",value:A};continue}if(t.lastIndex=f,h=t.exec(_)){switch(f=t.lastIndex,k=h[0],h[0]){case"for":case"if":case"while":case"with":m!=="."&&m!=="?."&&(k="?NonExpressionParenKeyword")}m=k,g=!r.test(h[0]),yield{type:h[1]==="#"?"PrivateIdentifier":"IdentifierName",value:h[0]};continue}if(w.lastIndex=f,h=w.exec(_)){f=w.lastIndex,m=h[0],g=!0,yield{type:"StringLiteral",value:h[0],closed:h[2]!==void 0};continue}if(d.lastIndex=f,h=d.exec(_)){f=d.lastIndex,m=h[0],g=!0,yield{type:"NumericLiteral",value:h[0]};continue}if(E.lastIndex=f,h=E.exec(_)){f=E.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",v.push({tag:"InterpolationInTemplate",nesting:x.length}),g=!1,yield{type:"TemplateHead",value:h[0]}):(g=!0,yield{type:"NoSubstitutionTemplate",value:h[0],closed:h[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=f,h=n.exec(_)){switch(f=n.lastIndex,k=h[0],h[0]){case"<":v.push({tag:"JSXTag"});break;case">":v.pop(),m==="/"||P.tag==="JSXTagEnd"?(k="?JSX",g=!0):v.push({tag:"JSXChildren"});break;case"{":v.push({tag:"InterpolationInJSX",nesting:x.length}),k="?InterpolationInJSX",g=!1;break;case"/":m==="<"&&(v.pop(),v[v.length-1].tag==="JSXChildren"&&v.pop(),v.push({tag:"JSXTagEnd"}))}m=k,yield{type:"JSXPunctuator",value:h[0]};continue}if(e.lastIndex=f,h=e.exec(_)){f=e.lastIndex,m=h[0],yield{type:"JSXIdentifier",value:h[0]};continue}if(s.lastIndex=f,h=s.exec(_)){f=s.lastIndex,m=h[0],yield{type:"JSXString",value:h[0],closed:h[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=f,h=i.exec(_)){f=i.lastIndex,m=h[0],yield{type:"JSXText",value:h[0]};continue}switch(_[f]){case"<":v.push({tag:"JSXTag"}),f++,m="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":v.push({tag:"InterpolationInJSX",nesting:x.length}),f++,m="?InterpolationInJSX",g=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if($.lastIndex=f,h=$.exec(_)){f=$.lastIndex,yield{type:"WhiteSpace",value:h[0]};continue}if(l.lastIndex=f,h=l.exec(_)){f=l.lastIndex,g=!1,a.test(m)&&(m="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:h[0]};continue}if(o.lastIndex=f,h=o.exec(_)){f=o.lastIndex,c.test(h[0])&&(g=!1,a.test(m)&&(m="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:h[0],closed:h[1]!==void 0};continue}if(S.lastIndex=f,h=S.exec(_)){f=S.lastIndex,g=!1,yield{type:"SingleLineComment",value:h[0]};continue}N=String.fromCodePoint(_.codePointAt(f)),f+=N.length,m=N,g=!1,yield{type:P.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:N}}},j}It();var we={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(we.keyword);new Set(we.strict);var Et={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},bt=Object.entries(Et);function q(t){return String(t)}q.open="";q.close="";function $t(t=!1){let e=typeof process<"u"?process:void 0,n=e?.env||{},s=e?.argv||[];return!("NO_COLOR"in n||s.includes("--no-color"))&&("FORCE_COLOR"in n||s.includes("--color")||e?.platform==="win32"||t&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function kt(t=!1){let e=$t(t),n=(a,l,o,c)=>{let d="",p=0;do d+=a.substring(p,c)+o,p=c+l.length,c=a.indexOf(l,p);while(~c);return d+a.substring(p)},s=(a,l,o=a)=>{let c=d=>{let p=String(d),u=p.indexOf(l,a.length);return~u?a+n(p,l,o,u)+l:a+p+l};return c.open=a,c.close=l,c},i={isColorSupported:e},r=a=>`\x1B[${a}m`;for(let[a,l]of bt)i[a]=e?s(r(l[0]),r(l[1]),l[2]):q;return i}kt();const z=/\r?\n/;function Nt(t,e,n){const s=t.split(z),i=/\r\n/.test(t)?2:1;let r=0;if(e>s.length)return t.length;for(let a=0;a<e-1;a++)r+=s[a].length+i;return r+n}function Pt(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(z),s=/\r\n/.test(t)?2:1;let i=0,r=0;for(;r<n.length;r++){const a=n[r].length+s;if(i+a>=e)break;i+=a}return r+1}async function Rt(t,e){const n=(await be(async()=>{const{default:i}=await import("../../../../../magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js");return{default:i}},__vite__mapDeps([0,1]))).default,s=new Set(e.map(i=>i.file));await Promise.all(Array.from(s).map(async i=>{const r=e.filter(c=>c.file===i),a=await t.readSnapshotFile(i),l=new n(a);for(const c of r){const d=Nt(a,c.line,c.column);Ft(a,l,d,c.snapshot)}const o=l.toString();o!==a&&await t.saveSnapshotFile(i,o)}))}const Ct=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Tt(t,e,n,s){let i=t.slice(n);const r=Ct.exec(i);if(!r)return!1;i=i.slice(r.index);let a=ft(i);if(a===null)return!1;a+=n+r.index;const l=n+r.index+r[0].length,o=Ot(t,l),c=`, ${Ie(s,t,n)}`;return o===a?e.appendLeft(a,c):e.overwrite(o,a,c),!0}function Ot(t,e){let n=1,s=0;for(;n!==s&&e<t.length;){const i=t[e++];i==="{"?n++:i==="}"&&s++}return e}function Ie(t,e,n){const s=Pt(e,n),r=e.split(z)[s-1].match(/^\s*/)[0]||"",a=r.includes(" ")?`${r} `:`${r} `,l=t.trim().replace(/\\/g,"\\\\").split(/\n/g),o=l.length<=1,c="`";return o?`${c}${l.join(`
|
|
5
5
|
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}
|
|
6
6
|
${l.map(d=>d?a+d:"").join(`
|
|
7
7
|
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{encode as b}from"../../../../@jridgewell_sourcemap-codec@1.5.4/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js";class d{constructor(t){this.bits=t instanceof d?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class g{constructor(t,e,i){this.start=t,this.end=e,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new g(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let e=this;for(;e;)t(e),e=e.next}eachPrevious(t){let e=this;for(;e;)t(e),e=e.previous}edit(t,e,i){return this.content=t,i||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){const e=t-this.start,i=this.original.slice(0,e),n=this.original.slice(e);this.original=i;const r=new g(t,this.end,n);return r.outro=this.outro,this.outro="",this.end=t,this.edited?(r.edit("",!1),this.content=""):this.content=i,r.next=this.next,r.next&&(r.next.previous=r),r.previous=this,this.next=r,r}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const e=this.content.replace(t,"");if(e.length)return e!==this.content&&(this.split(this.start+e.length).edit("",void 0,!0),this.edited&&this.edit(e,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const e=this.content.replace(t,"");if(e.length){if(e!==this.content){const i=this.split(this.end-e.length);this.edited&&i.edit(e,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}}function C(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?u=>globalThis.btoa(unescape(encodeURIComponent(u))):typeof Buffer=="function"?u=>Buffer.from(u,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const S=C();class y{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=b(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+S(this.toString())}}function v(u){const t=u.split(`
|
|
2
2
|
`),e=t.filter(r=>/^\t+/.test(r)),i=t.filter(r=>/^ {2,}/.test(r));if(e.length===0&&i.length===0)return null;if(e.length>=i.length)return" ";const n=i.reduce((r,s)=>{const h=/^ +/.exec(s)[0].length;return Math.min(h,r)},1/0);return new Array(n+1).join(" ")}function E(u,t){const e=u.split(/[/\\]/),i=t.split(/[/\\]/);for(e.pop();e[0]===i[0];)e.shift(),i.shift();if(e.length){let n=e.length;for(;n--;)e[n]=".."}return e.concat(i).join("/")}const x=Object.prototype.toString;function k(u){return x.call(u)==="[object Object]"}function w(u){const t=u.split(`
|
|
3
3
|
`),e=[];for(let i=0,n=0;i<t.length;i++)e.push(n),n+=t[i].length+1;return function(n){let r=0,s=e.length;for(;r<s;){const l=r+s>>1;n<e[l]?s=l:r=l+1}const h=r-1,o=n-e[h];return{line:h,column:o}}}const L=/\w/;class R{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,e,i,n){if(e.length){const r=e.length-1;let s=e.indexOf(`
|
|
4
4
|
`,0),h=-1;for(;s>=0&&r>s;){const l=[this.generatedCodeColumn,t,i.line,i.column];n>=0&&l.push(n),this.rawSegments.push(l),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,h=s,s=e.indexOf(`
|
package/dist/packages/web-components/src/components/button-card/gator/button-card.gator.scss.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=":host{max-width:var(--ngc-button-card-width, 21rem)}ngc-card{--ngc-card-display: var(--ngc-button-card-display, flex);--ngc-card-max-width: var(--ngc-button-card-width, 21rem);--ngc-card-padding: var(--spacing-4);cursor:pointer}ngc-card:hover{--ngc-card-box-shadow: 0px 9px 15px rgba(31, 31, 31, .08), 0px 10px 20px rgba(31, 31, 31, .08), 0px 9px 20px rgba(31, 31, 31, .08)}ngc-card:active{--ngc-card-background-color: var(--ngc-button-card-pressed-background-color, var(--color-blue-10, #F3F5F7));--ngc-card-outline: 1px solid var(--ngc-button-card-pressed-outline-color, var(--color-blue-30, #11395B))}ngc-card.selected{--ngc-card-outline: var(--size-stroke-1, 1px) solid var(--ngc-button-card-selected-outline-color, var(--color-stroke-brand, #11395B))}ngc-card[disabled]:hover,ngc-card[disabled]:active,ngc-card[disabled].selected{--ngc-card-box-shadow: unset;--ngc-card-background-color: unset;--ngc-card-outline: unset;--ngc-card-border: unset;cursor:not-allowed}ngc-card:focus-visible{outline:none;--ngc-card-outline: 2px solid var(--ngc-button-card-focused-outline-color, var(--color-blue-30, #11395B))}ngc-chip{--ngc-chip-font-size: .8125rem;--ngc-chip-line-height: 1.125rem
|
|
1
|
+
const t=":host{max-width:var(--ngc-button-card-width, 21rem)}ngc-card{--ngc-card-display: var(--ngc-button-card-display, flex);--ngc-card-max-width: var(--ngc-button-card-width, 21rem);--ngc-card-padding: var(--spacing-4);cursor:pointer}ngc-card:hover{--ngc-card-box-shadow: 0px 9px 15px rgba(31, 31, 31, .08), 0px 10px 20px rgba(31, 31, 31, .08), 0px 9px 20px rgba(31, 31, 31, .08)}ngc-card:active{--ngc-card-background-color: var(--ngc-button-card-pressed-background-color, var(--color-blue-10, #F3F5F7));--ngc-card-outline: 1px solid var(--ngc-button-card-pressed-outline-color, var(--color-blue-30, #11395B))}ngc-card.selected{--ngc-card-outline: var(--size-stroke-1, 1px) solid var(--ngc-button-card-selected-outline-color, var(--color-stroke-brand, #11395B))}ngc-card[disabled]:hover,ngc-card[disabled]:active,ngc-card[disabled].selected{--ngc-card-box-shadow: unset;--ngc-card-background-color: unset;--ngc-card-outline: unset;--ngc-card-border: unset;cursor:not-allowed}ngc-card:focus-visible{outline:none;--ngc-card-outline: 2px solid var(--ngc-button-card-focused-outline-color, var(--color-blue-30, #11395B))}ngc-chip{--ngc-chip-font-size: .8125rem;--ngc-chip-line-height: 1.125rem}ngc-text-detail{width:100%;--ngc-text-detail-title-color: var(--color-neutral-70);--ngc-text-detail-title-font-size: 1.0625rem;--ngc-text-detail-title-font-weight: 700;--ngc-text-detail-title-line-height: 1.5rem;--ngc-text-detail-subtitle-color: var(--color-neutral-50);--ngc-text-detail-subtitle-line-height: 1.375rem;--ngc-text-detail-subtitle-font-size: .9375rem}.gator-button-card-chip-label{position:absolute;top:0;left:var(--spacing-4);transform:translateY(-50%);--ngc-chip-cursor: pointer}.gator-button-card-container{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center}.gator-button-card_disabled ngc-text-detail{--ngc-text-detail-title-color: var(--text-color-disabled, #6D6D6D);--ngc-text-detail-subtitle-color: var(--text-color-disabled, #6D6D6D)}";export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r='.gator-chip{background-color:var(--ngc-chip-background-color, var(--color-background-primary));border-radius:var(--ngc-chip-border-radius, 3rem);
|
|
1
|
+
const r='.gator-chip{background-color:var(--ngc-chip-background-color, var(--color-background-primary));border-radius:var(--ngc-chip-border-radius, 3rem);font-family:var(--text-family-body, "Open Sans"),sans-serif;font-size:var(--ngc-chip-font-size, .9375rem);line-height:var(--ngc-chip-line-height);border:var(--ngc-chip-border, 1px solid var(--color-stroke-tertiary, #E5E5E5));color:var(--color-neutral-70);cursor:var(--ngc-chip-cursor, default);width:max-content;display:flex;flex-direction:row;align-items:center;padding:0 4px}.gator-chip.hide-border{border:1px solid transparent}.gator-chip:has(ngc-icon-button){padding-right:2px}.gator-chip:has(ngc-icon-button) ngc-icon-button{margin-left:-4px}.gator-chip:has(ngc-icon-button) ngc-icon{margin-left:2px}.chip-label{padding:4px}ngc-icon-button{height:24px}button:hover{background-color:var(--ngc-chip-hover-background-color, var(--color-neutral-20));cursor:var(--ngc-chip-cursor, pointer)}button:focus-visible{outline:none;box-shadow:var(--ngc-chip-focus-box-shadow, var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-2, 2px) var(--color-focus-gap, #FFF), var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-4, 4px) var(--color-focus-border, #11395B))}button:active{background-color:var(--ngc-chip-active-background-color)}.gator-chip_disabled{cursor:not-allowed!important;color:var(--button-color-default-text-disabled, #6D6D6D);outline:1px solid transparent!important;background:var(--color-surface-disabled, #E5E5E5);border:1px solid transparent!important}.gator-chip_disabled:hover{background:var(--color-surface-disabled, #E5E5E5)!important}.gator-chip__read-only{cursor:var(--ngc-chip-cursor, default !important)}.gator-chip__read-only:active{background-color:var(--ngc-chip-background-color, var(--color-background-primary))}.gator-chip_error:not(.gator-chip_disabled){background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_warning:not(.gator-chip_disabled){background:var(--color-surface-warning, #FEF1E6);border:1px solid var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_success:not(.gator-chip_disabled){background:var(--color-surface-success, #E9F7F0);border:1px solid var(--color-stroke-success, #90D4B4)}.gator-chip_success:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-success, #90D4B4)}.gator-chip_success:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_info:not(.gator-chip_disabled){border:1px solid var(--color-surface-brand-secondary, #C3CDD6);background:var(--color-surface-brand, #F3F5F7)}.gator-chip_info:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-surface-brand-secondary, #C3CDD6)}.gator-chip_info:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_small{font-size:var(--text-size-caption);line-height:var(--text-line-height-caption)}';export{r as default};
|
|
@@ -27,4 +27,14 @@ export declare class NjcChip extends TestableLitElement {
|
|
|
27
27
|
@type {boolean}
|
|
28
28
|
**/
|
|
29
29
|
hideBorder: boolean;
|
|
30
|
+
/**
|
|
31
|
+
@property startIcon - The icon to display at the start of the chip.
|
|
32
|
+
@type {String}
|
|
33
|
+
**/
|
|
34
|
+
startIcon: string;
|
|
35
|
+
/**
|
|
36
|
+
@property dismissible - If true, the chip displays a dismiss button and emits a "dismiss" event when clicked.
|
|
37
|
+
@type {boolean}
|
|
38
|
+
**/
|
|
39
|
+
dismissible: boolean;
|
|
30
40
|
}
|
|
@@ -14,6 +14,7 @@ export declare class NgcChip extends NjcChip {
|
|
|
14
14
|
get chipMarkup(): import('lit').TemplateResult<1>;
|
|
15
15
|
get readonlyChipMarkup(): import('lit').TemplateResult<1>;
|
|
16
16
|
handleClick(event: Event): void;
|
|
17
|
+
handleDismiss(event: Event): void;
|
|
17
18
|
get classes(): {
|
|
18
19
|
[x: string]: boolean;
|
|
19
20
|
'gator-chip': boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{page as s}from"../node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536/node_modules/@vitest/browser/context.js";import n from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js";const d="Supercalifragilisticexpialidocious".repeat(10);async function a(
|
|
1
|
+
import{page as s}from"../node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536/node_modules/@vitest/browser/context.js";import n from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js";const d="Supercalifragilisticexpialidocious".repeat(10);async function a(t){return(await n.run(t)).violations}async function p(t){const e=await a(t);o(e,`Expected no axe core violations, but got ${e.length}: ${JSON.stringify(e)}`).toHaveLength(0)}function x(){return s.viewport(320,256)}function h(t){let e;if(t.scrollWidth!==0?e=t:t.shadowRoot?e=t.shadowRoot.firstElementChild:e=t.firstElementChild,e){const r=e.scrollWidth>e.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function g(t,e,r){let i=t.querySelector(":focus-visible");if(i||(i=t.shadowRoot?.querySelector(":focus-visible")),i){const l=getComputedStyle(i).getPropertyValue(e);return o(l).toContain(r)}return o(!0).toBe(!1)}export{g as expectComponentFocusStyle,h as expectComponentNotToHaveHorizontalScrollbar,p as expectNoAxeViolations,x as resizeWindowForReflowTest,a as runAxeAndGetViolations,d as superLongStringForReflowTest};
|
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@ncino/web-components",
|
|
4
|
-
"version": "5.0.0-preview.
|
|
4
|
+
"version": "5.0.0-preview.8",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "ngc-chip",
|
|
116
|
-
"description": "\n---\n\n\n### **Events:**\n - **click**\n\n### **Slots:**\n - _default_ - The content within the button",
|
|
116
|
+
"description": "\n---\n\n\n### **Events:**\n - **click**\n- **dismiss**\n\n### **Slots:**\n - _default_ - The content within the button",
|
|
117
117
|
"doc-url": "",
|
|
118
118
|
"attributes": [
|
|
119
119
|
{
|
|
@@ -139,6 +139,14 @@
|
|
|
139
139
|
"name": "hide-border",
|
|
140
140
|
"value": { "type": "boolean", "default": "false" }
|
|
141
141
|
},
|
|
142
|
+
{
|
|
143
|
+
"name": "start-icon",
|
|
144
|
+
"value": { "type": "String", "default": "''" }
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "dismissible",
|
|
148
|
+
"value": { "type": "boolean", "default": "false" }
|
|
149
|
+
},
|
|
142
150
|
{
|
|
143
151
|
"name": "data-testid",
|
|
144
152
|
"value": { "type": "string | undefined", "default": "undefined" }
|
|
@@ -147,7 +155,10 @@
|
|
|
147
155
|
"slots": [
|
|
148
156
|
{ "name": "", "description": "The content within the button" }
|
|
149
157
|
],
|
|
150
|
-
"events": [
|
|
158
|
+
"events": [
|
|
159
|
+
{ "name": "click", "type": "Event" },
|
|
160
|
+
{ "name": "dismiss", "type": "Event" }
|
|
161
|
+
],
|
|
151
162
|
"js": {
|
|
152
163
|
"properties": [
|
|
153
164
|
{ "name": "chipMarkup" },
|
|
@@ -161,12 +172,17 @@
|
|
|
161
172
|
},
|
|
162
173
|
{ "name": "size", "type": " | 'small'" },
|
|
163
174
|
{ "name": "hideBorder", "type": "boolean" },
|
|
175
|
+
{ "name": "startIcon", "type": "String" },
|
|
176
|
+
{ "name": "dismissible", "type": "boolean" },
|
|
164
177
|
{ "name": "dataTestid", "type": "string | undefined" },
|
|
165
178
|
{ "name": "labelDataTestid" },
|
|
166
179
|
{ "name": "helpTextDataTestid" },
|
|
167
180
|
{ "name": "errorMessageDataTestid" }
|
|
168
181
|
],
|
|
169
|
-
"events": [
|
|
182
|
+
"events": [
|
|
183
|
+
{ "name": "click", "type": "Event" },
|
|
184
|
+
{ "name": "dismiss", "type": "Event" }
|
|
185
|
+
]
|
|
170
186
|
}
|
|
171
187
|
},
|
|
172
188
|
{
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as r}from"../node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js";var o=r();export{o as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={exports:{}};export{e as __module};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__module as y}from"../../../../../../../_virtual/sourcemap-codec.umd2.js";var ee=y.exports,V;function se(){return V?y.exports:(V=1,function(ne,W){(function(S,T){T(W)})(ee,function(S){const q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=new Uint8Array(64),B=new Uint8Array(128);for(let t=0;t<q.length;t++){const n=q.charCodeAt(t);w[t]=n,B[n]=t}function f(t,n){let e=0,o=0,s=0;do{const d=t.next();s=B[d],e|=(s&31)<<o,o+=5}while(s&32);const c=e&1;return e>>>=1,c&&(e=-2147483648|-e),n+e}function i(t,n,e){let o=n-e;o=o<0?-o<<1|1:o<<1;do{let s=o&31;o>>>=5,o>0&&(s|=32),t.write(w[s])}while(o>0);return n}function I(t,n){return t.pos>=n?!1:t.peek()!==44}const D=1024*16,M=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);return n}};class k{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(D)}write(n){const{buffer:e}=this;e[this.pos++]=n,this.pos===D&&(this.out+=M.decode(e),this.pos=0)}flush(){const{buffer:n,out:e,pos:o}=this;return o>0?e+M.decode(n.subarray(0,o)):e}}class A{constructor(n){this.pos=0,this.buffer=n}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(n){const{buffer:e,pos:o}=this,s=e.indexOf(n,o);return s===-1?e.length:s}}const N=[];function Y(t){const{length:n}=t,e=new A(t),o=[],s=[];let c=0;for(;e.pos<n;e.pos++){c=f(e,c);const d=f(e,0);if(!I(e,n)){const g=s.pop();g[2]=c,g[3]=d;continue}const r=f(e,0),u=f(e,0)&1?[c,d,0,0,r,f(e,0)]:[c,d,0,0,r];let p=N;if(I(e,n)){p=[];do{const g=f(e,0);p.push(g)}while(I(e,n))}u.vars=p,o.push(u),s.push(u)}return o}function z(t){const n=new k;for(let e=0;e<t.length;)e=U(t,e,n,[0]);return n.flush()}function U(t,n,e,o){const s=t[n],{0:c,1:d,2:r,3:a,4:h,vars:u}=s;n>0&&e.write(44),o[0]=i(e,c,o[0]),i(e,d,0),i(e,h,0);const p=s.length===6?1:0;i(e,p,0),s.length===6&&i(e,s[5],0);for(const g of u)i(e,g,0);for(n++;n<t.length;){const g=t[n],{0:l,1:m}=g;if(l>r||l===r&&m>=a)break;n=U(t,n,e,o)}return e.write(44),o[0]=i(e,r,o[0]),i(e,a,0),n}function F(t){const{length:n}=t,e=new A(t),o=[],s=[];let c=0,d=0,r=0,a=0,h=0,u=0,p=0,g=0;do{const l=e.indexOf(";");let m=0;for(;e.pos<l;e.pos++){if(m=f(e,m),!I(e,l)){const b=s.pop();b[2]=c,b[3]=m;continue}const C=f(e,0),R=C&1,v=C&2,O=C&4;let E=null,G=N,L;if(R){const b=f(e,d);r=f(e,d===b?r:0),d=b,L=[c,m,0,0,b,r]}else L=[c,m,0,0];if(L.isScope=!!O,v){const b=a,x=h;a=f(e,a);const _=b===a;h=f(e,_?h:0),u=f(e,_&&x===h?u:0),E=[a,h,u]}if(L.callsite=E,I(e,l)){G=[];do{p=c,g=m;const b=f(e,0);let x;if(b<-1){x=[[f(e,0)]];for(let _=-1;_>b;_--){const Z=p;p=f(e,p),g=f(e,p===Z?g:0);const $=f(e,0);x.push([$,p,g])}}else x=[[b]];G.push(x)}while(I(e,l))}L.bindings=G,o.push(L),s.push(L)}c++,e.pos=l+1}while(e.pos<n);return o}function H(t){if(t.length===0)return"";const n=new k;for(let e=0;e<t.length;)e=j(t,e,n,[0,0,0,0,0,0,0]);return n.flush()}function j(t,n,e,o){const s=t[n],{0:c,1:d,2:r,3:a,isScope:h,callsite:u,bindings:p}=s;o[0]<c?(P(e,o[0],c),o[0]=c,o[1]=0):n>0&&e.write(44),o[1]=i(e,s[1],o[1]);const g=(s.length===6?1:0)|(u?2:0)|(h?4:0);if(i(e,g,0),s.length===6){const{4:l,5:m}=s;l!==o[2]&&(o[3]=0),o[2]=i(e,l,o[2]),o[3]=i(e,m,o[3])}if(u){const{0:l,1:m,2:C}=s.callsite;l!==o[4]?(o[5]=0,o[6]=0):m!==o[5]&&(o[6]=0),o[4]=i(e,l,o[4]),o[5]=i(e,m,o[5]),o[6]=i(e,C,o[6])}if(p)for(const l of p){l.length>1&&i(e,-l.length,0);const m=l[0][0];i(e,m,0);let C=c,R=d;for(let v=1;v<l.length;v++){const O=l[v];C=i(e,O[1],C),R=i(e,O[2],R),i(e,O[0],0)}}for(n++;n<t.length;){const l=t[n],{0:m,1:C}=l;if(m>r||m===r&&C>=a)break;n=j(t,n,e,o)}return o[0]<r?(P(e,o[0],r),o[0]=r,o[1]=0):e.write(44),o[1]=i(e,a,o[1]),n}function P(t,n,e){do t.write(59);while(++n<e)}function J(t){const{length:n}=t,e=new A(t),o=[];let s=0,c=0,d=0,r=0,a=0;do{const h=e.indexOf(";"),u=[];let p=!0,g=0;for(s=0;e.pos<h;){let l;s=f(e,s),s<g&&(p=!1),g=s,I(e,h)?(c=f(e,c),d=f(e,d),r=f(e,r),I(e,h)?(a=f(e,a),l=[s,c,d,r,a]):l=[s,c,d,r]):l=[s],u.push(l),e.pos++}p||K(u),o.push(u),e.pos=h+1}while(e.pos<=n);return o}function K(t){t.sort(Q)}function Q(t,n){return t[0]-n[0]}function X(t){const n=new k;let e=0,o=0,s=0,c=0;for(let d=0;d<t.length;d++){const r=t[d];if(d>0&&n.write(59),r.length===0)continue;let a=0;for(let h=0;h<r.length;h++){const u=r[h];h>0&&n.write(44),a=i(n,u[0],a),u.length!==1&&(e=i(n,u[1],e),o=i(n,u[2],o),s=i(n,u[3],s),u.length!==4&&(c=i(n,u[4],c)))}}return n.flush()}S.decode=J,S.decodeGeneratedRanges=F,S.decodeOriginalScopes=Y,S.encode=X,S.encodeGeneratedRanges=H,S.encodeOriginalScopes=z,Object.defineProperty(S,"__esModule",{value:!0})})}(y,y.exports),y.exports)}export{se as __require};
|