@3t-transform/threeteeui 0.1.7 → 0.1.8

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.
Files changed (104) hide show
  1. package/dist/cjs/{index-451f61dd.js → index-8ba406f6.js} +91 -3
  2. package/dist/cjs/loader.cjs.js +3 -18
  3. package/dist/cjs/tttx-button.cjs.entry.js +2 -2
  4. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  5. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  6. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
  7. package/dist/cjs/tttx-list.cjs.entry.js +4 -34
  8. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-toolbar.cjs.entry.js +1 -1
  11. package/dist/cjs/tttx.cjs.js +8 -116
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/atoms/tttx-button/tttx-button.css +8 -0
  14. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +13 -0
  15. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +1 -1
  16. package/dist/components/index.d.ts +9 -0
  17. package/dist/components/index.js +1 -5
  18. package/dist/components/tttx-button.js +1 -1
  19. package/dist/components/tttx-list.js +3 -33
  20. package/dist/esm/{index-0350f122.js → index-5f9b72ff.js} +91 -4
  21. package/dist/esm/loader.js +3 -18
  22. package/dist/esm/polyfills/css-shim.js +1 -1
  23. package/dist/esm/tttx-button.entry.js +2 -2
  24. package/dist/esm/tttx-form.entry.js +1 -1
  25. package/dist/esm/tttx-icon.entry.js +1 -1
  26. package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
  27. package/dist/esm/tttx-list.entry.js +4 -34
  28. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  29. package/dist/esm/tttx-standalone-input.entry.js +1 -1
  30. package/dist/esm/tttx-toolbar.entry.js +1 -1
  31. package/dist/esm/tttx.js +5 -116
  32. package/dist/tttx/index.esm.js +0 -1
  33. package/dist/tttx/{p-0a85dda4.entry.js → p-0342cc46.entry.js} +1 -1
  34. package/dist/tttx/p-1290dcd7.entry.js +3 -0
  35. package/dist/tttx/{p-a0179cb1.entry.js → p-1b394414.entry.js} +1 -1
  36. package/dist/tttx/{p-5cae1beb.entry.js → p-405219b2.entry.js} +1 -1
  37. package/dist/tttx/{p-4f3958fa.entry.js → p-435c62b3.entry.js} +1 -1
  38. package/dist/tttx/{p-1b015a9d.entry.js → p-4ecc9e8b.entry.js} +1 -1
  39. package/dist/tttx/{p-cc6644c9.entry.js → p-9cff9c64.entry.js} +1 -1
  40. package/dist/tttx/{p-92465671.entry.js → p-adf35f58.entry.js} +1 -1
  41. package/dist/tttx/p-c4b803fc.js +2 -0
  42. package/dist/tttx/tttx.esm.js +1 -129
  43. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +6 -6
  44. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +1 -0
  45. package/dist/types/stencil-public-runtime.d.ts +59 -3
  46. package/loader/index.d.ts +9 -0
  47. package/package.json +1 -1
  48. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  49. package/dist/cjs/css-shim-211819bc.js +0 -6
  50. package/dist/cjs/dom-9deb26c8.js +0 -75
  51. package/dist/cjs/index-11cfdabe.js +0 -3297
  52. package/dist/cjs/shadow-css-bf3843d2.js +0 -389
  53. package/dist/collection/components/atoms/tttx-button/test/tttx-button.e2e.js +0 -9
  54. package/dist/collection/components/atoms/tttx-button/test/tttx-button.spec.js +0 -83
  55. package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.e2e.js +0 -9
  56. package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.spec.js +0 -16
  57. package/dist/collection/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.js +0 -216
  58. package/dist/collection/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.js +0 -64
  59. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.spec.js +0 -38
  60. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.spec.js +0 -214
  61. package/dist/collection/components/molecules/tttx-form/test/tttx-form.e2e.js +0 -9
  62. package/dist/collection/components/molecules/tttx-form/test/tttx-form.spec.js +0 -232
  63. package/dist/collection/components/molecules/tttx-list/test/ttttx-list.spec.e2e.js +0 -26
  64. package/dist/collection/components/molecules/tttx-list/test/tttx-list.spec.js +0 -183
  65. package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.js +0 -9
  66. package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.js +0 -219
  67. package/dist/collection/components/molecules/tttx-toolbar/test/tttx-toolbar.test.js +0 -0
  68. package/dist/collection/shared/test/domsanitiser.options.spec.js +0 -23
  69. package/dist/esm/app-globals-0f993ce5.js +0 -3
  70. package/dist/esm/css-shim-9d54a2f2.js +0 -4
  71. package/dist/esm/dom-6be6f662.js +0 -73
  72. package/dist/esm/index-dbe25028.js +0 -3262
  73. package/dist/esm/shadow-css-ed4599f8.js +0 -387
  74. package/dist/tttx/app-globals-0f993ce5.js +0 -3
  75. package/dist/tttx/css-shim-9d54a2f2.js +0 -4
  76. package/dist/tttx/dom-6be6f662.js +0 -73
  77. package/dist/tttx/index-dbe25028.js +0 -3262
  78. package/dist/tttx/p-62869344.js +0 -2
  79. package/dist/tttx/p-cd1565e0.entry.js +0 -3
  80. package/dist/tttx/shadow-css-ed4599f8.js +0 -387
  81. package/dist/tttx/tttx-button.entry.js +0 -30
  82. package/dist/tttx/tttx-form.entry.js +0 -373
  83. package/dist/tttx/tttx-icon.entry.js +0 -17
  84. package/dist/tttx/tttx-keyvalue-block.entry.js +0 -63
  85. package/dist/tttx/tttx-list.entry.js +0 -1730
  86. package/dist/tttx/tttx-loading-spinner.entry.js +0 -22
  87. package/dist/tttx/tttx-standalone-input.entry.js +0 -66
  88. package/dist/tttx/tttx-toolbar.entry.js +0 -16
  89. package/dist/types/components/atoms/tttx-button/test/tttx-button.e2e.d.ts +0 -1
  90. package/dist/types/components/atoms/tttx-button/test/tttx-button.spec.d.ts +0 -1
  91. package/dist/types/components/atoms/tttx-icon/test/tttx-icon.e2e.d.ts +0 -1
  92. package/dist/types/components/atoms/tttx-icon/test/tttx-icon.spec.d.ts +0 -1
  93. package/dist/types/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.d.ts +0 -1
  94. package/dist/types/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.d.ts +0 -1
  95. package/dist/types/components/molecules/tttx-form/lib/setErrorState.spec.d.ts +0 -1
  96. package/dist/types/components/molecules/tttx-form/lib/validityCheck.spec.d.ts +0 -1
  97. package/dist/types/components/molecules/tttx-form/test/tttx-form.e2e.d.ts +0 -1
  98. package/dist/types/components/molecules/tttx-form/test/tttx-form.spec.d.ts +0 -1
  99. package/dist/types/components/molecules/tttx-list/test/ttttx-list.spec.e2e.d.ts +0 -1
  100. package/dist/types/components/molecules/tttx-list/test/tttx-list.spec.d.ts +0 -1
  101. package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.d.ts +0 -1
  102. package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.d.ts +0 -1
  103. package/dist/types/components/molecules/tttx-toolbar/test/tttx-toolbar.test.d.ts +0 -0
  104. package/dist/types/shared/test/domsanitiser.options.spec.d.ts +0 -1
@@ -1,2 +0,0 @@
1
- let e,t,n=!1;const l={},s=e=>"object"==(e=typeof e)||"function"===e,o=(e,t,...n)=>{let l=null,o=!1,r=!1;const i=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!s(l))&&(l+=""),o&&r?i[i.length-1].t+=l:i.push(o?c(null,l):l),r=o)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=c(e,null);return a.l=t,i.length>0&&(a.o=i),a},c=(e,t)=>({i:0,u:e,t,$:null,o:null,l:null}),r={},i=(e,t,n)=>{const l=(e=>T(e).h)(e);return{emit:e=>u(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},u=(e,t,n)=>{const l=B.ce(t,n);return e.dispatchEvent(l),l},a=new WeakMap,f=e=>"sc-"+e.m,d=(e,t,n,l,o,c)=>{if(n!==l){let r=U(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,s=h(n),o=h(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const i=s(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&c||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):U(_,i)?i.slice(2):i[2]+t.slice(3),n&&B.rel(e,t,n,!1),l&&B.ael(e,t,l,!1)}},$=/\s/,h=e=>e?e.split($):[],m=(e,t,n,s)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,c=e&&e.l||l,r=t.l||l;for(s in c)s in r||d(o,s,c[s],void 0,n,t.i);for(s in r)d(o,s,c[s],r[s],n,t.i)},p=(t,n,l)=>{const s=n.o[l];let o,c,r=0;if(null!==s.t)o=s.$=z.createTextNode(s.t);else if(o=s.$=z.createElement(s.u),m(null,s,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),s.o)for(r=0;r<s.o.length;++r)c=p(t,s,r),c&&o.appendChild(c);return o},y=(e,n,l,s,o,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=p(null,l,o),r&&(s[o].$=r,i.insertBefore(r,n)))},b=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.$,g(l),s.remove())},w=(e,t)=>e.u===t.u,S=(e,t)=>{const n=t.$=e.$,l=e.o,s=t.o,o=t.t;null===o?("slot"===t.u||m(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,c=0,r=t.length-1,i=t[0],u=t[r],a=l.length-1,f=l[0],d=l[a];for(;o<=r&&c<=a;)null==i?i=t[++o]:null==u?u=t[--r]:null==f?f=l[++c]:null==d?d=l[--a]:w(i,f)?(S(i,f),i=t[++o],f=l[++c]):w(u,d)?(S(u,d),u=t[--r],d=l[--a]):w(i,d)?(S(i,d),e.insertBefore(i.$,u.$.nextSibling),i=t[++o],d=l[--a]):w(u,f)?(S(u,f),e.insertBefore(u.$,i.$),u=t[--r],f=l[++c]):(s=p(t&&t[c],n,c),f=l[++c],s&&i.$.parentNode.insertBefore(s,i.$));o>r?y(e,null==l[a+1]?null:l[a+1].$,n,l,c,a):c>a&&b(t,o,r)})(n,l,t,s):null!==s?(null!==e.t&&(n.textContent=""),y(n,null,t,s,0,s.length-1)):null!==l&&b(l,0,l.length-1)):e.t!==o&&(n.data=o)},g=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(g)},j=(e,t)=>{t&&!e.p&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.p=t)))},M=(e,t)=>{if(e.i|=16,!(4&e.i))return j(e,e.S),ee((()=>v(e,t)));e.i|=512},v=(e,t)=>{const n=e.g;let l;return t&&(l=P(n,"componentWillLoad")),l=R(l,(()=>P(n,"componentWillRender"))),R(l,(()=>k(e,n,t)))},k=async(e,t,n)=>{const l=e.h,s=l["s-rc"];n&&(e=>{const t=e.j,n=e.h,l=t.i,s=((e,t)=>{let n=f(t);const l=V.get(n);if(e=11===e.nodeType?e:z,l)if("string"==typeof l){let t,s=a.get(e=e.head||e);s||a.set(e,s=new Set),s.has(n)||(t=z.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"),2&l&&n.classList.add(s+"-s"))})(e);C(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>O(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},C=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const s=n.h,i=n.M||c(null,null),u=(e=>e&&e.u===r)(l)?l:o(null,null,l);t=s.tagName,u.u=null,u.i|=4,n.M=u,u.$=i.$=s.shadowRoot||s,e=s["s-sc"],S(i,u)})(n,l)}catch(e){q(e,n.h)}return null},O=e=>{const t=e.h,n=e.S;P(e.g,"componentDidRender"),64&e.i||(e.i|=64,W(t),e.v(t),n||x()),e.p&&(e.p(),e.p=void 0),512&e.i&&Z((()=>M(e,!1))),e.i&=-517},x=()=>{W(z.documentElement),Z((()=>u(_,"appload",{detail:{namespace:"tttx"}})))},P=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){q(e)}},R=(e,t)=>e&&e.then?e.then(t):t(),W=e=>e.classList.add("hydrated"),E=(e,t,n)=>{if(t.k){e.watchers&&(t.C=e.watchers);const l=Object.entries(t.k),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>T(this).O.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=T(e),c=o.h,r=o.O.get(t),i=o.i,u=o.g;if(n=((e,t)=>null==e||s(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.k[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.O.set(t,n),u)){if(l.C&&128&i){const e=l.C[t];e&&e.map((e=>{try{u[e](n,r,t)}catch(e){q(e,c)}}))}2==(18&i)&&M(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){B.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},L=(e,t={})=>{const n=[],l=t.exclude||[],s=_.customElements,o=z.head,c=o.querySelector("meta[charset]"),r=z.createElement("style"),i=[];let u,a=!0;Object.assign(B,t),B.P=new URL(t.resourcesUrl||"./",z.baseURI).href,e.map((e=>{e[1].map((t=>{const o={i:t[0],m:t[1],k:t[2],R:t[3]};o.k=t[2],o.C={};const c=o.m,r=class extends HTMLElement{constructor(e){super(e),H(e=this,o),1&o.i&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?i.push(this):B.jmp((()=>(e=>{if(0==(1&B.i)){const t=T(e),n=t.j,l=()=>{};if(!(1&t.i)){t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){j(t,t.S=n);break}}n.k&&Object.entries(n.k).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.i)){{if(t.i|=32,(s=F(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.C=s.watchers,E(s,n,2),s.isProxied=!0);const e=()=>{};t.i|=8;try{new s(t)}catch(e){q(e)}t.i&=-9,t.i|=128,e()}if(s.style){let e=s.style;const t=f(n);if(!V.has(t)){const l=()=>{};((e,t,n)=>{let l=V.get(e);I&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,V.set(e,l)})(t,e,!!(1&n.i)),l()}}}const o=t.S,c=()=>M(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){B.jmp((()=>{}))}componentOnReady(){return T(this).W}};o.L=e[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,E(r,o,1)))}))})),r.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),o.insertBefore(r,c?c.nextSibling:o.firstChild),a=!1,i.length?i.map((e=>e.connectedCallback())):B.jmp((()=>u=setTimeout(x,30)))},N=new WeakMap,T=e=>N.get(e),A=(e,t)=>N.set(t.g=e,t),H=(e,t)=>{const n={i:0,h:e,j:t,O:new Map};return n.W=new Promise((e=>n.v=e)),e["s-p"]=[],e["s-rc"]=[],N.set(e,n)},U=(e,t)=>t in e,q=(e,t)=>(0,console.error)(e,t),D=new Map,F=e=>{const t=e.m.replace(/-/g,"_"),n=e.L,l=D.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(D.set(n,e),e[t])),q)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={i:0,P:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},G=e=>Promise.resolve(e),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),J=[],K=[],Q=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&B.i?Z(Y):B.raf(Y))},X=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){q(e)}e.length=0},Y=()=>{X(J),X(K),(n=J.length>0)&&B.raf(Y)},Z=e=>G().then(e),ee=Q(K,!0);export{r as H,L as b,i as c,o as h,G as p,A as r}
@@ -1,3 +0,0 @@
1
- import{r as t,c as e,h as n}from"./p-62869344.js";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var i,o=(function(t){
2
- /*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */
3
- t.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object;let{freeze:r,seal:a,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;s||(s=function(t,e,n){return t.apply(e,n)}),r||(r=function(t){return t}),a||(a=function(t){return t}),c||(c=function(t,e){return new t(...e)});const f=k(Array.prototype.forEach),u=k(Array.prototype.pop),m=k(Array.prototype.push),p=k(String.prototype.toLowerCase),d=k(String.prototype.toString),h=k(String.prototype.match),g=k(String.prototype.replace),y=k(String.prototype.indexOf),b=k(String.prototype.trim),w=k(RegExp.prototype.test),x=(v=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c(v,e)});var v;function k(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return s(t,e,i)}}function T(t,i,o){var r;o=null!==(r=o)&&void 0!==r?r:p,e&&e(t,null);let a=i.length;for(;a--;){let e=i[a];if("string"==typeof e){const t=o(e);t!==e&&(n(i)||(i[a]=t),e=t)}t[e]=!0}return t}function A(e){const n=l(null);for(const[i,o]of t(e))n[i]=o;return n}function E(t,e){for(;null!==t;){const n=o(t,e);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}t=i(t)}return function(t){return console.warn("fallback value for",t),null}}const R=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=r(["#text"]),O=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),M=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),C=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),P=a(/<%[\w\W]*|[\w\W]*%>/gm),j=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),U=a(/^aria-[\-\w]+$/),H=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:j,DATA_ATTR:B,ARIA_ATTR:U,IS_ALLOWED_URI:H,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:q,DOCTYPE_NAME:G});const X=()=>"undefined"==typeof window?null:window,$=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const i=t=>e(t);if(i.version="3.0.3",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;const o=n.document,a=o.currentScript;let{document:l}=n;const{DocumentFragment:s,HTMLTemplateElement:c,Node:v,Element:k,NodeFilter:F,NamedNodeMap:P=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:j,DOMParser:B,trustedTypes:U}=n,W=k.prototype,q=E(W,"cloneNode"),J=E(W,"nextSibling"),V=E(W,"childNodes"),K=E(W,"parentNode");if("function"==typeof c){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let Q,Z="";const{implementation:tt,createNodeIterator:et,createDocumentFragment:nt,getElementsByTagName:it}=l,{importNode:ot}=o;let rt={};i.isSupported="function"==typeof t&&"function"==typeof K&&tt&&void 0!==tt.createHTMLDocument;const{MUSTACHE_EXPR:at,ERB_EXPR:lt,TMPLIT_EXPR:st,DATA_ATTR:ct,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:ut,ATTR_WHITESPACE:mt}=Y;let{IS_ALLOWED_URI:pt}=Y,dt=null;const ht=T({},[...R,...S,..._,...D,...I]);let gt=null;const yt=T({},[...O,...M,...N,...C]);let bt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),wt=null,xt=null,vt=!0,kt=!0,Tt=!1,At=!0,Et=!1,Rt=!1,St=!1,_t=!1,Lt=!1,Dt=!1,zt=!1,It=!0,Ot=!1;const Mt="user-content-";let Nt=!0,Ct=!1,Ft={},Pt=null;const jt=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Bt=null;const Ut=T({},["audio","video","img","source","image","track"]);let Ht=null;const Wt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Gt="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let Xt=Yt,$t=!1,Jt=null;const Vt=T({},[qt,Gt,Yt],d);let Kt;const Qt=["application/xhtml+xml","text/html"],Zt="text/html";let te,ee=null;const ne=l.createElement("form"),ie=function(t){return t instanceof RegExp||t instanceof Function},oe=function(t){if(!ee||ee!==t){if(t&&"object"==typeof t||(t={}),t=A(t),Kt=Kt=-1===Qt.indexOf(t.PARSER_MEDIA_TYPE)?Zt:t.PARSER_MEDIA_TYPE,te="application/xhtml+xml"===Kt?d:p,dt="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,te):ht,gt="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,te):yt,Jt="ALLOWED_NAMESPACES"in t?T({},t.ALLOWED_NAMESPACES,d):Vt,Ht="ADD_URI_SAFE_ATTR"in t?T(A(Wt),t.ADD_URI_SAFE_ATTR,te):Wt,Bt="ADD_DATA_URI_TAGS"in t?T(A(Ut),t.ADD_DATA_URI_TAGS,te):Ut,Pt="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,te):jt,wt="FORBID_TAGS"in t?T({},t.FORBID_TAGS,te):{},xt="FORBID_ATTR"in t?T({},t.FORBID_ATTR,te):{},Ft="USE_PROFILES"in t&&t.USE_PROFILES,vt=!1!==t.ALLOW_ARIA_ATTR,kt=!1!==t.ALLOW_DATA_ATTR,Tt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,At=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Et=t.SAFE_FOR_TEMPLATES||!1,Rt=t.WHOLE_DOCUMENT||!1,Lt=t.RETURN_DOM||!1,Dt=t.RETURN_DOM_FRAGMENT||!1,zt=t.RETURN_TRUSTED_TYPE||!1,_t=t.FORCE_BODY||!1,It=!1!==t.SANITIZE_DOM,Ot=t.SANITIZE_NAMED_PROPS||!1,Nt=!1!==t.KEEP_CONTENT,Ct=t.IN_PLACE||!1,pt=t.ALLOWED_URI_REGEXP||H,Xt=t.NAMESPACE||Yt,bt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ie(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(bt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ie(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(bt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(bt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Et&&(kt=!1),Dt&&(Lt=!0),Ft&&(dt=T({},[...I]),gt=[],!0===Ft.html&&(T(dt,R),T(gt,O)),!0===Ft.svg&&(T(dt,S),T(gt,M),T(gt,C)),!0===Ft.svgFilters&&(T(dt,_),T(gt,M),T(gt,C)),!0===Ft.mathMl&&(T(dt,D),T(gt,N),T(gt,C))),t.ADD_TAGS&&(dt===ht&&(dt=A(dt)),T(dt,t.ADD_TAGS,te)),t.ADD_ATTR&&(gt===yt&&(gt=A(gt)),T(gt,t.ADD_ATTR,te)),t.ADD_URI_SAFE_ATTR&&T(Ht,t.ADD_URI_SAFE_ATTR,te),t.FORBID_CONTENTS&&(Pt===jt&&(Pt=A(Pt)),T(Pt,t.FORBID_CONTENTS,te)),Nt&&(dt["#text"]=!0),Rt&&T(dt,["html","head","body"]),dt.table&&(T(dt,["tbody"]),delete wt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=t.TRUSTED_TYPES_POLICY,Z=Q.createHTML("")}else void 0===Q&&(Q=$(U,a)),null!==Q&&"string"==typeof Z&&(Z=Q.createHTML(""));r&&r(t),ee=t}},re=T({},["mi","mo","mn","ms","mtext"]),ae=T({},["foreignobject","desc","title","annotation-xml"]),le=T({},["title","style","font","a","script"]),se=T({},S);T(se,_),T(se,L);const ce=T({},D);T(ce,z);const fe=function(t){let e=K(t);e&&e.tagName||(e={namespaceURI:Xt,tagName:"template"});const n=p(t.tagName),i=p(e.tagName);return!!Jt[t.namespaceURI]&&(t.namespaceURI===Gt?e.namespaceURI===Yt?"svg"===n:e.namespaceURI===qt?"svg"===n&&("annotation-xml"===i||re[i]):Boolean(se[n]):t.namespaceURI===qt?e.namespaceURI===Yt?"math"===n:e.namespaceURI===Gt?"math"===n&&ae[i]:Boolean(ce[n]):t.namespaceURI===Yt?!(e.namespaceURI===Gt&&!ae[i])&&!(e.namespaceURI===qt&&!re[i])&&!ce[n]&&(le[n]||!se[n]):!("application/xhtml+xml"!==Kt||!Jt[t.namespaceURI]))},ue=function(t){m(i.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},me=function(t,e){try{m(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!gt[t])if(Lt||Dt)try{ue(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},pe=function(t){let e,n;if(_t)t="<remove></remove>"+t;else{const e=h(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Kt&&Xt===Yt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=Q?Q.createHTML(t):t;if(Xt===Yt)try{e=(new B).parseFromString(i,Kt)}catch(t){}if(!e||!e.documentElement){e=tt.createDocument(Xt,"template",null);try{e.documentElement.innerHTML=$t?Z:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(l.createTextNode(n),o.childNodes[0]||null),Xt===Yt?it.call(e,Rt?"html":"body")[0]:Rt?e.documentElement:o},de=function(t){return et.call(t.ownerDocument||t,t,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT,null,!1)},he=function(t){return t instanceof j&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof P)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},ge=function(t){return"object"==typeof v?t instanceof v:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},ye=function(t,e,n){rt[t]&&f(rt[t],(t=>{t.call(i,e,n,ee)}))},be=function(t){let e;if(ye("beforeSanitizeElements",t,null),he(t))return ue(t),!0;const n=te(t.nodeName);if(ye("uponSanitizeElement",t,{tagName:n,allowedTags:dt}),t.hasChildNodes()&&!ge(t.firstElementChild)&&(!ge(t.content)||!ge(t.content.firstElementChild))&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return ue(t),!0;if(!dt[n]||wt[n]){if(!wt[n]&&xe(n)){if(bt.tagNameCheck instanceof RegExp&&w(bt.tagNameCheck,n))return!1;if(bt.tagNameCheck instanceof Function&&bt.tagNameCheck(n))return!1}if(Nt&&!Pt[n]){const e=K(t)||t.parentNode,n=V(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i)e.insertBefore(q(n[i],!0),J(t))}return ue(t),!0}return t instanceof k&&!fe(t)?(ue(t),!0):"noscript"!==n&&"noembed"!==n||!w(/<\/no(script|embed)/i,t.innerHTML)?(Et&&3===t.nodeType&&(e=t.textContent,e=g(e,at," "),e=g(e,lt," "),e=g(e,st," "),t.textContent!==e&&(m(i.removed,{element:t.cloneNode()}),t.textContent=e)),ye("afterSanitizeElements",t,null),!1):(ue(t),!0)},we=function(t,e,n){if(It&&("id"===e||"name"===e)&&(n in l||n in ne))return!1;if(kt&&!xt[e]&&w(ct,e));else if(vt&&w(ft,e));else if(!gt[e]||xt[e]){if(!(xe(t)&&(bt.tagNameCheck instanceof RegExp&&w(bt.tagNameCheck,t)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(t))&&(bt.attributeNameCheck instanceof RegExp&&w(bt.attributeNameCheck,e)||bt.attributeNameCheck instanceof Function&&bt.attributeNameCheck(e))||"is"===e&&bt.allowCustomizedBuiltInElements&&(bt.tagNameCheck instanceof RegExp&&w(bt.tagNameCheck,n)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(n))))return!1}else if(Ht[e]);else if(w(pt,g(n,mt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==y(n,"data:")||!Bt[t])if(Tt&&!w(ut,g(n,mt,"")));else if(n)return!1;return!0},xe=function(t){return t.indexOf("-")>0},ve=function(t){let e,n,o,r;ye("beforeSanitizeAttributes",t,null);const{attributes:a}=t;if(!a)return;const l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:gt};for(r=a.length;r--;){e=a[r];const{name:s,namespaceURI:c}=e;if(n="value"===s?e.value:b(e.value),o=te(s),l.attrName=o,l.attrValue=n,l.keepAttr=!0,l.forceKeepAttr=void 0,ye("uponSanitizeAttribute",t,l),n=l.attrValue,l.forceKeepAttr)continue;if(me(s,t),!l.keepAttr)continue;if(!At&&w(/\/>/i,n)){me(s,t);continue}Et&&(n=g(n,at," "),n=g(n,lt," "),n=g(n,st," "));const f=te(t.nodeName);if(we(f,o,n)){if(!Ot||"id"!==o&&"name"!==o||(me(s,t),n=Mt+n),Q&&"object"==typeof U&&"function"==typeof U.getAttributeType)if(c);else switch(U.getAttributeType(f,o)){case"TrustedHTML":n=Q.createHTML(n);break;case"TrustedScriptURL":n=Q.createScriptURL(n)}try{c?t.setAttributeNS(c,s,n):t.setAttribute(s,n),u(i.removed)}catch(t){}}}ye("afterSanitizeAttributes",t,null)},ke=function t(e){let n;const i=de(e);for(ye("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)ye("uponSanitizeShadowNode",n,null),be(n)||(n.content instanceof s&&t(n.content),ve(n));ye("afterSanitizeShadowDOM",e,null)};return i.sanitize=function(t){let e,n,r,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if($t=!t,$t&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ge(t)){if("function"!=typeof t.toString)throw x("toString is not a function");if("string"!=typeof(t=t.toString()))throw x("dirty is not a string, aborting")}if(!i.isSupported)return t;if(St||oe(l),i.removed=[],"string"==typeof t&&(Ct=!1),Ct){if(t.nodeName){const e=te(t.nodeName);if(!dt[e]||wt[e])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof v)e=pe("\x3c!----\x3e"),n=e.ownerDocument.importNode(t,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?e=n:e.appendChild(n);else{if(!Lt&&!Et&&!Rt&&-1===t.indexOf("<"))return Q&&zt?Q.createHTML(t):t;if(e=pe(t),!e)return Lt?null:zt?Z:""}e&&_t&&ue(e.firstChild);const c=de(Ct?t:e);for(;r=c.nextNode();)be(r)||(r.content instanceof s&&ke(r.content),ve(r));if(Ct)return t;if(Lt){if(Dt)for(a=nt.call(e.ownerDocument);e.firstChild;)a.appendChild(e.firstChild);else a=e;return(gt.shadowroot||gt.shadowrootmod)&&(a=ot.call(o,a,!0)),a}let f=Rt?e.outerHTML:e.innerHTML;return Rt&&dt["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&w(G,e.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+e.ownerDocument.doctype.name+">\n"+f),Et&&(f=g(f,at," "),f=g(f,lt," "),f=g(f,st," ")),Q&&zt?Q.createHTML(f):f},i.setConfig=function(t){oe(t),St=!0},i.clearConfig=function(){ee=null,St=!1},i.isValidAttribute=function(t,e,n){ee||oe({});const i=te(t),o=te(e);return we(i,o,n)},i.addHook=function(t,e){"function"==typeof e&&(rt[t]=rt[t]||[],m(rt[t],e))},i.removeHook=function(t){if(rt[t])return u(rt[t])},i.removeHooks=function(t){rt[t]&&(rt[t]=[])},i.removeAllHooks=function(){rt={}},i}()}()}(i={path:undefined,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),i.exports);const r={CUSTOM_ELEMENT_HANDLING:{tagNameCheck:function(t){return RegExp(/^tttx-/).exec(t)},attributeNameCheck:function(){return!0},allowCustomizedBuiltInElements:!1}},a=class{constructor(n){t(this,n),this.rowClick=e(this,"listRowClick",7),this.data=void 0,this.name=void 0}onRowClickHandler(t){t.clickable&&t.rowData&&this.rowClick.emit({name:this.name,data:t.rowData})}renderListItem(t){const e=o.sanitize(t.element,r);return n("li",{class:"item "+(t.clickable?"clickable":""),onClick:()=>{this.onRowClickHandler(t)}},t.element&&n("span",{class:"item-content",innerHTML:e}),t.icon&&n("tttx-icon",{class:"align-right ",icon:t.icon}))}render(){if(this.data)return this._data="string"==typeof this.data?JSON.parse(this.data):this.data,n("ul",{class:"list"},this._data.map((t=>this.renderListItem(t))))}};a.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;display:flex;align-items:center}.item:first-of-type{border-top:1px solid #d5d5d5}.item.clickable:hover{cursor:pointer}.item.clickable:active{background-color:#e6e6e6}.align-right{margin-left:auto}.item-content{display:flex;align-items:center}';export{a as tttx_list}
@@ -1,387 +0,0 @@
1
- /*
2
- Stencil Client Platform v2.20.0 | MIT Licensed | https://stenciljs.com
3
- */
4
- /**
5
- * @license
6
- * Copyright Google Inc. All Rights Reserved.
7
- *
8
- * Use of this source code is governed by an MIT-style license that can be
9
- * found in the LICENSE file at https://angular.io/license
10
- *
11
- * This file is a port of shadowCSS from webcomponents.js to TypeScript.
12
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
13
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
14
- */
15
- const safeSelector = (selector) => {
16
- const placeholders = [];
17
- let index = 0;
18
- // Replaces attribute selectors with placeholders.
19
- // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
20
- selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
21
- const replaceBy = `__ph-${index}__`;
22
- placeholders.push(keep);
23
- index++;
24
- return replaceBy;
25
- });
26
- // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
27
- // WS and "+" would otherwise be interpreted as selector separators.
28
- const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
29
- const replaceBy = `__ph-${index}__`;
30
- placeholders.push(exp);
31
- index++;
32
- return pseudo + replaceBy;
33
- });
34
- const ss = {
35
- content,
36
- placeholders,
37
- };
38
- return ss;
39
- };
40
- const restoreSafeSelector = (placeholders, content) => {
41
- return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
42
- };
43
- const _polyfillHost = '-shadowcsshost';
44
- const _polyfillSlotted = '-shadowcssslotted';
45
- // note: :host-context pre-processed to -shadowcsshostcontext.
46
- const _polyfillHostContext = '-shadowcsscontext';
47
- const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
48
- const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
49
- const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
50
- const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
51
- const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
52
- const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
53
- const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
54
- const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
55
- const _polyfillHostRe = /-shadowcsshost/gim;
56
- const _colonHostRe = /:host/gim;
57
- const _colonSlottedRe = /::slotted/gim;
58
- const _colonHostContextRe = /:host-context/gim;
59
- const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
60
- const stripComments = (input) => {
61
- return input.replace(_commentRe, '');
62
- };
63
- const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
64
- const extractCommentsWithHash = (input) => {
65
- return input.match(_commentWithHashRe) || [];
66
- };
67
- const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
68
- const _curlyRe = /([{}])/g;
69
- const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
70
- const OPEN_CURLY = '{';
71
- const CLOSE_CURLY = '}';
72
- const BLOCK_PLACEHOLDER = '%BLOCK%';
73
- const processRules = (input, ruleCallback) => {
74
- const inputWithEscapedBlocks = escapeBlocks(input);
75
- let nextBlockIndex = 0;
76
- return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
77
- const selector = m[2];
78
- let content = '';
79
- let suffix = m[4];
80
- let contentPrefix = '';
81
- if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
82
- content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
83
- suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
84
- contentPrefix = '{';
85
- }
86
- const cssRule = {
87
- selector,
88
- content,
89
- };
90
- const rule = ruleCallback(cssRule);
91
- return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
92
- });
93
- };
94
- const escapeBlocks = (input) => {
95
- const inputParts = input.split(_curlyRe);
96
- const resultParts = [];
97
- const escapedBlocks = [];
98
- let bracketCount = 0;
99
- let currentBlockParts = [];
100
- for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
101
- const part = inputParts[partIndex];
102
- if (part === CLOSE_CURLY) {
103
- bracketCount--;
104
- }
105
- if (bracketCount > 0) {
106
- currentBlockParts.push(part);
107
- }
108
- else {
109
- if (currentBlockParts.length > 0) {
110
- escapedBlocks.push(currentBlockParts.join(''));
111
- resultParts.push(BLOCK_PLACEHOLDER);
112
- currentBlockParts = [];
113
- }
114
- resultParts.push(part);
115
- }
116
- if (part === OPEN_CURLY) {
117
- bracketCount++;
118
- }
119
- }
120
- if (currentBlockParts.length > 0) {
121
- escapedBlocks.push(currentBlockParts.join(''));
122
- resultParts.push(BLOCK_PLACEHOLDER);
123
- }
124
- const strEscapedBlocks = {
125
- escapedString: resultParts.join(''),
126
- blocks: escapedBlocks,
127
- };
128
- return strEscapedBlocks;
129
- };
130
- const insertPolyfillHostInCssText = (selector) => {
131
- selector = selector
132
- .replace(_colonHostContextRe, _polyfillHostContext)
133
- .replace(_colonHostRe, _polyfillHost)
134
- .replace(_colonSlottedRe, _polyfillSlotted);
135
- return selector;
136
- };
137
- const convertColonRule = (cssText, regExp, partReplacer) => {
138
- // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
139
- return cssText.replace(regExp, (...m) => {
140
- if (m[2]) {
141
- const parts = m[2].split(',');
142
- const r = [];
143
- for (let i = 0; i < parts.length; i++) {
144
- const p = parts[i].trim();
145
- if (!p)
146
- break;
147
- r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
148
- }
149
- return r.join(',');
150
- }
151
- else {
152
- return _polyfillHostNoCombinator + m[3];
153
- }
154
- });
155
- };
156
- const colonHostPartReplacer = (host, part, suffix) => {
157
- return host + part.replace(_polyfillHost, '') + suffix;
158
- };
159
- const convertColonHost = (cssText) => {
160
- return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
161
- };
162
- const colonHostContextPartReplacer = (host, part, suffix) => {
163
- if (part.indexOf(_polyfillHost) > -1) {
164
- return colonHostPartReplacer(host, part, suffix);
165
- }
166
- else {
167
- return host + part + suffix + ', ' + part + ' ' + host + suffix;
168
- }
169
- };
170
- const convertColonSlotted = (cssText, slotScopeId) => {
171
- const slotClass = '.' + slotScopeId + ' > ';
172
- const selectors = [];
173
- cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
174
- if (m[2]) {
175
- const compound = m[2].trim();
176
- const suffix = m[3];
177
- const slottedSelector = slotClass + compound + suffix;
178
- let prefixSelector = '';
179
- for (let i = m[4] - 1; i >= 0; i--) {
180
- const char = m[5][i];
181
- if (char === '}' || char === ',') {
182
- break;
183
- }
184
- prefixSelector = char + prefixSelector;
185
- }
186
- const orgSelector = prefixSelector + slottedSelector;
187
- const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
188
- if (orgSelector.trim() !== addedSelector.trim()) {
189
- const updatedSelector = `${addedSelector}, ${orgSelector}`;
190
- selectors.push({
191
- orgSelector,
192
- updatedSelector,
193
- });
194
- }
195
- return slottedSelector;
196
- }
197
- else {
198
- return _polyfillHostNoCombinator + m[3];
199
- }
200
- });
201
- return {
202
- selectors,
203
- cssText,
204
- };
205
- };
206
- const convertColonHostContext = (cssText) => {
207
- return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
208
- };
209
- const convertShadowDOMSelectors = (cssText) => {
210
- return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
211
- };
212
- const makeScopeMatcher = (scopeSelector) => {
213
- const lre = /\[/g;
214
- const rre = /\]/g;
215
- scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
216
- return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
217
- };
218
- const selectorNeedsScoping = (selector, scopeSelector) => {
219
- const re = makeScopeMatcher(scopeSelector);
220
- return !re.test(selector);
221
- };
222
- const injectScopingSelector = (selector, scopingSelector) => {
223
- return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
224
- return before + scopingSelector + colon + after;
225
- });
226
- };
227
- const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
228
- // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
229
- _polyfillHostRe.lastIndex = 0;
230
- if (_polyfillHostRe.test(selector)) {
231
- const replaceBy = `.${hostSelector}`;
232
- return selector
233
- .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
234
- .replace(_polyfillHostRe, replaceBy + ' ');
235
- }
236
- return scopeSelector + ' ' + selector;
237
- };
238
- const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
239
- const isRe = /\[is=([^\]]*)\]/g;
240
- scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
241
- const className = '.' + scopeSelector;
242
- const _scopeSelectorPart = (p) => {
243
- let scopedP = p.trim();
244
- if (!scopedP) {
245
- return '';
246
- }
247
- if (p.indexOf(_polyfillHostNoCombinator) > -1) {
248
- scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
249
- }
250
- else {
251
- // remove :host since it should be unnecessary
252
- const t = p.replace(_polyfillHostRe, '');
253
- if (t.length > 0) {
254
- scopedP = injectScopingSelector(t, className);
255
- }
256
- }
257
- return scopedP;
258
- };
259
- const safeContent = safeSelector(selector);
260
- selector = safeContent.content;
261
- let scopedSelector = '';
262
- let startIndex = 0;
263
- let res;
264
- const sep = /( |>|\+|~(?!=))\s*/g;
265
- // If a selector appears before :host it should not be shimmed as it
266
- // matches on ancestor elements and not on elements in the host's shadow
267
- // `:host-context(div)` is transformed to
268
- // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
269
- // the `div` is not part of the component in the 2nd selectors and should not be scoped.
270
- // Historically `component-tag:host` was matching the component so we also want to preserve
271
- // this behavior to avoid breaking legacy apps (it should not match).
272
- // The behavior should be:
273
- // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
274
- // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
275
- // `:host-context(tag)`)
276
- const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
277
- // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
278
- let shouldScope = !hasHost;
279
- while ((res = sep.exec(selector)) !== null) {
280
- const separator = res[1];
281
- const part = selector.slice(startIndex, res.index).trim();
282
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
283
- const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
284
- scopedSelector += `${scopedPart} ${separator} `;
285
- startIndex = sep.lastIndex;
286
- }
287
- const part = selector.substring(startIndex);
288
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
289
- scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
290
- // replace the placeholders with their original values
291
- return restoreSafeSelector(safeContent.placeholders, scopedSelector);
292
- };
293
- const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
294
- return selector
295
- .split(',')
296
- .map((shallowPart) => {
297
- if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
298
- return shallowPart.trim();
299
- }
300
- if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
301
- return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
302
- }
303
- else {
304
- return shallowPart.trim();
305
- }
306
- })
307
- .join(', ');
308
- };
309
- const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
310
- return processRules(cssText, (rule) => {
311
- let selector = rule.selector;
312
- let content = rule.content;
313
- if (rule.selector[0] !== '@') {
314
- selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
315
- }
316
- else if (rule.selector.startsWith('@media') ||
317
- rule.selector.startsWith('@supports') ||
318
- rule.selector.startsWith('@page') ||
319
- rule.selector.startsWith('@document')) {
320
- content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
321
- }
322
- const cssRule = {
323
- selector: selector.replace(/\s{2,}/g, ' ').trim(),
324
- content,
325
- };
326
- return cssRule;
327
- });
328
- };
329
- const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
330
- cssText = insertPolyfillHostInCssText(cssText);
331
- cssText = convertColonHost(cssText);
332
- cssText = convertColonHostContext(cssText);
333
- const slotted = convertColonSlotted(cssText, slotScopeId);
334
- cssText = slotted.cssText;
335
- cssText = convertShadowDOMSelectors(cssText);
336
- if (scopeId) {
337
- cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
338
- }
339
- cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
340
- cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
341
- return {
342
- cssText: cssText.trim(),
343
- slottedSelectors: slotted.selectors,
344
- };
345
- };
346
- const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
347
- const hostScopeId = scopeId + '-h';
348
- const slotScopeId = scopeId + '-s';
349
- const commentsWithHash = extractCommentsWithHash(cssText);
350
- cssText = stripComments(cssText);
351
- const orgSelectors = [];
352
- if (commentOriginalSelector) {
353
- const processCommentedSelector = (rule) => {
354
- const placeholder = `/*!@___${orgSelectors.length}___*/`;
355
- const comment = `/*!@${rule.selector}*/`;
356
- orgSelectors.push({ placeholder, comment });
357
- rule.selector = placeholder + rule.selector;
358
- return rule;
359
- };
360
- cssText = processRules(cssText, (rule) => {
361
- if (rule.selector[0] !== '@') {
362
- return processCommentedSelector(rule);
363
- }
364
- else if (rule.selector.startsWith('@media') ||
365
- rule.selector.startsWith('@supports') ||
366
- rule.selector.startsWith('@page') ||
367
- rule.selector.startsWith('@document')) {
368
- rule.content = processRules(rule.content, processCommentedSelector);
369
- return rule;
370
- }
371
- return rule;
372
- });
373
- }
374
- const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
375
- cssText = [scoped.cssText, ...commentsWithHash].join('\n');
376
- if (commentOriginalSelector) {
377
- orgSelectors.forEach(({ placeholder, comment }) => {
378
- cssText = cssText.replace(placeholder, comment);
379
- });
380
- }
381
- scoped.slottedSelectors.forEach((slottedSelector) => {
382
- cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
383
- });
384
- return cssText;
385
- };
386
-
387
- export { scopeCss };
@@ -1,30 +0,0 @@
1
- import { r as registerInstance, h, e as Host } from './index-dbe25028.js';
2
-
3
- const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}.spacingleft{margin-left:8px}";
4
-
5
- const TttxButton = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this._iconcolor = 'black';
9
- this.notext = undefined;
10
- this.icon = undefined;
11
- this.iconposition = 'left';
12
- this.design = 'default';
13
- }
14
- componentWillLoad() {
15
- this._design = this.design;
16
- const designs = ['primary', 'default', 'disabled', 'danger', 'borderless'];
17
- if (!designs.includes(this.design)) {
18
- this._design = 'default';
19
- }
20
- if (this._design === 'primary' || this._design === 'danger') {
21
- this._iconcolor = 'white';
22
- }
23
- }
24
- render() {
25
- return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))), !this.notext && h("div", { class: "button-content" }, h("slot", null)), this.icon && this.iconposition === 'right' && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))))));
26
- }
27
- };
28
- TttxButton.style = tttxButtonCss;
29
-
30
- export { TttxButton as tttx_button };