@devschile/chucao 1.5.3 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/chucao/chucao.esm.js +1 -1
  2. package/dist/chucao/{p-061ffcf3.entry.js → p-175aee94.entry.js} +2 -2
  3. package/dist/chucao/{p-c0c5522f.entry.js → p-85a49fd7.entry.js} +2 -2
  4. package/dist/chucao/p-ImsAHlk9.js +3 -0
  5. package/dist/chucao/p-ImsAHlk9.js.map +1 -0
  6. package/dist/chucao/{p-117c93d3.entry.js → p-af2c57b5.entry.js} +2 -2
  7. package/dist/chucao/{p-fa56821f.entry.js → p-b4520f1c.entry.js} +2 -2
  8. package/dist/chucao/{p-14d8a79c.entry.js → p-d75eeeea.entry.js} +2 -2
  9. package/dist/chucao/{p-b07c23e1.entry.js → p-dde82d7d.entry.js} +2 -2
  10. package/dist/chucao/{p-bb82aaf8.entry.js → p-fcc70c8d.entry.js} +2 -2
  11. package/dist/chucao/{p-c1edf460.entry.js → p-fe0c9320.entry.js} +2 -2
  12. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  13. package/dist/cjs/ch-badge_6.cjs.entry.js +1 -1
  14. package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
  15. package/dist/cjs/ch-divider.cjs.entry.js +1 -1
  16. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  17. package/dist/cjs/ch-radio.cjs.entry.js +1 -1
  18. package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
  19. package/dist/cjs/ch-textarea.cjs.entry.js +1 -1
  20. package/dist/cjs/chucao.cjs.js +1 -1
  21. package/dist/cjs/{index-D7ZSLrHc.js → index-CiYvuUBV.js} +679 -9
  22. package/dist/cjs/index-CiYvuUBV.js.map +1 -0
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/components/ch-accordion.js +1 -1
  25. package/dist/components/ch-badge.js +1 -1
  26. package/dist/components/ch-button.js +1 -1
  27. package/dist/components/ch-card.js +1 -1
  28. package/dist/components/ch-checkbox.js +1 -1
  29. package/dist/components/ch-divider.js +1 -1
  30. package/dist/components/ch-input.js +1 -1
  31. package/dist/components/ch-link.js +1 -1
  32. package/dist/components/ch-radio.js +1 -1
  33. package/dist/components/ch-select.js +1 -1
  34. package/dist/components/ch-switch.js +1 -1
  35. package/dist/components/ch-tabs.js +1 -1
  36. package/dist/components/ch-textarea.js +1 -1
  37. package/dist/components/index.js +1 -1
  38. package/dist/components/p-x4aZoujY.js +2 -0
  39. package/dist/components/p-x4aZoujY.js.map +1 -0
  40. package/dist/esm/ch-accordion.entry.js +1 -1
  41. package/dist/esm/ch-badge_6.entry.js +1 -1
  42. package/dist/esm/ch-checkbox.entry.js +1 -1
  43. package/dist/esm/ch-divider.entry.js +1 -1
  44. package/dist/esm/ch-link.entry.js +1 -1
  45. package/dist/esm/ch-radio.entry.js +1 -1
  46. package/dist/esm/ch-tabs.entry.js +1 -1
  47. package/dist/esm/ch-textarea.entry.js +1 -1
  48. package/dist/esm/chucao.js +2 -2
  49. package/dist/esm/{index-B0AkgfgP.js → index-ImsAHlk9.js} +679 -9
  50. package/dist/esm/index-ImsAHlk9.js.map +1 -0
  51. package/dist/esm/loader.js +2 -2
  52. package/hydrate/index.d.ts +287 -0
  53. package/hydrate/index.js +24283 -0
  54. package/hydrate/index.mjs +24273 -0
  55. package/hydrate/package.json +12 -0
  56. package/package.json +7 -1
  57. package/dist/chucao/p-B0AkgfgP.js +0 -3
  58. package/dist/chucao/p-B0AkgfgP.js.map +0 -1
  59. package/dist/cjs/index-D7ZSLrHc.js.map +0 -1
  60. package/dist/components/p-W-iJXblk.js +0 -2
  61. package/dist/components/p-W-iJXblk.js.map +0 -1
  62. package/dist/esm/index-B0AkgfgP.js.map +0 -1
  63. /package/dist/chucao/{p-061ffcf3.entry.js.map → p-175aee94.entry.js.map} +0 -0
  64. /package/dist/chucao/{p-c0c5522f.entry.js.map → p-85a49fd7.entry.js.map} +0 -0
  65. /package/dist/chucao/{p-117c93d3.entry.js.map → p-af2c57b5.entry.js.map} +0 -0
  66. /package/dist/chucao/{p-fa56821f.entry.js.map → p-b4520f1c.entry.js.map} +0 -0
  67. /package/dist/chucao/{p-14d8a79c.entry.js.map → p-d75eeeea.entry.js.map} +0 -0
  68. /package/dist/chucao/{p-b07c23e1.entry.js.map → p-dde82d7d.entry.js.map} +0 -0
  69. /package/dist/chucao/{p-bb82aaf8.entry.js.map → p-fcc70c8d.entry.js.map} +0 -0
  70. /package/dist/chucao/{p-c1edf460.entry.js.map → p-fe0c9320.entry.js.map} +0 -0
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@devschile/chucao/hydrate",
3
+ "description": "chucao component hydration app.",
4
+ "main": "index.js",
5
+ "types": "index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "require": "./index.js",
9
+ "import": "./index.mjs"
10
+ }
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devschile/chucao",
3
- "version": "1.5.3",
3
+ "version": "1.6.0",
4
4
  "description": "Chucao — devsChile design system, packaged as StencilJS web components",
5
5
  "keywords": [
6
6
  "stenciljs",
@@ -44,6 +44,11 @@
44
44
  "require": "./loader/index.cjs",
45
45
  "types": "./loader/index.d.ts"
46
46
  },
47
+ "./hydrate": {
48
+ "types": "./hydrate/index.d.ts",
49
+ "import": "./hydrate/index.mjs",
50
+ "require": "./hydrate/index.js"
51
+ },
47
52
  "./react": {
48
53
  "import": "./dist-react/components.js",
49
54
  "types": "./dist-react/components.d.ts"
@@ -84,6 +89,7 @@
84
89
  "dist/",
85
90
  "dist-react/",
86
91
  "dist-vue/",
92
+ "hydrate/",
87
93
  "loader/"
88
94
  ],
89
95
  "devDependencies": {
@@ -1,3 +0,0 @@
1
- const e="chucao";const t={hotModuleReplacement:false,lazyLoad:true,prop:true,propChangeCallback:false,updatable:true};const n=()=>{};const r=":root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-accent-text:#06210f;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--typography-size-xs:0.68rem;--typography-size-sm:0.85rem;--typography-size-md:1rem;--typography-size-lg:1.25rem;--typography-size-xl:1.5rem;--typography-weight-regular:400;--typography-weight-semibold:600;--typography-weight-bold:700;--typography-tracking-badge:0.03em;--spacing-2xs:0.18rem;--spacing-xs:0.25rem;--spacing-sm:0.35rem;--spacing-md:0.5rem;--spacing-lg:0.6rem;--spacing-xl:0.8rem;--spacing-2xl:1rem;--spacing-3xl:1.25rem;--spacing-4xl:1.35rem;--spacing-5xl:1.5rem;--spacing-6xl:2rem;--spacing-shift:2px;--spacing-elevate:1px;--radius-sm:6px;--radius-md:8px;--radius-pill:999px;--border-width:1px;--border-accent-bar:3px;--shadow-focus-ring:0 0 0 3px rgba(45, 212, 191, 0.12);--shadow-card-hover:0 4px 20px rgba(45, 212, 191, 0.06);--effect-blur:10px;--duration-fast:150ms;--duration-normal:200ms;--easing-default:ease;--focus-outline-width:2px;--focus-outline-offset:2px;--opacity-disabled:0.5;--z-index-base:0;--z-index-dropdown:100;--z-index-modal:1000;--layout-max-width:68rem}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),\n radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--radius-sm)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:var(--spacing-md)}.ch-gap-md{gap:var(--spacing-2xl)}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}";function o(e,t,n){const r=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==r){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}return void 0}var s=(e,t)=>{var n;const r=t.t;const s=Object.entries((n=r.o)!=null?n:{});s.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const s=o(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(s){Object.defineProperty(e,n,{get(){return s.get.call(this)},set(e){s.set.call(this,e)},configurable:true,enumerable:true})}if(t.l.has(n)){e[n]=t.l.get(n)}else if(r!==void 0){e[n]=r}}}))};var l=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var i=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.i=e;if(n.t.u&512&&t.prop){s(e,n)}};var a=(e,t)=>{const n={u:0,$hostElement$:e,t,l:new Map,p:new Map};{n.v=new Promise((e=>n.h=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var c=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var u=new Map;var d=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const o=e.S;if(!o){return void 0}const s=u.get(o);if(s){return s[r]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((e=>{{u.set(o,e)}return e[r]}),(e=>{f(e,t.$hostElement$)}))};var p=new Map;var v="slot-fb{display:contents}slot-fb[hidden]{display:none}";var h=typeof window!=="undefined"?window:{};var m={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var g=e=>Promise.resolve(e);var y=(()=>{try{if(!h.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var b=y?(()=>!!h.document&&Object.getOwnPropertyDescriptor(h.document.adoptedStyleSheets,"length").writable)():false;var w=false;var x=[];var $=[];var S=(e,t)=>n=>{e.push(n);if(!w){w=true;if(t&&m.u&4){O(k)}else{m.raf(k)}}};var j=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var k=()=>{j(x);{j($);if(w=x.length>0){m.raf(k)}}};var O=e=>g().then(e);var C=S($,true);function M(e){if(!y)return void 0;const t=new CSSStyleSheet;t.replaceSync(e);return t}var E;function z(e){var t;const n={mode:"open"};const o=this.attachShadow(n);if(E===void 0)E=(t=M(r))!=null?t:null;if(E){if(b){o.adoptedStyleSheets.push(E)}else{o.adoptedStyleSheets=[...o.adoptedStyleSheets,E]}}else if(!y){const e=document.createElement("style");e.innerHTML=r;o.prepend(e)}}var L=(e,t="")=>{{return()=>{}}};var N=(e,t)=>{{return()=>{}}};function R(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var A=new WeakMap;var D=(e,t,n)=>{let r=p.get(e);if(y&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}p.set(e,r)};var F=(e,t,n)=>{var r,o,s;const l=U(t);const i=p.get(l);if(!h.document){return l}e=e.nodeType===11?e:h.document;if(i){if(typeof i==="string"){e=e.head||e;let n=A.get(e);let s;if(!n){A.set(e,n=new Set)}if(!n.has(l)){s=h.document.createElement("style");s.textContent=i;const a=(r=m.k)!=null?r:R(h.document);if(a!=null){s.setAttribute("nonce",a)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(y){const t=(o=e.defaultView)!=null?o:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(i);if(b){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=i+t.textContent}else{e.prepend(s)}}}else{e.append(s)}}if(t.u&1){e.insertBefore(s,null)}if(t.u&4){s.textContent+=v}if(n){n.add(l)}}}else{let t=A.get(e);if(!t){A.set(e,t=new Set)}if(!t.has(l)){const n=(s=e.defaultView)!=null?s:e.ownerDocument.defaultView;let r;if(i.constructor===n.CSSStyleSheet){r=i}else{r=new n.CSSStyleSheet;for(let e=0;e<i.cssRules.length;e++){r.insertRule(i.cssRules[e].cssText,e)}}if(b){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(l)}}}return l};var H=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const o=L("attachStyles",t.$);const s=F(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=s;n.classList.add(s+"-h")}o()};var U=(e,t)=>"sc-"+e.$;var P=e=>{e=typeof e;return e==="object"||e==="function"};var T=(e,t,...n)=>{if(typeof e==="string"){e=Ue(e)}let r=null;let o=null;let s=false;let l=false;const i=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!P(r)){r=String(r)}if(s&&l){i[i.length-1].O+=r}else{i.push(s?W(null,r):r)}l=s}}};a(n);if(t){if(t.key){o=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const c=W(e,null);c.C=t;if(i.length>0){c.M=i}{c.L=o}return c};var W=(e,t)=>{const n={u:0,N:e,O:t!=null?t:null,R:null,M:null};{n.C=null}{n.L=null}return n};var I={};var V=e=>e&&e.N===I;var q=(e,t,n)=>{if(e!=null&&!P(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var G=e=>{var t;return(t=l(e))==null?void 0:t.$hostElement$};var Y=(e,t,n)=>{const r=G(e);return{emit:e=>Z(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var Z=(e,t,n)=>{const r=m.ce(t,n);e.dispatchEvent(r);return r};var _=(e,t,n,r,o,s,i)=>{if(n===r){return}let a=c(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const o=J(n);let s=J(r);{t.remove(...o.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!o.includes(e))))}}else if(t==="key");else if(t==="ref"){if(r){ve(r,e)}}else if(!a&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(c(h,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const o=t.endsWith(K);t=t.replace(Q,"");if(n){m.rel(e,t,n,o)}if(r){m.ael(e,t,r,o)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=l(e);if(t&&t.t&&t.t.o){const e=t.t.o[n];if(e&&e[1]){o=e[1]}}}if(!o){o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(r==null||r===false){if(r!==false||e.getAttribute(o)===""){e.removeAttribute(o)}}else{e.setAttribute(o,r===true?"":r)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}else{const l=P(r);if((a||l&&r!==null)&&!o){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){a=false}else if(n==null||e[t]!==o){if(typeof e.__lookupSetter__(t)==="function"){e[t]=o}else{e.setAttribute(t,o)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!a||s&4||o)&&!l&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var B=/\s/;var J=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(B)};var K="Capture";var Q=new RegExp(K+"$");var X=(e,t,n,r)=>{const o=t.R.nodeType===11&&t.R.host?t.R.host:t.R;const s=e&&e.C||{};const l=t.C||{};{for(const e of ee(Object.keys(s))){if(!(e in l)){_(o,e,s[e],void 0,n,t.u)}}}for(const e of ee(Object.keys(l))){_(o,e,s[e],l[e],n,t.u)}};function ee(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var te;var ne=false;var re=false;var oe=[];var se=[];var le=(e,t,n)=>{const r=t.M[n];let o=0;let s;let l;if(r.O!=null){s=r.R=h.document.createTextNode(r.O)}else{if(!h.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}s=r.R=h.document.createElement(r.N);{X(null,r,re)}if(r.M){const t=r.N==="template"?s.content:s;for(o=0;o<r.M.length;++o){l=le(e,r,o);if(l){t.appendChild(l)}}}}s["s-hn"]=te;return s};var ie=e=>{m.u|=1;const t=e.closest(te.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){me(t,e,n!=null?n:null);e["s-sh"]=void 0}}}m.u&=-2};var ae=(e,t,n,r,o,s)=>{let l=e;let i;if(l.shadowRoot&&l.tagName===te){l=l.shadowRoot}if(n.N==="template"){l=l.content}for(;o<=s;++o){if(r[o]){i=le(null,n,o);if(i){r[o].R=i;me(l,i,t)}}}};var ce=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.R;pe(t);if(e){e.remove()}}}};var fe=(e,t,n,r,o=false)=>{let s=0;let l=0;let i=0;let a=0;let c=t.length-1;let f=t[0];let u=t[c];let d=r.length-1;let p=r[0];let v=r[d];let h;let m;const g=n.N==="template"?e.content:e;while(s<=c&&l<=d){if(f==null){f=t[++s]}else if(u==null){u=t[--c]}else if(p==null){p=r[++l]}else if(v==null){v=r[--d]}else if(ue(f,p,o)){de(f,p,o);f=t[++s];p=r[++l]}else if(ue(u,v,o)){de(u,v,o);u=t[--c];v=r[--d]}else if(ue(f,v,o)){de(f,v,o);me(g,f.R,u.R.nextSibling);f=t[++s];v=r[--d]}else if(ue(u,p,o)){de(u,p,o);me(g,u.R,f.R);u=t[--c];p=r[++l]}else{i=-1;{for(a=s;a<=c;++a){if(t[a]&&t[a].L!==null&&t[a].L===p.L){i=a;break}}}if(i>=0){m=t[i];if(m.N!==p.N){h=le(t&&t[l],n,i)}else{de(m,p,o);t[i]=void 0;h=m.R}p=r[++l]}else{h=le(t&&t[l],n,l);p=r[++l]}if(h){{me(f.R.parentNode,h,f.R)}}}}if(s>c){ae(e,r[d+1]==null?null:r[d+1].R,n,r,l,d)}else if(l>d){ce(t,s,c)}};var ue=(e,t,n=false)=>{if(e.N===t.N){if(!n){return e.L===t.L}if(n&&!e.L&&t.L){e.L=t.L}return true}return false};var de=(e,n,r=false)=>{const o=n.R=e.R;const s=e.M;const l=n.M;const i=n.N;const a=n.O;if(a==null){{if(i==="slot"&&!ne){if(e.A!==n.A){n.R["s-sn"]=n.A||"";ie(n.R.parentElement)}}X(e,n,re)}if(s!==null&&l!==null){fe(o,s,n,l,r)}else if(l!==null){if(e.O!==null){o.textContent=""}ae(o,null,n,l,0,l.length-1)}else if(!r&&t.updatable&&s!==null){ce(s,0,s.length-1)}else;}else if(e.O!==a){o.data=a}};var pe=e=>{{if(e.C&&e.C.ref){oe.push((()=>e.C.ref(null)))}e.M&&e.M.map(pe)}};var ve=(e,t)=>{{se.push((()=>e(t)))}};var he=()=>{{oe.forEach((e=>e()));oe.length=0;se.forEach((e=>e()));se.length=0}};var me=(e,t,n,r)=>{if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};var ge=(e,t,n=false)=>{const r=e.$hostElement$;const o=e.t;const s=e.D||W(null,null);const l=V(t);const i=l?t:T(null,null,t);te=r.tagName;if(n&&i.C){for(const e of Object.keys(i.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){i.C[e]=r[e]}}}i.N=null;i.u|=4;e.D=i;i.R=s.R=r.shadowRoot||r;ne=!!(o.u&1)&&!(o.u&128);de(s,i,n);he()};var ye=(e,t)=>{if(t&&!e.F&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.F=()=>{t["s-p"].splice(n-1,1);r()})))}};var be=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}ye(e,e.H);const n=()=>we(e,t);if(t){queueMicrotask((()=>{n()}));return}return C(n)};var we=(e,t)=>{const n=e.$hostElement$;const r=L("scheduleUpdate",e.t.$);const o=e.i;if(!o){throw new Error(`Can't render component <${n.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;if(t){{if(e.m.length){e.m.forEach((e=>e(n)))}}s=Ce(o,"componentWillLoad",void 0,n)}else{s=Ce(o,"componentWillUpdate",void 0,n)}s=xe(s,(()=>Ce(o,"componentWillRender",void 0,n)));r();return xe(s,(()=>Se(e,o,t)))};var xe=(e,t)=>$e(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var $e=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Se=async(e,t,n)=>{var r;const o=e.$hostElement$;const s=L("update",e.t.$);const l=o["s-rc"];if(n){H(e)}const i=L("render",e.t.$);{je(e,t,o,n)}if(l){l.map((e=>e()));o["s-rc"]=void 0}i();s();{const t=(r=o["s-p"])!=null?r:[];const n=()=>ke(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.u|=4;t.length=0}}};var je=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{ge(e,t,r)}}}}catch(t){f(t,e.$hostElement$)}return null};var ke=e=>{const t=e.t.$;const n=e.$hostElement$;const r=L("postUpdate",t);const o=e.i;const s=e.H;Ce(o,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;Ce(o,"componentDidLoad",void 0,n);r();{e.h(n);if(!s){Oe()}}}else{Ce(o,"componentDidUpdate",void 0,n);r()}{if(e.F){e.F();e.F=void 0}if(e.u&512){O((()=>be(e,false)))}e.u&=-517}};var Oe=t=>{O((()=>Z(h,"appload",{detail:{namespace:e}})))};var Ce=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e,r)}}return void 0};var Me=(e,t)=>l(e).l.get(t);var Ee=(e,t,n,r)=>{const o=l(e);if(!o){return}if(!o){throw new Error(`Couldn't find host element for "${r.$}" 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 s=o.l.get(t);const i=o.u;const a=o.i;n=q(n,r.o[t][0]);const c=Number.isNaN(s)&&Number.isNaN(n);const f=n!==s&&!c;if((!(i&8)||s===void 0)&&f){o.l.set(t,n);if(i&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,s,t);if(e===false&&!(i&16)){return}}if(!(i&16)){be(o,false)}}}};var ze=(e,n,r)=>{var s,i;const a=e.prototype;if(n.o||t.propChangeCallback){const c=Object.entries((s=n.o)!=null?s:{});c.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:s,set:i}=o(a,e)||{};if(s)n.o[e][0]|=2048;if(i)n.o[e][0]|=4096;if(r&1||!s){Object.defineProperty(a,e,{get(){{if((n.o[e][0]&2048)===0){return Me(this,e)}const t=l(this);const r=t?t.i:a;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(a,e,{set(o){const s=l(this);if(!s){return}if(i){const r=t&32?this[e]:s.$hostElement$[e];if(typeof r==="undefined"&&s.l.get(e)){o=s.l.get(e)}i.apply(this,[q(o,t)]);o=t&32?this[e]:s.$hostElement$[e];Ee(this,e,o,n);return}{if((r&1)===0||(n.o[e][0]&4096)===0){Ee(this,e,o,n);if(r&1&&!s.i){s.m.push((()=>{if(n.o[e][0]&4096&&s.i[e]!==s.l.get(e)){s.i[e]=o}}))}return}const l=()=>{const r=s.i[e];if(!s.l.get(e)&&r){s.l.set(e,r)}s.i[e]=q(o,t);Ee(this,e,s.i[e],n)};if(s.i){l()}else{s.m.push((()=>{l()}))}}}})}}));if(r&1){const r=new Map;a.attributeChangedCallback=function(e,o,s){m.jmp((()=>{var i;const f=r.get(e);const u=l(this);if(this.hasOwnProperty(f)&&t.lazyLoad){s=this[f];delete this[f]}if(a.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==s){return}else if(f==null){const t=u==null?void 0:u.u;if(u&&t&&!(t&8)&&s!==o){const r=u.i;const l=(i=n.U)==null?void 0:i[e];l==null?void 0:l.forEach((n=>{const[[l,i]]=Object.entries(n);if(r[l]!=null&&(t&128||i&1)){r[l].call(r,s,o,e)}}))}return}const d=c.find((([e])=>e===f));const p=d&&d[1][0]&4;const v=p&&s===null&&this[f]===void 0;if(p){s=s===null||s==="false"?false:true}const h=Object.getOwnPropertyDescriptor(a,f);if(!v&&s!=this[f]&&(!h.get||!!h.set)){this[f]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((i=n.U)!=null?i:{}),...c.filter((([e,t])=>t[0]&31)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var Le=async(e,n,r,o)=>{let s;try{if((n.u&32)===0){n.u|=32;const o=r.S;if(o){const t=d(r,n);if(t&&"then"in t){const e=N();s=await t;e()}else{s=t}if(!s){throw new Error(`Constructor for "${r.$}#${n.P}" was not found`)}if(!s.isProxied){ze(s,r,2);s.isProxied=true}const o=L("createInstance",r.$);{n.u|=8}try{new s(n)}catch(t){f(t,e)}{n.u&=-9}o();{Ne(n.i,e)}}else{s=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.u|=128))}if(s&&s.style){let e;if(typeof s.style==="string"){e=s.style}const n=U(r);if(!p.has(n)||t.hotModuleReplacement){const t=L("registerStyles",r.$);D(n,e,!!(r.u&1));t()}}}const o=n.H;const l=()=>be(n,true);if(o&&o["s-rc"]){o["s-rc"].push(l)}else{l()}}catch(t){f(t,e);if(n.F){n.F();n.F=void 0}if(n.h){n.h(e)}}};var Ne=(e,t)=>{{Ce(e,"connectedCallback",void 0,t)}};var Re=e=>{if((m.u&1)===0){const t=l(e);if(!t){return}const n=t.t;const r=L("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){ye(t,t.H=n);break}}}if(n.o){Object.entries(n.o).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{Le(e,t,n)}}else{if(t==null?void 0:t.i){Ne(t.i,e)}else if(t==null?void 0:t.v){t.v.then((()=>Ne(t.i,e)))}}r()}};var Ae=(e,t)=>{{Ce(e,"disconnectedCallback",void 0,t||e)}};var De=async e=>{if((m.u&1)===0){const t=l(e);if(t==null?void 0:t.i){Ae(t.i,e)}else if(t==null?void 0:t.v){t.v.then((()=>Ae(t.i,e)))}}if(A.has(e)){A.delete(e)}if(e.shadowRoot&&A.has(e.shadowRoot)){A.delete(e.shadowRoot)}};var Fe=(e,t={})=>{var n;if(!h.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=L();const o=[];const s=t.exclude||[];const i=h.customElements;const c=h.document.head;const f=c.querySelector("meta[charset]");const u=h.document.createElement("style");const d=[];let p;let v=true;Object.assign(m,t);m.j=new URL(t.resourcesUrl||"./",h.document.baseURI).href;e.map((e=>{e[1].map((t=>{const n={u:t[0],$:t[1],o:t[2],T:t[3]};{n.o=t[2]}const r=Ue(n.$);const c=class extends HTMLElement{["s-p"];["s-rc"];hasRegisteredEventListeners=false;constructor(e){super(e);e=this;a(e,n);if(n.u&1){{if(!e.shadowRoot){z.call(e,n)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=l(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(p){clearTimeout(p);p=null}if(v){d.push(this)}else{m.jmp((()=>Re(this)))}}disconnectedCallback(){m.jmp((()=>De(this)));m.raf((()=>{var e;const t=l(this);if(!t){return}const n=d.findIndex((e=>e===this));if(n>-1){d.splice(n,1)}if(((e=t==null?void 0:t.D)==null?void 0:e.R)instanceof Node&&!t.D.R.isConnected){delete t.D.R}}))}componentOnReady(){var e;return(e=l(this))==null?void 0:e.v}};n.S=e[0];if(!s.includes(r)&&!i.get(r)){o.push(r);i.define(r,ze(c,n,1))}}))}));if(o.length>0){if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=m.k)!=null?n:R(h.document);if(e!=null){u.setAttribute("nonce",e)}c.insertBefore(u,f?f.nextSibling:c.firstChild)}}v=false;if(d.length){d.map((e=>e.connectedCallback()))}else{{m.jmp((()=>p=setTimeout(Oe,30)))}}r()};var He=e=>m.k=e;function Ue(e){return e}export{I as H,Fe as b,Y as c,n as g,T as h,g as p,i as r,He as s};
3
- //# sourceMappingURL=p-B0AkgfgP.js.map