@usecapsule/core-components 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/{p-3fe3160e.entry.js → p-1fd4cb56.entry.js} +2 -2
- package/dist/capsule/{p-3fe3160e.entry.js.map → p-1fd4cb56.entry.js.map} +1 -1
- package/dist/cjs/cpsl-alert_17.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +1 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.css +1 -1
- package/dist/esm/cpsl-alert_17.entry.js +1 -1
- package/dist/esm/cpsl-alert_17.entry.js.map +1 -1
- package/package.json +2 -2
@@ -1,2 +1,2 @@
|
|
1
|
-
import{p as e,b as t}from"./p-9647dd63.js";export{s as setNonce}from"./p-9647dd63.js";import{g as l}from"./p-e1255160.js";const o=()=>{const t=import.meta.url;const s={};if(t!==""){s.resourcesUrl=new URL(".",t).href}return e(s)};o().then((async e=>{await l();return t([["p-62e7869a",[[1,"cpsl-col",{offset:[1],offsetXs:[1,"offset-xs"],offsetSm:[1,"offset-sm"],offsetMd:[1,"offset-md"],offsetLg:[1,"offset-lg"],offsetXl:[1,"offset-xl"],pull:[1],pullXs:[1,"pull-xs"],pullSm:[1,"pull-sm"],pullMd:[1,"pull-md"],pullLg:[1,"pull-lg"],pullXl:[1,"pull-xl"],push:[1],pushXs:[1,"push-xs"],pushSm:[1,"push-sm"],pushMd:[1,"push-md"],pushLg:[1,"push-lg"],pushXl:[1,"push-xl"],size:[1],sizeXs:[1,"size-xs"],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]},[[9,"resize","onResize"]]]]],["p-11048392",[[1,"cpsl-grid",{fixed:[4]}]]],["p-1dc07cd7",[[1,"cpsl-info-box"]]],["p-5c020abe",[[1,"cpsl-row"]]],["p-
|
1
|
+
import{p as e,b as t}from"./p-9647dd63.js";export{s as setNonce}from"./p-9647dd63.js";import{g as l}from"./p-e1255160.js";const o=()=>{const t=import.meta.url;const s={};if(t!==""){s.resourcesUrl=new URL(".",t).href}return e(s)};o().then((async e=>{await l();return t([["p-62e7869a",[[1,"cpsl-col",{offset:[1],offsetXs:[1,"offset-xs"],offsetSm:[1,"offset-sm"],offsetMd:[1,"offset-md"],offsetLg:[1,"offset-lg"],offsetXl:[1,"offset-xl"],pull:[1],pullXs:[1,"pull-xs"],pullSm:[1,"pull-sm"],pullMd:[1,"pull-md"],pullLg:[1,"pull-lg"],pullXl:[1,"pull-xl"],push:[1],pushXs:[1,"push-xs"],pushSm:[1,"push-sm"],pushMd:[1,"push-md"],pushLg:[1,"push-lg"],pushXl:[1,"push-xl"],size:[1],sizeXs:[1,"size-xs"],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]},[[9,"resize","onResize"]]]]],["p-11048392",[[1,"cpsl-grid",{fixed:[4]}]]],["p-1dc07cd7",[[1,"cpsl-info-box"]]],["p-5c020abe",[[1,"cpsl-row"]]],["p-1fd4cb56",[[1,"cpsl-code-input",{code:[1025],errorText:[1,"error-text"],helperText:[1,"helper-text"],length:[2],type:[1]}],[1,"cpsl-input",{autocapitalize:[1],autocomplete:[1],autocorrect:[1],noAutoDisable:[4,"no-auto-disable"],autofocus:[4],disabled:[4],enterkeyhint:[1],errorText:[1,"error-text"],helperText:[1,"helper-text"],inputmode:[1],label:[1],max:[8],maxlength:[2],min:[8],minlength:[2],multiple:[4],name:[1],pattern:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],startIconSrc:[1,"start-icon-src"],startIcon:[1,"start-icon"],step:[1],type:[1],value:[1025],hasFocus:[32]},null,{disabled:["handleDisable"]}],[1,"cpsl-slide-button",{endIcon:[1,"end-icon"],endText:[1,"end-text"],startIcon:[1,"start-icon"],startText:[1,"start-text"]}],[1,"cpsl-tile-button",{src:[1],icon:[1]}],[1,"cpsl-alert",{type:[1],icon:[1]}],[1,"cpsl-button",{disabled:[516],variant:[513]}],[1,"cpsl-divider"],[1,"cpsl-modal",{footerExpanded:[4,"footer-expanded"],transitionDuration:[2,"transition-duration"],noFooter:[32]},null,{footerExpanded:["toggleHeight"]}],[1,"cpsl-overlay",{open:[4],transitionDuration:[2,"transition-duration"]},null,{open:["toggleHeight"]}],[1,"cpsl-pill",{text:[1]}],[1,"cpsl-progress-indicator",{totalSteps:[2,"total-steps"],step:[2]}],[1,"cpsl-qr-code",{url:[1],imageSrc:[1,"image-src"],size:[2]}],[1,"cpsl-spinner",{size:[2],speed:[2]}],[1,"cpsl-tab",{selected:[4],tab:[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{fullWidth:[4,"full-width"],selectedTab:[1025,"selected-tab"],selectedTabRect:[32],loaded:[32]},null,{fullWidth:["updateSlider"]}],[1,"cpsl-text"],[1,"cpsl-icon",{src:[1],icon:[1]}]]]],e)}));
|
2
2
|
//# sourceMappingURL=capsule.esm.js.map
|
@@ -16,5 +16,5 @@ import{r as t,h as n,H as i,c as r,g as e}from"./p-9647dd63.js";const o=`<svg wi
|
|
16
16
|
* Subject to the terms at https://gsap.com/standard-license or for
|
17
17
|
* Club GSAP members, the agreement issued with that membership.
|
18
18
|
* @author: Jack Doyle, jack@greensock.com
|
19
|
-
*/var me,ye,Me,ke,Le,_e,Ze,Be=function t(){return typeof window!=="undefined"},He={},Ve=180/Math.PI,Se=Math.PI/180,Ae=Math.atan2,Fe=1e8,Ee=/([A-Z])/g,ze=/(left|right|width|margin|padding|x)/i,De=/[\s,\(]\S/,Oe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Pe=function t(n,i){return i.set(i.t,i.p,Math.round((i.s+i.c*n)*1e4)/1e4+i.u,i)},je=function t(n,i){return i.set(i.t,i.p,n===1?i.e:Math.round((i.s+i.c*n)*1e4)/1e4+i.u,i)},Ue=function t(n,i){return i.set(i.t,i.p,n?Math.round((i.s+i.c*n)*1e4)/1e4+i.u:i.b,i)},qe=function t(n,i){var r=i.s+i.c*n;i.set(i.t,i.p,~~(r+(r<0?-.5:.5))+i.u,i)},Ge=function t(n,i){return i.set(i.t,i.p,n?i.e:i.b,i)},Te=function t(n,i){return i.set(i.t,i.p,n!==1?i.b:i.e,i)},Re=function t(n,i,r){return n.style[i]=r},Ie=function t(n,i,r){return n.style.setProperty(i,r)},$e=function t(n,i,r){return n._gsap[i]=r},Ne=function t(n,i,r){return n._gsap.scaleX=n._gsap.scaleY=r},Xe=function t(n,i,r,e,o){var a=n._gsap;a.scaleX=a.scaleY=r;a.renderTransform(o,a)},Ye=function t(n,i,r,e,o){var a=n._gsap;a[i]=r;a.renderTransform(o,a)},Qe="transform",We=Qe+"Origin",Ke=function t(n,i){var r=this;var e=this.target,o=e.style,a=e._gsap;if(n in He&&o){this.tfm=this.tfm||{};if(n!=="transform"){n=Oe[n]||n;~n.indexOf(",")?n.split(",").forEach((function(t){return r.tfm[t]=wo(e,t)})):this.tfm[n]=a.x?a[n]:wo(e,n);n===We&&(this.tfm.zOrigin=a.zOrigin)}else{return Oe.transform.split(",").forEach((function(n){return t.call(r,n,i)}))}if(this.props.indexOf(Qe)>=0){return}if(a.svg){this.svgo=e.getAttribute("data-svg-origin");this.props.push(We,i,"")}n=Qe}(o||i)&&this.props.push(n,i,o[n])},Je=function t(n){if(n.translate){n.removeProperty("translate");n.removeProperty("scale");n.removeProperty("rotate")}},to=function t(){var n=this.props,i=this.target,r=i.style,e=i._gsap,o,a;for(o=0;o<n.length;o+=3){n[o+1]?i[n[o]]=n[o+2]:n[o+2]?r[n[o]]=n[o+2]:r.removeProperty(n[o].substr(0,2)==="--"?n[o]:n[o].replace(Ee,"-$1").toLowerCase())}if(this.tfm){for(a in this.tfm){e[a]=this.tfm[a]}if(e.svg){e.renderTransform();i.setAttribute("data-svg-origin",this.svgo||"")}o=Ze();if((!o||!o.isStart)&&!r[Qe]){Je(r);if(e.zOrigin&&r[We]){r[We]+=" "+e.zOrigin+"px";e.zOrigin=0;e.renderTransform()}e.uncache=1}}},no=function t(n,i){var r={target:n,props:[],revert:to,save:Ke};n._gsap||xe.core.getCache(n);i&&i.split(",").forEach((function(t){return r.save(t)}));return r},io,ro=function t(n,i){var r=ye.createElementNS?ye.createElementNS((i||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),n):ye.createElement(n);return r&&r.style?r:ye.createElement(n)},eo=function t(n,i,r){var e=getComputedStyle(n);return e[i]||e.getPropertyValue(i.replace(Ee,"-$1").toLowerCase())||e.getPropertyValue(i)||!r&&t(n,ao(i)||i,1)||""},oo="O,Moz,ms,Ms,Webkit".split(","),ao=function t(n,i,r){var e=i||Le,o=e.style,a=5;if(n in o&&!r){return n}n=n.charAt(0).toUpperCase()+n.substr(1);while(a--&&!(oo[a]+n in o)){}return a<0?null:(a===3?"ms":a>=0?oo[a]:"")+n},so=function t(){if(Be()&&window.document){me=window;ye=me.document;Me=ye.documentElement;Le=ro("div")||{style:{}};ro("div");Qe=ao(Qe);We=Qe+"Origin";Le.style.cssText="border-width:0;line-height:0;position:absolute;padding:0";io=!!ao("perspective");Ze=xe.core.reverting;ke=1}},co=function t(n){var i=ro("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,e=this.nextSibling,o=this.style.cssText,a;Me.appendChild(i);i.appendChild(this);this.style.display="block";if(n){try{a=this.getBBox();this._gsapBBox=this.getBBox;this.getBBox=t}catch(t){}}else if(this._gsapBBox){a=this._gsapBBox()}if(r){if(e){r.insertBefore(this,e)}else{r.appendChild(this)}}Me.removeChild(i);this.style.cssText=o;return a},lo=function t(n,i){var r=i.length;while(r--){if(n.hasAttribute(i[r])){return n.getAttribute(i[r])}}},ho=function t(n){var i;try{i=n.getBBox()}catch(t){i=co.call(n,true)}i&&(i.width||i.height)||n.getBBox===co||(i=co.call(n,true));return i&&!i.width&&!i.x&&!i.y?{x:+lo(n,["x","cx","x1"])||0,y:+lo(n,["y","cy","y1"])||0,width:0,height:0}:i},uo=function t(n){return!!(n.getCTM&&(!n.parentNode||n.ownerSVGElement)&&ho(n))},fo=function t(n,i){if(i){var r=n.style,e;if(i in He&&i!==We){i=Qe}if(r.removeProperty){e=i.substr(0,2);if(e==="ms"||i.substr(0,6)==="webkit"){i="-"+i}r.removeProperty(e==="--"?i:i.replace(Ee,"-$1").toLowerCase())}else{r.removeAttribute(i)}}},Co=function t(n,i,r,e,o,a){var s=new ae(n._pt,i,r,0,1,a?Te:Ge);n._pt=s;s.b=e;s.e=o;n._props.push(r);return s},po={deg:1,rad:1,turn:1},vo={grid:1,flex:1},go=function t(n,i,r,e){var o=parseFloat(r)||0,a=(r+"").trim().substr((o+"").length)||"px",s=Le.style,c=ze.test(i),l=n.tagName.toLowerCase()==="svg",h=(l?"client":"offset")+(c?"Width":"Height"),d=100,u=e==="px",f=e==="%",C,p,v,g;if(e===a||!o||po[e]||po[a]){return o}a!=="px"&&!u&&(o=t(n,i,r,"px"));g=n.getCTM&&uo(n);if((f||a==="%")&&(He[i]||~i.indexOf("adius"))){C=g?n.getBBox()[c?"width":"height"]:n[h];return Rn(f?o/C*d:o/100*C)}s[c?"width":"height"]=d+(u?a:e);p=~i.indexOf("adius")||e==="em"&&n.appendChild&&!l?n:n.parentNode;if(g){p=(n.ownerSVGElement||{}).parentNode}if(!p||p===ye||!p.appendChild){p=ye.body}v=p._gsap;if(v&&f&&v.width&&c&&v.time===pr.time&&!v.uncache){return Rn(o/v.width*d)}else{if(f&&(i==="height"||i==="width")){var w=n.style[i];n.style[i]=d+e;C=n[h];w?n.style[i]=w:fo(n,i)}else{(f||a==="%")&&!vo[eo(p,"display")]&&(s.position=eo(n,"position"));p===n&&(s.position="static");p.appendChild(Le);C=Le[h];p.removeChild(Le);s.position="absolute"}if(c&&f){v=qn(p);v.time=pr.time;v.width=p[h]}}return Rn(u?C*o/d:C&&o?d/C*o:0)},wo=function t(n,i,r,e){var o;ke||so();if(i in Oe&&i!=="transform"){i=Oe[i];if(~i.indexOf(",")){i=i.split(",")[0]}}if(He[i]&&i!=="transform"){o=Vo(n,e);o=i!=="transformOrigin"?o[i]:o.svg?o.origin:So(eo(n,We))+" "+o.zOrigin+"px"}else{o=n.style[i];if(!o||o==="auto"||e||~(o+"").indexOf("calc(")){o=Mo[i]&&Mo[i](n,i,r)||eo(n,i)||Gn(n,i)||(i==="opacity"?1:0)}}return r&&!~(o+"").trim().indexOf(" ")?go(n,i,o,r)+r:o},bo=function t(n,i,r,e){if(!r||r==="none"){var o=ao(i,n,1),a=o&&eo(n,o,1);if(a&&a!==r){i=o;r=a}else if(i==="borderColor"){r=eo(n,"borderTopColor")}}var s=new ae(this._pt,n.style,i,0,1,te),c=0,l=0,h,d,u,f,C,p,v,g,w,b,x,m;s.b=r;s.e=e;r+="";e+="";if(e==="auto"){p=n.style[i];n.style[i]=e;e=eo(n,i)||e;p?n.style[i]=p:fo(n,i)}h=[r,e];fr(h);r=h[0];e=h[1];u=r.match(dn)||[];m=e.match(dn)||[];if(m.length){while(d=dn.exec(e)){v=d[0];w=e.substring(c,d.index);if(C){C=(C+1)%5}else if(w.substr(-5)==="rgba("||w.substr(-5)==="hsla("){C=1}if(v!==(p=u[l++]||"")){f=parseFloat(p)||0;x=p.substr((f+"").length);v.charAt(1)==="="&&(v=$n(f,v)+x);g=parseFloat(v);b=v.substr((g+"").length);c=dn.lastIndex-b.length;if(!b){b=b||jt.units[i]||x;if(c===e.length){e+=b;s.e+=b}}if(x!==b){f=go(n,i,p,b)||0}s._pt={_next:s._pt,p:w||l===1?w:",",s:f,c:g-f,m:C&&C<4||i==="zIndex"?Math.round:0}}}s.c=c<e.length?e.substring(c,e.length):""}else{s.r=i==="display"&&e==="none"?Te:Ge}fn.test(e)&&(s.e=0);this._pt=s;return s},xo={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},mo=function t(n){var i=n.split(" "),r=i[0],e=i[1]||"50%";if(r==="top"||r==="bottom"||e==="left"||e==="right"){n=r;r=e;e=n}i[0]=xo[r]||r;i[1]=xo[e]||e;return i.join(" ")},yo=function t(n,i){if(i.tween&&i.tween._time===i.tween._dur){var r=i.t,e=r.style,o=i.u,a=r._gsap,s,c,l;if(o==="all"||o===true){e.cssText="";c=1}else{o=o.split(",");l=o.length;while(--l>-1){s=o[l];if(He[s]){c=1;s=s==="transformOrigin"?We:Qe}fo(r,s)}}if(c){fo(r,Qe);if(a){a.svg&&r.removeAttribute("transform");Vo(r,1);a.uncache=1;Je(e)}}}},Mo={clearProps:function t(n,i,r,e,o){if(o.data!=="isFromStart"){var a=n._pt=new ae(n._pt,i,r,0,0,yo);a.u=e;a.pr=-10;a.tween=o;n._props.push(r);return 1}}},ko=[1,0,0,1,0,0],Lo={},_o=function t(n){return n==="matrix(1, 0, 0, 1, 0, 0)"||n==="none"||!n},Zo=function t(n){var i=eo(n,Qe);return _o(i)?ko:i.substr(7).match(hn).map(Rn)},Bo=function t(n,i){var r=n._gsap||qn(n),e=n.style,o=Zo(n),a,s,c,l;if(r.svg&&n.getAttribute("transform")){c=n.transform.baseVal.consolidate().matrix;o=[c.a,c.b,c.c,c.d,c.e,c.f];return o.join(",")==="1,0,0,1,0,0"?ko:o}else if(o===ko&&!n.offsetParent&&n!==Me&&!r.svg){c=e.display;e.display="block";a=n.parentNode;if(!a||!n.offsetParent){l=1;s=n.nextElementSibling;Me.appendChild(n)}o=Zo(n);c?e.display=c:fo(n,"display");if(l){s?a.insertBefore(n,s):a?a.appendChild(n):Me.removeChild(n)}}return i&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o},Ho=function t(n,i,r,e,o,a){var s=n._gsap,c=o||Bo(n,true),l=s.xOrigin||0,h=s.yOrigin||0,d=s.xOffset||0,u=s.yOffset||0,f=c[0],C=c[1],p=c[2],v=c[3],g=c[4],w=c[5],b=i.split(" "),x=parseFloat(b[0])||0,m=parseFloat(b[1])||0,y,M,k,L;if(!r){y=ho(n);x=y.x+(~b[0].indexOf("%")?x/100*y.width:x);m=y.y+(~(b[1]||b[0]).indexOf("%")?m/100*y.height:m)}else if(c!==ko&&(M=f*v-C*p)){k=x*(v/M)+m*(-p/M)+(p*w-v*g)/M;L=x*(-C/M)+m*(f/M)-(f*w-C*g)/M;x=k;m=L}if(e||e!==false&&s.smooth){g=x-l;w=m-h;s.xOffset=d+(g*f+w*p)-g;s.yOffset=u+(g*C+w*v)-w}else{s.xOffset=s.yOffset=0}s.xOrigin=x;s.yOrigin=m;s.smooth=!!e;s.origin=i;s.originIsAbsolute=!!r;n.style[We]="0px 0px";if(a){Co(a,s,"xOrigin",l,x);Co(a,s,"yOrigin",h,m);Co(a,s,"xOffset",d,s.xOffset);Co(a,s,"yOffset",u,s.yOffset)}n.setAttribute("data-svg-origin",x+" "+m)},Vo=function t(n,i){var r=n._gsap||new Vr(n);if("x"in r&&!i&&!r.uncache){return r}var e=n.style,o=r.scaleX<0,a="px",s="deg",c=getComputedStyle(n),l=eo(n,We)||"0",h,d,u,f,C,p,v,g,w,b,x,m,y,M,k,L,_,Z,B,H,V,S,A,F,E,z,D,O,P,j,U,q;h=d=u=p=v=g=w=b=x=0;f=C=1;r.svg=!!(n.getCTM&&uo(n));if(c.translate){if(c.translate!=="none"||c.scale!=="none"||c.rotate!=="none"){e[Qe]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Qe]!=="none"?c[Qe]:"")}e.scale=e.rotate=e.translate="none"}M=Bo(n,r.svg);if(r.svg){if(r.uncache){E=n.getBBox();l=r.xOrigin-E.x+"px "+(r.yOrigin-E.y)+"px";F=""}else{F=!i&&n.getAttribute("data-svg-origin")}Ho(n,F||l,!!F||r.originIsAbsolute,r.smooth!==false,M)}m=r.xOrigin||0;y=r.yOrigin||0;if(M!==ko){Z=M[0];B=M[1];H=M[2];V=M[3];h=S=M[4];d=A=M[5];if(M.length===6){f=Math.sqrt(Z*Z+B*B);C=Math.sqrt(V*V+H*H);p=Z||B?Ae(B,Z)*Ve:0;w=H||V?Ae(H,V)*Ve+p:0;w&&(C*=Math.abs(Math.cos(w*Se)));if(r.svg){h-=m-(m*Z+y*H);d-=y-(m*B+y*V)}}else{q=M[6];j=M[7];D=M[8];O=M[9];P=M[10];U=M[11];h=M[12];d=M[13];u=M[14];k=Ae(q,P);v=k*Ve;if(k){L=Math.cos(-k);_=Math.sin(-k);F=S*L+D*_;E=A*L+O*_;z=q*L+P*_;D=S*-_+D*L;O=A*-_+O*L;P=q*-_+P*L;U=j*-_+U*L;S=F;A=E;q=z}k=Ae(-H,P);g=k*Ve;if(k){L=Math.cos(-k);_=Math.sin(-k);F=Z*L-D*_;E=B*L-O*_;z=H*L-P*_;U=V*_+U*L;Z=F;B=E;H=z}k=Ae(B,Z);p=k*Ve;if(k){L=Math.cos(k);_=Math.sin(k);F=Z*L+B*_;E=S*L+A*_;B=B*L-Z*_;A=A*L-S*_;Z=F;S=E}if(v&&Math.abs(v)+Math.abs(p)>359.9){v=p=0;g=180-g}f=Rn(Math.sqrt(Z*Z+B*B+H*H));C=Rn(Math.sqrt(A*A+q*q));k=Ae(S,A);w=Math.abs(k)>2e-4?k*Ve:0;x=U?1/(U<0?-U:U):0}if(r.svg){F=n.getAttribute("transform");r.forceCSS=n.setAttribute("transform","")||!_o(eo(n,Qe));F&&n.setAttribute("transform",F)}}if(Math.abs(w)>90&&Math.abs(w)<270){if(o){f*=-1;w+=p<=0?180:-180;p+=p<=0?180:-180}else{C*=-1;w+=w<=0?180:-180}}i=i||r.uncache;r.x=h-((r.xPercent=h&&(!i&&r.xPercent||(Math.round(n.offsetWidth/2)===Math.round(-h)?-50:0)))?n.offsetWidth*r.xPercent/100:0)+a;r.y=d-((r.yPercent=d&&(!i&&r.yPercent||(Math.round(n.offsetHeight/2)===Math.round(-d)?-50:0)))?n.offsetHeight*r.yPercent/100:0)+a;r.z=u+a;r.scaleX=Rn(f);r.scaleY=Rn(C);r.rotation=Rn(p)+s;r.rotationX=Rn(v)+s;r.rotationY=Rn(g)+s;r.skewX=w+s;r.skewY=b+s;r.transformPerspective=x+a;if(r.zOrigin=parseFloat(l.split(" ")[2])||!i&&r.zOrigin||0){e[We]=So(l)}r.xOffset=r.yOffset=0;r.force3D=jt.force3D;r.renderTransform=r.svg?Po:io?Oo:Fo;r.uncache=0;return r},So=function t(n){return(n=n.split(" "))[0]+" "+n[1]},Ao=function t(n,i,r){var e=Ai(i);return Rn(parseFloat(i)+parseFloat(go(n,"x",r+"px",e)))+e},Fo=function t(n,i){i.z="0px";i.rotationY=i.rotationX="0deg";i.force3D=0;Oo(n,i)},Eo="0deg",zo="0px",Do=") ",Oo=function t(n,i){var r=i||this,e=r.xPercent,o=r.yPercent,a=r.x,s=r.y,c=r.z,l=r.rotation,h=r.rotationY,d=r.rotationX,u=r.skewX,f=r.skewY,C=r.scaleX,p=r.scaleY,v=r.transformPerspective,g=r.force3D,w=r.target,b=r.zOrigin,x="",m=g==="auto"&&n&&n!==1||g===true;if(b&&(d!==Eo||h!==Eo)){var y=parseFloat(h)*Se,M=Math.sin(y),k=Math.cos(y),L;y=parseFloat(d)*Se;L=Math.cos(y);a=Ao(w,a,M*L*-b);s=Ao(w,s,-Math.sin(y)*-b);c=Ao(w,c,k*L*-b+b)}if(v!==zo){x+="perspective("+v+Do}if(e||o){x+="translate("+e+"%, "+o+"%) "}if(m||a!==zo||s!==zo||c!==zo){x+=c!==zo||m?"translate3d("+a+", "+s+", "+c+") ":"translate("+a+", "+s+Do}if(l!==Eo){x+="rotate("+l+Do}if(h!==Eo){x+="rotateY("+h+Do}if(d!==Eo){x+="rotateX("+d+Do}if(u!==Eo||f!==Eo){x+="skew("+u+", "+f+Do}if(C!==1||p!==1){x+="scale("+C+", "+p+Do}w.style[Qe]=x||"translate(0, 0)"},Po=function t(n,i){var r=i||this,e=r.xPercent,o=r.yPercent,a=r.x,s=r.y,c=r.rotation,l=r.skewX,h=r.skewY,d=r.scaleX,u=r.scaleY,f=r.target,C=r.xOrigin,p=r.yOrigin,v=r.xOffset,g=r.yOffset,w=r.forceCSS,b=parseFloat(a),x=parseFloat(s),m,y,M,k,L;c=parseFloat(c);l=parseFloat(l);h=parseFloat(h);if(h){h=parseFloat(h);l+=h;c+=h}if(c||l){c*=Se;l*=Se;m=Math.cos(c)*d;y=Math.sin(c)*d;M=Math.sin(c-l)*-u;k=Math.cos(c-l)*u;if(l){h*=Se;L=Math.tan(l-h);L=Math.sqrt(1+L*L);M*=L;k*=L;if(h){L=Math.tan(h);L=Math.sqrt(1+L*L);m*=L;y*=L}}m=Rn(m);y=Rn(y);M=Rn(M);k=Rn(k)}else{m=d;k=u;y=M=0}if(b&&!~(a+"").indexOf("px")||x&&!~(s+"").indexOf("px")){b=go(f,"x",a,"px");x=go(f,"y",s,"px")}if(C||p||v||g){b=Rn(b+C-(C*m+p*M)+v);x=Rn(x+p-(C*y+p*k)+g)}if(e||o){L=f.getBBox();b=Rn(b+e/100*L.width);x=Rn(x+o/100*L.height)}L="matrix("+m+","+y+","+M+","+k+","+b+","+x+")";f.setAttribute("transform",L);w&&(f.style[Qe]=L)},jo=function t(n,i,r,e,o){var a=360,s=Kt(o),c=parseFloat(o)*(s&&~o.indexOf("rad")?Ve:1),l=c-e,h=e+l+"deg",d,u;if(s){d=o.split("_")[1];if(d==="short"){l%=a;if(l!==l%(a/2)){l+=l<0?a:-a}}if(d==="cw"&&l<0){l=(l+a*Fe)%a-~~(l/a)*a}else if(d==="ccw"&&l>0){l=(l-a*Fe)%a-~~(l/a)*a}}n._pt=u=new ae(n._pt,i,r,e,l,je);u.e=h;u.u="deg";n._props.push(r);return u},Uo=function t(n,i){for(var r in i){n[r]=i[r]}return n},qo=function t(n,i,r){var e=Uo({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",a=r.style,s,c,l,h,d,u,f,C;if(e.svg){l=r.getAttribute("transform");r.setAttribute("transform","");a[Qe]=i;s=Vo(r,1);fo(r,Qe);r.setAttribute("transform",l)}else{l=getComputedStyle(r)[Qe];a[Qe]=i;s=Vo(r,1);a[Qe]=l}for(c in He){l=e[c];h=s[c];if(l!==h&&o.indexOf(c)<0){f=Ai(l);C=Ai(h);d=f!==C?go(r,c,l,C):parseFloat(l);u=parseFloat(h);n._pt=new ae(n._pt,s,c,d,u-d,Pe);n._pt.u=C||0;n._props.push(c)}}Uo(s,e)};Tn("padding,margin,Width,Radius",(function(t,n){var i="Top",r="Right",e="Bottom",o="Left",a=(n<3?[i,r,e,o]:[i+o,i+r,e+r,e+o]).map((function(i){return n<2?t+i:"border"+i+t}));Mo[n>1?"border"+t:t]=function(t,n,i,r,e){var o,s;if(arguments.length<4){o=a.map((function(n){return wo(t,n,i)}));s=o.join(" ");return s.split(o[0]).length===5?o[0]:s}o=(r+"").split(" ");s={};a.forEach((function(t,n){return s[t]=o[n]=o[n]||o[(n-1)/2|0]}));t.init(n,s,e)}}));var Go={name:"css",register:so,targetTest:function t(n){return n.style&&n.nodeType},init:function t(n,i,r,e,o){var a=this._props,s=n.style,c=r.vars.startAt,l,h,d,u,f,C,p,v,g,w,b,x,m,y,M,k;ke||so();this.styles=this.styles||no(n);k=this.styles.props;this.tween=r;for(p in i){if(p==="autoRound"){continue}h=i[p];if(zn[p]&&Dr(p,i,r,e,n,o)){continue}f=typeof h;C=Mo[p];if(f==="function"){h=h.call(r,e,n,o);f=typeof h}if(f==="string"&&~h.indexOf("random(")){h=Qi(h)}if(C){C(this,n,p,h,r)&&(M=1)}else if(p.substr(0,2)==="--"){l=(getComputedStyle(n).getPropertyValue(p)+"").trim();h+="";dr.lastIndex=0;if(!dr.test(l)){v=Ai(l);g=Ai(h)}g?v!==g&&(l=go(n,p,l,g)+g):v&&(h+=v);this.add(s,"setProperty",l,h,e,o,0,0,p);a.push(p);k.push(p,0,s[p])}else if(f!=="undefined"){if(c&&p in c){l=typeof c[p]==="function"?c[p].call(r,e,n,o):c[p];Kt(l)&&~l.indexOf("random(")&&(l=Qi(l));Ai(l+"")||l==="auto"||(l+=jt.units[p]||Ai(wo(n,p))||"");(l+"").charAt(1)==="="&&(l=wo(n,p))}else{l=wo(n,p)}u=parseFloat(l);w=f==="string"&&h.charAt(1)==="="&&h.substr(0,2);w&&(h=h.substr(2));d=parseFloat(h);if(p in Oe){if(p==="autoAlpha"){if(u===1&&wo(n,"visibility")==="hidden"&&d){u=0}k.push("visibility",0,s.visibility);Co(this,s,"visibility",u?"inherit":"hidden",d?"inherit":"hidden",!d)}if(p!=="scale"&&p!=="transform"){p=Oe[p];~p.indexOf(",")&&(p=p.split(",")[0])}}b=p in He;if(b){this.styles.save(p);if(!x){m=n._gsap;m.renderTransform&&!i.parseTransform||Vo(n,i.parseTransform);y=i.smoothOrigin!==false&&m.smooth;x=this._pt=new ae(this._pt,s,Qe,0,1,m.renderTransform,m,0,-1);x.dep=1}if(p==="scale"){this._pt=new ae(this._pt,m,"scaleY",m.scaleY,(w?$n(m.scaleY,w+d):d)-m.scaleY||0,Pe);this._pt.u=0;a.push("scaleY",p);p+="X"}else if(p==="transformOrigin"){k.push(We,0,s[We]);h=mo(h);if(m.svg){Ho(n,h,0,y,0,this)}else{g=parseFloat(h.split(" ")[2])||0;g!==m.zOrigin&&Co(this,m,"zOrigin",m.zOrigin,g);Co(this,s,p,So(l),So(h))}continue}else if(p==="svgOrigin"){Ho(n,h,1,y,0,this);continue}else if(p in Lo){jo(this,m,p,u,w?$n(u,w+h):h);continue}else if(p==="smoothOrigin"){Co(this,m,"smooth",m.smooth,h);continue}else if(p==="force3D"){m[p]=h;continue}else if(p==="transform"){qo(this,h,n);continue}}else if(!(p in s)){p=ao(p)||p}if(b||(d||d===0)&&(u||u===0)&&!De.test(h)&&p in s){v=(l+"").substr((u+"").length);d||(d=0);g=Ai(h)||(p in jt.units?jt.units[p]:v);v!==g&&(u=go(n,p,l,g));this._pt=new ae(this._pt,b?m:s,p,u,(w?$n(u,w+d):d)-u,!b&&(g==="px"||p==="zIndex")&&i.autoRound!==false?qe:Pe);this._pt.u=g||0;if(v!==g&&g!=="%"){this._pt.b=l;this._pt.r=Ue}}else if(!(p in s)){if(p in n){this.add(n,p,l||n[p],w?w+h:h,e,o)}else if(p!=="parseTransform"){kn(p,h);continue}}else{bo.call(this,n,p,l,w?w+h:h)}b||(p in s?k.push(p,0,s[p]):k.push(p,1,l||n[p]));a.push(p)}}M&&oe(this)},render:function t(n,i){if(i.tween._time||!Ze()){var r=i._pt;while(r){r.r(n,r.d);r=r._next}}else{i.styles.revert()}},get:wo,aliases:Oe,getSetter:function t(n,i,r){var e=Oe[i];e&&e.indexOf(",")<0&&(i=e);return i in He&&i!==We&&(n._gsap.x||wo(n,"x"))?r&&_e===r?i==="scale"?Ne:$e:(_e=r||{})&&(i==="scale"?Xe:Ye):n.style&&!nn(n.style[i])?Re:~i.indexOf("-")?Ie:Wr(n,i)},core:{_removeProperty:fo,_getMatrix:Bo}};xe.utils.checkPrefix=ao;xe.core.getStyleSaver=no;(function(t,n,i,r){var e=Tn(t+","+n+","+i,(function(t){He[t]=1}));Tn(n,(function(t){jt.units[t]="deg";Lo[t]=1}));Oe[e[13]]=t+","+n;Tn(r,(function(t){var n=t.split(":");Oe[n[1]]=e[n[0]]}))})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Tn("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){jt.units[t]="px"}));xe.registerPlugin(Go);var To=xe.registerPlugin(Go)||xe;const Ro=":host{--container-width:360px;--container-gap:16px;--container-border-radius:var(--cpsl-border-radius-modal);--container-border-width:1px;--container-border-color:var(--cpsl-color-modal-border);--container-background-color:var(--cpsl-color-modal-surface-footer);--container-padding-bottom:16px;--container-box-shadow:0px 2px 4px 0px var(--cpsl-color-alpha-black-8);--inner-container-background-color:var(--cpsl-color-modal-surface-main);--inner-container-border-radius:var(--cpsl-border-radius-modal);--inner-container-box-shadow:0px 1px 2px 0px var(--cpsl-color-alpha-black-8);--inner-container-padding-top:8px;--inner-container-padding-end:16px;--inner-container-padding-bottom:24px;--inner-container-padding-start:16px;--inner-container-margin-bottom:16px;display:inline-block}.modal-container{-webkit-padding-start:var(--container-padding-start);padding-inline-start:var(--container-padding-start);-webkit-padding-end:var(--container-padding-end);padding-inline-end:var(--container-padding-end);padding-top:var(--container-padding-top);padding-bottom:var(--container-padding-bottom);width:var(--container-width);display:flex;flex-direction:column;border:var(--container-border-width) solid var(--container-border-color);border-radius:var(--container-border-radius);box-shadow:var(--container-box-shadow);background-color:var(--container-background-color)}.modal-inner-container{-webkit-padding-start:var(--inner-container-padding-start);padding-inline-start:var(--inner-container-padding-start);-webkit-padding-end:var(--inner-container-padding-end);padding-inline-end:var(--inner-container-padding-end);padding-top:var(--inner-container-padding-top);padding-bottom:var(--inner-container-padding-bottom);margin-bottom:var(--inner-container-margin-bottom);display:flex;flex-direction:column;flex:1;border-radius:var(--inner-container-border-radius);box-shadow:var(--inner-container-box-shadow);background-color:var(--inner-container-background-color)}.expanded{height:0px;overflow:hidden}.modal-inner-container.no-footer{margin-bottom:0px;box-shadow:none}.modal-container.no-footer{padding-bottom:0px}";const Io=Ro;const $o=class{constructor(n){t(this,n);this.noFooter=undefined;this.footerExpanded=undefined;this.transitionDuration=.5}toggleHeight(){this.footerExpanded?this.expandFooterTl.play():this.expandFooterTl.reverse()}componentDidLoad(){if(!Boolean(this.el.querySelector('[slot="footer"]'))){this.noFooter=true}this.expandFooterTl=To.timeline({reversed:true,paused:true}).to(this.bodyEl,{height:"0px",duration:this.transitionDuration}).to(this.footerEl,{height:"0px",duration:this.transitionDuration},"<").to(this.footerExpandedEl,{height:"auto",duration:this.transitionDuration},"<").to(this.headerEl,{height:"0px",duration:this.transitionDuration},"<").to(this.headerExpandedEl,{height:"auto",duration:this.transitionDuration},"<")}get bodyEl(){return this.el.shadowRoot.getElementById("modal-body")}get footerEl(){return this.el.shadowRoot.getElementById("modal-footer")}get footerExpandedEl(){return this.el.shadowRoot.getElementById("modal-footer-expanded")}get headerEl(){return this.el.shadowRoot.getElementById("modal-header")}get headerExpandedEl(){return this.el.shadowRoot.getElementById("modal-header-expanded")}render(){return n(i,{key:"aa5c26013878e80fe58a2826d4cae04db88dace3"},n("div",{key:"5deda08b40a3e034e1c1b412eb7ab0c7780b4f53",class:{"modal-container":true,"no-footer":this.noFooter}},n("div",{key:"6f5340b60ded651410a3eec83ecca3ee0e24f643",class:{"modal-inner-container":true,"no-footer":this.noFooter}},n("div",{key:"632ecd039ac402971cd3f15efb30fc527402f0cd",id:"modal-header",class:"no-overflow"},n("slot",{key:"af0d35f477ff94d7f65b3bd81b845819ba8c8439",name:"header"})),n("div",{key:"6116bba4b65cebb91fd283106a58915216e5d828",id:"modal-header-expanded",class:{expanded:true,"no-overflow":true}},n("slot",{key:"d7cd88d70a15e2a02bc590422913c481f0b61a2e",name:"footerExpandedHeader"})),n("div",{key:"72e1ede4c4754526c83f2723d322717d8888bf6d",id:"modal-body",class:"no-overflow"},n("slot",{key:"66c63bb06b6b4ccce422855ecb483ab42ca6e27e",name:"body"}))),n("div",{key:"fec82340b95072a6d3167fda064082005f760661",id:"modal-footer",class:"no-overflow"},n("slot",{key:"bcd91a6cf6ef753e4b0fbb163e93984a9afa15ca",name:"footer"})),n("div",{key:"a39a058058adedb6494c307729823467d6c45df7",id:"modal-footer-expanded",class:{expanded:true,"no-overflow":true}},n("slot",{key:"d5f0d390de50e0706358bd033655047c742298e2",name:"footerExpandedFooter"}))))}get el(){return e(this)}static get watchers(){return{footerExpanded:["toggleHeight"]}}};$o.style=Io;const No=":host{position:fixed;width:100%;height:100%;top:0;left:0;z-index:100000;opacity:0%;display:none;background-color:var(--cpsl-color-alpha-black-50)}";const Xo=No;const Yo=class{constructor(n){t(this,n);this.open=undefined;this.transitionDuration=.5}toggleHeight(){this.open?this.showTl.play():this.showTl.reverse();if(this.open){document.documentElement.style.overflow="hidden"}else{setTimeout((()=>{document.documentElement.style.overflow="auto"}),this.transitionDuration*1e3)}}componentDidLoad(){this.showTl=To.timeline({reversed:true,paused:true}).to(this.el,{display:"block",duration:this.transitionDuration}).to(this.el,{opacity:"100%",duration:this.transitionDuration},"<");if(this.open){this.showTl.play();document.documentElement.style.overflow="hidden"}}render(){return n(i,{key:"55a5b7f277d010d63f1e991d210b038c393fb387"},n("slot",{key:"59957e5f35e8b007ba32177672870d7240ca501c"}))}get el(){return e(this)}static get watchers(){return{open:["toggleHeight"]}}};Yo.style=Xo;const Qo=":host{--pill-text-color:var(--cpsl-color-text-inverted);--pill-text-size:clamp(10px, 0.625rem, 15px);--pill-text-line-height:100%;--pill-container-height:18px;--pill-container-background-color:var(--cpsl-color-foreground-secondary);--pill-container-border-color:var(--cpsl-color-foreground-primary);--pill-container-padding-start:8px;--pill-container-padding-end:8px;--pill-container-border-radius:var(--cpsl-border-radius-pill);font-family:var(--cpsl-font-family, inherit);display:inline-block}.pill-container{-webkit-padding-start:var(--pill-container-padding-start);padding-inline-start:var(--pill-container-padding-start);-webkit-padding-end:var(--pill-container-padding-end);padding-inline-end:var(--pill-container-padding-end);padding-top:var(--pill-container-padding-top);padding-bottom:var(--pill-container-padding-bottom);display:flex;justify-content:center;align-items:center;box-sizing:border-box;height:var(--pill-container-height);background-color:var(--pill-container-background-color);border:1px solid;border-color:var(--pill-container-border-color);border-radius:var(--pill-container-border-radius);color:var(--pill-text-color);font-size:var(--pill-text-size);line-height:var(--pill-text-line-height)}.pill-container span{display:inline-block}";const Wo=Qo;const Ko=class{constructor(n){t(this,n);this.text=undefined}render(){return n(i,{key:"d82e8cf09017e22aab2c4e4d42295310116aad3c"},n("div",{key:"f7ec5045fdcf0d69873f5ddbfc46976a8c3bbacb",class:"pill-container"},n("span",{key:"d715965cf771800ad57f63509865d47a7344da95"},this.text)))}};Ko.style=Wo;const Jo=":host{--step-height:3px;--step-active-color:var(--cpsl-color-foreground-primary);--step-next-color:var(--cpsl-color-foreground-quarternary);--step-previous-color:var(--cpsl-color-foreground-ternary);display:flex;align-items:center;justify-content:center;gap:4px}.step{background-color:var(--step-next-color);border-radius:var(--step-border-radius, calc(var(--step-height) * 2));height:var(--step-height);flex:1;transition:all 0.5s}.previous{background-color:var(--step-previous-color)}.active{background-color:var(--step-active-color);flex:2}";const ta=Jo;const na=class{constructor(n){t(this,n);this.totalSteps=undefined;this.step=undefined}render(){const t=new Array(this.totalSteps).fill(0).map(((t,n)=>{let i={active:false,previous:false};if(n===this.step){i.active=true}else if(n<this.step){i.previous=true}return i}));return n(i,null,t.map((t=>n("div",{class:{step:true,active:t.active,previous:t.previous}}))))}};na.style=ta;function ia(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}var ra={exports:{}};(function(t,n){!function(n,i){t.exports=i()}(self,(function(){return(()=>{var t={192:(t,n)=>{var i,r,e=function(){var t=function(t,n){var i=t,r=a[n],e=null,o=0,c=null,v=[],g={},b=function(t,n){e=function(t){for(var n=new Array(t),i=0;i<t;i+=1){n[i]=new Array(t);for(var r=0;r<t;r+=1)n[i][r]=null}return n}(o=4*i+17),x(0,0),x(o-7,0),x(0,o-7),y(),m(),k(t,n),i>=7&&M(t),null==c&&(c=_(i,r,v)),L(c,n)},x=function(t,n){for(var i=-1;i<=7;i+=1)if(!(t+i<=-1||o<=t+i))for(var r=-1;r<=7;r+=1)n+r<=-1||o<=n+r||(e[t+i][n+r]=0<=i&&i<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=r&&r<=4)},m=function(){for(var t=8;t<o-8;t+=1)null==e[t][6]&&(e[t][6]=t%2==0);for(var n=8;n<o-8;n+=1)null==e[6][n]&&(e[6][n]=n%2==0)},y=function(){for(var t=s.getPatternPosition(i),n=0;n<t.length;n+=1)for(var r=0;r<t.length;r+=1){var o=t[n],a=t[r];if(null==e[o][a])for(var c=-2;c<=2;c+=1)for(var l=-2;l<=2;l+=1)e[o+c][a+l]=-2==c||2==c||-2==l||2==l||0==c&&0==l}},M=function(t){for(var n=s.getBCHTypeNumber(i),r=0;r<18;r+=1){var a=!t&&1==(n>>r&1);e[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!t&&1==(n>>r&1),e[r%3+o-8-3][Math.floor(r/3)]=a},k=function(t,n){for(var i=r<<3|n,a=s.getBCHTypeInfo(i),c=0;c<15;c+=1){var l=!t&&1==(a>>c&1);c<6?e[c][8]=l:c<8?e[c+1][8]=l:e[o-15+c][8]=l}for(c=0;c<15;c+=1)l=!t&&1==(a>>c&1),c<8?e[8][o-c-1]=l:c<9?e[8][15-c-1+1]=l:e[8][15-c-1]=l;e[o-8][8]=!t},L=function(t,n){for(var i=-1,r=o-1,a=7,c=0,l=s.getMaskFunction(n),h=o-1;h>0;h-=2)for(6==h&&(h-=1);;){for(var d=0;d<2;d+=1)if(null==e[r][h-d]){var u=!1;c<t.length&&(u=1==(t[c]>>>a&1)),l(r,h-d)&&(u=!u),e[r][h-d]=u,-1==(a-=1)&&(c+=1,a=7)}if((r+=i)<0||o<=r){r-=i,i=-i;break}}},_=function(t,n,i){for(var r=h.getRSBlocks(t,n),e=d(),o=0;o<i.length;o+=1){var a=i[o];e.put(a.getMode(),4),e.put(a.getLength(),s.getLengthInBits(a.getMode(),t)),a.write(e)}var c=0;for(o=0;o<r.length;o+=1)c+=r[o].dataCount;if(e.getLengthInBits()>8*c)throw"code length overflow. ("+e.getLengthInBits()+">"+8*c+")";for(e.getLengthInBits()+4<=8*c&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(!1);for(;!(e.getLengthInBits()>=8*c||(e.put(236,8),e.getLengthInBits()>=8*c));)e.put(17,8);return function(t,n){for(var i=0,r=0,e=0,o=new Array(n.length),a=new Array(n.length),c=0;c<n.length;c+=1){var h=n[c].dataCount,d=n[c].totalCount-h;r=Math.max(r,h),e=Math.max(e,d),o[c]=new Array(h);for(var u=0;u<o[c].length;u+=1)o[c][u]=255&t.getBuffer()[u+i];i+=h;var f=s.getErrorCorrectPolynomial(d),C=l(o[c],f.getLength()-1).mod(f);for(a[c]=new Array(f.getLength()-1),u=0;u<a[c].length;u+=1){var p=u+C.getLength()-a[c].length;a[c][u]=p>=0?C.getAt(p):0}}var v=0;for(u=0;u<n.length;u+=1)v+=n[u].totalCount;var g=new Array(v),w=0;for(u=0;u<r;u+=1)for(c=0;c<n.length;c+=1)u<o[c].length&&(g[w]=o[c][u],w+=1);for(u=0;u<e;u+=1)for(c=0;c<n.length;c+=1)u<a[c].length&&(g[w]=a[c][u],w+=1);return g}(e,r)};g.addData=function(t,n){var i=null;switch(n=n||"Byte"){case"Numeric":i=u(t);break;case"Alphanumeric":i=f(t);break;case"Byte":i=C(t);break;case"Kanji":i=p(t);break;default:throw"mode:"+n}v.push(i),c=null},g.isDark=function(t,n){if(t<0||o<=t||n<0||o<=n)throw t+","+n;return e[t][n]},g.getModuleCount=function(){return o},g.make=function(){if(i<1){for(var t=1;t<40;t++){for(var n=h.getRSBlocks(t,r),e=d(),o=0;o<v.length;o++){var a=v[o];e.put(a.getMode(),4),e.put(a.getLength(),s.getLengthInBits(a.getMode(),t)),a.write(e)}var c=0;for(o=0;o<n.length;o++)c+=n[o].dataCount;if(e.getLengthInBits()<=8*c)break}i=t}b(!1,function(){for(var t=0,n=0,i=0;i<8;i+=1){b(!0,i);var r=s.getLostPoint(g);(0==i||t>r)&&(t=r,n=i)}return n}())},g.createTableTag=function(t,n){t=t||2;var i="";i+='<table style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: "+(n=void 0===n?4*t:n)+"px;",i+='">',i+="<tbody>";for(var r=0;r<g.getModuleCount();r+=1){i+="<tr>";for(var e=0;e<g.getModuleCount();e+=1)i+='<td style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: 0px;",i+=" width: "+t+"px;",i+=" height: "+t+"px;",i+=" background-color: ",i+=g.isDark(r,e)?"#000000":"#ffffff",i+=";",i+='"/>';i+="</tr>"}return(i+="</tbody>")+"</table>"},g.createSvgTag=function(t,n,i,r){var e={};"object"==typeof arguments[0]&&(t=(e=arguments[0]).cellSize,n=e.margin,i=e.alt,r=e.title),t=t||2,n=void 0===n?4*t:n,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,c,l=g.getModuleCount()*t+2*n,h="";for(c="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",h+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',h+=e.scalable?"":' width="'+l+'px" height="'+l+'px"',h+=' viewBox="0 0 '+l+" "+l+'" ',h+=' preserveAspectRatio="xMinYMin meet"',h+=r.text||i.text?' role="img" aria-labelledby="'+Z([r.id,i.id].join(" ").trim())+'"':"",h+=">",h+=r.text?'<title id="'+Z(r.id)+'">'+Z(r.text)+"</title>":"",h+=i.text?'<description id="'+Z(i.id)+'">'+Z(i.text)+"</description>":"",h+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',h+='<path d="',a=0;a<g.getModuleCount();a+=1)for(s=a*t+n,o=0;o<g.getModuleCount();o+=1)g.isDark(a,o)&&(h+="M"+(o*t+n)+","+s+c);return(h+='" stroke="transparent" fill="black"/>')+"</svg>"},g.createDataURL=function(t,n){t=t||2,n=void 0===n?4*t:n;var i=g.getModuleCount()*t+2*n,r=n,e=i-n;return w(i,i,(function(n,i){if(r<=n&&n<e&&r<=i&&i<e){var o=Math.floor((n-r)/t),a=Math.floor((i-r)/t);return g.isDark(a,o)?0:1}return 1}))},g.createImgTag=function(t,n,i){t=t||2,n=void 0===n?4*t:n;var r=g.getModuleCount()*t+2*n,e="";return e+="<img",e+=' src="',e+=g.createDataURL(t,n),e+='"',e+=' width="',e+=r,e+='"',e+=' height="',e+=r,e+='"',i&&(e+=' alt="',e+=Z(i),e+='"'),e+"/>"};var Z=function(t){for(var n="",i=0;i<t.length;i+=1){var r=t.charAt(i);switch(r){case"<":n+="<";break;case">":n+=">";break;case"&":n+="&";break;case'"':n+=""";break;default:n+=r}}return n};return g.createASCII=function(t,n){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var n,i,r,e,o,a=1*g.getModuleCount()+2*t,s=t,c=a-t,l={"██":"█","█ ":"▀"," █":"▄"," ":" "},h={"██":"▀","█ ":"▀"," █":" "," ":" "},d="";for(n=0;n<a;n+=2){for(r=Math.floor((n-s)/1),e=Math.floor((n+1-s)/1),i=0;i<a;i+=1)o="█",s<=i&&i<c&&s<=n&&n<c&&g.isDark(r,Math.floor((i-s)/1))&&(o=" "),s<=i&&i<c&&s<=n+1&&n+1<c&&g.isDark(e,Math.floor((i-s)/1))?o+=" ":o+="█",d+=t<1&&n+1>=c?h[o]:l[o];d+="\n"}return a%2&&t>0?d.substring(0,d.length-a-1)+Array(a+1).join("▀"):d.substring(0,d.length-1)}(n);t-=1,n=void 0===n?2*t:n;var i,r,e,o,a=g.getModuleCount()*t+2*n,s=n,c=a-n,l=Array(t+1).join("██"),h=Array(t+1).join(" "),d="",u="";for(i=0;i<a;i+=1){for(e=Math.floor((i-s)/t),u="",r=0;r<a;r+=1)o=1,s<=r&&r<c&&s<=i&&i<c&&g.isDark(e,Math.floor((r-s)/t))&&(o=0),u+=o?l:h;for(e=0;e<t;e+=1)d+=u+"\n"}return d.substring(0,d.length-1)},g.renderTo2dContext=function(t,n){n=n||2;for(var i=g.getModuleCount(),r=0;r<i;r++)for(var e=0;e<i;e++)t.fillStyle=g.isDark(r,e)?"black":"white",t.fillRect(r*n,e*n,n,n)},g};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var n=[],i=0;i<t.length;i+=1){var r=t.charCodeAt(i);n.push(255&r)}return n}}).default,t.createStringToBytes=function(t,n){var i=function(){for(var i=g(t),r=function(){var t=i.read();if(-1==t)throw"eof";return t},e=0,o={};;){var a=i.read();if(-1==a)break;var s=r(),c=r()<<8|r();o[String.fromCharCode(a<<8|s)]=c,e+=1}if(e!=n)throw e+" != "+n;return o}(),r="?".charCodeAt(0);return function(t){for(var n=[],e=0;e<t.length;e+=1){var o=t.charCodeAt(e);if(o<128)n.push(o);else{var a=i[t.charAt(e)];"number"==typeof a?(255&a)==a?n.push(a):(n.push(a>>>8),n.push(255&a)):n.push(r)}}return n}};var n,i,r,e,o,a={L:1,M:0,Q:3,H:2},s=(n=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,r=7973,o=function(t){for(var n=0;0!=t;)n+=1,t>>>=1;return n},(e={}).getBCHTypeInfo=function(t){for(var n=t<<10;o(n)-o(i)>=0;)n^=i<<o(n)-o(i);return 21522^(t<<10|n)},e.getBCHTypeNumber=function(t){for(var n=t<<12;o(n)-o(r)>=0;)n^=r<<o(n)-o(r);return t<<12|n},e.getPatternPosition=function(t){return n[t-1]},e.getMaskFunction=function(t){switch(t){case 0:return function(t,n){return(t+n)%2==0};case 1:return function(t,n){return t%2==0};case 2:return function(t,n){return n%3==0};case 3:return function(t,n){return(t+n)%3==0};case 4:return function(t,n){return(Math.floor(t/2)+Math.floor(n/3))%2==0};case 5:return function(t,n){return t*n%2+t*n%3==0};case 6:return function(t,n){return(t*n%2+t*n%3)%2==0};case 7:return function(t,n){return(t*n%3+(t+n)%2)%2==0};default:throw"bad maskPattern:"+t}},e.getErrorCorrectPolynomial=function(t){for(var n=l([1],0),i=0;i<t;i+=1)n=n.multiply(l([1,c.gexp(i)],0));return n},e.getLengthInBits=function(t,n){if(1<=n&&n<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(n<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(n<41))throw"type:"+n;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},e.getLostPoint=function(t){for(var n=t.getModuleCount(),i=0,r=0;r<n;r+=1)for(var e=0;e<n;e+=1){for(var o=0,a=t.isDark(r,e),s=-1;s<=1;s+=1)if(!(r+s<0||n<=r+s))for(var c=-1;c<=1;c+=1)e+c<0||n<=e+c||0==s&&0==c||a==t.isDark(r+s,e+c)&&(o+=1);o>5&&(i+=3+o-5)}for(r=0;r<n-1;r+=1)for(e=0;e<n-1;e+=1){var l=0;t.isDark(r,e)&&(l+=1),t.isDark(r+1,e)&&(l+=1),t.isDark(r,e+1)&&(l+=1),t.isDark(r+1,e+1)&&(l+=1),0!=l&&4!=l||(i+=3)}for(r=0;r<n;r+=1)for(e=0;e<n-6;e+=1)t.isDark(r,e)&&!t.isDark(r,e+1)&&t.isDark(r,e+2)&&t.isDark(r,e+3)&&t.isDark(r,e+4)&&!t.isDark(r,e+5)&&t.isDark(r,e+6)&&(i+=40);for(e=0;e<n;e+=1)for(r=0;r<n-6;r+=1)t.isDark(r,e)&&!t.isDark(r+1,e)&&t.isDark(r+2,e)&&t.isDark(r+3,e)&&t.isDark(r+4,e)&&!t.isDark(r+5,e)&&t.isDark(r+6,e)&&(i+=40);var h=0;for(e=0;e<n;e+=1)for(r=0;r<n;r+=1)t.isDark(r,e)&&(h+=1);return i+Math.abs(100*h/n/n-50)/5*10},e),c=function(){for(var t=new Array(256),n=new Array(256),i=0;i<8;i+=1)t[i]=1<<i;for(i=8;i<256;i+=1)t[i]=t[i-4]^t[i-5]^t[i-6]^t[i-8];for(i=0;i<255;i+=1)n[t[i]]=i;return{glog:function(t){if(t<1)throw"glog("+t+")";return n[t]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return t[n]}}}();function l(t,n){if(void 0===t.length)throw t.length+"/"+n;var i=function(){for(var i=0;i<t.length&&0==t[i];)i+=1;for(var r=new Array(t.length-i+n),e=0;e<t.length-i;e+=1)r[e]=t[e+i];return r}(),r={getAt:function(t){return i[t]},getLength:function(){return i.length},multiply:function(t){for(var n=new Array(r.getLength()+t.getLength()-1),i=0;i<r.getLength();i+=1)for(var e=0;e<t.getLength();e+=1)n[i+e]^=c.gexp(c.glog(r.getAt(i))+c.glog(t.getAt(e)));return l(n,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var n=c.glog(r.getAt(0))-c.glog(t.getAt(0)),i=new Array(r.getLength()),e=0;e<r.getLength();e+=1)i[e]=r.getAt(e);for(e=0;e<t.getLength();e+=1)i[e]^=c.gexp(c.glog(t.getAt(e))+n);return l(i,0).mod(t)}};return r}var h=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],n=function(t,n){var i={};return i.totalCount=t,i.dataCount=n,i},i={getRSBlocks:function(i,r){var e=function(n,i){switch(i){case a.L:return t[4*(n-1)+0];case a.M:return t[4*(n-1)+1];case a.Q:return t[4*(n-1)+2];case a.H:return t[4*(n-1)+3];default:return}}(i,r);if(void 0===e)throw"bad rs block @ typeNumber:"+i+"/errorCorrectionLevel:"+r;for(var o=e.length/3,s=[],c=0;c<o;c+=1)for(var l=e[3*c+0],h=e[3*c+1],d=e[3*c+2],u=0;u<l;u+=1)s.push(n(h,d));return s}};return i}(),d=function(){var t=[],n=0,i={getBuffer:function(){return t},getAt:function(n){var i=Math.floor(n/8);return 1==(t[i]>>>7-n%8&1)},put:function(t,n){for(var r=0;r<n;r+=1)i.putBit(1==(t>>>n-r-1&1))},getLengthInBits:function(){return n},putBit:function(i){var r=Math.floor(n/8);t.length<=r&&t.push(0),i&&(t[r]|=128>>>n%8),n+=1}};return i},u=function(t){var n=t,i={getMode:function(){return 1},getLength:function(t){return n.length},write:function(t){for(var i=n,e=0;e+2<i.length;)t.put(r(i.substring(e,e+3)),10),e+=3;e<i.length&&(i.length-e==1?t.put(r(i.substring(e,e+1)),4):i.length-e==2&&t.put(r(i.substring(e,e+2)),7))}},r=function(t){for(var n=0,i=0;i<t.length;i+=1)n=10*n+e(t.charAt(i));return n},e=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return i},f=function(t){var n=t,i={getMode:function(){return 2},getLength:function(t){return n.length},write:function(t){for(var i=n,e=0;e+1<i.length;)t.put(45*r(i.charAt(e))+r(i.charAt(e+1)),11),e+=2;e<i.length&&t.put(r(i.charAt(e)),6)}},r=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return i},C=function(n){var i=t.stringToBytes(n);return{getMode:function(){return 4},getLength:function(t){return i.length},write:function(t){for(var n=0;n<i.length;n+=1)t.put(i[n],8)}}},p=function(n){var i=t.stringToBytesFuncs.SJIS;if(!i)throw"sjis not supported.";!function(t,n){var r=i("友");if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=i(n);return{getMode:function(){return 8},getLength:function(t){return~~(r.length/2)},write:function(t){for(var n=r,i=0;i+1<n.length;){var e=(255&n[i])<<8|255&n[i+1];if(33088<=e&&e<=40956)e-=33088;else{if(!(57408<=e&&e<=60351))throw"illegal char at "+(i+1)+"/"+e;e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13),i+=2}if(i<n.length)throw"illegal char at "+(i+1)}}},v=function(){var t=[],n={writeByte:function(n){t.push(255&n)},writeShort:function(t){n.writeByte(t),n.writeByte(t>>>8)},writeBytes:function(t,i,r){i=i||0,r=r||t.length;for(var e=0;e<r;e+=1)n.writeByte(t[e+i])},writeString:function(t){for(var i=0;i<t.length;i+=1)n.writeByte(t.charCodeAt(i))},toByteArray:function(){return t},toString:function(){var n="";n+="[";for(var i=0;i<t.length;i+=1)i>0&&(n+=","),n+=t[i];return n+"]"}};return n},g=function(t){var n=t,i=0,r=0,e=0,o={read:function(){for(;e<8;){if(i>=n.length){if(0==e)return-1;throw"unexpected end of file./"+e}var t=n.charAt(i);if(i+=1,"="==t)return e=0,-1;t.match(/^\s$/)||(r=r<<6|a(t.charCodeAt(0)),e+=6)}var o=r>>>e-8&255;return e-=8,o}},a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return o},w=function(t,n,i){for(var r=function(t,n){var i=t,r=n,e=new Array(t*n),o={setPixel:function(t,n,r){e[n*i+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(i),t.writeShort(r),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(i),t.writeShort(r),t.writeByte(0);var n=a(2);t.writeByte(2);for(var e=0;n.length-e>255;)t.writeByte(255),t.writeBytes(n,e,255),e+=255;t.writeByte(n.length-e),t.writeBytes(n,e,n.length-e),t.writeByte(0),t.writeString(";")}},a=function(t){for(var n=1<<t,i=1+(1<<t),r=t+1,o=s(),a=0;a<n;a+=1)o.add(String.fromCharCode(a));o.add(String.fromCharCode(n)),o.add(String.fromCharCode(i));var c,l,h,d=v(),u=(c=d,l=0,h=0,{write:function(t,n){if(t>>>n!=0)throw"length over";for(;l+n>=8;)c.writeByte(255&(t<<l|h)),n-=8-l,t>>>=8-l,h=0,l=0;h|=t<<l,l+=n},flush:function(){l>0&&c.writeByte(h)}});u.write(n,r);var f=0,C=String.fromCharCode(e[f]);for(f+=1;f<e.length;){var p=String.fromCharCode(e[f]);f+=1,o.contains(C+p)?C+=p:(u.write(o.indexOf(C),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(C+p)),C=p)}return u.write(o.indexOf(C),r),u.write(i,r),u.flush(),d.toByteArray()},s=function(){var t={},n=0,i={add:function(r){if(i.contains(r))throw"dup key:"+r;t[r]=n,n+=1},size:function(){return n},indexOf:function(n){return t[n]},contains:function(n){return void 0!==t[n]}};return i};return o}(t,n),e=0;e<n;e+=1)for(var o=0;o<t;o+=1)r.setPixel(o,e,i(o,e));var a=v();r.write(a);for(var s=function(){var t=0,n=0,i=0,r="",e={},o=function(t){r+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return e.writeByte=function(r){for(t=t<<8|255&r,n+=8,i+=1;n>=6;)o(t>>>n-6),n-=6},e.flush=function(){if(n>0&&(o(t<<6-n),t=0,n=0),i%3!=0)for(var e=3-i%3,a=0;a<e;a+=1)r+="="},e.toString=function(){return r},e}(),c=a.toByteArray(),l=0;l<c.length;l+=1)s.writeByte(c[l]);return s.flush(),"data:image/gif;base64,"+s};return t}();e.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var n=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?n.push(r):r<2048?n.push(192|r>>6,128|63&r):r<55296||r>=57344?n.push(224|r>>12,128|r>>6&63,128|63&r):(i++,r=65536+((1023&r)<<10|1023&t.charCodeAt(i)),n.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return n}(t)},void 0===(r="function"==typeof(i=function(){return e})?i.apply(n,[]):i)||(t.exports=r)},676:(t,n,i)=>{i.d(n,{default:()=>F});var r=function(){return(r=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},e=function(){for(var t=0,n=0,i=arguments.length;n<i;n++)t+=arguments[n].length;var r=Array(t),e=0;for(n=0;n<i;n++)for(var o=arguments[n],a=0,s=o.length;a<s;a++,e++)r[e]=o[a];return r},o=function(t){return!!t&&"object"==typeof t&&!Array.isArray(t)};function a(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!n.length)return t;var s=n.shift();return void 0!==s&&o(t)&&o(s)?(t=r({},t),Object.keys(s).forEach((function(n){var i=t[n],r=s[n];Array.isArray(i)&&Array.isArray(r)?t[n]=r:o(i)&&o(r)?t[n]=a(Object.assign({},i),r):t[n]=r})),a.apply(void 0,e([t],n))):t}function s(t,n){var i=document.createElement("a");i.download=n,i.href=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}function c(t){return n=this,i=void 0,e=function(){return function(t,n){var i,r,e,o,a={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(e=2&o[0]?r.return:o[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,o[1])).done)return e;switch(r=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((e=(e=a.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){a.label=o[1];break}if(6===o[0]&&a.label<e[1]){a.label=e[1],e=o;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(o);break}e[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{i=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){return[2,new Promise((function(n){var i=new XMLHttpRequest;i.onload=function(){var t=new FileReader;t.onloadend=function(){n(t.result)},t.readAsDataURL(i.response)},i.open("GET",t),i.responseType="blob",i.send()}))]}))},new((r=void 0)||(r=Promise))((function(t,o){function a(t){try{c(e.next(t))}catch(t){o(t)}}function s(t){try{c(e.throw(t))}catch(t){o(t)}}function c(n){var i;n.done?t(n.value):(i=n.value,i instanceof r?i:new r((function(t){t(i)}))).then(a,s)}c((e=e.apply(n,i||[])).next())}));var n,i,r,e}const l={L:.07,M:.15,Q:.25,H:.3};var h=function(){return(h=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};const d=function(){function t(t){var n=t.svg,i=t.type;this._svg=n,this._type=i}return t.prototype.draw=function(t,n,i,r){var e;switch(this._type){case"dots":e=this._drawDot;break;case"classy":e=this._drawClassy;break;case"classy-rounded":e=this._drawClassyRounded;break;case"rounded":e=this._drawRounded;break;case"extra-rounded":e=this._drawExtraRounded;break;case"square":default:e=this._drawSquare}e.call(this,{x:t,y:n,size:i,getNeighbor:r})},t.prototype._rotateFigure=function(t){var n,i=t.x,r=t.y,e=t.size,o=t.rotation,a=void 0===o?0:o,s=i+e/2,c=r+e/2;(0,t.draw)(),null===(n=this._element)||void 0===n||n.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),n._element.setAttribute("cx",String(r+i/2)),n._element.setAttribute("cy",String(e+i/2)),n._element.setAttribute("r",String(i/2))}}))},t.prototype._basicSquare=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),n._element.setAttribute("x",String(r)),n._element.setAttribute("y",String(e)),n._element.setAttribute("width",String(i)),n._element.setAttribute("height",String(i))}}))},t.prototype._basicSideRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("d","M "+r+" "+e+"v "+i+"h "+i/2+"a "+i/2+" "+i/2+", 0, 0, 0, 0 "+-i)}}))},t.prototype._basicCornerRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("d","M "+r+" "+e+"v "+i+"h "+i+"v "+-i/2+"a "+i/2+" "+i/2+", 0, 0, 0, "+-i/2+" "+-i/2)}}))},t.prototype._basicCornerExtraRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("d","M "+r+" "+e+"v "+i+"h "+i+"a "+i+" "+i+", 0, 0, 0, "+-i+" "+-i)}}))},t.prototype._basicCornersRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("d","M "+r+" "+e+"v "+i/2+"a "+i/2+" "+i/2+", 0, 0, 0, "+i/2+" "+i/2+"h "+i/2+"v "+-i/2+"a "+i/2+" "+i/2+", 0, 0, 0, "+-i/2+" "+-i/2)}}))},t.prototype._drawDot=function(t){var n=t.x,i=t.y,r=t.size;this._basicDot({x:n,y:i,size:r,rotation:0})},t.prototype._drawSquare=function(t){var n=t.x,i=t.y,r=t.size;this._basicSquare({x:n,y:i,size:r,rotation:0})},t.prototype._drawRounded=function(t){var n=t.x,i=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,a=e?+e(1,0):0,s=e?+e(0,-1):0,c=e?+e(0,1):0,l=o+a+s+c;if(0!==l)if(l>2||o&&a||s&&c)this._basicSquare({x:n,y:i,size:r,rotation:0});else{if(2===l){var h=0;return o&&s?h=Math.PI/2:s&&a?h=Math.PI:a&&c&&(h=-Math.PI/2),void this._basicCornerRounded({x:n,y:i,size:r,rotation:h})}if(1===l)return h=0,s?h=Math.PI/2:a?h=Math.PI:c&&(h=-Math.PI/2),void this._basicSideRounded({x:n,y:i,size:r,rotation:h})}else this._basicDot({x:n,y:i,size:r,rotation:0})},t.prototype._drawExtraRounded=function(t){var n=t.x,i=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,a=e?+e(1,0):0,s=e?+e(0,-1):0,c=e?+e(0,1):0,l=o+a+s+c;if(0!==l)if(l>2||o&&a||s&&c)this._basicSquare({x:n,y:i,size:r,rotation:0});else{if(2===l){var h=0;return o&&s?h=Math.PI/2:s&&a?h=Math.PI:a&&c&&(h=-Math.PI/2),void this._basicCornerExtraRounded({x:n,y:i,size:r,rotation:h})}if(1===l)return h=0,s?h=Math.PI/2:a?h=Math.PI:c&&(h=-Math.PI/2),void this._basicSideRounded({x:n,y:i,size:r,rotation:h})}else this._basicDot({x:n,y:i,size:r,rotation:0})},t.prototype._drawClassy=function(t){var n=t.x,i=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,a=e?+e(1,0):0,s=e?+e(0,-1):0,c=e?+e(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:n,y:i,size:r,rotation:0}):this._basicCornerRounded({x:n,y:i,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:n,y:i,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:n,y:i,size:r,rotation:Math.PI/2})},t.prototype._drawClassyRounded=function(t){var n=t.x,i=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,a=e?+e(1,0):0,s=e?+e(0,-1):0,c=e?+e(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:n,y:i,size:r,rotation:0}):this._basicCornerExtraRounded({x:n,y:i,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:n,y:i,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:n,y:i,size:r,rotation:Math.PI/2})},t}();var u=function(){return(u=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};const f=function(){function t(t){var n=t.svg,i=t.type;this._svg=n,this._type=i}return t.prototype.draw=function(t,n,i,r){var e;switch(this._type){case"square":e=this._drawSquare;break;case"extra-rounded":e=this._drawExtraRounded;break;case"dot":default:e=this._drawDot}e.call(this,{x:t,y:n,size:i,rotation:r})},t.prototype._rotateFigure=function(t){var n,i=t.x,r=t.y,e=t.size,o=t.rotation,a=void 0===o?0:o,s=i+e/2,c=r+e/2;(0,t.draw)(),null===(n=this._element)||void 0===n||n.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var n=this,i=t.size,r=t.x,e=t.y,o=i/7;this._rotateFigure(u(u({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("clip-rule","evenodd"),n._element.setAttribute("d","M "+(r+i/2)+" "+e+"a "+i/2+" "+i/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(i/2-o)+" "+(i/2-o)+" 0 1 1 -0.1 0Z")}}))},t.prototype._basicSquare=function(t){var n=this,i=t.size,r=t.x,e=t.y,o=i/7;this._rotateFigure(u(u({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("clip-rule","evenodd"),n._element.setAttribute("d","M "+r+" "+e+"v "+i+"h "+i+"v "+-i+"zM "+(r+o)+" "+(e+o)+"h "+(i-2*o)+"v "+(i-2*o)+"h "+(2*o-i)+"z")}}))},t.prototype._basicExtraRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y,o=i/7;this._rotateFigure(u(u({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("clip-rule","evenodd"),n._element.setAttribute("d","M "+r+" "+(e+2.5*o)+"v "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*o+"h "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*-o+"v "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*-o+"h "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*o+"M "+(r+2.5*o)+" "+(e+o)+"h "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*o+"v "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*o+"h "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*-o+"v "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*-o)}}))},t.prototype._drawDot=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicDot({x:n,y:i,size:r,rotation:e})},t.prototype._drawSquare=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicSquare({x:n,y:i,size:r,rotation:e})},t.prototype._drawExtraRounded=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicExtraRounded({x:n,y:i,size:r,rotation:e})},t}();var C=function(){return(C=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};const p=function(){function t(t){var n=t.svg,i=t.type;this._svg=n,this._type=i}return t.prototype.draw=function(t,n,i,r){var e;switch(this._type){case"square":e=this._drawSquare;break;case"dot":default:e=this._drawDot}e.call(this,{x:t,y:n,size:i,rotation:r})},t.prototype._rotateFigure=function(t){var n,i=t.x,r=t.y,e=t.size,o=t.rotation,a=void 0===o?0:o,s=i+e/2,c=r+e/2;(0,t.draw)(),null===(n=this._element)||void 0===n||n.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(C(C({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),n._element.setAttribute("cx",String(r+i/2)),n._element.setAttribute("cy",String(e+i/2)),n._element.setAttribute("r",String(i/2))}}))},t.prototype._basicSquare=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(C(C({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),n._element.setAttribute("x",String(r)),n._element.setAttribute("y",String(e)),n._element.setAttribute("width",String(i)),n._element.setAttribute("height",String(i))}}))},t.prototype._drawDot=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicDot({x:n,y:i,size:r,rotation:e})},t.prototype._drawSquare=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicSquare({x:n,y:i,size:r,rotation:e})},t}(),v="circle";var g=function(t,n,i,r){return new(i||(i=Promise))((function(e,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(a,s)}c((r=r.apply(t,n||[])).next())}))},w=function(t,n){var i,r,e,o,a={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(e=2&o[0]?r.return:o[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,o[1])).done)return e;switch(r=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((e=(e=a.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){a.label=o[1];break}if(6===o[0]&&a.label<e[1]){a.label=e[1],e=o;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(o);break}e[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{i=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],x=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const m=function(){function t(t){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=t}return Object.defineProperty(t.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),t.prototype.getElement=function(){return this._element},t.prototype.drawQR=function(t){return g(this,void 0,void 0,(function(){var n,i,r,e,o,a,s,c,h,d,u=this;return w(this,(function(f){switch(f.label){case 0:return n=t.getModuleCount(),i=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===v?i/Math.sqrt(2):i,e=Math.floor(r/n),o={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(f.sent(),!this._image)return[2];a=this._options,s=a.imageOptions,c=a.qrOptions,h=s.imageSize*l[c.errorCorrectionLevel],d=Math.floor(h*n*n),o=function(t){var n=t.originalHeight,i=t.originalWidth,r=t.maxHiddenDots,e=t.maxHiddenAxisDots,o=t.dotSize,a={x:0,y:0},s={x:0,y:0};if(n<=0||i<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var c=n/i;return a.x=Math.floor(Math.sqrt(r/c)),a.x<=0&&(a.x=1),e&&e<a.x&&(a.x=e),a.x%2==0&&a.x--,s.x=a.x*o,a.y=1+2*Math.ceil((a.x*c-1)/2),s.y=Math.round(s.x*c),(a.y*a.x>r||e&&e<a.y)&&(e&&e<a.y?(a.y=e,a.y%2==0&&a.x--):a.y-=2,s.y=a.y*o,a.x=1+2*Math.ceil((a.y/c-1)/2),s.x=Math.round(s.y/c)),{height:s.y,width:s.x,hideYDots:a.y,hideXDots:a.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:d,maxHiddenAxisDots:n-14,dotSize:e}),f.label=2;case 2:return this.drawBackground(),this.drawDots((function(t,i){var r,e,a,s,c,l;return!(u._options.imageOptions.hideBackgroundDots&&t>=(n-o.hideXDots)/2&&t<(n+o.hideXDots)/2&&i>=(n-o.hideYDots)/2&&i<(n+o.hideYDots)/2||(null===(r=b[t])||void 0===r?void 0:r[i])||(null===(e=b[t-n+7])||void 0===e?void 0:e[i])||(null===(a=b[t])||void 0===a?void 0:a[i-n+7])||(null===(s=x[t])||void 0===s?void 0:s[i])||(null===(c=x[t-n+7])||void 0===c?void 0:c[i])||(null===(l=x[t])||void 0===l?void 0:l[i-n+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:n,dotSize:e})]:[3,4];case 3:f.sent(),f.label=4;case 4:return[2]}}))}))},t.prototype.drawBackground=function(){var t,n,i,r=this._element,e=this._options;if(r){var o=null===(t=e.backgroundOptions)||void 0===t?void 0:t.gradient,a=null===(n=e.backgroundOptions)||void 0===n?void 0:n.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:e.height,width:e.width,name:"background-color"}),null===(i=e.backgroundOptions)||void 0===i?void 0:i.round){var s=Math.min(e.width,e.height),c=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),c.setAttribute("x",String((e.width-s)/2)),c.setAttribute("y",String((e.height-s)/2)),c.setAttribute("width",String(s)),c.setAttribute("height",String(s)),c.setAttribute("rx",String(s/2*e.backgroundOptions.round)),this._backgroundClipPath.appendChild(c)}}},t.prototype.drawDots=function(t){var n,i,r=this;if(!this._qr)throw"QR code is not defined";var e=this._options,o=this._qr.getModuleCount();if(o>e.width||o>e.height)throw"The canvas is too small.";var a=Math.min(e.width,e.height)-2*e.margin,s=e.shape===v?a/Math.sqrt(2):a,c=Math.floor(s/o),l=Math.floor((e.width-o*c)/2),h=Math.floor((e.height-o*c)/2),u=new d({svg:this._element,type:e.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(n=e.dotsOptions)||void 0===n?void 0:n.gradient,color:e.dotsOptions.color,additionalRotation:0,x:0,y:0,height:e.height,width:e.width,name:"dot-color"});for(var f=function(n){for(var e=function(e){return t&&!t(n,e)?"continue":(null===(i=C._qr)||void 0===i?void 0:i.isDark(n,e))?(u.draw(l+n*c,h+e*c,c,(function(i,a){return!(n+i<0||e+a<0||n+i>=o||e+a>=o)&&!(t&&!t(n+i,e+a))&&!!r._qr&&r._qr.isDark(n+i,e+a)})),void(u._element&&C._dotsClipPath&&C._dotsClipPath.appendChild(u._element))):"continue"},a=0;a<o;a++)e(a)},C=this,p=0;p<o;p++)f(p);if(e.shape===v){var g=Math.floor((a/c-o)/2),w=o+2*g,b=l-g*c,x=h-g*c,m=[],y=Math.floor(w/2);for(p=0;p<w;p++){m[p]=[];for(var M=0;M<w;M++)p>=g-1&&p<=w-g&&M>=g-1&&M<=w-g||Math.sqrt((p-y)*(p-y)+(M-y)*(M-y))>y?m[p][M]=0:m[p][M]=this._qr.isDark(M-2*g<0?M:M>=o?M-2*g:M-g,p-2*g<0?p:p>=o?p-2*g:p-g)?1:0}var k=function(t){for(var n=function(n){if(!m[t][n])return"continue";u.draw(b+t*c,x+n*c,c,(function(i,r){var e;return!!(null===(e=m[t+i])||void 0===e?void 0:e[n+r])})),u._element&&L._dotsClipPath&&L._dotsClipPath.appendChild(u._element)},i=0;i<w;i++)n(i)},L=this;for(p=0;p<w;p++)k(p)}},t.prototype.drawCorners=function(){var t=this;if(!this._qr)throw"QR code is not defined";var n=this._element,i=this._options;if(!n)throw"Element code is not defined";var r=this._qr.getModuleCount(),e=Math.min(i.width,i.height)-2*i.margin,o=i.shape===v?e/Math.sqrt(2):e,a=Math.floor(o/r),s=7*a,c=3*a,l=Math.floor((i.width-r*a)/2),h=Math.floor((i.height-r*a)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(n){var e,o,u,C,v,g,w,m,y,M,k,L,_=n[0],Z=n[1],B=n[2],H=l+_*a*(r-7),V=h+Z*a*(r-7),S=t._dotsClipPath,A=t._dotsClipPath;if(((null===(e=i.cornersSquareOptions)||void 0===e?void 0:e.gradient)||(null===(o=i.cornersSquareOptions)||void 0===o?void 0:o.color))&&((S=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+_+"-"+Z),t._defs.appendChild(S),t._cornersSquareClipPath=t._cornersDotClipPath=A=S,t._createColor({options:null===(u=i.cornersSquareOptions)||void 0===u?void 0:u.gradient,color:null===(C=i.cornersSquareOptions)||void 0===C?void 0:C.color,additionalRotation:B,x:H,y:V,height:s,width:s,name:"corners-square-color-"+_+"-"+Z})),null===(v=i.cornersSquareOptions)||void 0===v?void 0:v.type){var F=new f({svg:t._element,type:i.cornersSquareOptions.type});F.draw(H,V,s,B),F._element&&S&&S.appendChild(F._element)}else for(var E=new d({svg:t._element,type:i.dotsOptions.type}),z=function(t){for(var n=function(n){if(!(null===(g=b[t])||void 0===g?void 0:g[n]))return"continue";E.draw(H+t*a,V+n*a,a,(function(i,r){var e;return!!(null===(e=b[t+i])||void 0===e?void 0:e[n+r])})),E._element&&S&&S.appendChild(E._element)},i=0;i<b[t].length;i++)n(i)},D=0;D<b.length;D++)z(D);if(((null===(w=i.cornersDotOptions)||void 0===w?void 0:w.gradient)||(null===(m=i.cornersDotOptions)||void 0===m?void 0:m.color))&&((A=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+_+"-"+Z),t._defs.appendChild(A),t._cornersDotClipPath=A,t._createColor({options:null===(y=i.cornersDotOptions)||void 0===y?void 0:y.gradient,color:null===(M=i.cornersDotOptions)||void 0===M?void 0:M.color,additionalRotation:B,x:H+2*a,y:V+2*a,height:c,width:c,name:"corners-dot-color-"+_+"-"+Z})),null===(k=i.cornersDotOptions)||void 0===k?void 0:k.type){var O=new p({svg:t._element,type:i.cornersDotOptions.type});O.draw(H+2*a,V+2*a,c,B),O._element&&A&&A.appendChild(O._element)}else{E=new d({svg:t._element,type:i.dotsOptions.type});var P=function(t){for(var n=function(n){if(!(null===(L=x[t])||void 0===L?void 0:L[n]))return"continue";E.draw(H+t*a,V+n*a,a,(function(i,r){var e;return!!(null===(e=x[t+i])||void 0===e?void 0:e[n+r])})),E._element&&A&&A.appendChild(E._element)},i=0;i<x[t].length;i++)n(i)};for(D=0;D<x.length;D++)P(D)}}))},t.prototype.loadImage=function(){var t=this;return new Promise((function(n,i){var r=t._options,e=new Image;if(!r.image)return i("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(e.crossOrigin=r.imageOptions.crossOrigin),t._image=e,e.onload=function(){n()},e.src=r.image}))},t.prototype.drawImage=function(t){var n=t.width,i=t.height,r=t.count,e=t.dotSize;return g(this,void 0,void 0,(function(){var t,o,a,s,l,h,d,u,f;return w(this,(function(C){switch(C.label){case 0:return t=this._options,o=Math.floor((t.width-r*e)/2),a=Math.floor((t.height-r*e)/2),s=o+t.imageOptions.margin+(r*e-n)/2,l=a+t.imageOptions.margin+(r*e-i)/2,h=n-2*t.imageOptions.margin,d=i-2*t.imageOptions.margin,(u=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(s)),u.setAttribute("y",String(l)),u.setAttribute("width",h+"px"),u.setAttribute("height",d+"px"),[4,c(t.image||"")];case 1:return f=C.sent(),u.setAttribute("href",f||""),this._element.appendChild(u),[2]}}))}))},t.prototype._createColor=function(t){var n=t.options,i=t.color,r=t.additionalRotation,e=t.x,o=t.y,a=t.height,s=t.width,c=t.name,l=s>a?s:a,h=document.createElementNS("http://www.w3.org/2000/svg","rect");if(h.setAttribute("x",String(e)),h.setAttribute("y",String(o)),h.setAttribute("height",String(a)),h.setAttribute("width",String(s)),h.setAttribute("clip-path","url('#clip-path-"+c+"')"),n){var d;if("radial"===n.type)(d=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",c),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("fx",String(e+s/2)),d.setAttribute("fy",String(o+a/2)),d.setAttribute("cx",String(e+s/2)),d.setAttribute("cy",String(o+a/2)),d.setAttribute("r",String(l/2));else{var u=((n.rotation||0)+r)%(2*Math.PI),f=(u+2*Math.PI)%(2*Math.PI),C=e+s/2,p=o+a/2,v=e+s/2,g=o+a/2;f>=0&&f<=.25*Math.PI||f>1.75*Math.PI&&f<=2*Math.PI?(C-=s/2,p-=a/2*Math.tan(u),v+=s/2,g+=a/2*Math.tan(u)):f>.25*Math.PI&&f<=.75*Math.PI?(p-=a/2,C-=s/2/Math.tan(u),g+=a/2,v+=s/2/Math.tan(u)):f>.75*Math.PI&&f<=1.25*Math.PI?(C+=s/2,p+=a/2*Math.tan(u),v-=s/2,g-=a/2*Math.tan(u)):f>1.25*Math.PI&&f<=1.75*Math.PI&&(p+=a/2,C+=s/2/Math.tan(u),g-=a/2,v-=s/2/Math.tan(u)),(d=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",c),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("x1",String(Math.round(C))),d.setAttribute("y1",String(Math.round(p))),d.setAttribute("x2",String(Math.round(v))),d.setAttribute("y2",String(Math.round(g)))}n.colorStops.forEach((function(t){var n=t.offset,i=t.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*n+"%"),r.setAttribute("stop-color",i),d.appendChild(r)})),h.setAttribute("fill","url('#"+c+"')"),this._defs.appendChild(d)}else i&&h.setAttribute("fill",i);this._element.appendChild(h)},t}(),y="canvas";for(var M={},k=0;k<=40;k++)M[k]=k;const L={type:y,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:M[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var _=function(){return(_=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function Z(t){var n=_({},t);if(!n.colorStops||!n.colorStops.length)throw"Field 'colorStops' is required in gradient";return n.rotation?n.rotation=Number(n.rotation):n.rotation=0,n.colorStops=n.colorStops.map((function(t){return _(_({},t),{offset:Number(t.offset)})})),n}function B(t){var n=_({},t);return n.width=Number(n.width),n.height=Number(n.height),n.margin=Number(n.margin),n.imageOptions=_(_({},n.imageOptions),{hideBackgroundDots:Boolean(n.imageOptions.hideBackgroundDots),imageSize:Number(n.imageOptions.imageSize),margin:Number(n.imageOptions.margin)}),n.margin>Math.min(n.width,n.height)&&(n.margin=Math.min(n.width,n.height)),n.dotsOptions=_({},n.dotsOptions),n.dotsOptions.gradient&&(n.dotsOptions.gradient=Z(n.dotsOptions.gradient)),n.cornersSquareOptions&&(n.cornersSquareOptions=_({},n.cornersSquareOptions),n.cornersSquareOptions.gradient&&(n.cornersSquareOptions.gradient=Z(n.cornersSquareOptions.gradient))),n.cornersDotOptions&&(n.cornersDotOptions=_({},n.cornersDotOptions),n.cornersDotOptions.gradient&&(n.cornersDotOptions.gradient=Z(n.cornersDotOptions.gradient))),n.backgroundOptions&&(n.backgroundOptions=_({},n.backgroundOptions),n.backgroundOptions.gradient&&(n.backgroundOptions.gradient=Z(n.backgroundOptions.gradient))),n}var H=i(192),V=i.n(H),S=function(t,n,i,r){return new(i||(i=Promise))((function(e,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(a,s)}c((r=r.apply(t,n||[])).next())}))},A=function(t,n){var i,r,e,o,a={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(e=2&o[0]?r.return:o[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,o[1])).done)return e;switch(r=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((e=(e=a.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){a.label=o[1];break}if(6===o[0]&&a.label<e[1]){a.label=e[1],e=o;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(o);break}e[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{i=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};const F=function(){function t(t){this._options=t?B(a(L,t)):L,this.update()}return t._clearContainer=function(t){t&&(t.innerHTML="")},t.prototype._setupSvg=function(){var t=this;if(this._qr){var n=new m(this._options);this._svg=n.getElement(),this._svgDrawingPromise=n.drawQR(this._qr).then((function(){var i;t._svg&&(null===(i=t._extension)||void 0===i||i.call(t,n.getElement(),t._options))}))}},t.prototype._setupCanvas=function(){var t,n=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=null===(t=this._svgDrawingPromise)||void 0===t?void 0:t.then((function(){if(n._svg){var t=n._svg,i=(new XMLSerializer).serializeToString(t),r="data:image/svg+xml;base64,"+btoa(i),e=new Image;return new Promise((function(t){e.onload=function(){var i,r;null===(r=null===(i=n._canvas)||void 0===i?void 0:i.getContext("2d"))||void 0===r||r.drawImage(e,0,0),t()},e.src=r}))}})))},t.prototype._getElement=function(t){return void 0===t&&(t="png"),S(this,void 0,void 0,(function(){return A(this,(function(n){switch(n.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==t.toLowerCase()?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return n.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return n.sent(),[2,this._canvas]}}))}))},t.prototype.update=function(n){t._clearContainer(this._container),this._options=n?B(a(this._options,n)):this._options,this._options.data&&(this._qr=V()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===y?this._setupCanvas():this._setupSvg(),this.append(this._container))},t.prototype.append=function(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===y?this._canvas&&t.appendChild(this._canvas):this._svg&&t.appendChild(this._svg),this._container=t}},t.prototype.applyExtension=function(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()},t.prototype.deleteExtension=function(){this._extension=void 0,this.update()},t.prototype.getRawData=function(t){return void 0===t&&(t="png"),S(this,void 0,void 0,(function(){var n,i,r;return A(this,(function(e){switch(e.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(t)];case 1:return(n=e.sent())?"svg"===t.toLowerCase()?(i=new XMLSerializer,r=i.serializeToString(n),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(i){return n.toBlob(i,"image/"+t,1)}))]:[2,null]}}))}))},t.prototype.download=function(t){return S(this,void 0,void 0,(function(){var n,i,r,e,o;return A(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return n="png",i="qr","string"==typeof t?(n=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(i=t.name),t.extension&&(n=t.extension)),[4,this._getElement(n)];case 1:return(r=a.sent())?("svg"===n.toLowerCase()?(e=new XMLSerializer,o='<?xml version="1.0" standalone="no"?>\r\n'+(o=e.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),i+".svg")):s(r.toDataURL("image/"+n),i+"."+n),[2]):[2]}}))}))},t}()}},n={};function i(r){if(n[r])return n[r].exports;var e=n[r]={exports:{}};return t[r](e,e.exports,i),e.exports}return i.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return i.d(n,{a:n}),n},i.d=(t,n)=>{for(var r in n)i.o(n,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},i.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),i(676)})().default}))})(ra);const ea=ia(ra.exports);const oa=":host{--qr-color:var(--cpsl-color-black);--qr-background-color:var(--cpsl-color-white);--qr-border-color:var(--cpsl-color-foreground-quinary);--qr-border-radius:var(--cpsl-border-radius-qr-code);--qr-border-width:1px;--qr-box-shadow:0px 1px 2px var(--cpsl-color-alpha-black-10);display:inline-block}.qr-container{-webkit-padding-start:var(--qr-padding-start);padding-inline-start:var(--qr-padding-start);-webkit-padding-end:var(--qr-padding-end);padding-inline-end:var(--qr-padding-end);padding-top:var(--qr-padding-top);padding-bottom:var(--qr-padding-bottom);display:flex;color:var(--qr-color);border-style:solid;border-width:var(--qr-border-width);border-color:var(--qr-border-color);border-radius:var(--qr-border-radius);background-color:var(--qr-background-color);box-shadow:var(--qr-box-shadow)}";const aa=oa;const sa=class{constructor(n){t(this,n);this.url=undefined;this.imageSrc=undefined;this.size=250}componentDidLoad(){const t=this.el.shadowRoot.getElementById("qr-container");t.innerHTML="";const n=new ea({type:"svg",data:this.url,image:this.imageSrc,height:this.size,width:this.size,qrOptions:{errorCorrectionLevel:"L"},backgroundOptions:{color:"transparent"},dotsOptions:{type:"dots",color:"currentColor"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"},imageOptions:{crossOrigin:"anonymous"}});n.append(t)}render(){return n(i,{key:"c26c87e8a22d8134a60f9efebd1e27169d59cb0c"},n("div",{key:"d9a8ede7f1ffbcd80d58b916d38f38fea7fc4f74",id:"qr-container",class:"qr-container"}))}get el(){return e(this)}};sa.style=aa;const ca=":host{--slider-container-font-size:14px;--slider-container-height:44px;--slider-container-border-width:1px;--slider-container-box-shadow:0px 0px 4px 0px var(--cpsl-color-alpha-black-10) inset;--slider-container-start-background-color:var(--cpsl-color-foreground-senary);--slider-container-end-background-color:var(--cpsl-color-foreground-primary);--slider-container-border-color:var(--cpsl-color-foreground-quinary);--slider-border-width:1px;--slider-box-shadow:3px 0px 4px 0px var(--cpsl-color-alpha-black-16);--slider-border-color:var(--cpsl-color-foreground-quinary);--slider-background-color:var(--cpsl-color-foreground-primary);--slider-color:var(--cpsl-color-text-inverted);--start-text-color:var(--cpsl-color-text-secondary);--end-text-color:var(--cpsl-color-text-inverted);font-family:var(--cpsl-font-family, inherit);display:block}.slider-container{overflow:hidden;position:relative;box-sizing:border-box;display:flex;align-items:center;font-size:var(--slider-container-font-size);font-weight:500;height:var(--slider-container-height);border-width:var(--slider-container-border-width);border-style:solid;border-color:var(--slider-container-border-color);border-radius:calc(var(--slider-container-height) / 2);box-shadow:var(--slider-container-box-shadow)}.slider-container-background{position:absolute;top:0;bottom:0;left:0;right:0}.start-slider-container-background{background-color:var(--slider-container-start-background-color);opacity:100%}.end-slider-container-background{background-color:var(--slider-container-end-background-color);opacity:0%}.start-text{user-select:none;color:var(--start-text-color);position:absolute;text-align:center;opacity:100%;width:calc(100% - var(--slider-container-height) - 8px - 16px);left:calc(var(--slider-container-height) - 4px + 8px)}.end-text{user-select:none;color:var(--end-text-color);position:absolute;text-align:center;opacity:0%;width:calc(100% - var(--slider-container-height) - 8px - 16px);left:16px}.icon{position:absolute}.start-icon{opacity:100%}.end-icon{opacity:0%}.slider{left:1px;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:absolute;z-index:10;height:calc(var(--slider-container-height) - 4px);width:calc(var(--slider-container-height) - 4px);color:var(--slider-color);background-color:var(--slider-background-color);border-width:var(--slider-border-width);border-style:solid;border-color:var(--slider-border-color);border-radius:100%;box-shadow:var(--slider-box-shadow)}.slider cpsl-icon{--icon-color:var(--slider-color)}";const la=ca;const ha=class{constructor(n){t(this,n);this.cpslComplete=r(this,"cpslComplete",7);this.endIcon=undefined;this.endText=undefined;this.startIcon=undefined;this.startText=undefined}componentDidLoad(){this.dragElement(this.el.shadowRoot.getElementById("slider"))}dragElement(t){const n=t=>{t.preventDefault();p=t.clientX;document.onmouseup=r;document.onmousemove=i};const i=n=>{n.preventDefault();C=p-n.clientX;p=n.clientX;const i=t.offsetLeft-C;if(i>=u&&i<=f){const n=Math.max(Math.min(Math.round(i/f*100)/100,100),0);a.style.opacity=`${(1-n*2)*100}%`;s.style.opacity=`${n*100}%`;e.style.opacity=`${(1-n*2)*100}%`;o.style.opacity=`${n*100}%`;c.style.opacity=`${n*100}%`;t.style.left=`${i}px`}};const r=()=>{if(t.offsetLeft+d>=h-d/2){t.style.left=`${f}px`;a.style.opacity="0%";s.style.opacity="100%";e.style.opacity="0%";o.style.opacity="100%";c.style.opacity="100%";this.cpslComplete.emit(true)}else{t.style.left=`${u}px`;a.style.opacity="100%";s.style.opacity="0%";e.style.opacity="100%";o.style.opacity="0%";c.style.opacity="0%"}document.onmouseup=null;document.onmousemove=null};const e=this.startIconEl;const o=this.endIconEl;const a=this.startTextEl;const s=this.endTextEl;const c=this.endBackgroundEl;const l=this.sliderContainerEl;const h=l.clientWidth;const d=t.getBoundingClientRect().height;const u=1;const f=h-d-1;let C=0,p=0;t.onmousedown=n}get sliderContainerEl(){return this.el.shadowRoot.getElementById("slider-container")}get startTextEl(){return this.el.shadowRoot.getElementById("start-text")}get endTextEl(){return this.el.shadowRoot.getElementById("end-text")}get endBackgroundEl(){return this.el.shadowRoot.getElementById("end-slider-container-background")}get startIconEl(){return this.el.shadowRoot.getElementById("start-icon")}get endIconEl(){return this.el.shadowRoot.getElementById("end-icon")}render(){return n(i,{key:"3025e2306923953edd5857009828af027cd0d561"},n("div",{key:"5557072bcccfc099af005fed9af45adf335a98dd",id:"slider-container",class:"slider-container"},n("div",{key:"39e1b5d2123eda0a004c0f250c8afa66b53768f4",id:"start-slider-container-background",class:{"start-slider-container-background":true,"slider-container-background":true}}),n("div",{key:"80486f55315077693d481e193eba1bf37acd5afd",id:"end-slider-container-background",class:{"end-slider-container-background":true,"slider-container-background":true}}),n("div",{key:"c13596a1a117aa3e5674d5a91c0ec38ff9ac7a49",id:"slider",class:"slider"},n("cpsl-icon",{key:"d2d78f42e65efd180c9dd106738341cf0aee6f27",id:"start-icon",class:{"start-icon":true,icon:true},icon:this.startIcon}),n("cpsl-icon",{key:"63f9ce569084f2541c69028aedc949b3ecccac0c",id:"end-icon",class:{"end-icon":true,icon:true},icon:this.endIcon})),n("span",{key:"9bead9870b949f91734c4199d9c96f7b50a10128",id:"start-text",class:"start-text"},this.startText),n("span",{key:"8dfa1e9e0866a74f72d27b2541a4ac9d56038d34",id:"end-text",class:"end-text"},this.endText)))}get el(){return e(this)}};ha.style=la;const da=":host{--path-color:var(--cpsl-color-foreground-ternary);--circle-color:var(--cpsl-color-text-primary);display:flex;justify-content:center;align-items:center}:host path{stroke:var(--path-color)}:host circle{fill:var(--circle-color)}";const ua=da;const fa=class{constructor(n){t(this,n);this.size=54;this.speed=1}render(){return n(i,{key:"c67c084c1bae79ba255ca736de4721d1f6ea928d",style:{height:`${this.size}px`,width:`${this.size}px`,animation:`spin ${this.speed}s linear infinite`,"-webkit-animation":`spin ${this.speed}s linear infinite`,"-moz-animation":`spin ${this.speed}s linear infinite`}},n("svg",{key:"a14c9a8d895fb713fd1a8533bca04fa6e60017d7",height:this.size,width:this.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 54 54",fill:"none"},n("path",{key:"5aaaf7cf5c649b717329266517e5ea1f39fccce8",d:"M43.1586 17C39.8082 11.5978 33.8243 8 27 8C16.5066 8 8 16.5066 8 27C8 37.4934 16.5066 46 27 46C33.8242 46 39.8082 42.4022 43.1586 37","stroke-width":"6","stroke-linecap":"round"}),n("circle",{key:"a1a60d4f565a1cffb99177d4159a793621e7b288",cx:"45",cy:"27",r:"5"})))}};fa.style=ua;const Ca=":host{--tab-color:var(--cpsl-color-text-primary);padding-top:var(--tab-top-padding);padding-bottom:var(--tab-bottom-padding);padding-left:var(--tab-left-padding);padding-right:var(--tab-right-padding);display:flex;flex:1 1 auto;align-items:center;cursor:pointer;z-index:10}.tab-container{align-items:center;overflow:hidden;width:100%;text-overflow:ellipsis;text-align:center;white-space:nowrap;font-weight:500;color:var(--tab-color)}";const pa=Ca;const va=class{constructor(n){t(this,n);this.cpslTabButtonClick=r(this,"cpslTabButtonClick",7);this.onTabClicked=()=>{this.cpslTabButtonClick.emit({tab:this.tab,selected:this.selected})};this.selected=false;this.tab=undefined}onTabsChanged(t){this.setSelected(t)}onTabsInit(t){this.setSelected(t)}setSelected(t){const n=t.target;const i=this.el.parentElement;if(t.composedPath().includes(i)||(n===null||n===void 0?void 0:n.contains(this.el))){this.selected=this.tab===t.detail.tab}}render(){return n(i,{key:"d55a11bba84bea2f0d24c6190a84467aea4ac2d3",onClick:this.onTabClicked},n("div",{key:"31e58097fd53e0286c6652eed32cb39b50e9ebf2",class:{"tab-container":true}},n("slot",{key:"01cdeb08c1f468de22ce7d01c6e5b8396231860e"})))}get el(){return e(this)}};va.style=pa;const ga=":host{--tab-top-padding:5px;--tab-bottom-padding:5px;--tab-left-padding:16px;--tab-right-padding:16px;--font-size:12px;--line-height:24px;--border-width:1px;--border-color:var(--cpsl-color-input-border-placeholder);--tabs-background-color:var(--cpsl-color-background-subtle);--slider-background-color:var(--cpsl-color-background-primary);display:inline-block;max-width:100%;font-family:var(--cpsl-font-family, inherit)}:host(.full-width){display:block}.tabs-container{position:relative;display:flex;overflow-x:scroll;overflow-y:hidden;border-width:var(--border-width);border-style:solid;border-color:var(--border-color);border-radius:var(--border-radius, 10000px);background-color:var(--tabs-background-color);font-size:var(--font-size);line-height:var(--line-height);-ms-overflow-style:none;scrollbar-width:none}.tabs-container::-webkit-scrollbar{display:none}.slider{position:absolute;top:calc(var(--border-width) * -1);bottom:calc(var(--border-width) * -1);left:-1px;border-width:var(--border-width);border-style:solid;border-color:var(--border-color);border-radius:var(--border-radius, 10000px);background-color:var(--slider-background-color);box-shadow:-1px 0px 2px 0px var(--cpsl-color-alpha-black-10), 1px 0px 2px 0px var(--cpsl-color-alpha-black-10)}.loaded{transition:all 0.5s}";const wa=ga;const ba=class{constructor(n){t(this,n);this.cpslTabsChanged=r(this,"cpslTabsChanged",7);this.cpslTabsInit=r(this,"cpslTabsInit",7);this.onTabClicked=t=>{const{tab:n}=t.detail;if(n!==this.selectedTab){this.selectedTabRect=xa(this.tabs,n).getBoundingClientRect();this.cpslTabsChanged.emit({tab:n})}};this.selectedTabRect=undefined;this.loaded=false;this.fullWidth=undefined;this.selectedTab=undefined}updateSlider(){setTimeout((()=>{this.selectedTabRect=xa(this.tabs,this.selectedTab).getBoundingClientRect()}),50)}componentWillLoad(){this.selectedTabRect=xa(this.tabs,this.selectedTab).getBoundingClientRect();this.cpslTabsInit.emit({tab:this.selectedTab})}componentDidLoad(){this.selectedTabRect=xa(this.tabs,this.selectedTab).getBoundingClientRect();setTimeout((()=>{this.loaded=true}),50)}get tabs(){return Array.from(this.el.querySelectorAll("cpsl-tab"))}render(){const t=this.el.getBoundingClientRect();const r=+getComputedStyle(this.el).getPropertyValue("--border-width").slice(0,-2);const e=this.selectedTabRect;return n(i,{key:"b64847167837c21748fce136be621c5cd3056383",class:{"full-width":this.fullWidth},onCpslTabButtonClick:this.onTabClicked},n("div",{key:"97f898ee1c1a29c673a901d37e0c2aa20f73e06e",class:"tabs-container"},n("slot",{key:"6a731c26802bc1b08c6b5fe92b2a6f1da438ee89"}),n("div",{key:"c69d074579a90b804f038f5ace589a1c98ed45e1",class:{slider:true,loaded:this.loaded},style:{width:`${e.width}px`,left:`${e.x-t.x-r*2}px`}})))}get el(){return e(this)}static get watchers(){return{fullWidth:["updateSlider"]}}};const xa=(t,n)=>{const i=typeof n==="string"?t.find((t=>t.tab===n)):n;if(!i){console.error(`tab with id: "${i}" does not exist`)}return i};ba.style=wa;const ma=":host{font-family:var(--cpsl-font-family, inherit);color:var(--cpsl-color-text-primary)}";const ya=ma;const Ma=class{constructor(n){t(this,n)}render(){return n(i,{key:"72726bc3a58e3089f02b70d494ead181eb34f2d3"},n("slot",{key:"8f8b009bc13ea9bb7824b51c622b115c6b103a9c"}))}};Ma.style=ya;const ka=":host{--button-icon-color:var(--cpsl-color-text-primary);--button-border-radius:var(--cpsl-border-radius-tile-button);--button-background-color:var(--cpsl-color-tile-button-surface-default);--button-border-color:var(--cpsl-color-tile-button-border);--button-width:72px;--button-height:56px;--button-gap:4px;--button-box-shadow:0px -4px 4px 0px var(--cpsl-color-alpha-black-2) inset, 0px 4px 4px 0px var(--cpsl-color-alpha-white-4) inset}:host :hover{--button-background-color:var(--cpsl-color-tile-button-surface-hover)}.button-native{border-radius:var(--button-border-radius);-webkit-padding-start:var(--button-padding-start);padding-inline-start:var(--button-padding-start);-webkit-padding-end:var(--button-padding-end);padding-inline-end:var(--button-padding-end);padding-top:var(--button-padding-top);padding-bottom:var(--button-padding-bottom);border:1px solid transparent;cursor:pointer;background-color:var(--button-background-color);border-color:var(--button-border-color);display:flex;flex-direction:column;gap:var(--button-gap);align-items:center;justify-content:center;width:var(--button-width);height:var(--button-height);box-shadow:var(--button-box-shadow)}.button-native cpsl-icon{--icon-color:var(--button-icon-color)}";const La=ka;const _a=class{constructor(n){t(this,n);this.src=undefined;this.icon=undefined}render(){return n(i,{key:"db1693ec8a607410ba6bb5fbe15b4acaec26ff84"},n("button",{key:"6da2c97b58e7ee13c86a386461831ed93fa3fee9",class:"button-native"},n("cpsl-icon",{key:"0dbe6348fedb418151384747bac7f902b31d6c9a",exportparts:"icon",src:this.src,icon:this.icon}),n("slot",{key:"8d15a91f86b060edefcf3ae359df2ceb2e1b4a76"})))}};_a.style=La;export{xt as cpsl_alert,Mt as cpsl_button,_t as cpsl_code_input,Ht as cpsl_divider,At as cpsl_icon,zt as cpsl_input,$o as cpsl_modal,Yo as cpsl_overlay,Ko as cpsl_pill,na as cpsl_progress_indicator,sa as cpsl_qr_code,ha as cpsl_slide_button,fa as cpsl_spinner,va as cpsl_tab,ba as cpsl_tabs,Ma as cpsl_text,_a as cpsl_tile_button};
|
20
|
-
//# sourceMappingURL=p-
|
19
|
+
*/var me,ye,Me,ke,Le,_e,Ze,Be=function t(){return typeof window!=="undefined"},He={},Ve=180/Math.PI,Se=Math.PI/180,Ae=Math.atan2,Fe=1e8,Ee=/([A-Z])/g,ze=/(left|right|width|margin|padding|x)/i,De=/[\s,\(]\S/,Oe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Pe=function t(n,i){return i.set(i.t,i.p,Math.round((i.s+i.c*n)*1e4)/1e4+i.u,i)},je=function t(n,i){return i.set(i.t,i.p,n===1?i.e:Math.round((i.s+i.c*n)*1e4)/1e4+i.u,i)},Ue=function t(n,i){return i.set(i.t,i.p,n?Math.round((i.s+i.c*n)*1e4)/1e4+i.u:i.b,i)},qe=function t(n,i){var r=i.s+i.c*n;i.set(i.t,i.p,~~(r+(r<0?-.5:.5))+i.u,i)},Ge=function t(n,i){return i.set(i.t,i.p,n?i.e:i.b,i)},Te=function t(n,i){return i.set(i.t,i.p,n!==1?i.b:i.e,i)},Re=function t(n,i,r){return n.style[i]=r},Ie=function t(n,i,r){return n.style.setProperty(i,r)},$e=function t(n,i,r){return n._gsap[i]=r},Ne=function t(n,i,r){return n._gsap.scaleX=n._gsap.scaleY=r},Xe=function t(n,i,r,e,o){var a=n._gsap;a.scaleX=a.scaleY=r;a.renderTransform(o,a)},Ye=function t(n,i,r,e,o){var a=n._gsap;a[i]=r;a.renderTransform(o,a)},Qe="transform",We=Qe+"Origin",Ke=function t(n,i){var r=this;var e=this.target,o=e.style,a=e._gsap;if(n in He&&o){this.tfm=this.tfm||{};if(n!=="transform"){n=Oe[n]||n;~n.indexOf(",")?n.split(",").forEach((function(t){return r.tfm[t]=wo(e,t)})):this.tfm[n]=a.x?a[n]:wo(e,n);n===We&&(this.tfm.zOrigin=a.zOrigin)}else{return Oe.transform.split(",").forEach((function(n){return t.call(r,n,i)}))}if(this.props.indexOf(Qe)>=0){return}if(a.svg){this.svgo=e.getAttribute("data-svg-origin");this.props.push(We,i,"")}n=Qe}(o||i)&&this.props.push(n,i,o[n])},Je=function t(n){if(n.translate){n.removeProperty("translate");n.removeProperty("scale");n.removeProperty("rotate")}},to=function t(){var n=this.props,i=this.target,r=i.style,e=i._gsap,o,a;for(o=0;o<n.length;o+=3){n[o+1]?i[n[o]]=n[o+2]:n[o+2]?r[n[o]]=n[o+2]:r.removeProperty(n[o].substr(0,2)==="--"?n[o]:n[o].replace(Ee,"-$1").toLowerCase())}if(this.tfm){for(a in this.tfm){e[a]=this.tfm[a]}if(e.svg){e.renderTransform();i.setAttribute("data-svg-origin",this.svgo||"")}o=Ze();if((!o||!o.isStart)&&!r[Qe]){Je(r);if(e.zOrigin&&r[We]){r[We]+=" "+e.zOrigin+"px";e.zOrigin=0;e.renderTransform()}e.uncache=1}}},no=function t(n,i){var r={target:n,props:[],revert:to,save:Ke};n._gsap||xe.core.getCache(n);i&&i.split(",").forEach((function(t){return r.save(t)}));return r},io,ro=function t(n,i){var r=ye.createElementNS?ye.createElementNS((i||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),n):ye.createElement(n);return r&&r.style?r:ye.createElement(n)},eo=function t(n,i,r){var e=getComputedStyle(n);return e[i]||e.getPropertyValue(i.replace(Ee,"-$1").toLowerCase())||e.getPropertyValue(i)||!r&&t(n,ao(i)||i,1)||""},oo="O,Moz,ms,Ms,Webkit".split(","),ao=function t(n,i,r){var e=i||Le,o=e.style,a=5;if(n in o&&!r){return n}n=n.charAt(0).toUpperCase()+n.substr(1);while(a--&&!(oo[a]+n in o)){}return a<0?null:(a===3?"ms":a>=0?oo[a]:"")+n},so=function t(){if(Be()&&window.document){me=window;ye=me.document;Me=ye.documentElement;Le=ro("div")||{style:{}};ro("div");Qe=ao(Qe);We=Qe+"Origin";Le.style.cssText="border-width:0;line-height:0;position:absolute;padding:0";io=!!ao("perspective");Ze=xe.core.reverting;ke=1}},co=function t(n){var i=ro("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,e=this.nextSibling,o=this.style.cssText,a;Me.appendChild(i);i.appendChild(this);this.style.display="block";if(n){try{a=this.getBBox();this._gsapBBox=this.getBBox;this.getBBox=t}catch(t){}}else if(this._gsapBBox){a=this._gsapBBox()}if(r){if(e){r.insertBefore(this,e)}else{r.appendChild(this)}}Me.removeChild(i);this.style.cssText=o;return a},lo=function t(n,i){var r=i.length;while(r--){if(n.hasAttribute(i[r])){return n.getAttribute(i[r])}}},ho=function t(n){var i;try{i=n.getBBox()}catch(t){i=co.call(n,true)}i&&(i.width||i.height)||n.getBBox===co||(i=co.call(n,true));return i&&!i.width&&!i.x&&!i.y?{x:+lo(n,["x","cx","x1"])||0,y:+lo(n,["y","cy","y1"])||0,width:0,height:0}:i},uo=function t(n){return!!(n.getCTM&&(!n.parentNode||n.ownerSVGElement)&&ho(n))},fo=function t(n,i){if(i){var r=n.style,e;if(i in He&&i!==We){i=Qe}if(r.removeProperty){e=i.substr(0,2);if(e==="ms"||i.substr(0,6)==="webkit"){i="-"+i}r.removeProperty(e==="--"?i:i.replace(Ee,"-$1").toLowerCase())}else{r.removeAttribute(i)}}},Co=function t(n,i,r,e,o,a){var s=new ae(n._pt,i,r,0,1,a?Te:Ge);n._pt=s;s.b=e;s.e=o;n._props.push(r);return s},po={deg:1,rad:1,turn:1},vo={grid:1,flex:1},go=function t(n,i,r,e){var o=parseFloat(r)||0,a=(r+"").trim().substr((o+"").length)||"px",s=Le.style,c=ze.test(i),l=n.tagName.toLowerCase()==="svg",h=(l?"client":"offset")+(c?"Width":"Height"),d=100,u=e==="px",f=e==="%",C,p,v,g;if(e===a||!o||po[e]||po[a]){return o}a!=="px"&&!u&&(o=t(n,i,r,"px"));g=n.getCTM&&uo(n);if((f||a==="%")&&(He[i]||~i.indexOf("adius"))){C=g?n.getBBox()[c?"width":"height"]:n[h];return Rn(f?o/C*d:o/100*C)}s[c?"width":"height"]=d+(u?a:e);p=~i.indexOf("adius")||e==="em"&&n.appendChild&&!l?n:n.parentNode;if(g){p=(n.ownerSVGElement||{}).parentNode}if(!p||p===ye||!p.appendChild){p=ye.body}v=p._gsap;if(v&&f&&v.width&&c&&v.time===pr.time&&!v.uncache){return Rn(o/v.width*d)}else{if(f&&(i==="height"||i==="width")){var w=n.style[i];n.style[i]=d+e;C=n[h];w?n.style[i]=w:fo(n,i)}else{(f||a==="%")&&!vo[eo(p,"display")]&&(s.position=eo(n,"position"));p===n&&(s.position="static");p.appendChild(Le);C=Le[h];p.removeChild(Le);s.position="absolute"}if(c&&f){v=qn(p);v.time=pr.time;v.width=p[h]}}return Rn(u?C*o/d:C&&o?d/C*o:0)},wo=function t(n,i,r,e){var o;ke||so();if(i in Oe&&i!=="transform"){i=Oe[i];if(~i.indexOf(",")){i=i.split(",")[0]}}if(He[i]&&i!=="transform"){o=Vo(n,e);o=i!=="transformOrigin"?o[i]:o.svg?o.origin:So(eo(n,We))+" "+o.zOrigin+"px"}else{o=n.style[i];if(!o||o==="auto"||e||~(o+"").indexOf("calc(")){o=Mo[i]&&Mo[i](n,i,r)||eo(n,i)||Gn(n,i)||(i==="opacity"?1:0)}}return r&&!~(o+"").trim().indexOf(" ")?go(n,i,o,r)+r:o},bo=function t(n,i,r,e){if(!r||r==="none"){var o=ao(i,n,1),a=o&&eo(n,o,1);if(a&&a!==r){i=o;r=a}else if(i==="borderColor"){r=eo(n,"borderTopColor")}}var s=new ae(this._pt,n.style,i,0,1,te),c=0,l=0,h,d,u,f,C,p,v,g,w,b,x,m;s.b=r;s.e=e;r+="";e+="";if(e==="auto"){p=n.style[i];n.style[i]=e;e=eo(n,i)||e;p?n.style[i]=p:fo(n,i)}h=[r,e];fr(h);r=h[0];e=h[1];u=r.match(dn)||[];m=e.match(dn)||[];if(m.length){while(d=dn.exec(e)){v=d[0];w=e.substring(c,d.index);if(C){C=(C+1)%5}else if(w.substr(-5)==="rgba("||w.substr(-5)==="hsla("){C=1}if(v!==(p=u[l++]||"")){f=parseFloat(p)||0;x=p.substr((f+"").length);v.charAt(1)==="="&&(v=$n(f,v)+x);g=parseFloat(v);b=v.substr((g+"").length);c=dn.lastIndex-b.length;if(!b){b=b||jt.units[i]||x;if(c===e.length){e+=b;s.e+=b}}if(x!==b){f=go(n,i,p,b)||0}s._pt={_next:s._pt,p:w||l===1?w:",",s:f,c:g-f,m:C&&C<4||i==="zIndex"?Math.round:0}}}s.c=c<e.length?e.substring(c,e.length):""}else{s.r=i==="display"&&e==="none"?Te:Ge}fn.test(e)&&(s.e=0);this._pt=s;return s},xo={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},mo=function t(n){var i=n.split(" "),r=i[0],e=i[1]||"50%";if(r==="top"||r==="bottom"||e==="left"||e==="right"){n=r;r=e;e=n}i[0]=xo[r]||r;i[1]=xo[e]||e;return i.join(" ")},yo=function t(n,i){if(i.tween&&i.tween._time===i.tween._dur){var r=i.t,e=r.style,o=i.u,a=r._gsap,s,c,l;if(o==="all"||o===true){e.cssText="";c=1}else{o=o.split(",");l=o.length;while(--l>-1){s=o[l];if(He[s]){c=1;s=s==="transformOrigin"?We:Qe}fo(r,s)}}if(c){fo(r,Qe);if(a){a.svg&&r.removeAttribute("transform");Vo(r,1);a.uncache=1;Je(e)}}}},Mo={clearProps:function t(n,i,r,e,o){if(o.data!=="isFromStart"){var a=n._pt=new ae(n._pt,i,r,0,0,yo);a.u=e;a.pr=-10;a.tween=o;n._props.push(r);return 1}}},ko=[1,0,0,1,0,0],Lo={},_o=function t(n){return n==="matrix(1, 0, 0, 1, 0, 0)"||n==="none"||!n},Zo=function t(n){var i=eo(n,Qe);return _o(i)?ko:i.substr(7).match(hn).map(Rn)},Bo=function t(n,i){var r=n._gsap||qn(n),e=n.style,o=Zo(n),a,s,c,l;if(r.svg&&n.getAttribute("transform")){c=n.transform.baseVal.consolidate().matrix;o=[c.a,c.b,c.c,c.d,c.e,c.f];return o.join(",")==="1,0,0,1,0,0"?ko:o}else if(o===ko&&!n.offsetParent&&n!==Me&&!r.svg){c=e.display;e.display="block";a=n.parentNode;if(!a||!n.offsetParent){l=1;s=n.nextElementSibling;Me.appendChild(n)}o=Zo(n);c?e.display=c:fo(n,"display");if(l){s?a.insertBefore(n,s):a?a.appendChild(n):Me.removeChild(n)}}return i&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o},Ho=function t(n,i,r,e,o,a){var s=n._gsap,c=o||Bo(n,true),l=s.xOrigin||0,h=s.yOrigin||0,d=s.xOffset||0,u=s.yOffset||0,f=c[0],C=c[1],p=c[2],v=c[3],g=c[4],w=c[5],b=i.split(" "),x=parseFloat(b[0])||0,m=parseFloat(b[1])||0,y,M,k,L;if(!r){y=ho(n);x=y.x+(~b[0].indexOf("%")?x/100*y.width:x);m=y.y+(~(b[1]||b[0]).indexOf("%")?m/100*y.height:m)}else if(c!==ko&&(M=f*v-C*p)){k=x*(v/M)+m*(-p/M)+(p*w-v*g)/M;L=x*(-C/M)+m*(f/M)-(f*w-C*g)/M;x=k;m=L}if(e||e!==false&&s.smooth){g=x-l;w=m-h;s.xOffset=d+(g*f+w*p)-g;s.yOffset=u+(g*C+w*v)-w}else{s.xOffset=s.yOffset=0}s.xOrigin=x;s.yOrigin=m;s.smooth=!!e;s.origin=i;s.originIsAbsolute=!!r;n.style[We]="0px 0px";if(a){Co(a,s,"xOrigin",l,x);Co(a,s,"yOrigin",h,m);Co(a,s,"xOffset",d,s.xOffset);Co(a,s,"yOffset",u,s.yOffset)}n.setAttribute("data-svg-origin",x+" "+m)},Vo=function t(n,i){var r=n._gsap||new Vr(n);if("x"in r&&!i&&!r.uncache){return r}var e=n.style,o=r.scaleX<0,a="px",s="deg",c=getComputedStyle(n),l=eo(n,We)||"0",h,d,u,f,C,p,v,g,w,b,x,m,y,M,k,L,_,Z,B,H,V,S,A,F,E,z,D,O,P,j,U,q;h=d=u=p=v=g=w=b=x=0;f=C=1;r.svg=!!(n.getCTM&&uo(n));if(c.translate){if(c.translate!=="none"||c.scale!=="none"||c.rotate!=="none"){e[Qe]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Qe]!=="none"?c[Qe]:"")}e.scale=e.rotate=e.translate="none"}M=Bo(n,r.svg);if(r.svg){if(r.uncache){E=n.getBBox();l=r.xOrigin-E.x+"px "+(r.yOrigin-E.y)+"px";F=""}else{F=!i&&n.getAttribute("data-svg-origin")}Ho(n,F||l,!!F||r.originIsAbsolute,r.smooth!==false,M)}m=r.xOrigin||0;y=r.yOrigin||0;if(M!==ko){Z=M[0];B=M[1];H=M[2];V=M[3];h=S=M[4];d=A=M[5];if(M.length===6){f=Math.sqrt(Z*Z+B*B);C=Math.sqrt(V*V+H*H);p=Z||B?Ae(B,Z)*Ve:0;w=H||V?Ae(H,V)*Ve+p:0;w&&(C*=Math.abs(Math.cos(w*Se)));if(r.svg){h-=m-(m*Z+y*H);d-=y-(m*B+y*V)}}else{q=M[6];j=M[7];D=M[8];O=M[9];P=M[10];U=M[11];h=M[12];d=M[13];u=M[14];k=Ae(q,P);v=k*Ve;if(k){L=Math.cos(-k);_=Math.sin(-k);F=S*L+D*_;E=A*L+O*_;z=q*L+P*_;D=S*-_+D*L;O=A*-_+O*L;P=q*-_+P*L;U=j*-_+U*L;S=F;A=E;q=z}k=Ae(-H,P);g=k*Ve;if(k){L=Math.cos(-k);_=Math.sin(-k);F=Z*L-D*_;E=B*L-O*_;z=H*L-P*_;U=V*_+U*L;Z=F;B=E;H=z}k=Ae(B,Z);p=k*Ve;if(k){L=Math.cos(k);_=Math.sin(k);F=Z*L+B*_;E=S*L+A*_;B=B*L-Z*_;A=A*L-S*_;Z=F;S=E}if(v&&Math.abs(v)+Math.abs(p)>359.9){v=p=0;g=180-g}f=Rn(Math.sqrt(Z*Z+B*B+H*H));C=Rn(Math.sqrt(A*A+q*q));k=Ae(S,A);w=Math.abs(k)>2e-4?k*Ve:0;x=U?1/(U<0?-U:U):0}if(r.svg){F=n.getAttribute("transform");r.forceCSS=n.setAttribute("transform","")||!_o(eo(n,Qe));F&&n.setAttribute("transform",F)}}if(Math.abs(w)>90&&Math.abs(w)<270){if(o){f*=-1;w+=p<=0?180:-180;p+=p<=0?180:-180}else{C*=-1;w+=w<=0?180:-180}}i=i||r.uncache;r.x=h-((r.xPercent=h&&(!i&&r.xPercent||(Math.round(n.offsetWidth/2)===Math.round(-h)?-50:0)))?n.offsetWidth*r.xPercent/100:0)+a;r.y=d-((r.yPercent=d&&(!i&&r.yPercent||(Math.round(n.offsetHeight/2)===Math.round(-d)?-50:0)))?n.offsetHeight*r.yPercent/100:0)+a;r.z=u+a;r.scaleX=Rn(f);r.scaleY=Rn(C);r.rotation=Rn(p)+s;r.rotationX=Rn(v)+s;r.rotationY=Rn(g)+s;r.skewX=w+s;r.skewY=b+s;r.transformPerspective=x+a;if(r.zOrigin=parseFloat(l.split(" ")[2])||!i&&r.zOrigin||0){e[We]=So(l)}r.xOffset=r.yOffset=0;r.force3D=jt.force3D;r.renderTransform=r.svg?Po:io?Oo:Fo;r.uncache=0;return r},So=function t(n){return(n=n.split(" "))[0]+" "+n[1]},Ao=function t(n,i,r){var e=Ai(i);return Rn(parseFloat(i)+parseFloat(go(n,"x",r+"px",e)))+e},Fo=function t(n,i){i.z="0px";i.rotationY=i.rotationX="0deg";i.force3D=0;Oo(n,i)},Eo="0deg",zo="0px",Do=") ",Oo=function t(n,i){var r=i||this,e=r.xPercent,o=r.yPercent,a=r.x,s=r.y,c=r.z,l=r.rotation,h=r.rotationY,d=r.rotationX,u=r.skewX,f=r.skewY,C=r.scaleX,p=r.scaleY,v=r.transformPerspective,g=r.force3D,w=r.target,b=r.zOrigin,x="",m=g==="auto"&&n&&n!==1||g===true;if(b&&(d!==Eo||h!==Eo)){var y=parseFloat(h)*Se,M=Math.sin(y),k=Math.cos(y),L;y=parseFloat(d)*Se;L=Math.cos(y);a=Ao(w,a,M*L*-b);s=Ao(w,s,-Math.sin(y)*-b);c=Ao(w,c,k*L*-b+b)}if(v!==zo){x+="perspective("+v+Do}if(e||o){x+="translate("+e+"%, "+o+"%) "}if(m||a!==zo||s!==zo||c!==zo){x+=c!==zo||m?"translate3d("+a+", "+s+", "+c+") ":"translate("+a+", "+s+Do}if(l!==Eo){x+="rotate("+l+Do}if(h!==Eo){x+="rotateY("+h+Do}if(d!==Eo){x+="rotateX("+d+Do}if(u!==Eo||f!==Eo){x+="skew("+u+", "+f+Do}if(C!==1||p!==1){x+="scale("+C+", "+p+Do}w.style[Qe]=x||"translate(0, 0)"},Po=function t(n,i){var r=i||this,e=r.xPercent,o=r.yPercent,a=r.x,s=r.y,c=r.rotation,l=r.skewX,h=r.skewY,d=r.scaleX,u=r.scaleY,f=r.target,C=r.xOrigin,p=r.yOrigin,v=r.xOffset,g=r.yOffset,w=r.forceCSS,b=parseFloat(a),x=parseFloat(s),m,y,M,k,L;c=parseFloat(c);l=parseFloat(l);h=parseFloat(h);if(h){h=parseFloat(h);l+=h;c+=h}if(c||l){c*=Se;l*=Se;m=Math.cos(c)*d;y=Math.sin(c)*d;M=Math.sin(c-l)*-u;k=Math.cos(c-l)*u;if(l){h*=Se;L=Math.tan(l-h);L=Math.sqrt(1+L*L);M*=L;k*=L;if(h){L=Math.tan(h);L=Math.sqrt(1+L*L);m*=L;y*=L}}m=Rn(m);y=Rn(y);M=Rn(M);k=Rn(k)}else{m=d;k=u;y=M=0}if(b&&!~(a+"").indexOf("px")||x&&!~(s+"").indexOf("px")){b=go(f,"x",a,"px");x=go(f,"y",s,"px")}if(C||p||v||g){b=Rn(b+C-(C*m+p*M)+v);x=Rn(x+p-(C*y+p*k)+g)}if(e||o){L=f.getBBox();b=Rn(b+e/100*L.width);x=Rn(x+o/100*L.height)}L="matrix("+m+","+y+","+M+","+k+","+b+","+x+")";f.setAttribute("transform",L);w&&(f.style[Qe]=L)},jo=function t(n,i,r,e,o){var a=360,s=Kt(o),c=parseFloat(o)*(s&&~o.indexOf("rad")?Ve:1),l=c-e,h=e+l+"deg",d,u;if(s){d=o.split("_")[1];if(d==="short"){l%=a;if(l!==l%(a/2)){l+=l<0?a:-a}}if(d==="cw"&&l<0){l=(l+a*Fe)%a-~~(l/a)*a}else if(d==="ccw"&&l>0){l=(l-a*Fe)%a-~~(l/a)*a}}n._pt=u=new ae(n._pt,i,r,e,l,je);u.e=h;u.u="deg";n._props.push(r);return u},Uo=function t(n,i){for(var r in i){n[r]=i[r]}return n},qo=function t(n,i,r){var e=Uo({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",a=r.style,s,c,l,h,d,u,f,C;if(e.svg){l=r.getAttribute("transform");r.setAttribute("transform","");a[Qe]=i;s=Vo(r,1);fo(r,Qe);r.setAttribute("transform",l)}else{l=getComputedStyle(r)[Qe];a[Qe]=i;s=Vo(r,1);a[Qe]=l}for(c in He){l=e[c];h=s[c];if(l!==h&&o.indexOf(c)<0){f=Ai(l);C=Ai(h);d=f!==C?go(r,c,l,C):parseFloat(l);u=parseFloat(h);n._pt=new ae(n._pt,s,c,d,u-d,Pe);n._pt.u=C||0;n._props.push(c)}}Uo(s,e)};Tn("padding,margin,Width,Radius",(function(t,n){var i="Top",r="Right",e="Bottom",o="Left",a=(n<3?[i,r,e,o]:[i+o,i+r,e+r,e+o]).map((function(i){return n<2?t+i:"border"+i+t}));Mo[n>1?"border"+t:t]=function(t,n,i,r,e){var o,s;if(arguments.length<4){o=a.map((function(n){return wo(t,n,i)}));s=o.join(" ");return s.split(o[0]).length===5?o[0]:s}o=(r+"").split(" ");s={};a.forEach((function(t,n){return s[t]=o[n]=o[n]||o[(n-1)/2|0]}));t.init(n,s,e)}}));var Go={name:"css",register:so,targetTest:function t(n){return n.style&&n.nodeType},init:function t(n,i,r,e,o){var a=this._props,s=n.style,c=r.vars.startAt,l,h,d,u,f,C,p,v,g,w,b,x,m,y,M,k;ke||so();this.styles=this.styles||no(n);k=this.styles.props;this.tween=r;for(p in i){if(p==="autoRound"){continue}h=i[p];if(zn[p]&&Dr(p,i,r,e,n,o)){continue}f=typeof h;C=Mo[p];if(f==="function"){h=h.call(r,e,n,o);f=typeof h}if(f==="string"&&~h.indexOf("random(")){h=Qi(h)}if(C){C(this,n,p,h,r)&&(M=1)}else if(p.substr(0,2)==="--"){l=(getComputedStyle(n).getPropertyValue(p)+"").trim();h+="";dr.lastIndex=0;if(!dr.test(l)){v=Ai(l);g=Ai(h)}g?v!==g&&(l=go(n,p,l,g)+g):v&&(h+=v);this.add(s,"setProperty",l,h,e,o,0,0,p);a.push(p);k.push(p,0,s[p])}else if(f!=="undefined"){if(c&&p in c){l=typeof c[p]==="function"?c[p].call(r,e,n,o):c[p];Kt(l)&&~l.indexOf("random(")&&(l=Qi(l));Ai(l+"")||l==="auto"||(l+=jt.units[p]||Ai(wo(n,p))||"");(l+"").charAt(1)==="="&&(l=wo(n,p))}else{l=wo(n,p)}u=parseFloat(l);w=f==="string"&&h.charAt(1)==="="&&h.substr(0,2);w&&(h=h.substr(2));d=parseFloat(h);if(p in Oe){if(p==="autoAlpha"){if(u===1&&wo(n,"visibility")==="hidden"&&d){u=0}k.push("visibility",0,s.visibility);Co(this,s,"visibility",u?"inherit":"hidden",d?"inherit":"hidden",!d)}if(p!=="scale"&&p!=="transform"){p=Oe[p];~p.indexOf(",")&&(p=p.split(",")[0])}}b=p in He;if(b){this.styles.save(p);if(!x){m=n._gsap;m.renderTransform&&!i.parseTransform||Vo(n,i.parseTransform);y=i.smoothOrigin!==false&&m.smooth;x=this._pt=new ae(this._pt,s,Qe,0,1,m.renderTransform,m,0,-1);x.dep=1}if(p==="scale"){this._pt=new ae(this._pt,m,"scaleY",m.scaleY,(w?$n(m.scaleY,w+d):d)-m.scaleY||0,Pe);this._pt.u=0;a.push("scaleY",p);p+="X"}else if(p==="transformOrigin"){k.push(We,0,s[We]);h=mo(h);if(m.svg){Ho(n,h,0,y,0,this)}else{g=parseFloat(h.split(" ")[2])||0;g!==m.zOrigin&&Co(this,m,"zOrigin",m.zOrigin,g);Co(this,s,p,So(l),So(h))}continue}else if(p==="svgOrigin"){Ho(n,h,1,y,0,this);continue}else if(p in Lo){jo(this,m,p,u,w?$n(u,w+h):h);continue}else if(p==="smoothOrigin"){Co(this,m,"smooth",m.smooth,h);continue}else if(p==="force3D"){m[p]=h;continue}else if(p==="transform"){qo(this,h,n);continue}}else if(!(p in s)){p=ao(p)||p}if(b||(d||d===0)&&(u||u===0)&&!De.test(h)&&p in s){v=(l+"").substr((u+"").length);d||(d=0);g=Ai(h)||(p in jt.units?jt.units[p]:v);v!==g&&(u=go(n,p,l,g));this._pt=new ae(this._pt,b?m:s,p,u,(w?$n(u,w+d):d)-u,!b&&(g==="px"||p==="zIndex")&&i.autoRound!==false?qe:Pe);this._pt.u=g||0;if(v!==g&&g!=="%"){this._pt.b=l;this._pt.r=Ue}}else if(!(p in s)){if(p in n){this.add(n,p,l||n[p],w?w+h:h,e,o)}else if(p!=="parseTransform"){kn(p,h);continue}}else{bo.call(this,n,p,l,w?w+h:h)}b||(p in s?k.push(p,0,s[p]):k.push(p,1,l||n[p]));a.push(p)}}M&&oe(this)},render:function t(n,i){if(i.tween._time||!Ze()){var r=i._pt;while(r){r.r(n,r.d);r=r._next}}else{i.styles.revert()}},get:wo,aliases:Oe,getSetter:function t(n,i,r){var e=Oe[i];e&&e.indexOf(",")<0&&(i=e);return i in He&&i!==We&&(n._gsap.x||wo(n,"x"))?r&&_e===r?i==="scale"?Ne:$e:(_e=r||{})&&(i==="scale"?Xe:Ye):n.style&&!nn(n.style[i])?Re:~i.indexOf("-")?Ie:Wr(n,i)},core:{_removeProperty:fo,_getMatrix:Bo}};xe.utils.checkPrefix=ao;xe.core.getStyleSaver=no;(function(t,n,i,r){var e=Tn(t+","+n+","+i,(function(t){He[t]=1}));Tn(n,(function(t){jt.units[t]="deg";Lo[t]=1}));Oe[e[13]]=t+","+n;Tn(r,(function(t){var n=t.split(":");Oe[n[1]]=e[n[0]]}))})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Tn("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){jt.units[t]="px"}));xe.registerPlugin(Go);var To=xe.registerPlugin(Go)||xe;const Ro=":host{--container-width:360px;--container-gap:16px;--container-border-radius:var(--cpsl-border-radius-modal);--container-border-width:1px;--container-border-color:var(--cpsl-color-modal-border);--container-background-color:var(--cpsl-color-modal-surface-footer);--container-padding-bottom:16px;--container-box-shadow:0px 2px 4px 0px var(--cpsl-color-alpha-black-8);--inner-container-background-color:var(--cpsl-color-modal-surface-main);--inner-container-border-radius:var(--cpsl-border-radius-modal);--inner-container-box-shadow:0px 1px 2px 0px var(--cpsl-color-alpha-black-8);--inner-container-padding-top:16px;--inner-container-padding-end:16px;--inner-container-padding-bottom:24px;--inner-container-padding-start:16px;--inner-container-margin-bottom:16px;display:inline-block}.modal-container{-webkit-padding-start:var(--container-padding-start);padding-inline-start:var(--container-padding-start);-webkit-padding-end:var(--container-padding-end);padding-inline-end:var(--container-padding-end);padding-top:var(--container-padding-top);padding-bottom:var(--container-padding-bottom);width:var(--container-width);display:flex;flex-direction:column;border:var(--container-border-width) solid var(--container-border-color);border-radius:var(--container-border-radius);box-shadow:var(--container-box-shadow);background-color:var(--container-background-color)}.modal-inner-container{-webkit-padding-start:var(--inner-container-padding-start);padding-inline-start:var(--inner-container-padding-start);-webkit-padding-end:var(--inner-container-padding-end);padding-inline-end:var(--inner-container-padding-end);padding-top:var(--inner-container-padding-top);padding-bottom:var(--inner-container-padding-bottom);margin-bottom:var(--inner-container-margin-bottom);display:flex;flex-direction:column;flex:1;border-radius:var(--inner-container-border-radius);box-shadow:var(--inner-container-box-shadow);background-color:var(--inner-container-background-color)}.expanded{height:0px;overflow:hidden}.modal-inner-container.no-footer{margin-bottom:0px;box-shadow:none}.modal-container.no-footer{padding-bottom:0px}";const Io=Ro;const $o=class{constructor(n){t(this,n);this.noFooter=undefined;this.footerExpanded=undefined;this.transitionDuration=.5}toggleHeight(){this.footerExpanded?this.expandFooterTl.play():this.expandFooterTl.reverse()}componentDidLoad(){if(!Boolean(this.el.querySelector('[slot="footer"]'))){this.noFooter=true}this.expandFooterTl=To.timeline({reversed:true,paused:true}).to(this.bodyEl,{height:"0px",duration:this.transitionDuration}).to(this.footerEl,{height:"0px",duration:this.transitionDuration},"<").to(this.footerExpandedEl,{height:"auto",duration:this.transitionDuration},"<").to(this.headerEl,{height:"0px",duration:this.transitionDuration},"<").to(this.headerExpandedEl,{height:"auto",duration:this.transitionDuration},"<")}get bodyEl(){return this.el.shadowRoot.getElementById("modal-body")}get footerEl(){return this.el.shadowRoot.getElementById("modal-footer")}get footerExpandedEl(){return this.el.shadowRoot.getElementById("modal-footer-expanded")}get headerEl(){return this.el.shadowRoot.getElementById("modal-header")}get headerExpandedEl(){return this.el.shadowRoot.getElementById("modal-header-expanded")}render(){return n(i,{key:"aa5c26013878e80fe58a2826d4cae04db88dace3"},n("div",{key:"5deda08b40a3e034e1c1b412eb7ab0c7780b4f53",class:{"modal-container":true,"no-footer":this.noFooter}},n("div",{key:"6f5340b60ded651410a3eec83ecca3ee0e24f643",class:{"modal-inner-container":true,"no-footer":this.noFooter}},n("div",{key:"632ecd039ac402971cd3f15efb30fc527402f0cd",id:"modal-header",class:"no-overflow"},n("slot",{key:"af0d35f477ff94d7f65b3bd81b845819ba8c8439",name:"header"})),n("div",{key:"6116bba4b65cebb91fd283106a58915216e5d828",id:"modal-header-expanded",class:{expanded:true,"no-overflow":true}},n("slot",{key:"d7cd88d70a15e2a02bc590422913c481f0b61a2e",name:"footerExpandedHeader"})),n("div",{key:"72e1ede4c4754526c83f2723d322717d8888bf6d",id:"modal-body",class:"no-overflow"},n("slot",{key:"66c63bb06b6b4ccce422855ecb483ab42ca6e27e",name:"body"}))),n("div",{key:"fec82340b95072a6d3167fda064082005f760661",id:"modal-footer",class:"no-overflow"},n("slot",{key:"bcd91a6cf6ef753e4b0fbb163e93984a9afa15ca",name:"footer"})),n("div",{key:"a39a058058adedb6494c307729823467d6c45df7",id:"modal-footer-expanded",class:{expanded:true,"no-overflow":true}},n("slot",{key:"d5f0d390de50e0706358bd033655047c742298e2",name:"footerExpandedFooter"}))))}get el(){return e(this)}static get watchers(){return{footerExpanded:["toggleHeight"]}}};$o.style=Io;const No=":host{position:fixed;width:100%;height:100%;top:0;left:0;z-index:100000;opacity:0%;display:none;background-color:var(--cpsl-color-alpha-black-50)}";const Xo=No;const Yo=class{constructor(n){t(this,n);this.open=undefined;this.transitionDuration=.5}toggleHeight(){this.open?this.showTl.play():this.showTl.reverse();if(this.open){document.documentElement.style.overflow="hidden"}else{setTimeout((()=>{document.documentElement.style.overflow="auto"}),this.transitionDuration*1e3)}}componentDidLoad(){this.showTl=To.timeline({reversed:true,paused:true}).to(this.el,{display:"block",duration:this.transitionDuration}).to(this.el,{opacity:"100%",duration:this.transitionDuration},"<");if(this.open){this.showTl.play();document.documentElement.style.overflow="hidden"}}render(){return n(i,{key:"55a5b7f277d010d63f1e991d210b038c393fb387"},n("slot",{key:"59957e5f35e8b007ba32177672870d7240ca501c"}))}get el(){return e(this)}static get watchers(){return{open:["toggleHeight"]}}};Yo.style=Xo;const Qo=":host{--pill-text-color:var(--cpsl-color-text-inverted);--pill-text-size:clamp(10px, 0.625rem, 15px);--pill-text-line-height:100%;--pill-container-height:18px;--pill-container-background-color:var(--cpsl-color-foreground-secondary);--pill-container-border-color:var(--cpsl-color-foreground-primary);--pill-container-padding-start:8px;--pill-container-padding-end:8px;--pill-container-border-radius:var(--cpsl-border-radius-pill);font-family:var(--cpsl-font-family, inherit);display:inline-block}.pill-container{-webkit-padding-start:var(--pill-container-padding-start);padding-inline-start:var(--pill-container-padding-start);-webkit-padding-end:var(--pill-container-padding-end);padding-inline-end:var(--pill-container-padding-end);padding-top:var(--pill-container-padding-top);padding-bottom:var(--pill-container-padding-bottom);display:flex;justify-content:center;align-items:center;box-sizing:border-box;height:var(--pill-container-height);background-color:var(--pill-container-background-color);border:1px solid;border-color:var(--pill-container-border-color);border-radius:var(--pill-container-border-radius);color:var(--pill-text-color);font-size:var(--pill-text-size);line-height:var(--pill-text-line-height)}.pill-container span{display:inline-block}";const Wo=Qo;const Ko=class{constructor(n){t(this,n);this.text=undefined}render(){return n(i,{key:"d82e8cf09017e22aab2c4e4d42295310116aad3c"},n("div",{key:"f7ec5045fdcf0d69873f5ddbfc46976a8c3bbacb",class:"pill-container"},n("span",{key:"d715965cf771800ad57f63509865d47a7344da95"},this.text)))}};Ko.style=Wo;const Jo=":host{--step-height:3px;--step-active-color:var(--cpsl-color-foreground-primary);--step-next-color:var(--cpsl-color-foreground-quarternary);--step-previous-color:var(--cpsl-color-foreground-ternary);display:flex;align-items:center;justify-content:center;gap:4px}.step{background-color:var(--step-next-color);border-radius:var(--step-border-radius, calc(var(--step-height) * 2));height:var(--step-height);flex:1;transition:all 0.5s}.previous{background-color:var(--step-previous-color)}.active{background-color:var(--step-active-color);flex:2}";const ta=Jo;const na=class{constructor(n){t(this,n);this.totalSteps=undefined;this.step=undefined}render(){const t=new Array(this.totalSteps).fill(0).map(((t,n)=>{let i={active:false,previous:false};if(n===this.step){i.active=true}else if(n<this.step){i.previous=true}return i}));return n(i,null,t.map((t=>n("div",{class:{step:true,active:t.active,previous:t.previous}}))))}};na.style=ta;function ia(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}var ra={exports:{}};(function(t,n){!function(n,i){t.exports=i()}(self,(function(){return(()=>{var t={192:(t,n)=>{var i,r,e=function(){var t=function(t,n){var i=t,r=a[n],e=null,o=0,c=null,v=[],g={},b=function(t,n){e=function(t){for(var n=new Array(t),i=0;i<t;i+=1){n[i]=new Array(t);for(var r=0;r<t;r+=1)n[i][r]=null}return n}(o=4*i+17),x(0,0),x(o-7,0),x(0,o-7),y(),m(),k(t,n),i>=7&&M(t),null==c&&(c=_(i,r,v)),L(c,n)},x=function(t,n){for(var i=-1;i<=7;i+=1)if(!(t+i<=-1||o<=t+i))for(var r=-1;r<=7;r+=1)n+r<=-1||o<=n+r||(e[t+i][n+r]=0<=i&&i<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=r&&r<=4)},m=function(){for(var t=8;t<o-8;t+=1)null==e[t][6]&&(e[t][6]=t%2==0);for(var n=8;n<o-8;n+=1)null==e[6][n]&&(e[6][n]=n%2==0)},y=function(){for(var t=s.getPatternPosition(i),n=0;n<t.length;n+=1)for(var r=0;r<t.length;r+=1){var o=t[n],a=t[r];if(null==e[o][a])for(var c=-2;c<=2;c+=1)for(var l=-2;l<=2;l+=1)e[o+c][a+l]=-2==c||2==c||-2==l||2==l||0==c&&0==l}},M=function(t){for(var n=s.getBCHTypeNumber(i),r=0;r<18;r+=1){var a=!t&&1==(n>>r&1);e[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!t&&1==(n>>r&1),e[r%3+o-8-3][Math.floor(r/3)]=a},k=function(t,n){for(var i=r<<3|n,a=s.getBCHTypeInfo(i),c=0;c<15;c+=1){var l=!t&&1==(a>>c&1);c<6?e[c][8]=l:c<8?e[c+1][8]=l:e[o-15+c][8]=l}for(c=0;c<15;c+=1)l=!t&&1==(a>>c&1),c<8?e[8][o-c-1]=l:c<9?e[8][15-c-1+1]=l:e[8][15-c-1]=l;e[o-8][8]=!t},L=function(t,n){for(var i=-1,r=o-1,a=7,c=0,l=s.getMaskFunction(n),h=o-1;h>0;h-=2)for(6==h&&(h-=1);;){for(var d=0;d<2;d+=1)if(null==e[r][h-d]){var u=!1;c<t.length&&(u=1==(t[c]>>>a&1)),l(r,h-d)&&(u=!u),e[r][h-d]=u,-1==(a-=1)&&(c+=1,a=7)}if((r+=i)<0||o<=r){r-=i,i=-i;break}}},_=function(t,n,i){for(var r=h.getRSBlocks(t,n),e=d(),o=0;o<i.length;o+=1){var a=i[o];e.put(a.getMode(),4),e.put(a.getLength(),s.getLengthInBits(a.getMode(),t)),a.write(e)}var c=0;for(o=0;o<r.length;o+=1)c+=r[o].dataCount;if(e.getLengthInBits()>8*c)throw"code length overflow. ("+e.getLengthInBits()+">"+8*c+")";for(e.getLengthInBits()+4<=8*c&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(!1);for(;!(e.getLengthInBits()>=8*c||(e.put(236,8),e.getLengthInBits()>=8*c));)e.put(17,8);return function(t,n){for(var i=0,r=0,e=0,o=new Array(n.length),a=new Array(n.length),c=0;c<n.length;c+=1){var h=n[c].dataCount,d=n[c].totalCount-h;r=Math.max(r,h),e=Math.max(e,d),o[c]=new Array(h);for(var u=0;u<o[c].length;u+=1)o[c][u]=255&t.getBuffer()[u+i];i+=h;var f=s.getErrorCorrectPolynomial(d),C=l(o[c],f.getLength()-1).mod(f);for(a[c]=new Array(f.getLength()-1),u=0;u<a[c].length;u+=1){var p=u+C.getLength()-a[c].length;a[c][u]=p>=0?C.getAt(p):0}}var v=0;for(u=0;u<n.length;u+=1)v+=n[u].totalCount;var g=new Array(v),w=0;for(u=0;u<r;u+=1)for(c=0;c<n.length;c+=1)u<o[c].length&&(g[w]=o[c][u],w+=1);for(u=0;u<e;u+=1)for(c=0;c<n.length;c+=1)u<a[c].length&&(g[w]=a[c][u],w+=1);return g}(e,r)};g.addData=function(t,n){var i=null;switch(n=n||"Byte"){case"Numeric":i=u(t);break;case"Alphanumeric":i=f(t);break;case"Byte":i=C(t);break;case"Kanji":i=p(t);break;default:throw"mode:"+n}v.push(i),c=null},g.isDark=function(t,n){if(t<0||o<=t||n<0||o<=n)throw t+","+n;return e[t][n]},g.getModuleCount=function(){return o},g.make=function(){if(i<1){for(var t=1;t<40;t++){for(var n=h.getRSBlocks(t,r),e=d(),o=0;o<v.length;o++){var a=v[o];e.put(a.getMode(),4),e.put(a.getLength(),s.getLengthInBits(a.getMode(),t)),a.write(e)}var c=0;for(o=0;o<n.length;o++)c+=n[o].dataCount;if(e.getLengthInBits()<=8*c)break}i=t}b(!1,function(){for(var t=0,n=0,i=0;i<8;i+=1){b(!0,i);var r=s.getLostPoint(g);(0==i||t>r)&&(t=r,n=i)}return n}())},g.createTableTag=function(t,n){t=t||2;var i="";i+='<table style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: "+(n=void 0===n?4*t:n)+"px;",i+='">',i+="<tbody>";for(var r=0;r<g.getModuleCount();r+=1){i+="<tr>";for(var e=0;e<g.getModuleCount();e+=1)i+='<td style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: 0px;",i+=" width: "+t+"px;",i+=" height: "+t+"px;",i+=" background-color: ",i+=g.isDark(r,e)?"#000000":"#ffffff",i+=";",i+='"/>';i+="</tr>"}return(i+="</tbody>")+"</table>"},g.createSvgTag=function(t,n,i,r){var e={};"object"==typeof arguments[0]&&(t=(e=arguments[0]).cellSize,n=e.margin,i=e.alt,r=e.title),t=t||2,n=void 0===n?4*t:n,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,c,l=g.getModuleCount()*t+2*n,h="";for(c="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",h+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',h+=e.scalable?"":' width="'+l+'px" height="'+l+'px"',h+=' viewBox="0 0 '+l+" "+l+'" ',h+=' preserveAspectRatio="xMinYMin meet"',h+=r.text||i.text?' role="img" aria-labelledby="'+Z([r.id,i.id].join(" ").trim())+'"':"",h+=">",h+=r.text?'<title id="'+Z(r.id)+'">'+Z(r.text)+"</title>":"",h+=i.text?'<description id="'+Z(i.id)+'">'+Z(i.text)+"</description>":"",h+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',h+='<path d="',a=0;a<g.getModuleCount();a+=1)for(s=a*t+n,o=0;o<g.getModuleCount();o+=1)g.isDark(a,o)&&(h+="M"+(o*t+n)+","+s+c);return(h+='" stroke="transparent" fill="black"/>')+"</svg>"},g.createDataURL=function(t,n){t=t||2,n=void 0===n?4*t:n;var i=g.getModuleCount()*t+2*n,r=n,e=i-n;return w(i,i,(function(n,i){if(r<=n&&n<e&&r<=i&&i<e){var o=Math.floor((n-r)/t),a=Math.floor((i-r)/t);return g.isDark(a,o)?0:1}return 1}))},g.createImgTag=function(t,n,i){t=t||2,n=void 0===n?4*t:n;var r=g.getModuleCount()*t+2*n,e="";return e+="<img",e+=' src="',e+=g.createDataURL(t,n),e+='"',e+=' width="',e+=r,e+='"',e+=' height="',e+=r,e+='"',i&&(e+=' alt="',e+=Z(i),e+='"'),e+"/>"};var Z=function(t){for(var n="",i=0;i<t.length;i+=1){var r=t.charAt(i);switch(r){case"<":n+="<";break;case">":n+=">";break;case"&":n+="&";break;case'"':n+=""";break;default:n+=r}}return n};return g.createASCII=function(t,n){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var n,i,r,e,o,a=1*g.getModuleCount()+2*t,s=t,c=a-t,l={"██":"█","█ ":"▀"," █":"▄"," ":" "},h={"██":"▀","█ ":"▀"," █":" "," ":" "},d="";for(n=0;n<a;n+=2){for(r=Math.floor((n-s)/1),e=Math.floor((n+1-s)/1),i=0;i<a;i+=1)o="█",s<=i&&i<c&&s<=n&&n<c&&g.isDark(r,Math.floor((i-s)/1))&&(o=" "),s<=i&&i<c&&s<=n+1&&n+1<c&&g.isDark(e,Math.floor((i-s)/1))?o+=" ":o+="█",d+=t<1&&n+1>=c?h[o]:l[o];d+="\n"}return a%2&&t>0?d.substring(0,d.length-a-1)+Array(a+1).join("▀"):d.substring(0,d.length-1)}(n);t-=1,n=void 0===n?2*t:n;var i,r,e,o,a=g.getModuleCount()*t+2*n,s=n,c=a-n,l=Array(t+1).join("██"),h=Array(t+1).join(" "),d="",u="";for(i=0;i<a;i+=1){for(e=Math.floor((i-s)/t),u="",r=0;r<a;r+=1)o=1,s<=r&&r<c&&s<=i&&i<c&&g.isDark(e,Math.floor((r-s)/t))&&(o=0),u+=o?l:h;for(e=0;e<t;e+=1)d+=u+"\n"}return d.substring(0,d.length-1)},g.renderTo2dContext=function(t,n){n=n||2;for(var i=g.getModuleCount(),r=0;r<i;r++)for(var e=0;e<i;e++)t.fillStyle=g.isDark(r,e)?"black":"white",t.fillRect(r*n,e*n,n,n)},g};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var n=[],i=0;i<t.length;i+=1){var r=t.charCodeAt(i);n.push(255&r)}return n}}).default,t.createStringToBytes=function(t,n){var i=function(){for(var i=g(t),r=function(){var t=i.read();if(-1==t)throw"eof";return t},e=0,o={};;){var a=i.read();if(-1==a)break;var s=r(),c=r()<<8|r();o[String.fromCharCode(a<<8|s)]=c,e+=1}if(e!=n)throw e+" != "+n;return o}(),r="?".charCodeAt(0);return function(t){for(var n=[],e=0;e<t.length;e+=1){var o=t.charCodeAt(e);if(o<128)n.push(o);else{var a=i[t.charAt(e)];"number"==typeof a?(255&a)==a?n.push(a):(n.push(a>>>8),n.push(255&a)):n.push(r)}}return n}};var n,i,r,e,o,a={L:1,M:0,Q:3,H:2},s=(n=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,r=7973,o=function(t){for(var n=0;0!=t;)n+=1,t>>>=1;return n},(e={}).getBCHTypeInfo=function(t){for(var n=t<<10;o(n)-o(i)>=0;)n^=i<<o(n)-o(i);return 21522^(t<<10|n)},e.getBCHTypeNumber=function(t){for(var n=t<<12;o(n)-o(r)>=0;)n^=r<<o(n)-o(r);return t<<12|n},e.getPatternPosition=function(t){return n[t-1]},e.getMaskFunction=function(t){switch(t){case 0:return function(t,n){return(t+n)%2==0};case 1:return function(t,n){return t%2==0};case 2:return function(t,n){return n%3==0};case 3:return function(t,n){return(t+n)%3==0};case 4:return function(t,n){return(Math.floor(t/2)+Math.floor(n/3))%2==0};case 5:return function(t,n){return t*n%2+t*n%3==0};case 6:return function(t,n){return(t*n%2+t*n%3)%2==0};case 7:return function(t,n){return(t*n%3+(t+n)%2)%2==0};default:throw"bad maskPattern:"+t}},e.getErrorCorrectPolynomial=function(t){for(var n=l([1],0),i=0;i<t;i+=1)n=n.multiply(l([1,c.gexp(i)],0));return n},e.getLengthInBits=function(t,n){if(1<=n&&n<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(n<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(n<41))throw"type:"+n;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},e.getLostPoint=function(t){for(var n=t.getModuleCount(),i=0,r=0;r<n;r+=1)for(var e=0;e<n;e+=1){for(var o=0,a=t.isDark(r,e),s=-1;s<=1;s+=1)if(!(r+s<0||n<=r+s))for(var c=-1;c<=1;c+=1)e+c<0||n<=e+c||0==s&&0==c||a==t.isDark(r+s,e+c)&&(o+=1);o>5&&(i+=3+o-5)}for(r=0;r<n-1;r+=1)for(e=0;e<n-1;e+=1){var l=0;t.isDark(r,e)&&(l+=1),t.isDark(r+1,e)&&(l+=1),t.isDark(r,e+1)&&(l+=1),t.isDark(r+1,e+1)&&(l+=1),0!=l&&4!=l||(i+=3)}for(r=0;r<n;r+=1)for(e=0;e<n-6;e+=1)t.isDark(r,e)&&!t.isDark(r,e+1)&&t.isDark(r,e+2)&&t.isDark(r,e+3)&&t.isDark(r,e+4)&&!t.isDark(r,e+5)&&t.isDark(r,e+6)&&(i+=40);for(e=0;e<n;e+=1)for(r=0;r<n-6;r+=1)t.isDark(r,e)&&!t.isDark(r+1,e)&&t.isDark(r+2,e)&&t.isDark(r+3,e)&&t.isDark(r+4,e)&&!t.isDark(r+5,e)&&t.isDark(r+6,e)&&(i+=40);var h=0;for(e=0;e<n;e+=1)for(r=0;r<n;r+=1)t.isDark(r,e)&&(h+=1);return i+Math.abs(100*h/n/n-50)/5*10},e),c=function(){for(var t=new Array(256),n=new Array(256),i=0;i<8;i+=1)t[i]=1<<i;for(i=8;i<256;i+=1)t[i]=t[i-4]^t[i-5]^t[i-6]^t[i-8];for(i=0;i<255;i+=1)n[t[i]]=i;return{glog:function(t){if(t<1)throw"glog("+t+")";return n[t]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return t[n]}}}();function l(t,n){if(void 0===t.length)throw t.length+"/"+n;var i=function(){for(var i=0;i<t.length&&0==t[i];)i+=1;for(var r=new Array(t.length-i+n),e=0;e<t.length-i;e+=1)r[e]=t[e+i];return r}(),r={getAt:function(t){return i[t]},getLength:function(){return i.length},multiply:function(t){for(var n=new Array(r.getLength()+t.getLength()-1),i=0;i<r.getLength();i+=1)for(var e=0;e<t.getLength();e+=1)n[i+e]^=c.gexp(c.glog(r.getAt(i))+c.glog(t.getAt(e)));return l(n,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var n=c.glog(r.getAt(0))-c.glog(t.getAt(0)),i=new Array(r.getLength()),e=0;e<r.getLength();e+=1)i[e]=r.getAt(e);for(e=0;e<t.getLength();e+=1)i[e]^=c.gexp(c.glog(t.getAt(e))+n);return l(i,0).mod(t)}};return r}var h=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],n=function(t,n){var i={};return i.totalCount=t,i.dataCount=n,i},i={getRSBlocks:function(i,r){var e=function(n,i){switch(i){case a.L:return t[4*(n-1)+0];case a.M:return t[4*(n-1)+1];case a.Q:return t[4*(n-1)+2];case a.H:return t[4*(n-1)+3];default:return}}(i,r);if(void 0===e)throw"bad rs block @ typeNumber:"+i+"/errorCorrectionLevel:"+r;for(var o=e.length/3,s=[],c=0;c<o;c+=1)for(var l=e[3*c+0],h=e[3*c+1],d=e[3*c+2],u=0;u<l;u+=1)s.push(n(h,d));return s}};return i}(),d=function(){var t=[],n=0,i={getBuffer:function(){return t},getAt:function(n){var i=Math.floor(n/8);return 1==(t[i]>>>7-n%8&1)},put:function(t,n){for(var r=0;r<n;r+=1)i.putBit(1==(t>>>n-r-1&1))},getLengthInBits:function(){return n},putBit:function(i){var r=Math.floor(n/8);t.length<=r&&t.push(0),i&&(t[r]|=128>>>n%8),n+=1}};return i},u=function(t){var n=t,i={getMode:function(){return 1},getLength:function(t){return n.length},write:function(t){for(var i=n,e=0;e+2<i.length;)t.put(r(i.substring(e,e+3)),10),e+=3;e<i.length&&(i.length-e==1?t.put(r(i.substring(e,e+1)),4):i.length-e==2&&t.put(r(i.substring(e,e+2)),7))}},r=function(t){for(var n=0,i=0;i<t.length;i+=1)n=10*n+e(t.charAt(i));return n},e=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return i},f=function(t){var n=t,i={getMode:function(){return 2},getLength:function(t){return n.length},write:function(t){for(var i=n,e=0;e+1<i.length;)t.put(45*r(i.charAt(e))+r(i.charAt(e+1)),11),e+=2;e<i.length&&t.put(r(i.charAt(e)),6)}},r=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return i},C=function(n){var i=t.stringToBytes(n);return{getMode:function(){return 4},getLength:function(t){return i.length},write:function(t){for(var n=0;n<i.length;n+=1)t.put(i[n],8)}}},p=function(n){var i=t.stringToBytesFuncs.SJIS;if(!i)throw"sjis not supported.";!function(t,n){var r=i("友");if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=i(n);return{getMode:function(){return 8},getLength:function(t){return~~(r.length/2)},write:function(t){for(var n=r,i=0;i+1<n.length;){var e=(255&n[i])<<8|255&n[i+1];if(33088<=e&&e<=40956)e-=33088;else{if(!(57408<=e&&e<=60351))throw"illegal char at "+(i+1)+"/"+e;e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13),i+=2}if(i<n.length)throw"illegal char at "+(i+1)}}},v=function(){var t=[],n={writeByte:function(n){t.push(255&n)},writeShort:function(t){n.writeByte(t),n.writeByte(t>>>8)},writeBytes:function(t,i,r){i=i||0,r=r||t.length;for(var e=0;e<r;e+=1)n.writeByte(t[e+i])},writeString:function(t){for(var i=0;i<t.length;i+=1)n.writeByte(t.charCodeAt(i))},toByteArray:function(){return t},toString:function(){var n="";n+="[";for(var i=0;i<t.length;i+=1)i>0&&(n+=","),n+=t[i];return n+"]"}};return n},g=function(t){var n=t,i=0,r=0,e=0,o={read:function(){for(;e<8;){if(i>=n.length){if(0==e)return-1;throw"unexpected end of file./"+e}var t=n.charAt(i);if(i+=1,"="==t)return e=0,-1;t.match(/^\s$/)||(r=r<<6|a(t.charCodeAt(0)),e+=6)}var o=r>>>e-8&255;return e-=8,o}},a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return o},w=function(t,n,i){for(var r=function(t,n){var i=t,r=n,e=new Array(t*n),o={setPixel:function(t,n,r){e[n*i+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(i),t.writeShort(r),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(i),t.writeShort(r),t.writeByte(0);var n=a(2);t.writeByte(2);for(var e=0;n.length-e>255;)t.writeByte(255),t.writeBytes(n,e,255),e+=255;t.writeByte(n.length-e),t.writeBytes(n,e,n.length-e),t.writeByte(0),t.writeString(";")}},a=function(t){for(var n=1<<t,i=1+(1<<t),r=t+1,o=s(),a=0;a<n;a+=1)o.add(String.fromCharCode(a));o.add(String.fromCharCode(n)),o.add(String.fromCharCode(i));var c,l,h,d=v(),u=(c=d,l=0,h=0,{write:function(t,n){if(t>>>n!=0)throw"length over";for(;l+n>=8;)c.writeByte(255&(t<<l|h)),n-=8-l,t>>>=8-l,h=0,l=0;h|=t<<l,l+=n},flush:function(){l>0&&c.writeByte(h)}});u.write(n,r);var f=0,C=String.fromCharCode(e[f]);for(f+=1;f<e.length;){var p=String.fromCharCode(e[f]);f+=1,o.contains(C+p)?C+=p:(u.write(o.indexOf(C),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(C+p)),C=p)}return u.write(o.indexOf(C),r),u.write(i,r),u.flush(),d.toByteArray()},s=function(){var t={},n=0,i={add:function(r){if(i.contains(r))throw"dup key:"+r;t[r]=n,n+=1},size:function(){return n},indexOf:function(n){return t[n]},contains:function(n){return void 0!==t[n]}};return i};return o}(t,n),e=0;e<n;e+=1)for(var o=0;o<t;o+=1)r.setPixel(o,e,i(o,e));var a=v();r.write(a);for(var s=function(){var t=0,n=0,i=0,r="",e={},o=function(t){r+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return e.writeByte=function(r){for(t=t<<8|255&r,n+=8,i+=1;n>=6;)o(t>>>n-6),n-=6},e.flush=function(){if(n>0&&(o(t<<6-n),t=0,n=0),i%3!=0)for(var e=3-i%3,a=0;a<e;a+=1)r+="="},e.toString=function(){return r},e}(),c=a.toByteArray(),l=0;l<c.length;l+=1)s.writeByte(c[l]);return s.flush(),"data:image/gif;base64,"+s};return t}();e.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var n=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?n.push(r):r<2048?n.push(192|r>>6,128|63&r):r<55296||r>=57344?n.push(224|r>>12,128|r>>6&63,128|63&r):(i++,r=65536+((1023&r)<<10|1023&t.charCodeAt(i)),n.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return n}(t)},void 0===(r="function"==typeof(i=function(){return e})?i.apply(n,[]):i)||(t.exports=r)},676:(t,n,i)=>{i.d(n,{default:()=>F});var r=function(){return(r=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},e=function(){for(var t=0,n=0,i=arguments.length;n<i;n++)t+=arguments[n].length;var r=Array(t),e=0;for(n=0;n<i;n++)for(var o=arguments[n],a=0,s=o.length;a<s;a++,e++)r[e]=o[a];return r},o=function(t){return!!t&&"object"==typeof t&&!Array.isArray(t)};function a(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!n.length)return t;var s=n.shift();return void 0!==s&&o(t)&&o(s)?(t=r({},t),Object.keys(s).forEach((function(n){var i=t[n],r=s[n];Array.isArray(i)&&Array.isArray(r)?t[n]=r:o(i)&&o(r)?t[n]=a(Object.assign({},i),r):t[n]=r})),a.apply(void 0,e([t],n))):t}function s(t,n){var i=document.createElement("a");i.download=n,i.href=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}function c(t){return n=this,i=void 0,e=function(){return function(t,n){var i,r,e,o,a={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(e=2&o[0]?r.return:o[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,o[1])).done)return e;switch(r=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((e=(e=a.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){a.label=o[1];break}if(6===o[0]&&a.label<e[1]){a.label=e[1],e=o;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(o);break}e[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{i=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){return[2,new Promise((function(n){var i=new XMLHttpRequest;i.onload=function(){var t=new FileReader;t.onloadend=function(){n(t.result)},t.readAsDataURL(i.response)},i.open("GET",t),i.responseType="blob",i.send()}))]}))},new((r=void 0)||(r=Promise))((function(t,o){function a(t){try{c(e.next(t))}catch(t){o(t)}}function s(t){try{c(e.throw(t))}catch(t){o(t)}}function c(n){var i;n.done?t(n.value):(i=n.value,i instanceof r?i:new r((function(t){t(i)}))).then(a,s)}c((e=e.apply(n,i||[])).next())}));var n,i,r,e}const l={L:.07,M:.15,Q:.25,H:.3};var h=function(){return(h=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};const d=function(){function t(t){var n=t.svg,i=t.type;this._svg=n,this._type=i}return t.prototype.draw=function(t,n,i,r){var e;switch(this._type){case"dots":e=this._drawDot;break;case"classy":e=this._drawClassy;break;case"classy-rounded":e=this._drawClassyRounded;break;case"rounded":e=this._drawRounded;break;case"extra-rounded":e=this._drawExtraRounded;break;case"square":default:e=this._drawSquare}e.call(this,{x:t,y:n,size:i,getNeighbor:r})},t.prototype._rotateFigure=function(t){var n,i=t.x,r=t.y,e=t.size,o=t.rotation,a=void 0===o?0:o,s=i+e/2,c=r+e/2;(0,t.draw)(),null===(n=this._element)||void 0===n||n.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),n._element.setAttribute("cx",String(r+i/2)),n._element.setAttribute("cy",String(e+i/2)),n._element.setAttribute("r",String(i/2))}}))},t.prototype._basicSquare=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),n._element.setAttribute("x",String(r)),n._element.setAttribute("y",String(e)),n._element.setAttribute("width",String(i)),n._element.setAttribute("height",String(i))}}))},t.prototype._basicSideRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("d","M "+r+" "+e+"v "+i+"h "+i/2+"a "+i/2+" "+i/2+", 0, 0, 0, 0 "+-i)}}))},t.prototype._basicCornerRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("d","M "+r+" "+e+"v "+i+"h "+i+"v "+-i/2+"a "+i/2+" "+i/2+", 0, 0, 0, "+-i/2+" "+-i/2)}}))},t.prototype._basicCornerExtraRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("d","M "+r+" "+e+"v "+i+"h "+i+"a "+i+" "+i+", 0, 0, 0, "+-i+" "+-i)}}))},t.prototype._basicCornersRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("d","M "+r+" "+e+"v "+i/2+"a "+i/2+" "+i/2+", 0, 0, 0, "+i/2+" "+i/2+"h "+i/2+"v "+-i/2+"a "+i/2+" "+i/2+", 0, 0, 0, "+-i/2+" "+-i/2)}}))},t.prototype._drawDot=function(t){var n=t.x,i=t.y,r=t.size;this._basicDot({x:n,y:i,size:r,rotation:0})},t.prototype._drawSquare=function(t){var n=t.x,i=t.y,r=t.size;this._basicSquare({x:n,y:i,size:r,rotation:0})},t.prototype._drawRounded=function(t){var n=t.x,i=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,a=e?+e(1,0):0,s=e?+e(0,-1):0,c=e?+e(0,1):0,l=o+a+s+c;if(0!==l)if(l>2||o&&a||s&&c)this._basicSquare({x:n,y:i,size:r,rotation:0});else{if(2===l){var h=0;return o&&s?h=Math.PI/2:s&&a?h=Math.PI:a&&c&&(h=-Math.PI/2),void this._basicCornerRounded({x:n,y:i,size:r,rotation:h})}if(1===l)return h=0,s?h=Math.PI/2:a?h=Math.PI:c&&(h=-Math.PI/2),void this._basicSideRounded({x:n,y:i,size:r,rotation:h})}else this._basicDot({x:n,y:i,size:r,rotation:0})},t.prototype._drawExtraRounded=function(t){var n=t.x,i=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,a=e?+e(1,0):0,s=e?+e(0,-1):0,c=e?+e(0,1):0,l=o+a+s+c;if(0!==l)if(l>2||o&&a||s&&c)this._basicSquare({x:n,y:i,size:r,rotation:0});else{if(2===l){var h=0;return o&&s?h=Math.PI/2:s&&a?h=Math.PI:a&&c&&(h=-Math.PI/2),void this._basicCornerExtraRounded({x:n,y:i,size:r,rotation:h})}if(1===l)return h=0,s?h=Math.PI/2:a?h=Math.PI:c&&(h=-Math.PI/2),void this._basicSideRounded({x:n,y:i,size:r,rotation:h})}else this._basicDot({x:n,y:i,size:r,rotation:0})},t.prototype._drawClassy=function(t){var n=t.x,i=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,a=e?+e(1,0):0,s=e?+e(0,-1):0,c=e?+e(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:n,y:i,size:r,rotation:0}):this._basicCornerRounded({x:n,y:i,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:n,y:i,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:n,y:i,size:r,rotation:Math.PI/2})},t.prototype._drawClassyRounded=function(t){var n=t.x,i=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,a=e?+e(1,0):0,s=e?+e(0,-1):0,c=e?+e(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:n,y:i,size:r,rotation:0}):this._basicCornerExtraRounded({x:n,y:i,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:n,y:i,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:n,y:i,size:r,rotation:Math.PI/2})},t}();var u=function(){return(u=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};const f=function(){function t(t){var n=t.svg,i=t.type;this._svg=n,this._type=i}return t.prototype.draw=function(t,n,i,r){var e;switch(this._type){case"square":e=this._drawSquare;break;case"extra-rounded":e=this._drawExtraRounded;break;case"dot":default:e=this._drawDot}e.call(this,{x:t,y:n,size:i,rotation:r})},t.prototype._rotateFigure=function(t){var n,i=t.x,r=t.y,e=t.size,o=t.rotation,a=void 0===o?0:o,s=i+e/2,c=r+e/2;(0,t.draw)(),null===(n=this._element)||void 0===n||n.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var n=this,i=t.size,r=t.x,e=t.y,o=i/7;this._rotateFigure(u(u({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("clip-rule","evenodd"),n._element.setAttribute("d","M "+(r+i/2)+" "+e+"a "+i/2+" "+i/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(i/2-o)+" "+(i/2-o)+" 0 1 1 -0.1 0Z")}}))},t.prototype._basicSquare=function(t){var n=this,i=t.size,r=t.x,e=t.y,o=i/7;this._rotateFigure(u(u({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("clip-rule","evenodd"),n._element.setAttribute("d","M "+r+" "+e+"v "+i+"h "+i+"v "+-i+"zM "+(r+o)+" "+(e+o)+"h "+(i-2*o)+"v "+(i-2*o)+"h "+(2*o-i)+"z")}}))},t.prototype._basicExtraRounded=function(t){var n=this,i=t.size,r=t.x,e=t.y,o=i/7;this._rotateFigure(u(u({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","path"),n._element.setAttribute("clip-rule","evenodd"),n._element.setAttribute("d","M "+r+" "+(e+2.5*o)+"v "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*o+"h "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*-o+"v "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*-o+"h "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*o+"M "+(r+2.5*o)+" "+(e+o)+"h "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*o+"v "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*o+"h "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*-o+"v "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*-o)}}))},t.prototype._drawDot=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicDot({x:n,y:i,size:r,rotation:e})},t.prototype._drawSquare=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicSquare({x:n,y:i,size:r,rotation:e})},t.prototype._drawExtraRounded=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicExtraRounded({x:n,y:i,size:r,rotation:e})},t}();var C=function(){return(C=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};const p=function(){function t(t){var n=t.svg,i=t.type;this._svg=n,this._type=i}return t.prototype.draw=function(t,n,i,r){var e;switch(this._type){case"square":e=this._drawSquare;break;case"dot":default:e=this._drawDot}e.call(this,{x:t,y:n,size:i,rotation:r})},t.prototype._rotateFigure=function(t){var n,i=t.x,r=t.y,e=t.size,o=t.rotation,a=void 0===o?0:o,s=i+e/2,c=r+e/2;(0,t.draw)(),null===(n=this._element)||void 0===n||n.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(C(C({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),n._element.setAttribute("cx",String(r+i/2)),n._element.setAttribute("cy",String(e+i/2)),n._element.setAttribute("r",String(i/2))}}))},t.prototype._basicSquare=function(t){var n=this,i=t.size,r=t.x,e=t.y;this._rotateFigure(C(C({},t),{draw:function(){n._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),n._element.setAttribute("x",String(r)),n._element.setAttribute("y",String(e)),n._element.setAttribute("width",String(i)),n._element.setAttribute("height",String(i))}}))},t.prototype._drawDot=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicDot({x:n,y:i,size:r,rotation:e})},t.prototype._drawSquare=function(t){var n=t.x,i=t.y,r=t.size,e=t.rotation;this._basicSquare({x:n,y:i,size:r,rotation:e})},t}(),v="circle";var g=function(t,n,i,r){return new(i||(i=Promise))((function(e,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(a,s)}c((r=r.apply(t,n||[])).next())}))},w=function(t,n){var i,r,e,o,a={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(e=2&o[0]?r.return:o[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,o[1])).done)return e;switch(r=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((e=(e=a.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){a.label=o[1];break}if(6===o[0]&&a.label<e[1]){a.label=e[1],e=o;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(o);break}e[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{i=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],x=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const m=function(){function t(t){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=t}return Object.defineProperty(t.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),t.prototype.getElement=function(){return this._element},t.prototype.drawQR=function(t){return g(this,void 0,void 0,(function(){var n,i,r,e,o,a,s,c,h,d,u=this;return w(this,(function(f){switch(f.label){case 0:return n=t.getModuleCount(),i=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===v?i/Math.sqrt(2):i,e=Math.floor(r/n),o={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(f.sent(),!this._image)return[2];a=this._options,s=a.imageOptions,c=a.qrOptions,h=s.imageSize*l[c.errorCorrectionLevel],d=Math.floor(h*n*n),o=function(t){var n=t.originalHeight,i=t.originalWidth,r=t.maxHiddenDots,e=t.maxHiddenAxisDots,o=t.dotSize,a={x:0,y:0},s={x:0,y:0};if(n<=0||i<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var c=n/i;return a.x=Math.floor(Math.sqrt(r/c)),a.x<=0&&(a.x=1),e&&e<a.x&&(a.x=e),a.x%2==0&&a.x--,s.x=a.x*o,a.y=1+2*Math.ceil((a.x*c-1)/2),s.y=Math.round(s.x*c),(a.y*a.x>r||e&&e<a.y)&&(e&&e<a.y?(a.y=e,a.y%2==0&&a.x--):a.y-=2,s.y=a.y*o,a.x=1+2*Math.ceil((a.y/c-1)/2),s.x=Math.round(s.y/c)),{height:s.y,width:s.x,hideYDots:a.y,hideXDots:a.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:d,maxHiddenAxisDots:n-14,dotSize:e}),f.label=2;case 2:return this.drawBackground(),this.drawDots((function(t,i){var r,e,a,s,c,l;return!(u._options.imageOptions.hideBackgroundDots&&t>=(n-o.hideXDots)/2&&t<(n+o.hideXDots)/2&&i>=(n-o.hideYDots)/2&&i<(n+o.hideYDots)/2||(null===(r=b[t])||void 0===r?void 0:r[i])||(null===(e=b[t-n+7])||void 0===e?void 0:e[i])||(null===(a=b[t])||void 0===a?void 0:a[i-n+7])||(null===(s=x[t])||void 0===s?void 0:s[i])||(null===(c=x[t-n+7])||void 0===c?void 0:c[i])||(null===(l=x[t])||void 0===l?void 0:l[i-n+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:n,dotSize:e})]:[3,4];case 3:f.sent(),f.label=4;case 4:return[2]}}))}))},t.prototype.drawBackground=function(){var t,n,i,r=this._element,e=this._options;if(r){var o=null===(t=e.backgroundOptions)||void 0===t?void 0:t.gradient,a=null===(n=e.backgroundOptions)||void 0===n?void 0:n.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:e.height,width:e.width,name:"background-color"}),null===(i=e.backgroundOptions)||void 0===i?void 0:i.round){var s=Math.min(e.width,e.height),c=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),c.setAttribute("x",String((e.width-s)/2)),c.setAttribute("y",String((e.height-s)/2)),c.setAttribute("width",String(s)),c.setAttribute("height",String(s)),c.setAttribute("rx",String(s/2*e.backgroundOptions.round)),this._backgroundClipPath.appendChild(c)}}},t.prototype.drawDots=function(t){var n,i,r=this;if(!this._qr)throw"QR code is not defined";var e=this._options,o=this._qr.getModuleCount();if(o>e.width||o>e.height)throw"The canvas is too small.";var a=Math.min(e.width,e.height)-2*e.margin,s=e.shape===v?a/Math.sqrt(2):a,c=Math.floor(s/o),l=Math.floor((e.width-o*c)/2),h=Math.floor((e.height-o*c)/2),u=new d({svg:this._element,type:e.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(n=e.dotsOptions)||void 0===n?void 0:n.gradient,color:e.dotsOptions.color,additionalRotation:0,x:0,y:0,height:e.height,width:e.width,name:"dot-color"});for(var f=function(n){for(var e=function(e){return t&&!t(n,e)?"continue":(null===(i=C._qr)||void 0===i?void 0:i.isDark(n,e))?(u.draw(l+n*c,h+e*c,c,(function(i,a){return!(n+i<0||e+a<0||n+i>=o||e+a>=o)&&!(t&&!t(n+i,e+a))&&!!r._qr&&r._qr.isDark(n+i,e+a)})),void(u._element&&C._dotsClipPath&&C._dotsClipPath.appendChild(u._element))):"continue"},a=0;a<o;a++)e(a)},C=this,p=0;p<o;p++)f(p);if(e.shape===v){var g=Math.floor((a/c-o)/2),w=o+2*g,b=l-g*c,x=h-g*c,m=[],y=Math.floor(w/2);for(p=0;p<w;p++){m[p]=[];for(var M=0;M<w;M++)p>=g-1&&p<=w-g&&M>=g-1&&M<=w-g||Math.sqrt((p-y)*(p-y)+(M-y)*(M-y))>y?m[p][M]=0:m[p][M]=this._qr.isDark(M-2*g<0?M:M>=o?M-2*g:M-g,p-2*g<0?p:p>=o?p-2*g:p-g)?1:0}var k=function(t){for(var n=function(n){if(!m[t][n])return"continue";u.draw(b+t*c,x+n*c,c,(function(i,r){var e;return!!(null===(e=m[t+i])||void 0===e?void 0:e[n+r])})),u._element&&L._dotsClipPath&&L._dotsClipPath.appendChild(u._element)},i=0;i<w;i++)n(i)},L=this;for(p=0;p<w;p++)k(p)}},t.prototype.drawCorners=function(){var t=this;if(!this._qr)throw"QR code is not defined";var n=this._element,i=this._options;if(!n)throw"Element code is not defined";var r=this._qr.getModuleCount(),e=Math.min(i.width,i.height)-2*i.margin,o=i.shape===v?e/Math.sqrt(2):e,a=Math.floor(o/r),s=7*a,c=3*a,l=Math.floor((i.width-r*a)/2),h=Math.floor((i.height-r*a)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(n){var e,o,u,C,v,g,w,m,y,M,k,L,_=n[0],Z=n[1],B=n[2],H=l+_*a*(r-7),V=h+Z*a*(r-7),S=t._dotsClipPath,A=t._dotsClipPath;if(((null===(e=i.cornersSquareOptions)||void 0===e?void 0:e.gradient)||(null===(o=i.cornersSquareOptions)||void 0===o?void 0:o.color))&&((S=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+_+"-"+Z),t._defs.appendChild(S),t._cornersSquareClipPath=t._cornersDotClipPath=A=S,t._createColor({options:null===(u=i.cornersSquareOptions)||void 0===u?void 0:u.gradient,color:null===(C=i.cornersSquareOptions)||void 0===C?void 0:C.color,additionalRotation:B,x:H,y:V,height:s,width:s,name:"corners-square-color-"+_+"-"+Z})),null===(v=i.cornersSquareOptions)||void 0===v?void 0:v.type){var F=new f({svg:t._element,type:i.cornersSquareOptions.type});F.draw(H,V,s,B),F._element&&S&&S.appendChild(F._element)}else for(var E=new d({svg:t._element,type:i.dotsOptions.type}),z=function(t){for(var n=function(n){if(!(null===(g=b[t])||void 0===g?void 0:g[n]))return"continue";E.draw(H+t*a,V+n*a,a,(function(i,r){var e;return!!(null===(e=b[t+i])||void 0===e?void 0:e[n+r])})),E._element&&S&&S.appendChild(E._element)},i=0;i<b[t].length;i++)n(i)},D=0;D<b.length;D++)z(D);if(((null===(w=i.cornersDotOptions)||void 0===w?void 0:w.gradient)||(null===(m=i.cornersDotOptions)||void 0===m?void 0:m.color))&&((A=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+_+"-"+Z),t._defs.appendChild(A),t._cornersDotClipPath=A,t._createColor({options:null===(y=i.cornersDotOptions)||void 0===y?void 0:y.gradient,color:null===(M=i.cornersDotOptions)||void 0===M?void 0:M.color,additionalRotation:B,x:H+2*a,y:V+2*a,height:c,width:c,name:"corners-dot-color-"+_+"-"+Z})),null===(k=i.cornersDotOptions)||void 0===k?void 0:k.type){var O=new p({svg:t._element,type:i.cornersDotOptions.type});O.draw(H+2*a,V+2*a,c,B),O._element&&A&&A.appendChild(O._element)}else{E=new d({svg:t._element,type:i.dotsOptions.type});var P=function(t){for(var n=function(n){if(!(null===(L=x[t])||void 0===L?void 0:L[n]))return"continue";E.draw(H+t*a,V+n*a,a,(function(i,r){var e;return!!(null===(e=x[t+i])||void 0===e?void 0:e[n+r])})),E._element&&A&&A.appendChild(E._element)},i=0;i<x[t].length;i++)n(i)};for(D=0;D<x.length;D++)P(D)}}))},t.prototype.loadImage=function(){var t=this;return new Promise((function(n,i){var r=t._options,e=new Image;if(!r.image)return i("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(e.crossOrigin=r.imageOptions.crossOrigin),t._image=e,e.onload=function(){n()},e.src=r.image}))},t.prototype.drawImage=function(t){var n=t.width,i=t.height,r=t.count,e=t.dotSize;return g(this,void 0,void 0,(function(){var t,o,a,s,l,h,d,u,f;return w(this,(function(C){switch(C.label){case 0:return t=this._options,o=Math.floor((t.width-r*e)/2),a=Math.floor((t.height-r*e)/2),s=o+t.imageOptions.margin+(r*e-n)/2,l=a+t.imageOptions.margin+(r*e-i)/2,h=n-2*t.imageOptions.margin,d=i-2*t.imageOptions.margin,(u=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(s)),u.setAttribute("y",String(l)),u.setAttribute("width",h+"px"),u.setAttribute("height",d+"px"),[4,c(t.image||"")];case 1:return f=C.sent(),u.setAttribute("href",f||""),this._element.appendChild(u),[2]}}))}))},t.prototype._createColor=function(t){var n=t.options,i=t.color,r=t.additionalRotation,e=t.x,o=t.y,a=t.height,s=t.width,c=t.name,l=s>a?s:a,h=document.createElementNS("http://www.w3.org/2000/svg","rect");if(h.setAttribute("x",String(e)),h.setAttribute("y",String(o)),h.setAttribute("height",String(a)),h.setAttribute("width",String(s)),h.setAttribute("clip-path","url('#clip-path-"+c+"')"),n){var d;if("radial"===n.type)(d=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",c),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("fx",String(e+s/2)),d.setAttribute("fy",String(o+a/2)),d.setAttribute("cx",String(e+s/2)),d.setAttribute("cy",String(o+a/2)),d.setAttribute("r",String(l/2));else{var u=((n.rotation||0)+r)%(2*Math.PI),f=(u+2*Math.PI)%(2*Math.PI),C=e+s/2,p=o+a/2,v=e+s/2,g=o+a/2;f>=0&&f<=.25*Math.PI||f>1.75*Math.PI&&f<=2*Math.PI?(C-=s/2,p-=a/2*Math.tan(u),v+=s/2,g+=a/2*Math.tan(u)):f>.25*Math.PI&&f<=.75*Math.PI?(p-=a/2,C-=s/2/Math.tan(u),g+=a/2,v+=s/2/Math.tan(u)):f>.75*Math.PI&&f<=1.25*Math.PI?(C+=s/2,p+=a/2*Math.tan(u),v-=s/2,g-=a/2*Math.tan(u)):f>1.25*Math.PI&&f<=1.75*Math.PI&&(p+=a/2,C+=s/2/Math.tan(u),g-=a/2,v-=s/2/Math.tan(u)),(d=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",c),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("x1",String(Math.round(C))),d.setAttribute("y1",String(Math.round(p))),d.setAttribute("x2",String(Math.round(v))),d.setAttribute("y2",String(Math.round(g)))}n.colorStops.forEach((function(t){var n=t.offset,i=t.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*n+"%"),r.setAttribute("stop-color",i),d.appendChild(r)})),h.setAttribute("fill","url('#"+c+"')"),this._defs.appendChild(d)}else i&&h.setAttribute("fill",i);this._element.appendChild(h)},t}(),y="canvas";for(var M={},k=0;k<=40;k++)M[k]=k;const L={type:y,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:M[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var _=function(){return(_=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function Z(t){var n=_({},t);if(!n.colorStops||!n.colorStops.length)throw"Field 'colorStops' is required in gradient";return n.rotation?n.rotation=Number(n.rotation):n.rotation=0,n.colorStops=n.colorStops.map((function(t){return _(_({},t),{offset:Number(t.offset)})})),n}function B(t){var n=_({},t);return n.width=Number(n.width),n.height=Number(n.height),n.margin=Number(n.margin),n.imageOptions=_(_({},n.imageOptions),{hideBackgroundDots:Boolean(n.imageOptions.hideBackgroundDots),imageSize:Number(n.imageOptions.imageSize),margin:Number(n.imageOptions.margin)}),n.margin>Math.min(n.width,n.height)&&(n.margin=Math.min(n.width,n.height)),n.dotsOptions=_({},n.dotsOptions),n.dotsOptions.gradient&&(n.dotsOptions.gradient=Z(n.dotsOptions.gradient)),n.cornersSquareOptions&&(n.cornersSquareOptions=_({},n.cornersSquareOptions),n.cornersSquareOptions.gradient&&(n.cornersSquareOptions.gradient=Z(n.cornersSquareOptions.gradient))),n.cornersDotOptions&&(n.cornersDotOptions=_({},n.cornersDotOptions),n.cornersDotOptions.gradient&&(n.cornersDotOptions.gradient=Z(n.cornersDotOptions.gradient))),n.backgroundOptions&&(n.backgroundOptions=_({},n.backgroundOptions),n.backgroundOptions.gradient&&(n.backgroundOptions.gradient=Z(n.backgroundOptions.gradient))),n}var H=i(192),V=i.n(H),S=function(t,n,i,r){return new(i||(i=Promise))((function(e,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(a,s)}c((r=r.apply(t,n||[])).next())}))},A=function(t,n){var i,r,e,o,a={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(e=2&o[0]?r.return:o[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,o[1])).done)return e;switch(r=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((e=(e=a.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){a.label=o[1];break}if(6===o[0]&&a.label<e[1]){a.label=e[1],e=o;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(o);break}e[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{i=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};const F=function(){function t(t){this._options=t?B(a(L,t)):L,this.update()}return t._clearContainer=function(t){t&&(t.innerHTML="")},t.prototype._setupSvg=function(){var t=this;if(this._qr){var n=new m(this._options);this._svg=n.getElement(),this._svgDrawingPromise=n.drawQR(this._qr).then((function(){var i;t._svg&&(null===(i=t._extension)||void 0===i||i.call(t,n.getElement(),t._options))}))}},t.prototype._setupCanvas=function(){var t,n=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=null===(t=this._svgDrawingPromise)||void 0===t?void 0:t.then((function(){if(n._svg){var t=n._svg,i=(new XMLSerializer).serializeToString(t),r="data:image/svg+xml;base64,"+btoa(i),e=new Image;return new Promise((function(t){e.onload=function(){var i,r;null===(r=null===(i=n._canvas)||void 0===i?void 0:i.getContext("2d"))||void 0===r||r.drawImage(e,0,0),t()},e.src=r}))}})))},t.prototype._getElement=function(t){return void 0===t&&(t="png"),S(this,void 0,void 0,(function(){return A(this,(function(n){switch(n.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==t.toLowerCase()?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return n.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return n.sent(),[2,this._canvas]}}))}))},t.prototype.update=function(n){t._clearContainer(this._container),this._options=n?B(a(this._options,n)):this._options,this._options.data&&(this._qr=V()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===y?this._setupCanvas():this._setupSvg(),this.append(this._container))},t.prototype.append=function(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===y?this._canvas&&t.appendChild(this._canvas):this._svg&&t.appendChild(this._svg),this._container=t}},t.prototype.applyExtension=function(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()},t.prototype.deleteExtension=function(){this._extension=void 0,this.update()},t.prototype.getRawData=function(t){return void 0===t&&(t="png"),S(this,void 0,void 0,(function(){var n,i,r;return A(this,(function(e){switch(e.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(t)];case 1:return(n=e.sent())?"svg"===t.toLowerCase()?(i=new XMLSerializer,r=i.serializeToString(n),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(i){return n.toBlob(i,"image/"+t,1)}))]:[2,null]}}))}))},t.prototype.download=function(t){return S(this,void 0,void 0,(function(){var n,i,r,e,o;return A(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return n="png",i="qr","string"==typeof t?(n=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(i=t.name),t.extension&&(n=t.extension)),[4,this._getElement(n)];case 1:return(r=a.sent())?("svg"===n.toLowerCase()?(e=new XMLSerializer,o='<?xml version="1.0" standalone="no"?>\r\n'+(o=e.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),i+".svg")):s(r.toDataURL("image/"+n),i+"."+n),[2]):[2]}}))}))},t}()}},n={};function i(r){if(n[r])return n[r].exports;var e=n[r]={exports:{}};return t[r](e,e.exports,i),e.exports}return i.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return i.d(n,{a:n}),n},i.d=(t,n)=>{for(var r in n)i.o(n,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},i.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),i(676)})().default}))})(ra);const ea=ia(ra.exports);const oa=":host{--qr-color:var(--cpsl-color-black);--qr-background-color:var(--cpsl-color-white);--qr-border-color:var(--cpsl-color-foreground-quinary);--qr-border-radius:var(--cpsl-border-radius-qr-code);--qr-border-width:1px;--qr-box-shadow:0px 1px 2px var(--cpsl-color-alpha-black-10);display:inline-block}.qr-container{-webkit-padding-start:var(--qr-padding-start);padding-inline-start:var(--qr-padding-start);-webkit-padding-end:var(--qr-padding-end);padding-inline-end:var(--qr-padding-end);padding-top:var(--qr-padding-top);padding-bottom:var(--qr-padding-bottom);display:flex;color:var(--qr-color);border-style:solid;border-width:var(--qr-border-width);border-color:var(--qr-border-color);border-radius:var(--qr-border-radius);background-color:var(--qr-background-color);box-shadow:var(--qr-box-shadow)}";const aa=oa;const sa=class{constructor(n){t(this,n);this.url=undefined;this.imageSrc=undefined;this.size=250}componentDidLoad(){const t=this.el.shadowRoot.getElementById("qr-container");t.innerHTML="";const n=new ea({type:"svg",data:this.url,image:this.imageSrc,height:this.size,width:this.size,qrOptions:{errorCorrectionLevel:"L"},backgroundOptions:{color:"transparent"},dotsOptions:{type:"dots",color:"currentColor"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"},imageOptions:{crossOrigin:"anonymous"}});n.append(t)}render(){return n(i,{key:"c26c87e8a22d8134a60f9efebd1e27169d59cb0c"},n("div",{key:"d9a8ede7f1ffbcd80d58b916d38f38fea7fc4f74",id:"qr-container",class:"qr-container"}))}get el(){return e(this)}};sa.style=aa;const ca=":host{--slider-container-font-size:14px;--slider-container-height:44px;--slider-container-border-width:1px;--slider-container-box-shadow:0px 0px 4px 0px var(--cpsl-color-alpha-black-10) inset;--slider-container-start-background-color:var(--cpsl-color-foreground-senary);--slider-container-end-background-color:var(--cpsl-color-foreground-primary);--slider-container-border-color:var(--cpsl-color-foreground-quinary);--slider-border-width:1px;--slider-box-shadow:3px 0px 4px 0px var(--cpsl-color-alpha-black-16);--slider-border-color:var(--cpsl-color-foreground-quinary);--slider-background-color:var(--cpsl-color-foreground-primary);--slider-color:var(--cpsl-color-text-inverted);--start-text-color:var(--cpsl-color-text-secondary);--end-text-color:var(--cpsl-color-text-inverted);font-family:var(--cpsl-font-family, inherit);display:block}.slider-container{overflow:hidden;position:relative;box-sizing:border-box;display:flex;align-items:center;font-size:var(--slider-container-font-size);font-weight:500;height:var(--slider-container-height);border-width:var(--slider-container-border-width);border-style:solid;border-color:var(--slider-container-border-color);border-radius:calc(var(--slider-container-height) / 2);box-shadow:var(--slider-container-box-shadow)}.slider-container-background{position:absolute;top:0;bottom:0;left:0;right:0}.start-slider-container-background{background-color:var(--slider-container-start-background-color);opacity:100%}.end-slider-container-background{background-color:var(--slider-container-end-background-color);opacity:0%}.start-text{user-select:none;color:var(--start-text-color);position:absolute;text-align:center;opacity:100%;width:calc(100% - var(--slider-container-height) - 8px - 16px);left:calc(var(--slider-container-height) - 4px + 8px)}.end-text{user-select:none;color:var(--end-text-color);position:absolute;text-align:center;opacity:0%;width:calc(100% - var(--slider-container-height) - 8px - 16px);left:16px}.icon{position:absolute}.start-icon{opacity:100%}.end-icon{opacity:0%}.slider{left:1px;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:absolute;z-index:10;height:calc(var(--slider-container-height) - 4px);width:calc(var(--slider-container-height) - 4px);color:var(--slider-color);background-color:var(--slider-background-color);border-width:var(--slider-border-width);border-style:solid;border-color:var(--slider-border-color);border-radius:100%;box-shadow:var(--slider-box-shadow)}.slider cpsl-icon{--icon-color:var(--slider-color)}";const la=ca;const ha=class{constructor(n){t(this,n);this.cpslComplete=r(this,"cpslComplete",7);this.endIcon=undefined;this.endText=undefined;this.startIcon=undefined;this.startText=undefined}componentDidLoad(){this.dragElement(this.el.shadowRoot.getElementById("slider"))}dragElement(t){const n=t=>{t.preventDefault();p=t.clientX;document.onmouseup=r;document.onmousemove=i};const i=n=>{n.preventDefault();C=p-n.clientX;p=n.clientX;const i=t.offsetLeft-C;if(i>=u&&i<=f){const n=Math.max(Math.min(Math.round(i/f*100)/100,100),0);a.style.opacity=`${(1-n*2)*100}%`;s.style.opacity=`${n*100}%`;e.style.opacity=`${(1-n*2)*100}%`;o.style.opacity=`${n*100}%`;c.style.opacity=`${n*100}%`;t.style.left=`${i}px`}};const r=()=>{if(t.offsetLeft+d>=h-d/2){t.style.left=`${f}px`;a.style.opacity="0%";s.style.opacity="100%";e.style.opacity="0%";o.style.opacity="100%";c.style.opacity="100%";this.cpslComplete.emit(true)}else{t.style.left=`${u}px`;a.style.opacity="100%";s.style.opacity="0%";e.style.opacity="100%";o.style.opacity="0%";c.style.opacity="0%"}document.onmouseup=null;document.onmousemove=null};const e=this.startIconEl;const o=this.endIconEl;const a=this.startTextEl;const s=this.endTextEl;const c=this.endBackgroundEl;const l=this.sliderContainerEl;const h=l.clientWidth;const d=t.getBoundingClientRect().height;const u=1;const f=h-d-1;let C=0,p=0;t.onmousedown=n}get sliderContainerEl(){return this.el.shadowRoot.getElementById("slider-container")}get startTextEl(){return this.el.shadowRoot.getElementById("start-text")}get endTextEl(){return this.el.shadowRoot.getElementById("end-text")}get endBackgroundEl(){return this.el.shadowRoot.getElementById("end-slider-container-background")}get startIconEl(){return this.el.shadowRoot.getElementById("start-icon")}get endIconEl(){return this.el.shadowRoot.getElementById("end-icon")}render(){return n(i,{key:"3025e2306923953edd5857009828af027cd0d561"},n("div",{key:"5557072bcccfc099af005fed9af45adf335a98dd",id:"slider-container",class:"slider-container"},n("div",{key:"39e1b5d2123eda0a004c0f250c8afa66b53768f4",id:"start-slider-container-background",class:{"start-slider-container-background":true,"slider-container-background":true}}),n("div",{key:"80486f55315077693d481e193eba1bf37acd5afd",id:"end-slider-container-background",class:{"end-slider-container-background":true,"slider-container-background":true}}),n("div",{key:"c13596a1a117aa3e5674d5a91c0ec38ff9ac7a49",id:"slider",class:"slider"},n("cpsl-icon",{key:"d2d78f42e65efd180c9dd106738341cf0aee6f27",id:"start-icon",class:{"start-icon":true,icon:true},icon:this.startIcon}),n("cpsl-icon",{key:"63f9ce569084f2541c69028aedc949b3ecccac0c",id:"end-icon",class:{"end-icon":true,icon:true},icon:this.endIcon})),n("span",{key:"9bead9870b949f91734c4199d9c96f7b50a10128",id:"start-text",class:"start-text"},this.startText),n("span",{key:"8dfa1e9e0866a74f72d27b2541a4ac9d56038d34",id:"end-text",class:"end-text"},this.endText)))}get el(){return e(this)}};ha.style=la;const da=":host{--path-color:var(--cpsl-color-foreground-ternary);--circle-color:var(--cpsl-color-text-primary);display:flex;justify-content:center;align-items:center}:host path{stroke:var(--path-color)}:host circle{fill:var(--circle-color)}";const ua=da;const fa=class{constructor(n){t(this,n);this.size=54;this.speed=1}render(){return n(i,{key:"c67c084c1bae79ba255ca736de4721d1f6ea928d",style:{height:`${this.size}px`,width:`${this.size}px`,animation:`spin ${this.speed}s linear infinite`,"-webkit-animation":`spin ${this.speed}s linear infinite`,"-moz-animation":`spin ${this.speed}s linear infinite`}},n("svg",{key:"a14c9a8d895fb713fd1a8533bca04fa6e60017d7",height:this.size,width:this.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 54 54",fill:"none"},n("path",{key:"5aaaf7cf5c649b717329266517e5ea1f39fccce8",d:"M43.1586 17C39.8082 11.5978 33.8243 8 27 8C16.5066 8 8 16.5066 8 27C8 37.4934 16.5066 46 27 46C33.8242 46 39.8082 42.4022 43.1586 37","stroke-width":"6","stroke-linecap":"round"}),n("circle",{key:"a1a60d4f565a1cffb99177d4159a793621e7b288",cx:"45",cy:"27",r:"5"})))}};fa.style=ua;const Ca=":host{--tab-color:var(--cpsl-color-text-primary);padding-top:var(--tab-top-padding);padding-bottom:var(--tab-bottom-padding);padding-left:var(--tab-left-padding);padding-right:var(--tab-right-padding);display:flex;flex:1 1 auto;align-items:center;cursor:pointer;z-index:10}.tab-container{align-items:center;overflow:hidden;width:100%;text-overflow:ellipsis;text-align:center;white-space:nowrap;font-weight:500;color:var(--tab-color)}";const pa=Ca;const va=class{constructor(n){t(this,n);this.cpslTabButtonClick=r(this,"cpslTabButtonClick",7);this.onTabClicked=()=>{this.cpslTabButtonClick.emit({tab:this.tab,selected:this.selected})};this.selected=false;this.tab=undefined}onTabsChanged(t){this.setSelected(t)}onTabsInit(t){this.setSelected(t)}setSelected(t){const n=t.target;const i=this.el.parentElement;if(t.composedPath().includes(i)||(n===null||n===void 0?void 0:n.contains(this.el))){this.selected=this.tab===t.detail.tab}}render(){return n(i,{key:"d55a11bba84bea2f0d24c6190a84467aea4ac2d3",onClick:this.onTabClicked},n("div",{key:"31e58097fd53e0286c6652eed32cb39b50e9ebf2",class:{"tab-container":true}},n("slot",{key:"01cdeb08c1f468de22ce7d01c6e5b8396231860e"})))}get el(){return e(this)}};va.style=pa;const ga=":host{--tab-top-padding:5px;--tab-bottom-padding:5px;--tab-left-padding:16px;--tab-right-padding:16px;--font-size:12px;--line-height:24px;--border-width:1px;--border-color:var(--cpsl-color-input-border-placeholder);--tabs-background-color:var(--cpsl-color-background-subtle);--slider-background-color:var(--cpsl-color-background-primary);display:inline-block;max-width:100%;font-family:var(--cpsl-font-family, inherit)}:host(.full-width){display:block}.tabs-container{position:relative;display:flex;overflow-x:scroll;overflow-y:hidden;border-width:var(--border-width);border-style:solid;border-color:var(--border-color);border-radius:var(--border-radius, 10000px);background-color:var(--tabs-background-color);font-size:var(--font-size);line-height:var(--line-height);-ms-overflow-style:none;scrollbar-width:none}.tabs-container::-webkit-scrollbar{display:none}.slider{position:absolute;top:calc(var(--border-width) * -1);bottom:calc(var(--border-width) * -1);left:-1px;border-width:var(--border-width);border-style:solid;border-color:var(--border-color);border-radius:var(--border-radius, 10000px);background-color:var(--slider-background-color);box-shadow:-1px 0px 2px 0px var(--cpsl-color-alpha-black-10), 1px 0px 2px 0px var(--cpsl-color-alpha-black-10)}.loaded{transition:all 0.5s}";const wa=ga;const ba=class{constructor(n){t(this,n);this.cpslTabsChanged=r(this,"cpslTabsChanged",7);this.cpslTabsInit=r(this,"cpslTabsInit",7);this.onTabClicked=t=>{const{tab:n}=t.detail;if(n!==this.selectedTab){this.selectedTabRect=xa(this.tabs,n).getBoundingClientRect();this.cpslTabsChanged.emit({tab:n})}};this.selectedTabRect=undefined;this.loaded=false;this.fullWidth=undefined;this.selectedTab=undefined}updateSlider(){setTimeout((()=>{this.selectedTabRect=xa(this.tabs,this.selectedTab).getBoundingClientRect()}),50)}componentWillLoad(){this.selectedTabRect=xa(this.tabs,this.selectedTab).getBoundingClientRect();this.cpslTabsInit.emit({tab:this.selectedTab})}componentDidLoad(){this.selectedTabRect=xa(this.tabs,this.selectedTab).getBoundingClientRect();setTimeout((()=>{this.loaded=true}),50)}get tabs(){return Array.from(this.el.querySelectorAll("cpsl-tab"))}render(){const t=this.el.getBoundingClientRect();const r=+getComputedStyle(this.el).getPropertyValue("--border-width").slice(0,-2);const e=this.selectedTabRect;return n(i,{key:"b64847167837c21748fce136be621c5cd3056383",class:{"full-width":this.fullWidth},onCpslTabButtonClick:this.onTabClicked},n("div",{key:"97f898ee1c1a29c673a901d37e0c2aa20f73e06e",class:"tabs-container"},n("slot",{key:"6a731c26802bc1b08c6b5fe92b2a6f1da438ee89"}),n("div",{key:"c69d074579a90b804f038f5ace589a1c98ed45e1",class:{slider:true,loaded:this.loaded},style:{width:`${e.width}px`,left:`${e.x-t.x-r*2}px`}})))}get el(){return e(this)}static get watchers(){return{fullWidth:["updateSlider"]}}};const xa=(t,n)=>{const i=typeof n==="string"?t.find((t=>t.tab===n)):n;if(!i){console.error(`tab with id: "${i}" does not exist`)}return i};ba.style=wa;const ma=":host{font-family:var(--cpsl-font-family, inherit);color:var(--cpsl-color-text-primary)}";const ya=ma;const Ma=class{constructor(n){t(this,n)}render(){return n(i,{key:"72726bc3a58e3089f02b70d494ead181eb34f2d3"},n("slot",{key:"8f8b009bc13ea9bb7824b51c622b115c6b103a9c"}))}};Ma.style=ya;const ka=":host{--button-icon-color:var(--cpsl-color-text-primary);--button-border-radius:var(--cpsl-border-radius-tile-button);--button-background-color:var(--cpsl-color-tile-button-surface-default);--button-border-color:var(--cpsl-color-tile-button-border);--button-width:72px;--button-height:56px;--button-gap:4px;--button-box-shadow:0px -4px 4px 0px var(--cpsl-color-alpha-black-2) inset, 0px 4px 4px 0px var(--cpsl-color-alpha-white-4) inset}:host :hover{--button-background-color:var(--cpsl-color-tile-button-surface-hover)}.button-native{border-radius:var(--button-border-radius);-webkit-padding-start:var(--button-padding-start);padding-inline-start:var(--button-padding-start);-webkit-padding-end:var(--button-padding-end);padding-inline-end:var(--button-padding-end);padding-top:var(--button-padding-top);padding-bottom:var(--button-padding-bottom);border:1px solid transparent;cursor:pointer;background-color:var(--button-background-color);border-color:var(--button-border-color);display:flex;flex-direction:column;gap:var(--button-gap);align-items:center;justify-content:center;width:var(--button-width);height:var(--button-height);box-shadow:var(--button-box-shadow)}.button-native cpsl-icon{--icon-color:var(--button-icon-color)}";const La=ka;const _a=class{constructor(n){t(this,n);this.src=undefined;this.icon=undefined}render(){return n(i,{key:"db1693ec8a607410ba6bb5fbe15b4acaec26ff84"},n("button",{key:"6da2c97b58e7ee13c86a386461831ed93fa3fee9",class:"button-native"},n("cpsl-icon",{key:"0dbe6348fedb418151384747bac7f902b31d6c9a",exportparts:"icon",src:this.src,icon:this.icon}),n("slot",{key:"8d15a91f86b060edefcf3ae359df2ceb2e1b4a76"})))}};_a.style=La;export{xt as cpsl_alert,Mt as cpsl_button,_t as cpsl_code_input,Ht as cpsl_divider,At as cpsl_icon,zt as cpsl_input,$o as cpsl_modal,Yo as cpsl_overlay,Ko as cpsl_pill,na as cpsl_progress_indicator,sa as cpsl_qr_code,ha as cpsl_slide_button,fa as cpsl_spinner,va as cpsl_tab,ba as cpsl_tabs,Ma as cpsl_text,_a as cpsl_tile_button};
|
20
|
+
//# sourceMappingURL=p-1fd4cb56.entry.js.map
|