proto-table-wc 0.1.66 → 0.1.68
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/cjs/demo-table_2.cjs.entry.js +1 -1
- package/dist/cjs/index-BWOgRZ2c.js +3048 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/proto-table-wc.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/demo-table_2.entry.js +1 -1
- package/dist/esm/index-7ZJWdw0V.js +3042 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/proto-table-wc.js +4 -4
- package/dist/proto-table-wc/{p-3d631f6a.entry.js → p-5d3ee390.entry.js} +1 -1
- package/dist/proto-table-wc/p-7ZJWdw0V.js +2 -0
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +14 -3
- package/package.json +3 -3
- package/dist/cjs/index-3LG_PL97.js +0 -1433
- package/dist/esm/index-BTkpVm2t.js +0 -1427
- package/dist/proto-table-wc/p-BTkpVm2t.js +0 -2
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-7ZJWdw0V.js';
|
|
2
|
+
export { s as setNonce } from './index-7ZJWdw0V.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["demo-table_2",[[
|
|
8
|
+
return bootstrapLazy([["demo-table_2",[[1,"demo-table"],[0,"proto-table",{"data":[16],"details":[8],"fields":[16],"expanded":[32],"sort":[32],"clicks":[32]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-7ZJWdw0V.js';
|
|
2
|
+
export { s as setNonce } from './index-7ZJWdw0V.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.40.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
var patchBrowser = () => {
|
|
@@ -17,5 +17,5 @@ var patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(async (options) => {
|
|
19
19
|
await globalScripts();
|
|
20
|
-
return bootstrapLazy([["demo-table_2",[[
|
|
20
|
+
return bootstrapLazy([["demo-table_2",[[1,"demo-table"],[0,"proto-table",{"data":[16],"details":[8],"fields":[16],"expanded":[32],"sort":[32],"clicks":[32]}]]]], options);
|
|
21
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-7ZJWdw0V.js";const r=class{constructor(r){e(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=e=>{const{tags:r=[]}=e;return t("div",{class:"detailWrapper"},t("span",null,r.length," details..."),t("ul",null,r.map((e=>t("li",null,e)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:e,items:t,fields:r}=this;e.data=t,e.fields=r,e.details=this.renderDetails}render(){return t("proto-table",{key:"aa5f26287b85073afb5bbd3c133f9ad388fc8138",ref:e=>this.table=e})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){e(this,r),this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0,this.protoIcon=(e,r,l=24)=>{const o=s[e];return t("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},t("title",null,(e=>i[e])(e)),t("g",{fill:r},t("path",{d:o})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(e,t)=>()=>{0===e&&(this.expanded=this.expanded===t?void 0:t)},this.handleSortClick=e=>()=>{this.sort===e?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=e,this.clicks=1)},this.iconFor=e=>this.sort===e&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:e,iconFor:r,protoIcon:s}=this;return t("div",{class:"header"},e.map((({label:e},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return t("div",{class:l,onClick:this.handleSortClick(i)},s(o),t("span",null,e))})))},this.row=(e,r)=>{const{fields:s,protoIcon:i}=this;return t("div",{class:"rowContainer"},t("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>t("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),e[s])))),this.details&&this.expanded===r&&this.details(e))}}render(){const e=this.data||[];return t("div",{key:"c30742fde0de976c553234528a7bfb6ce10d3ef5",class:"table"},this.header(),e.map(((e,t)=>this.row(e,t))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t,e,i,n,s,r,o,l,h,c,f,u,a,p,d,v,m,w=Object.create,b=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,$=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,j=t=>{throw TypeError(t)},S=(t,e)=>function(){return e||(0,t[y(t)[0]])((e={exports:{}}).exports,e),e.exports},M=(t,e,i)=>e.has(t)||j("Cannot "+i),k=(t,e,i)=>(M(t,e,"read from private field"),i?i.call(t):e.get(t)),E=(t,e,i)=>e.has(t)?j("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),x=(t,e,i)=>(M(t,e,"write to private field"),e.set(t,i),i),P=(t,e,i)=>(M(t,e,"access private method"),i),W=S({"node_modules/balanced-match/index.js"(t,e){function i(t,e,i){t instanceof RegExp&&(t=n(t,i)),e instanceof RegExp&&(e=n(e,i));var r=s(t,e,i);return r&&{start:r[0],end:r[1],pre:i.slice(0,r[0]),body:i.slice(r[0]+t.length,r[1]),post:i.slice(r[1]+e.length)}}function n(t,e){var i=e.match(t);return i?i[0]:null}function s(t,e,i){var n,s,r,o,l,h=i.indexOf(t),c=i.indexOf(e,h+1),f=h;if(h>=0&&c>0){if(t===e)return[h,c];for(n=[],r=i.length;f>=0&&!l;)f==h?(n.push(f),h=i.indexOf(t,f+1)):1==n.length?l=[n.pop(),c]:((s=n.pop())<r&&(r=s,o=c),c=i.indexOf(e,f+1)),f=h<c&&h>=0?h:c;n.length&&(l=[r,o])}return l}e.exports=i,i.range=s}}),R=S({"node_modules/brace-expansion/index.js"(t,e){var i=W();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),v(function(t){return t.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(r).split("\\,").join(o).split("\\.").join(l)}(t),!0).map(c)):[]};var n="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function h(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(n).join("\\").split(s).join("{").split(r).join("}").split(o).join(",").split(l).join(".")}function f(t){if(!t)return[""];var e=[],n=i("{","}",t);if(!n)return t.split(",");var s=n.body,r=n.post,o=n.pre.split(",");o[o.length-1]+="{"+s+"}";var l=f(r);return r.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),e.push.apply(e,o),e}function u(t){return"{"+t+"}"}function a(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function d(t,e){return t>=e}function v(t,e){var n=[],s=i("{","}",t);if(!s)return[t];var o=s.pre,l=s.post.length?v(s.post,!1):[""];if(/\$$/.test(s.pre))for(var c=0;c<l.length;c++)n.push(N=o+"{"+s.body+"}"+l[c]);else{var m,w,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=b||g,$=s.body.indexOf(",")>=0;if(!y&&!$)return s.post.match(/,(?!,).*\}/)?v(t=s.pre+"{"+s.body+r+s.post):[t];if(y)m=s.body.split(/\.\./);else if(1===(m=f(s.body)).length&&1===(m=v(m[0],!1).map(u)).length)return l.map((function(t){return s.pre+m[0]+t}));if(y){var O=h(m[0]),j=h(m[1]),S=Math.max(m[0].length,m[1].length),M=3==m.length?Math.abs(h(m[2])):1,k=p;j<O&&(M*=-1,k=d);var E=m.some(a);w=[];for(var x=O;k(x,j);x+=M){var P;if(g)"\\"===(P=String.fromCharCode(x))&&(P="");else if(P=x+"",E){var W=S-P.length;if(W>0){var R=Array(W+1).join("0");P=x<0?"-"+R+P.slice(1):R+P}}w.push(P)}}else{w=[];for(var C=0;C<m.length;C++)w.push.apply(w,v(m[C],!1))}for(C=0;C<w.length;C++)for(c=0;c<l.length;c++){var N=o+w[C]+l[c];(!e||y||N)&&n.push(N)}}return n}}}),C=(t,e)=>{var i;Object.entries(null!=(i=e.i.t)?i:{}).map((([i,[n]])=>{if(31&n||32&n){const n=t[i],s=function(t,e){for(;t;){const i=Object.getOwnPropertyDescriptor(t,e);if(null==i?void 0:i.get)return i;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),i)||Object.getOwnPropertyDescriptor(t,i);s&&Object.defineProperty(t,i,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),t[i]=e.o.has(i)?e.o.get(i):n}}))},N=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},z=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.l=t,512&e.i.h&&C(t,e))},A=(t,e)=>e in t,L=(t,e)=>(0,console.error)(t,e),T=new Map,D=new Map,G="slot-fb{display:contents}slot-fb[hidden]{display:none}",U="undefined"!=typeof window?window:{},I={h:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,i,n)=>t.addEventListener(e,i,n),rel:(t,e,i,n)=>t.removeEventListener(e,i,n),ce:(t,e)=>new CustomEvent(t,e)},Z=t=>Promise.resolve(t),_=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),F=!!_&&(()=>!!U.document&&Object.getOwnPropertyDescriptor(U.document.adoptedStyleSheets,"length").writable)(),H=!1,V=[],q=[],B=(t,e)=>i=>{t.push(i),H||(H=!0,e&&4&I.h?K(Y):I.raf(Y))},J=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){L(t)}t.length=0},Y=()=>{J(V),J(q),(H=V.length>0)&&I.raf(Y)},K=t=>Z().then(t),Q=B(q,!0),X=t=>"object"==(t=typeof t)||"function"===t,tt=((t,e,i)=>(i=null!=t?w($(t)):{},((t,e,i,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let i of y(e))O.call(t,i)||undefined===i||b(t,i,{get:()=>e[i],enumerable:!(n=g(e,i))||n.enumerable});return t})(b(i,"default",{value:t,enumerable:!0}),t)))(R()),et=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},it={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},nt=t=>t.replace(/[[\]\\-]/g,"\\$&"),st=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rt=t=>t.join(""),ot=(t,e)=>{const i=e;if("["!==t.charAt(i))throw Error("not in a brace expression");const n=[],s=[];let r=i+1,o=!1,l=!1,h=!1,c=!1,f=i,u="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==i+1){if("]"===e&&o&&!h){f=r+1;break}if(o=!0,"\\"!==e||h){if("["===e&&!h)for(const[e,[o,h,c]]of Object.entries(it))if(t.startsWith(e,r)){if(u)return["$.",!1,t.length-i,!0];r+=e.length,c?s.push(o):n.push(o),l=l||h;continue t}h=!1,u?(e>u?n.push(nt(u)+"-"+nt(e)):e===u&&n.push(nt(e)),u="",r++):t.startsWith("-]",r+1)?(n.push(nt(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(n.push(nt(e)),r++)}else h=!0,r++}else c=!0,r++}if(f<r)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,t.length-i,!0];if(0===s.length&&1===n.length&&/^\\?.$/.test(n[0])&&!c){const t=2===n[0].length?n[0].slice(-1):n[0];return[st(t),!1,f-i,!1]}const a="["+(c?"^":"")+rt(n)+"]",p="["+(c?"":"^")+rt(s)+"]";return[n.length&&s.length?"("+a+"|"+p+")":n.length?a:p,l,f-i,!0]},lt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),ht=new Set(["!","?","+","*","@"]),ct=t=>ht.has(t),ft="(?!\\.)",ut=new Set(["[","."]),at=new Set(["..","."]),pt=new Set("().*{}+?[]^$\\!"),dt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vt="[^/]",mt=vt+"*?",wt=vt+"+?",bt=class w{constructor(a,p,d={}){E(this,u),((t,e,i)=>{((t,e,i)=>{e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i})(t,e+"",i)})(this,"type"),E(this,t),E(this,e),E(this,i,!1),E(this,n,[]),E(this,s),E(this,r),E(this,o),E(this,l,!1),E(this,h),E(this,c),E(this,f,!1),this.type=a,a&&x(this,e,!0),x(this,s,p),x(this,t,k(this,s)?k(k(this,s),t):this),x(this,h,k(this,t)===this?d:k(k(this,t),h)),x(this,o,k(this,t)===this?[]:k(k(this,t),o)),"!"!==a||k(k(this,t),l)||k(this,o).push(this),x(this,r,k(this,s)?k(k(this,s),n).length:0)}get hasMagic(){if(void 0!==k(this,e))return k(this,e);for(const t of k(this,n))if("string"!=typeof t&&(t.type||t.hasMagic))return x(this,e,!0);return k(this,e)}toString(){return void 0!==k(this,c)?k(this,c):x(this,c,this.type?this.type+"("+k(this,n).map((t=>t+"")).join("|")+")":k(this,n).map((t=>t+"")).join(""))}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof w&&k(e,s)===this))throw Error("invalid part: "+e);k(this,n).push(e)}}toJSON(){var e;const i=null===this.type?k(this,n).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...k(this,n).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&i.unshift([]),this.isEnd()&&(this===k(this,t)||k(k(this,t),l)&&"!"===(null==(e=k(this,s))?void 0:e.type))&&i.push({}),i}isStart(){var e;if(k(this,t)===this)return!0;if(!(null==(e=k(this,s))?void 0:e.isStart()))return!1;if(0===k(this,r))return!0;const i=k(this,s);for(let t=0;t<k(this,r);t++){const e=k(i,n)[t];if(!(e instanceof w&&"!"===e.type))return!1}return!0}isEnd(){var e,i,o;if(k(this,t)===this)return!0;if("!"===(null==(e=k(this,s))?void 0:e.type))return!0;if(!(null==(i=k(this,s))?void 0:i.isEnd()))return!1;if(!this.type)return null==(o=k(this,s))?void 0:o.isEnd();const l=k(this,s)?k(k(this,s),n).length:0;return k(this,r)===l-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(t){const e=new w(this.type,t);for(const t of k(this,n))e.copyIn(t);return e}static fromGlob(t,e={}){var i;const n=new w(null,void 0,e);return P(i=w,p,d).call(i,t,n,0,e),n}toMMPattern(){if(this!==k(this,t))return k(this,t).toMMPattern();const i=""+this,[n,s,r,o]=this.toRegExpSource();if(!(r||k(this,e)||k(this,h).nocase&&!k(this,h).nocaseMagicOnly&&i.toUpperCase()!==i.toLowerCase()))return s;const l=(k(this,h).nocase?"i":"")+(o?"u":"");return Object.assign(RegExp(`^${n}$`,l),{_src:n,_glob:i})}get options(){return k(this,h)}toRegExpSource(r){var o;const c=null!=r?r:!!k(this,h).dot;if(k(this,t)===this&&P(this,u,a).call(this),!this.type){const h=this.isStart()&&this.isEnd(),f=k(this,n).map((t=>{var n;const[s,o,l,c]="string"==typeof t?P(n=w,p,m).call(n,t,k(this,e),h):t.toRegExpSource(r);return x(this,e,k(this,e)||l),x(this,i,k(this,i)||c),s})).join("");let u="";if(this.isStart()&&"string"==typeof k(this,n)[0]&&(1!==k(this,n).length||!at.has(k(this,n)[0]))){const t=ut,e=c&&t.has(f.charAt(0))||f.startsWith("\\.")&&t.has(f.charAt(2))||f.startsWith("\\.\\.")&&t.has(f.charAt(4)),i=!c&&!r&&t.has(f.charAt(0));u=e?"(?!(?:^|/)\\.\\.?(?:$|/))":i?ft:""}let a="";return this.isEnd()&&k(k(this,t),l)&&"!"===(null==(o=k(this,s))?void 0:o.type)&&(a="(?:$|\\/)"),[u+f+a,lt(f),x(this,e,!!k(this,e)),k(this,i)]}const d="*"===this.type||"+"===this.type,b="!"===this.type?"(?:(?!(?:":"(?:";let g=P(this,u,v).call(this,c);if(this.isStart()&&this.isEnd()&&!g&&"!"!==this.type){const t=""+this;return x(this,n,[t]),this.type=null,x(this,e,void 0),[t,lt(""+this),!1,!1]}let y=!d||r||c?"":P(this,u,v).call(this,!0);y===g&&(y=""),y&&(g=`(?:${g})(?:${y})*?`);let $="";return $="!"===this.type&&k(this,f)?(this.isStart()&&!c?ft:"")+wt:b+g+("!"===this.type?"))"+(!this.isStart()||c||r?"":ft)+mt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&y?")":"*"===this.type&&y?")?":")"+this.type),[$,lt(g),x(this,e,!!k(this,e)),k(this,i)]}};t=new WeakMap,e=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakMap,r=new WeakMap,o=new WeakMap,l=new WeakMap,h=new WeakMap,c=new WeakMap,f=new WeakMap,u=new WeakSet,a=function(){if(this!==k(this,t))throw Error("should only call on root");if(k(this,l))return this;let e;for(x(this,l,!0);e=k(this,o).pop();){if("!"!==e.type)continue;let t=e,i=k(t,s);for(;i;){for(let s=k(t,r)+1;!i.type&&s<k(i,n).length;s++)for(const t of k(e,n)){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(k(i,n)[s])}t=i,i=k(t,s)}}return this},p=new WeakSet,d=function(t,i,s,r){var o,l;let h=!1,c=!1,u=-1,a=!1;if(null===i.type){let e=s,n="";for(;e<t.length;){const s=t.charAt(e++);if(h||"\\"===s)h=!h,n+=s;else if(c)e===u+1?"^"!==s&&"!"!==s||(a=!0):"]"!==s||e===u+2&&a||(c=!1),n+=s;else if("["!==s)if(r.noext||!ct(s)||"("!==t.charAt(e))n+=s;else{i.push(n),n="";const l=new bt(s,i);e=P(o=bt,p,d).call(o,t,l,e,r),i.push(l)}else c=!0,u=e,a=!1,n+=s}return i.push(n),e}let v=s+1,m=new bt(null,i);const w=[];let b="";for(;v<t.length;){const e=t.charAt(v++);if(h||"\\"===e)h=!h,b+=e;else if(c)v===u+1?"^"!==e&&"!"!==e||(a=!0):"]"!==e||v===u+2&&a||(c=!1),b+=e;else if("["!==e)if(ct(e)&&"("===t.charAt(v)){m.push(b),b="";const i=new bt(e,m);m.push(i),v=P(l=bt,p,d).call(l,t,i,v,r)}else if("|"!==e){if(")"===e)return""===b&&0===k(i,n).length&&x(i,f,!0),m.push(b),b="",i.push(...w,m),v;b+=e}else m.push(b),b="",w.push(m),m=new bt(null,i);else c=!0,u=v,a=!1,b+=e}return i.type=null,x(i,e,void 0),x(i,n,[t.substring(s-1)]),v},v=function(t){return k(this,n).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[n,s,r,o]=e.toRegExpSource(t);return x(this,i,k(this,i)||o),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},m=function(t,e,i=!1){let n=!1,s="",r=!1;for(let o=0;o<t.length;o++){const l=t.charAt(o);if(n)n=!1,s+=(pt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[i,n,l,h]=ot(t,o);if(l){s+=i,r=r||n,o+=l-1,e=e||h;continue}}"*"!==l?"?"!==l?s+=dt(l):(s+=vt,e=!0):(s+=i&&"*"===t?wt:mt,e=!0)}else o===t.length-1?s+="\\\\":n=!0}return[s,lt(t),!!e,r]},E(bt,p);var gt=bt,yt=(t,e,i={})=>(et(e),!(!i.nocomment&&"#"===e.charAt(0))&&new Vt(e,i).match(t)),$t=/^\*+([^+@!?\*\[\(]*)$/,Ot=t=>e=>!e.startsWith(".")&&e.endsWith(t),jt=t=>e=>e.endsWith(t),St=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Mt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),kt=/^\*+\.\*+$/,Et=t=>!t.startsWith(".")&&t.includes("."),xt=t=>"."!==t&&".."!==t&&t.includes("."),Pt=/^\.\*+$/,Wt=t=>"."!==t&&".."!==t&&t.startsWith("."),Rt=/^\*+$/,Ct=t=>0!==t.length&&!t.startsWith("."),Nt=t=>0!==t.length&&"."!==t&&".."!==t,zt=/^\?+([^+@!?\*\[\(]*)?$/,At=([t,e=""])=>{const i=Gt([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},Lt=([t,e=""])=>{const i=Ut([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},Tt=([t,e=""])=>{const i=Ut([t]);return e?t=>i(t)&&t.endsWith(e):i},Dt=([t,e=""])=>{const i=Gt([t]);return e?t=>i(t)&&t.endsWith(e):i},Gt=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Ut=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},It="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";yt.sep="win32"===It?"\\":"/";var Zt=Symbol("globstar **");yt.GLOBSTAR=Zt,yt.filter=(t,e={})=>i=>yt(i,t,e);var _t=(t,e={})=>Object.assign({},t,e);yt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return yt;const e=yt;return Object.assign(((i,n,s={})=>e(i,n,_t(t,s))),{Minimatch:class extends e.Minimatch{constructor(e,i={}){super(e,_t(t,i))}static defaults(i){return e.defaults(_t(t,i)).Minimatch}},AST:class extends e.AST{constructor(e,i,n={}){super(e,i,_t(t,n))}static fromGlob(i,n={}){return e.AST.fromGlob(i,_t(t,n))}},unescape:(i,n={})=>e.unescape(i,_t(t,n)),escape:(i,n={})=>e.escape(i,_t(t,n)),filter:(i,n={})=>e.filter(i,_t(t,n)),defaults:i=>e.defaults(_t(t,i)),makeRe:(i,n={})=>e.makeRe(i,_t(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,_t(t,n)),match:(i,n,s={})=>e.match(i,n,_t(t,s)),sep:e.sep,GLOBSTAR:Zt})};var Ft=(t,e={})=>(et(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,tt.default)(t));yt.braceExpand=Ft,yt.makeRe=(t,e={})=>new Vt(t,e).makeRe(),yt.match=(t,e,i={})=>{const n=new Vt(e,i);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t};var Ht=/[?*]|[+@!]\(.*?\)|\[|\]/,Vt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){et(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||It,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const i=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Ht.test(t[2])||Ht.test(t[3])),i=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(i)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,n),this.set=n.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let i=0;i<t[e].length;i++)"**"===t[e][i]&&(t[e][i]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let i=e;for(;"**"===t[i+1];)i++;i!==e&&t.splice(e,i-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const i=t[t.length-1];return"**"===e&&"**"===i?t:".."===e&&i&&".."!==i&&"."!==i&&"**"!==i?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const n=t[i];1===i&&""===n&&""===t[0]||"."!==n&&""!==n||(e=!0,t.splice(i,1),i--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let i=0;for(;-1!==(i=t.indexOf("..",i+1));){const n=t[i-1];n&&"."!==n&&".."!==n&&"**"!==n&&(e=!0,t.splice(i-1,2),i-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let i of t){let n=-1;for(;-1!==(n=i.indexOf("**",n+1));){let s=n;for(;"**"===i[s+1];)s++;s>n&&i.splice(n+1,s-n);const r=i[n+2],o=i[n+3];if(".."!==i[n+1])continue;if(!r||"."===r||".."===r||!o||"."===o||".."===o)continue;e=!0,i.splice(n,1);const l=i.slice(0);l[n]="**",t.push(l),n--}if(!this.preserveMultipleSlashes){for(let t=1;t<i.length-1;t++){const n=i[t];1===t&&""===n&&""===i[0]||"."!==n&&""!==n||(e=!0,i.splice(t,1),t--)}"."!==i[0]||2!==i.length||"."!==i[1]&&""!==i[1]||(e=!0,i.pop())}let s=0;for(;-1!==(s=i.indexOf("..",s+1));){const t=i[s-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,i.splice(s-1,2,...1===s&&"**"===i[s+1]?["."]:[]),0===i.length&&i.push(""),s-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let i=e+1;i<t.length;i++){const n=this.partsMatch(t[e],t[i],!this.preserveMultipleSlashes);n&&(t[e]=n,t[i]=[])}return t.filter((t=>t.length))}partsMatch(t,e,i=!1){let n=0,s=0,r=[],o="";for(;n<t.length&&s<e.length;)if(t[n]===e[s])r.push("b"===o?e[s]:t[n]),n++,s++;else if(i&&"**"===t[n]&&e[s]===t[n+1])r.push(t[n]),n++;else if(i&&"**"===e[s]&&t[n]===e[s+1])r.push(e[s]),s++;else if("*"!==t[n]||!e[s]||!this.options.dot&&e[s].startsWith(".")||"**"===e[s]){if("*"!==e[s]||!t[n]||!this.options.dot&&t[n].startsWith(".")||"**"===t[n])return!1;if("a"===o)return!1;o="b",r.push(e[s]),n++,s++}else{if("b"===o)return!1;o="a",r.push(t[n]),n++,s++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,i=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,i++;i&&(this.pattern=t.slice(i)),this.negate=e}matchOne(t,e,i=!1){const n=this.options;if(this.isWindows){const i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),s="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=n?3:i?0:void 0,o=!s&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:s?0:void 0;if("number"==typeof r&&"number"==typeof o){const[i,n]=[t[r],e[o]];i.toLowerCase()===n.toLowerCase()&&(e[o]=i,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,l=t.length,h=e.length;r<l&&o<h;r++,o++){this.debug("matchOne loop");var c=e[o],f=t[r];if(this.debug(e,c,f),!1===c)return!1;if(c===Zt){this.debug("GLOBSTAR",[e,c,f]);var u=r,a=o+1;if(a===h){for(this.debug("** at the end");r<l;r++)if("."===t[r]||".."===t[r]||!n.dot&&"."===t[r].charAt(0))return!1;return!0}for(;u<l;){var p=t[u];if(this.debug("\nglobstar while",t,u,e,a,p),this.matchOne(t.slice(u),e.slice(a),i))return this.debug("globstar found match!",u,l,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,u,e,a);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!i||(this.debug("\n>>> no match, partial?",t,u,e,a),u!==l))}let s;if("string"==typeof c?(s=f===c,this.debug("string match",c,f,s)):(s=c.test(f),this.debug("pattern match",c,f,s)),!s)return!1}if(r===l&&o===h)return!0;if(r===l)return i;if(o===h)return r===l-1&&""===t[r];throw Error("wtf?")}braceExpand(){return Ft(this.pattern,this.options)}parse(t){et(t);const e=this.options;if("**"===t)return Zt;if(""===t)return"";let i,n=null;(i=t.match(Rt))?n=e.dot?Nt:Ct:(i=t.match($t))?n=(e.nocase?e.dot?Mt:St:e.dot?jt:Ot)(i[1]):(i=t.match(zt))?n=(e.nocase?e.dot?Lt:At:e.dot?Tt:Dt)(i):(i=t.match(kt))?n=e.dot?xt:Et:(i=t.match(Pt))&&(n=Wt);const s=gt.fromGlob(t,this.options).toMMPattern();return n&&"object"==typeof s&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,i=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=new Set(e.nocase?["i"]:[]);let s=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))n.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Zt?Zt:t._src}));return e.forEach(((t,n)=>{const s=e[n+1],r=e[n-1];t===Zt&&r!==Zt&&(void 0===r?void 0!==s&&s!==Zt?e[n+1]="(?:\\/|"+i+"\\/)?"+s:e[n]=i:void 0===s?e[n-1]=r+"(?:\\/|"+i+")?":s!==Zt&&(e[n-1]=r+"(?:\\/|\\/"+i+"\\/)"+s,e[n+1]=Zt))})),e.filter((t=>t!==Zt)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];s="^"+r+s+o+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=RegExp(s,[...n].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const n=this.slashSplit(t);this.debug(this.pattern,"split",n);const s=this.set;this.debug(this.pattern,"set",s);let r=n[n.length-1];if(!r)for(let t=n.length-2;!r&&t>=0;t--)r=n[t];for(let t=0;t<s.length;t++){const o=s[t];let l=n;if(i.matchBase&&1===o.length&&(l=[r]),this.matchOne(l,o,e))return!!i.flipNegate||!this.negate}return!i.flipNegate&&this.negate}static defaults(t){return yt.defaults(t).Minimatch}};function qt(t){var e,i,n;return null!=(n=null==(i=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:i.getAttribute("content"))?n:void 0}yt.AST=gt,yt.Minimatch=Vt,yt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),yt.unescape=lt,((t,e)=>{for(var i in e)b(t,i,{get:e[i],enumerable:!0})})({},{err:()=>Jt,map:()=>Yt,ok:()=>Bt,unwrap:()=>Qt,unwrapErr:()=>Xt});var Bt=t=>({isOk:!0,isErr:!1,value:t}),Jt=t=>({isOk:!1,isErr:!0,value:t});function Yt(t,e){if(t.isOk){const i=e(t.value);return i instanceof Promise?i.then((t=>Bt(t))):Bt(i)}if(t.isErr)return Jt(t.value);throw"should never get here"}var Kt,Qt=t=>{if(t.isOk)return t.value;throw t.value},Xt=t=>{if(t.isErr)return t.value;throw t.value};function te(){const t=this.attachShadow({mode:"open"});void 0===Kt&&(Kt=null),Kt&&(F?t.adoptedStyleSheets.push(Kt):t.adoptedStyleSheets=[...t.adoptedStyleSheets,Kt])}var ee=new WeakMap,ie=t=>"sc-"+t.p,ne=(t,e,...i)=>{let n=null,s=null,r=!1,o=!1;const l=[],h=e=>{for(let i=0;i<e.length;i++)n=e[i],Array.isArray(n)?h(n):null!=n&&"boolean"!=typeof n&&((r="function"!=typeof t&&!X(n))&&(n+=""),r&&o?l[l.length-1].v+=n:l.push(r?se(null,n):n),o=r)};if(h(i),e){e.key&&(s=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const c=se(t,null);return c.m=e,l.length>0&&(c.$=l),c.O=s,c},se=(t,e)=>({h:0,j:t,v:e,S:null,$:null,m:null,O:null}),re={},oe=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};oe("::slotted"),oe(":host"),oe(":host-context");var le,he=t=>(null==t||X(t),t),ce=(t,e,i,n,s,r)=>{if(i===n)return;let o=A(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,s=ue(i);let r=ue(n);e.remove(...s.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!s.includes(t))))}else if("key"===e);else if("ref"===e)n&&n(t);else if(o||"o"!==e[0]||"n"!==e[1]){const l=X(n);if((o||l&&null!==n)&&!s)try{if(t.tagName.includes("-"))t[e]!==n&&(t[e]=n);else{const s=null==n?"":n;"list"===e?o=!1:null!=i&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}null==n||!1===n?!1===n&&""!==t.getAttribute(e)||t.removeAttribute(e):(!o||4&r||s)&&!l&&1===t.nodeType&&t.setAttribute(e,n=!0===n?"":n)}else if(e="-"===e[2]?e.slice(3):A(U,l)?l.slice(2):l[2]+e.slice(3),i||n){const s=e.endsWith(ae);e=e.replace(pe,""),i&&I.rel(t,e,i,s),n&&I.ael(t,e,n,s)}},fe=/\s/,ue=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(fe):[]),ae="Capture",pe=RegExp(ae+"$"),de=(t,e,i)=>{const n=11===e.S.nodeType&&e.S.host?e.S.host:e.S,s=t&&t.m||{},r=e.m||{};for(const t of ve(Object.keys(s)))t in r||ce(n,t,s[t],void 0,i,e.h);for(const t of ve(Object.keys(r)))ce(n,t,s[t],r[t],i,e.h)};function ve(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var me=!1,we=(t,e,i)=>{const n=e.$[i];let s,r,o=0;if(null!==n.v)s=n.S=U.document.createTextNode(n.v);else{if(me||(me="svg"===n.j),!U.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=n.S=U.document.createElementNS(me?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",n.j),me&&"foreignObject"===n.j&&(me=!1),de(null,n,me),n.$){const e="template"===n.j?s.content:s;for(o=0;o<n.$.length;++o)r=we(t,n,o),r&&e.appendChild(r)}"svg"===n.j?me=!1:"foreignObject"===s.tagName&&(me=!0)}return s["s-hn"]=le,s},be=(t,e,i,n,s,r)=>{let o,l=t;for(l.shadowRoot&&l.tagName===le&&(l=l.shadowRoot),"template"===i.j&&(l=l.content);s<=r;++s)n[s]&&(o=we(null,i,s),o&&(n[s].S=o,je(l,o,e)))},ge=(t,e,i)=>{for(let n=e;n<=i;++n){const e=t[n];if(e){const t=e.S;Oe(e),t&&t.remove()}}},ye=(t,e,i=!1)=>t.j===e.j&&(i?(i&&!t.O&&e.O&&(t.O=e.O),!0):t.O===e.O),$e=(t,e,i=!1)=>{const n=e.S=t.S,s=t.$,r=e.$,o=e.j,l=e.v;null===l?(de(t,e,me="svg"===o||"foreignObject"!==o&&me),null!==s&&null!==r?((t,e,i,n,s=!1)=>{let r,o,l=0,h=0,c=0,f=0,u=e.length-1,a=e[0],p=e[u],d=n.length-1,v=n[0],m=n[d];const w="template"===i.j?t.content:t;for(;l<=u&&h<=d;)if(null==a)a=e[++l];else if(null==p)p=e[--u];else if(null==v)v=n[++h];else if(null==m)m=n[--d];else if(ye(a,v,s))$e(a,v,s),a=e[++l],v=n[++h];else if(ye(p,m,s))$e(p,m,s),p=e[--u],m=n[--d];else if(ye(a,m,s))$e(a,m,s),je(w,a.S,p.S.nextSibling),a=e[++l],m=n[--d];else if(ye(p,v,s))$e(p,v,s),je(w,p.S,a.S),p=e[--u],v=n[++h];else{for(c=-1,f=l;f<=u;++f)if(e[f]&&null!==e[f].O&&e[f].O===v.O){c=f;break}c>=0?(o=e[c],o.j!==v.j?r=we(e&&e[h],i,c):($e(o,v,s),e[c]=void 0,r=o.S),v=n[++h]):(r=we(e&&e[h],i,h),v=n[++h]),r&&je(a.S.parentNode,r,a.S)}l>u?be(t,null==n[d+1]?null:n[d+1].S,i,n,h,d):h>d&&ge(e,l,u)})(n,s,e,r,i):null!==r?(null!==t.v&&(n.textContent=""),be(n,null,e,r,0,r.length-1)):!i&&null!==s&&ge(s,0,s.length-1),me&&"svg"===o&&(me=!1)):t.v!==l&&(n.data=l)},Oe=t=>{t.m&&t.m.ref&&t.m.ref(null),t.$&&t.$.map(Oe)},je=(t,e,i)=>null==t?void 0:t.insertBefore(e,i),Se=(t,e)=>{if(e&&!t.M&&e["s-p"]){const i=e["s-p"].push(new Promise((n=>t.M=()=>{e["s-p"].splice(i-1,1),n()})))}},Me=(t,e)=>{if(t.h|=16,4&t.h)return void(t.h|=512);Se(t,t.k);const i=()=>ke(t,e);if(!e)return Q(i);queueMicrotask((()=>{i()}))},ke=(t,e)=>{const i=t.$hostElement$,n=t.l;if(!n)throw Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return e?(t.P.length&&t.P.forEach((t=>t(i))),s=Ne(n,"componentWillLoad",void 0,i)):s=Ne(n,"componentWillUpdate",void 0,i),s=Ee(s,(()=>Ne(n,"componentWillRender",void 0,i))),Ee(s,(()=>Pe(t,n,e)))},Ee=(t,e)=>xe(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),xe=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Pe=async(t,e,i)=>{var n;const s=t.$hostElement$,r=s["s-rc"];i&&(t=>{const e=t.i,i=t.$hostElement$,n=e.h,s=((t,e)=>{var i,n,s;const r=ie(e),o=D.get(r);if(!U.document)return r;if(t=11===t.nodeType?t:U.document,o)if("string"==typeof o){let s,l=ee.get(t=t.head||t);if(l||ee.set(t,l=new Set),!l.has(r)){s=U.document.createElement("style"),s.innerHTML=o;const h=null!=(i=I.W)?i:qt(U.document);if(null!=h&&s.setAttribute("nonce",h),!(1&e.h))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),i=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==i?void 0:i.parentNode)===t?i:null)}else if("host"in t)if(_){const e=new(null!=(n=t.defaultView)?n:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(o),F?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(s)}else t.append(s);1&e.h&&t.insertBefore(s,null),4&e.h&&(s.innerHTML+=G),l&&l.add(r)}}else{let e=ee.get(t);if(e||ee.set(t,e=new Set),!e.has(r)){const i=null!=(s=t.defaultView)?s:t.ownerDocument.defaultView;let n;if(o.constructor===i.CSSStyleSheet)n=o;else{n=new i.CSSStyleSheet;for(let t=0;t<o.cssRules.length;t++)n.insertRule(o.cssRules[t].cssText,t)}F?t.adoptedStyleSheets.push(n):t.adoptedStyleSheets=[...t.adoptedStyleSheets,n],e.add(r)}}return r})(i.shadowRoot?i.shadowRoot:i.getRootNode(),e);10&n&&(i["s-sc"]=s,i.classList.add(s+"-h"))})(t);We(t,e,s,i),r&&(r.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(n=s["s-p"])?n:[],i=()=>Re(t);0===e.length?i():(Promise.all(e).then(i),t.h|=4,e.length=0)}},We=(t,e,i,n)=>{try{e=e.render(),t.h&=-17,t.h|=2,((t,e,i=!1)=>{const n=t.$hostElement$,s=t.R||se(null,null),r=(t=>t&&t.j===re)(e)?e:ne(null,null,e);if(le=n.tagName,i&&r.m)for(const t of Object.keys(r.m))n.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.m[t]=n[t]);r.j=null,r.h|=4,t.R=r,r.S=s.S=n.shadowRoot||n,$e(s,r,i)})(t,e,n)}catch(e){L(e,t.$hostElement$)}return null},Re=t=>{const e=t.$hostElement$,i=t.l,n=t.k;Ne(i,"componentDidRender",void 0,e),64&t.h?Ne(i,"componentDidUpdate",void 0,e):(t.h|=64,ze(e),Ne(i,"componentDidLoad",void 0,e),t.C(e),n||Ce()),t.M&&(t.M(),t.M=void 0),512&t.h&&K((()=>Me(t,!1))),t.h&=-517},Ce=()=>{K((()=>(t=>{const e=I.ce("appload",{detail:{namespace:"proto-table-wc"}});return t.dispatchEvent(e),e})(U)))},Ne=(t,e,i,n)=>{if(t&&t[e])try{return t[e](i)}catch(t){L(t,n)}},ze=t=>t.classList.add("hydrated"),Ae=(t,e,i,n)=>{const s=N(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${n.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=s.o.get(e),o=s.h,l=s.l;if(i=he(i),!(8&o&&void 0!==r||i===r||Number.isNaN(r)&&Number.isNaN(i)||(s.o.set(e,i),2!=(18&o)))){if(l.componentShouldUpdate&&!1===l.componentShouldUpdate(i,r,e))return;Me(s,!1)}},Le=(t,e,i)=>{var n,s;const r=t.prototype;if(e.t){const o=Object.entries(null!=(n=e.t)?n:{});if(o.map((([t,[n]])=>{if(31&n||2&i&&32&n){const{get:s,set:o}=Object.getOwnPropertyDescriptor(r,t)||{};s&&(e.t[t][0]|=2048),o&&(e.t[t][0]|=4096),(1&i||!s)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>N(this).o.get(e))(0,t);const i=N(this),n=i?i.l:r;if(!n)return;return n[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(s){const r=N(this);if(r){if(o)return void 0===(32&n?this[t]:r.$hostElement$[t])&&r.o.get(t)&&(s=r.o.get(t)),o.call(this,he(s)),void Ae(this,t,s=32&n?this[t]:r.$hostElement$[t],e);{if(!(1&i&&4096&e.t[t][0]))return Ae(this,t,s,e),void(1&i&&!r.l&&r.P.push((()=>{4096&e.t[t][0]&&r.l[t]!==r.o.get(t)&&(r.l[t]=s)})));const n=()=>{const i=r.l[t];!r.o.get(t)&&i&&r.o.set(t,i),r.l[t]=he(s),Ae(this,t,r.l[t],e)};r.l?n():r.P.push((()=>{n()}))}}}})}})),1&i){const i=new Map;r.attributeChangedCallback=function(t,n,s){I.jmp((()=>{var l;const h=i.get(t),c=N(this);if(this.hasOwnProperty(h)&&(s=this[h],delete this[h]),r.hasOwnProperty(h)&&"number"==typeof this[h]&&this[h]==s)return;if(null==h){const i=null==c?void 0:c.h;if(c&&i&&!(8&i)&&s!==n){const r=c.l,o=null==(l=e.N)?void 0:l[t];null==o||o.forEach((e=>{const[[o,l]]=Object.entries(e);null!=r[o]&&(128&i||1&l)&&r[o].call(r,s,n,t)}))}return}const f=o.find((([t])=>t===h));f&&4&f[1][0]&&(s=null!==s&&"false"!==s);const u=Object.getOwnPropertyDescriptor(r,h);s==this[h]||u.get&&!u.set||(this[h]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.N)?s:{}),...o.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return i.set(n,t),n}))]))}}return t},Te=(t,e)=>{Ne(t,"connectedCallback",void 0,e)},De=(t,e)=>{Ne(t,"disconnectedCallback",void 0,e||t)},Ge=(t,e={})=>{var i;if(!U.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const n=[],s=e.exclude||[],r=U.customElements,o=U.document.head,l=o.querySelector("meta[charset]"),h=U.document.createElement("style"),c=[];let f,u=!0;Object.assign(I,e),I.u=new URL(e.resourcesUrl||"./",U.document.baseURI).href;let a=!1;if(t.map((t=>{t[1].map((e=>{const i={h:e[0],p:e[1],t:e[2],A:e[3]};4&i.h&&(a=!0),i.t=e[2];const o=i.p,l=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const i={h:0,$hostElement$:t,i:e,o:new Map,L:new Map};i.T=new Promise((t=>i.C=t)),t["s-p"]=[],t["s-rc"]=[],i.P=[];const n=i;t.__stencil__getHostRef=()=>n})(t=this,i),1&i.h)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else te.call(t,i)}connectedCallback(){N(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?c.push(this):I.jmp((()=>(t=>{if(!(1&I.h)){const e=N(t);if(!e)return;const i=e.i,n=()=>{};if(1&e.h)(null==e?void 0:e.l)?Te(e.l,t):(null==e?void 0:e.T)&&e.T.then((()=>Te(e.l,t)));else{e.h|=1;{let i=t;for(;i=i.parentNode||i.host;)if(i["s-p"]){Se(e,e.k=i);break}}i.t&&Object.entries(i.t).map((([e,[i]])=>{if(31&i&&e in t&&t[e]!==Object.prototype[e]){const i=t[e];delete t[e],t[e]=i}})),(async(t,e,i)=>{let n;if(!(32&e.h)){if(e.h|=32,i.D){const s=((t,e)=>{const i=t.p.replace(/-/g,"_"),n=t.D;if(!n)return;const s=T.get(n);return s?s[i]:import(`./${n}.entry.js`).then((t=>(T.set(n,t),t[i])),(t=>{L(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(i,e);if(s&&"then"in s){const t=()=>{};n=await s,t()}else n=s;if(!n)throw Error(`Constructor for "${i.p}#${e.G}" was not found`);n.isProxied||(Le(n,i,2),n.isProxied=!0);const r=()=>{};e.h|=8;try{new n(e)}catch(e){L(e,t)}e.h&=-9,r(),Te(e.l,t)}else n=t.constructor,customElements.whenDefined(t.localName).then((()=>e.h|=128));if(n&&n.style){let t;"string"==typeof n.style&&(t=n.style);const e=ie(i);if(!D.has(e)){const n=()=>{};((t,e,i)=>{let n=D.get(t);_&&i?(n=n||new CSSStyleSheet,"string"==typeof n?n=e:n.replaceSync(e)):n=e,D.set(t,n)})(e,t,!!(1&i.h)),n()}}}const s=e.k,r=()=>Me(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(t,e,i)}n()}})(this))))}disconnectedCallback(){I.jmp((()=>(async t=>{if(!(1&I.h)){const e=N(t);(null==e?void 0:e.l)?De(e.l,t):(null==e?void 0:e.T)&&e.T.then((()=>De(e.l,t)))}ee.has(t)&&ee.delete(t),t.shadowRoot&&ee.has(t.shadowRoot)&&ee.delete(t.shadowRoot)})(this))),I.raf((()=>{var t;const e=N(this);if(!e)return;const i=c.findIndex((t=>t===this));i>-1&&c.splice(i,1),(null==(t=null==e?void 0:e.R)?void 0:t.S)instanceof Node&&!e.R.S.isConnected&&delete e.R.S}))}componentOnReady(){var t;return null==(t=N(this))?void 0:t.T}};i.D=t[0],s.includes(o)||r.get(o)||(n.push(o),r.define(o,Le(l,i,1)))}))})),n.length>0&&(a&&(h.textContent+=G),h.textContent+=n.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",h.innerHTML.length)){h.setAttribute("data-styles","");const t=null!=(i=I.W)?i:qt(U.document);null!=t&&h.setAttribute("nonce",t),o.insertBefore(h,l?l.nextSibling:o.firstChild)}u=!1,c.length?c.map((t=>t.connectedCallback())):I.jmp((()=>f=setTimeout(Ce,30)))},Ue=t=>I.W=t;export{Ge as b,ne as h,Z as p,z as r,Ue as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as t}from"./p-7ZJWdw0V.js";export{s as setNonce}from"./p-7ZJWdw0V.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((async e=>(await a(),t([["p-5d3ee390",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],e))));
|
|
@@ -63,6 +63,12 @@ export interface ShadowRootOptions {
|
|
|
63
63
|
* focusable part is given focus, and the shadow host is given any available `:focus` styling.
|
|
64
64
|
*/
|
|
65
65
|
delegatesFocus?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the slot assignment mode for the shadow root. When set to `'manual'`, enables imperative
|
|
68
|
+
* slotting using the `HTMLSlotElement.assign()` method. Defaults to `'named'` for standard
|
|
69
|
+
* declarative slotting behavior.
|
|
70
|
+
*/
|
|
71
|
+
slotAssignment?: 'manual' | 'named';
|
|
66
72
|
}
|
|
67
73
|
export interface ModeStyles {
|
|
68
74
|
[modeName: string]: string | string[];
|
|
@@ -156,7 +162,9 @@ export interface StateDecorator {
|
|
|
156
162
|
(): PropertyDecorator;
|
|
157
163
|
}
|
|
158
164
|
export interface WatchDecorator {
|
|
159
|
-
(propName: any
|
|
165
|
+
(propName: any, watchOptions?: {
|
|
166
|
+
immediate?: boolean;
|
|
167
|
+
}): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
|
|
160
168
|
}
|
|
161
169
|
export interface PropSerializeDecorator {
|
|
162
170
|
(propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
|
|
@@ -695,7 +703,7 @@ declare namespace LocalJSX {
|
|
|
695
703
|
export { LocalJSX as JSX };
|
|
696
704
|
export declare namespace JSXBase {
|
|
697
705
|
interface IntrinsicElements {
|
|
698
|
-
slot: JSXBase.SlotAttributes
|
|
706
|
+
slot: JSXBase.SlotAttributes<HTMLSlotElement>;
|
|
699
707
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
700
708
|
abbr: JSXBase.HTMLAttributes;
|
|
701
709
|
address: JSXBase.HTMLAttributes;
|
|
@@ -865,7 +873,7 @@ export declare namespace JSXBase {
|
|
|
865
873
|
use: JSXBase.SVGAttributes;
|
|
866
874
|
view: JSXBase.SVGAttributes;
|
|
867
875
|
}
|
|
868
|
-
interface SlotAttributes extends JSXAttributes {
|
|
876
|
+
interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
869
877
|
name?: string;
|
|
870
878
|
slot?: string;
|
|
871
879
|
onSlotchange?: (event: Event) => void;
|
|
@@ -921,6 +929,9 @@ export declare namespace JSXBase {
|
|
|
921
929
|
popoverTargetAction?: string;
|
|
922
930
|
popoverTargetElement?: Element | null;
|
|
923
931
|
popoverTarget?: string;
|
|
932
|
+
command?: string;
|
|
933
|
+
commandFor?: string;
|
|
934
|
+
commandfor?: string;
|
|
924
935
|
}
|
|
925
936
|
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
926
937
|
height?: number | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-table-wc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.68",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"format": "prettier --write src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@stencil/core": "4.
|
|
28
|
+
"@stencil/core": "4.40.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"cspell": "9.4.0",
|
|
32
|
-
"eslint": "9.39.
|
|
32
|
+
"eslint": "9.39.2",
|
|
33
33
|
"prettier": "3.7.4",
|
|
34
34
|
"typescript": "5.9.3"
|
|
35
35
|
},
|