@usecapsule/core-components 2.0.0 → 2.0.1
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-202a85c9.entry.js → p-654cb899.entry.js} +2 -2
- package/dist/capsule/p-654cb899.entry.js.map +1 -0
- package/dist/cjs/cpsl-alert_17.cjs.entry.js +26 -19
- package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +1 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.js +26 -19
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
- package/dist/esm/cpsl-alert_17.entry.js +26 -19
- package/dist/esm/cpsl-alert_17.entry.js.map +1 -1
- package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +2 -0
- package/package.json +2 -2
- package/dist/capsule/p-202a85c9.entry.js.map +0 -1
@@ -25,5 +25,5 @@ import{r as t,h as i,H as n,c as r,g as e}from"./p-6fb7c4d1.js";import{M as o}fr
|
|
25
25
|
* Subject to the terms at https://gsap.com/standard-license or for
|
26
26
|
* Club GSAP members, the agreement issued with that membership.
|
27
27
|
* @author: Jack Doyle, jack@greensock.com
|
28
|
-
*/var Yo,Go,Qo,Wo,Ko,Jo,ts,is,ns="transform",rs=ns+"Origin",es,os=function t(i){var n=i.ownerDocument||i;if(!(ns in i.style)&&"msTransform"in i.style){ns="msTransform";rs=ns+"Origin"}while(n.parentNode&&(n=n.parentNode)){}Go=window;ts=new ws;if(n){Yo=n;Qo=n.documentElement;Wo=n.body;is=Yo.createElementNS("http://www.w3.org/2000/svg","g");is.style.transform="none";var r=n.createElement("div"),e=n.createElement("div"),o=n&&(n.body||n.firstElementChild);if(o&&o.appendChild){o.appendChild(r);r.appendChild(e);r.setAttribute("style","position:static;transform:translate3d(0,0,1px)");es=e.offsetParent!==r;o.removeChild(r)}}return n},ss=function t(i){var n,r;while(i&&i!==Wo){r=i._gsap;r&&r.uncache&&r.get(i,"x");if(r&&!r.scaleX&&!r.scaleY&&r.renderTransform){r.scaleX=r.scaleY=1e-4;r.renderTransform(1,r);n?n.push(r):n=[r]}i=i.parentNode}return n},as=[],ls=[],cs=function t(){return Go.pageYOffset||Yo.scrollTop||Qo.scrollTop||Wo.scrollTop||0},hs=function t(){return Go.pageXOffset||Yo.scrollLeft||Qo.scrollLeft||Wo.scrollLeft||0},us=function t(i){return i.ownerSVGElement||((i.tagName+"").toLowerCase()==="svg"?i:null)},fs=function t(i){if(Go.getComputedStyle(i).position==="fixed"){return true}i=i.parentNode;if(i&&i.nodeType===1){return t(i)}},ds=function t(i,n){if(i.parentNode&&(Yo||os(i))){var r=us(i),e=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o=r?n?"rect":"g":"div",s=n!==2?0:100,a=n===3?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",c=Yo.createElementNS?Yo.createElementNS(e.replace(/^https/,"http"),o):Yo.createElement(o);if(n){if(!r){if(!Ko){Ko=t(i);Ko.style.cssText=l}c.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px";Ko.appendChild(c)}else{Jo||(Jo=t(i));c.setAttribute("width",.01);c.setAttribute("height",.01);c.setAttribute("transform","translate("+s+","+a+")");Jo.appendChild(c)}}return c}throw"Need document and parent."},Cs=function t(i){var n=new ws,r=0;for(;r<i.numberOfItems;r++){n.multiply(i.getItem(r).matrix)}return n},ps=function t(i){var n=i.getCTM(),r;if(!n){r=i.style[ns];i.style[ns]="none";i.appendChild(is);n=is.getCTM();i.removeChild(is);r?i.style[ns]=r:i.style.removeProperty(ns.replace(/([A-Z])/g,"-$1").toLowerCase())}return n||ts.clone()},vs=function t(i,n){var r=us(i),e=i===r,o=r?as:ls,s=i.parentNode,a,l,c,h,u,f;if(i===Go){return i}o.length||o.push(ds(i,1),ds(i,2),ds(i,3));a=r?Jo:Ko;if(r){if(e){c=ps(i);h=-c.e/c.a;u=-c.f/c.d;l=ts}else if(i.getBBox){c=i.getBBox();l=i.transform?i.transform.baseVal:{};l=!l.numberOfItems?ts:l.numberOfItems>1?Cs(l):l.getItem(0).matrix;h=l.a*c.x+l.c*c.y;u=l.b*c.x+l.d*c.y}else{l=new ws;h=u=0}if(n&&i.tagName.toLowerCase()==="g"){h=u=0}(e?r:s).appendChild(a);a.setAttribute("transform","matrix("+l.a+","+l.b+","+l.c+","+l.d+","+(l.e+h)+","+(l.f+u)+")")}else{h=u=0;if(es){l=i.offsetParent;c=i;while(c&&(c=c.parentNode)&&c!==l&&c.parentNode){if((Go.getComputedStyle(c)[ns]+"").length>4){h=c.offsetLeft;u=c.offsetTop;c=0}}}f=Go.getComputedStyle(i);if(f.position!=="absolute"&&f.position!=="fixed"){l=i.offsetParent;while(s&&s!==l){h+=s.scrollLeft||0;u+=s.scrollTop||0;s=s.parentNode}}c=a.style;c.top=i.offsetTop-u+"px";c.left=i.offsetLeft-h+"px";c[ns]=f[ns];c[rs]=f[rs];c.position=f.position==="fixed"?"fixed":"absolute";i.parentNode.appendChild(a)}return a},gs=function t(i,n,r,e,o,s,a){i.a=n;i.b=r;i.c=e;i.d=o;i.e=s;i.f=a;return i};var ws=function(){function t(t,i,n,r,e,o){if(t===void 0){t=1}if(i===void 0){i=0}if(n===void 0){n=0}if(r===void 0){r=1}if(e===void 0){e=0}if(o===void 0){o=0}gs(this,t,i,n,r,e,o)}var i=t.prototype;i.inverse=function t(){var i=this.a,n=this.b,r=this.c,e=this.d,o=this.e,s=this.f,a=i*e-n*r||1e-10;return gs(this,e/a,-n/a,-r/a,i/a,(r*s-e*o)/a,-(i*s-n*o)/a)};i.multiply=function t(i){var n=this.a,r=this.b,e=this.c,o=this.d,s=this.e,a=this.f,l=i.a,c=i.c,h=i.b,u=i.d,f=i.e,d=i.f;return gs(this,l*n+h*e,l*r+h*o,c*n+u*e,c*r+u*o,s+f*n+d*e,a+f*r+d*o)};i.clone=function i(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)};i.equals=function t(i){var n=this.a,r=this.b,e=this.c,o=this.d,s=this.e,a=this.f;return n===i.a&&r===i.b&&e===i.c&&o===i.d&&s===i.e&&a===i.f};i.apply=function t(i,n){if(n===void 0){n={}}var r=i.x,e=i.y,o=this.a,s=this.b,a=this.c,l=this.d,c=this.e,h=this.f;n.x=r*o+e*a+c||0;n.y=r*s+e*l+h||0;return n};return t}();function bs(t,i,n,r){if(!t||!t.parentNode||(Yo||os(t)).documentElement===t){return new ws}var e=ss(t),o=us(t),s=o?as:ls,a=vs(t,n),l=s[0].getBoundingClientRect(),c=s[1].getBoundingClientRect(),h=s[2].getBoundingClientRect(),u=a.parentNode,f=!r&&fs(t),d=new ws((c.left-l.left)/100,(c.top-l.top)/100,(h.left-l.left)/100,(h.top-l.top)/100,l.left+(f?0:hs()),l.top+(f?0:cs()));u.removeChild(a);if(e){l=e.length;while(l--){c=e[l];c.scaleX=c.scaleY=0;c.renderTransform(1,c)}}return i?d.inverse():d}function xs(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function ms(t,i){t.prototype=Object.create(i.prototype);t.prototype.constructor=t;t.__proto__=i}var Ms,ys,ks,Ls,Zs,Hs,Vs,_s,Bs,Fs,Ss,zs,Es,Ps,As,Ds,Os,Ts,js,Rs,Is=0,qs=function t(){return typeof window!=="undefined"},Ns=function t(){return Ms||qs()&&(Ms=window.gsap)&&Ms.registerPlugin&&Ms},$s=function t(i){return typeof i==="function"},Us=function t(i){return typeof i==="object"},Xs=function t(i){return typeof i==="undefined"},Ys=function t(){return false},Gs="transform",Qs="transformOrigin",Ws=function t(i){return Math.round(i*1e4)/1e4},Ks=Array.isArray,Js=function t(i,n){var r=ks.createElementNS?ks.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),i):ks.createElement(i);return r.style?r:ks.createElement(i)},ta=180/Math.PI,ia=1e20,na=new ws,ra=Date.now||function(){return(new Date).getTime()},ea=[],oa={},sa=0,aa=/^(?:a|input|textarea|button|select)$/i,la=0,ca={},ha={},ua=function t(i,n){var r={},e;for(e in i){r[e]=n?i[e]*n:i[e]}return r},fa=function t(i,n){for(var r in n){if(!(r in i)){i[r]=n[r]}}return i},da=function t(i,n){var r=i.length,e;while(r--){n?i[r].style.touchAction=n:i[r].style.removeProperty("touch-action");e=i[r].children;e&&e.length&&t(e,n)}},Ca=function t(){return ea.forEach((function(t){return t()}))},pa=function t(i){ea.push(i);if(ea.length===1){Ms.ticker.add(Ca)}},va=function t(){return!ea.length&&Ms.ticker.remove(Ca)},ga=function t(i){var n=ea.length;while(n--){if(ea[n]===i){ea.splice(n,1)}}Ms.to(va,{overwrite:true,delay:15,duration:0,onComplete:va,data:"_draggable"})},wa=function t(i,n){for(var r in n){if(!(r in i)){i[r]=n[r]}}return i},ba=function t(i,n,r,e){if(i.addEventListener){var o=Es[n];e=e||(Ss?{passive:false}:null);i.addEventListener(o||n,r,e);o&&n!==o&&i.addEventListener(n,r,e)}},xa=function t(i,n,r,e){if(i.removeEventListener){var o=Es[n];i.removeEventListener(o||n,r,e);o&&n!==o&&i.removeEventListener(n,r,e)}},ma=function t(i){i.preventDefault&&i.preventDefault();i.preventManipulation&&i.preventManipulation()},Ma=function t(i,n){var r=i.length;while(r--){if(i[r].identifier===n){return true}}},ya=function t(i){Ps=i.touches&&Is<i.touches.length;xa(i.target,"touchend",t)},ka=function t(i){Ps=i.touches&&Is<i.touches.length;ba(i.target,"touchend",ya)},La=function t(i){return ys.pageYOffset||i.scrollTop||i.documentElement.scrollTop||i.body.scrollTop||0},Za=function t(i){return ys.pageXOffset||i.scrollLeft||i.documentElement.scrollLeft||i.body.scrollLeft||0},Ha=function t(i,n){ba(i,"scroll",n);if(!_a(i.parentNode)){t(i.parentNode,n)}},Va=function t(i,n){xa(i,"scroll",n);if(!_a(i.parentNode)){t(i.parentNode,n)}},_a=function t(i){return!!(!i||i===Ls||i.nodeType===9||i===ks.body||i===ys||!i.nodeType||!i.parentNode)},Ba=function t(i,n){var r=n==="x"?"Width":"Height",e="scroll"+r,o="client"+r;return Math.max(0,_a(i)?Math.max(Ls[e],Zs[e])-(ys["inner"+r]||Ls[o]||Zs[o]):i[e]-i[o])},Fa=function t(i,n){var r=Ba(i,"x"),e=Ba(i,"y");if(_a(i)){i=ha}else{t(i.parentNode,n)}i._gsMaxScrollX=r;i._gsMaxScrollY=e;if(!n){i._gsScrollX=i.scrollLeft||0;i._gsScrollY=i.scrollTop||0}},Sa=function t(i,n,r){var e=i.style;if(!e){return}if(Xs(e[n])){n=Bs(n,i)||n}if(r==null){e.removeProperty&&e.removeProperty(n.replace(/([A-Z])/g,"-$1").toLowerCase())}else{e[n]=r}},za=function t(i){return ys.getComputedStyle(i instanceof Element?i:i.host||(i.parentNode||{}).host||i)},Ea={},Pa=function t(i){if(i===ys){Ea.left=Ea.top=0;Ea.width=Ea.right=Ls.clientWidth||i.innerWidth||Zs.clientWidth||0;Ea.height=Ea.bottom=(i.innerHeight||0)-20<Ls.clientHeight?Ls.clientHeight:i.innerHeight||Zs.clientHeight||0;return Ea}var n=i.ownerDocument||ks,r=!Xs(i.pageX)?{left:i.pageX-Za(n),top:i.pageY-La(n),right:i.pageX-Za(n)+1,bottom:i.pageY-La(n)+1}:!i.nodeType&&!Xs(i.left)&&!Xs(i.top)?i:Fs(i)[0].getBoundingClientRect();if(Xs(r.right)&&!Xs(r.width)){r.right=r.left+r.width;r.bottom=r.top+r.height}else if(Xs(r.width)){r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}}return r},Aa=function t(i,n,r){var e=i.vars,o=e[r],s=i._listeners[n],a;if($s(o)){a=o.apply(e.callbackScope||i,e[r+"Params"]||[i.pointerEvent])}if(s&&i.dispatchEvent(n)===false){a=false}return a},Da=function t(i,n){var r=Fs(i)[0],e,o,s;if(!r.nodeType&&r!==ys){if(!Xs(i.left)){s={x:0,y:0};return{left:i.left-s.x,top:i.top-s.y,width:i.width,height:i.height}}o=i.min||i.minX||i.minRotation||0;e=i.min||i.minY||0;return{left:o,top:e,width:(i.max||i.maxX||i.maxRotation||0)-o,height:(i.max||i.maxY||0)-e}}return Ta(r,n)},Oa={},Ta=function t(i,n){n=Fs(n)[0];var r=i.getBBox&&i.ownerSVGElement,e=i.ownerDocument||ks,o,s,a,l,c,h,u,f,d,C,p,v,g;if(i===ys){a=La(e);o=Za(e);s=o+(e.documentElement.clientWidth||i.innerWidth||e.body.clientWidth||0);l=a+((i.innerHeight||0)-20<e.documentElement.clientHeight?e.documentElement.clientHeight:i.innerHeight||e.body.clientHeight||0)}else if(n===ys||Xs(n)){return i.getBoundingClientRect()}else{o=a=0;if(r){C=i.getBBox();p=C.width;v=C.height}else{if(i.viewBox&&(C=i.viewBox.baseVal)){o=C.x||0;a=C.y||0;p=C.width;v=C.height}if(!p){g=za(i);C=g.boxSizing==="border-box";p=(parseFloat(g.width)||i.clientWidth||0)+(C?0:parseFloat(g.borderLeftWidth)+parseFloat(g.borderRightWidth));v=(parseFloat(g.height)||i.clientHeight||0)+(C?0:parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth))}}s=p;l=v}if(i===n){return{left:o,top:a,width:s-o,height:l-a}}c=bs(n,true).multiply(bs(i));h=c.apply({x:o,y:a});u=c.apply({x:s,y:a});f=c.apply({x:s,y:l});d=c.apply({x:o,y:l});o=Math.min(h.x,u.x,f.x,d.x);a=Math.min(h.y,u.y,f.y,d.y);return{left:o,top:a,width:Math.max(h.x,u.x,f.x,d.x)-o,height:Math.max(h.y,u.y,f.y,d.y)-a}},ja=function t(i,n,r,e,o,s){var a={},l,c,h;if(n){if(o!==1&&n instanceof Array){a.end=l=[];h=n.length;if(Us(n[0])){for(c=0;c<h;c++){l[c]=ua(n[c],o)}}else{for(c=0;c<h;c++){l[c]=n[c]*o}}r+=1.1;e-=1.1}else if($s(n)){a.end=function(t){var r=n.call(i,t),e,s;if(o!==1){if(Us(r)){e={};for(s in r){e[s]=r[s]*o}r=e}else{r*=o}}return r}}else{a.end=n}}if(r||r===0){a.max=r}if(e||e===0){a.min=e}if(s){a.velocity=0}return a},Ra=function t(i){var n;return!i||!i.getAttribute||i===Zs?false:(n=i.getAttribute("data-clickable"))==="true"||n!=="false"&&(aa.test(i.nodeName+"")||i.getAttribute("contentEditable")==="true")?true:t(i.parentNode)},Ia=function t(i,n){var r=i.length,e;while(r--){e=i[r];e.ondragstart=e.onselectstart=n?null:Ys;Ms.set(e,{lazy:true,userSelect:n?"text":"none"})}},qa=function t(i){if(za(i).position==="fixed"){return true}i=i.parentNode;if(i&&i.nodeType===1){return t(i)}},Na,$a,Ua=function t(i,n){i=Ms.utils.toArray(i)[0];n=n||{};var r=document.createElement("div"),e=r.style,o=i.firstChild,s=0,a=0,l=i.scrollTop,c=i.scrollLeft,h=i.scrollWidth,u=i.scrollHeight,f=0,d=0,C=0,p,v,g,w,b,x;if(Na&&n.force3D!==false){b="translate3d(";x="px,0px)"}else if(Gs){b="translate(";x="px)"}this.scrollTop=function(t,i){if(!arguments.length){return-this.top()}this.top(-t,i)};this.scrollLeft=function(t,i){if(!arguments.length){return-this.left()}this.left(-t,i)};this.left=function(t,r){if(!arguments.length){return-(i.scrollLeft+a)}var o=i.scrollLeft-c,l=a;if((o>2||o<-2)&&!r){c=i.scrollLeft;Ms.killTweensOf(this,{left:1,scrollLeft:1});this.left(-c);if(n.onKill){n.onKill()}return}t=-t;if(t<0){a=t-.5|0;t=0}else if(t>d){a=t-d|0;t=d}else{a=0}if(a||l){if(!this._skip){e[Gs]=b+-a+"px,"+-s+x}if(a+f>=0){e.paddingRight=a+f+"px"}}i.scrollLeft=t|0;c=i.scrollLeft};this.top=function(t,r){if(!arguments.length){return-(i.scrollTop+s)}var o=i.scrollTop-l,c=s;if((o>2||o<-2)&&!r){l=i.scrollTop;Ms.killTweensOf(this,{top:1,scrollTop:1});this.top(-l);if(n.onKill){n.onKill()}return}t=-t;if(t<0){s=t-.5|0;t=0}else if(t>C){s=t-C|0;t=C}else{s=0}if(s||c){if(!this._skip){e[Gs]=b+-a+"px,"+-s+x}}i.scrollTop=t|0;l=i.scrollTop};this.maxScrollTop=function(){return C};this.maxScrollLeft=function(){return d};this.disable=function(){o=r.firstChild;while(o){w=o.nextSibling;i.appendChild(o);o=w}if(i===r.parentNode){i.removeChild(r)}};this.enable=function(){o=i.firstChild;if(o===r){return}while(o){w=o.nextSibling;r.appendChild(o);o=w}i.appendChild(r);this.calibrate()};this.calibrate=function(t){var n=i.clientWidth===p,o,w,b;l=i.scrollTop;c=i.scrollLeft;if(n&&i.clientHeight===v&&r.offsetHeight===g&&h===i.scrollWidth&&u===i.scrollHeight&&!t){return}if(s||a){w=this.left();b=this.top();this.left(-i.scrollLeft);this.top(-i.scrollTop)}o=za(i);if(!n||t){e.display="block";e.width="auto";e.paddingRight="0px";f=Math.max(0,i.scrollWidth-i.clientWidth);if(f){f+=parseFloat(o.paddingLeft)+($a?parseFloat(o.paddingRight):0)}}e.display="inline-block";e.position="relative";e.overflow="visible";e.verticalAlign="top";e.boxSizing="content-box";e.width="100%";e.paddingRight=f+"px";if($a){e.paddingBottom=o.paddingBottom}p=i.clientWidth;v=i.clientHeight;h=i.scrollWidth;u=i.scrollHeight;d=i.scrollWidth-p;C=i.scrollHeight-v;g=r.offsetHeight;e.display="block";if(w||b){this.left(w);this.top(b)}};this.content=r;this.element=i;this._skip=false;this.enable()},Xa=function t(i){if(qs()&&document.body){var n=window&&window.navigator;ys=window;ks=document;Ls=ks.documentElement;Zs=ks.body;Hs=Js("div");Ts=!!window.PointerEvent;Vs=Js("div");Vs.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab";Os=Vs.style.cursor==="grab"?"grab":"move";As=n&&n.userAgent.toLowerCase().indexOf("android")!==-1;zs="ontouchstart"in Ls&&"orientation"in ys||n&&(n.MaxTouchPoints>0||n.msMaxTouchPoints>0);$a=function(){var t=Js("div"),i=Js("div"),n=i.style,r=Zs,e;n.display="inline-block";n.position="relative";t.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden";t.appendChild(i);r.appendChild(t);e=i.offsetHeight+18>t.scrollHeight;r.removeChild(t);return e}();Es=function(t){var i=t.split(","),n=("onpointerdown"in Hs?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Hs?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),r={},e=4;while(--e>-1){r[i[e]]=n[e];r[n[e]]=i[e]}try{Ls.addEventListener("test",null,Object.defineProperty({},"passive",{get:function t(){Ss=1}}))}catch(t){}return r}("touchstart,touchmove,touchend,touchcancel");ba(ks,"touchcancel",Ys);ba(ys,"touchmove",Ys);Zs&&Zs.addEventListener("touchstart",Ys);ba(ks,"contextmenu",(function(){for(var t in oa){if(oa[t].isPressed){oa[t].endDrag()}}}));Ms=_s=Ns()}if(Ms){Ds=Ms.plugins.inertia;js=Ms.core.context||function(){};Bs=Ms.utils.checkPrefix;Gs=Bs(Gs);Qs=Bs(Qs);Fs=Ms.utils.toArray;Rs=Ms.core.getStyleSaver;Na=!!Bs("perspective")}else if(i){console.warn("Please gsap.registerPlugin(Draggable)")}};var Ya=function(){function t(t){this._listeners={};this.target=t||this}var i=t.prototype;i.addEventListener=function t(i,n){var r=this._listeners[i]||(this._listeners[i]=[]);if(!~r.indexOf(n)){r.push(n)}};i.removeEventListener=function t(i,n){var r=this._listeners[i],e=r&&r.indexOf(n);e>=0&&r.splice(e,1)};i.dispatchEvent=function t(i){var n=this;var r;(this._listeners[i]||[]).forEach((function(t){return t.call(n,{type:i,target:n.target})===false&&(r=false)}));return r};return t}();var Ga=function(t){ms(i,t);function i(n,r){var e;e=t.call(this)||this;_s||Xa(1);n=Fs(n)[0];e.styles=Rs&&Rs(n,"transform,left,top");if(!Ds){Ds=Ms.plugins.inertia}e.vars=r=ua(r||{});e.target=n;e.x=e.y=e.rotation=0;e.dragResistance=parseFloat(r.dragResistance)||0;e.edgeResistance=isNaN(r.edgeResistance)?1:parseFloat(r.edgeResistance)||0;e.lockAxis=r.lockAxis;e.autoScroll=r.autoScroll||0;e.lockedAxis=null;e.allowEventDefault=!!r.allowEventDefault;Ms.getProperty(n,"x");var o=(r.type||"x,y").toLowerCase(),s=~o.indexOf("x")||~o.indexOf("y"),a=o.indexOf("rotation")!==-1,l=a?"rotation":s?"x":"left",c=s?"y":"top",h=!!(~o.indexOf("x")||~o.indexOf("left")||o==="scroll"),u=!!(~o.indexOf("y")||~o.indexOf("top")||o==="scroll"),f=r.minimumMovement||2,d=xs(e),C=Fs(r.trigger||r.handle||n),p={},v=0,g=false,w=r.autoScrollMarginTop||40,b=r.autoScrollMarginRight||40,x=r.autoScrollMarginBottom||40,m=r.autoScrollMarginLeft||40,M=r.clickableTest||Ra,y=0,k=n._gsap||Ms.core.getCache(n),L=qa(n),Z=function t(i,r){return parseFloat(k.get(n,i,r))},H=n.ownerDocument||ks,V,_,B,F,S,z,E,P,A,D,O,T,j,R,I,q,N,$,U,X,Y,G,Q,W,K,J,tt,it,nt,rt,et,ot,st,at=function t(i){ma(i);i.stopImmediatePropagation&&i.stopImmediatePropagation();return false},lt=function t(i){if(d.autoScroll&&d.isDragging&&(g||N)){var r=n,e=d.autoScroll*15,o,l,c,f,C,p,v,M;g=false;ha.scrollTop=ys.pageYOffset!=null?ys.pageYOffset:H.documentElement.scrollTop!=null?H.documentElement.scrollTop:H.body.scrollTop;ha.scrollLeft=ys.pageXOffset!=null?ys.pageXOffset:H.documentElement.scrollLeft!=null?H.documentElement.scrollLeft:H.body.scrollLeft;f=d.pointerX-ha.scrollLeft;C=d.pointerY-ha.scrollTop;while(r&&!l){l=_a(r.parentNode);o=l?ha:r.parentNode;c=l?{bottom:Math.max(Ls.clientHeight,ys.innerHeight||0),right:Math.max(Ls.clientWidth,ys.innerWidth||0),left:0,top:0}:o.getBoundingClientRect();p=v=0;if(u){M=o._gsMaxScrollY-o.scrollTop;if(M<0){v=M}else if(C>c.bottom-x&&M){g=true;v=Math.min(M,e*(1-Math.max(0,c.bottom-C)/x)|0)}else if(C<c.top+w&&o.scrollTop){g=true;v=-Math.min(o.scrollTop,e*(1-Math.max(0,C-c.top)/w)|0)}if(v){o.scrollTop+=v}}if(h){M=o._gsMaxScrollX-o.scrollLeft;if(M<0){p=M}else if(f>c.right-b&&M){g=true;p=Math.min(M,e*(1-Math.max(0,c.right-f)/b)|0)}else if(f<c.left+m&&o.scrollLeft){g=true;p=-Math.min(o.scrollLeft,e*(1-Math.max(0,f-c.left)/m)|0)}if(p){o.scrollLeft+=p}}if(l&&(p||v)){ys.scrollTo(o.scrollLeft,o.scrollTop);Mt(d.pointerX+p,d.pointerY+v)}r=o}}if(N){var y=d.x,L=d.y;if(a){d.deltaX=y-parseFloat(k.rotation);d.rotation=y;k.rotation=y+"deg";k.renderTransform(1,k)}else{if(_){if(u){d.deltaY=L-_.top();_.top(L)}if(h){d.deltaX=y-_.left();_.left(y)}}else if(s){if(u){d.deltaY=L-parseFloat(k.y);k.y=L+"px"}if(h){d.deltaX=y-parseFloat(k.x);k.x=y+"px"}k.renderTransform(1,k)}else{if(u){d.deltaY=L-parseFloat(n.style.top||0);n.style.top=L+"px"}if(h){d.deltaX=y-parseFloat(n.style.left||0);n.style.left=y+"px"}}}if(P&&!i&&!it){it=true;if(Aa(d,"drag","onDrag")===false){if(h){d.x-=d.deltaX}if(u){d.y-=d.deltaY}t(true)}it=false}}N=false},ct=function t(i,r){var e=d.x,o=d.y,l,c;if(!n._gsap){k=Ms.core.getCache(n)}k.uncache&&Ms.getProperty(n,"x");if(s){d.x=parseFloat(k.x);d.y=parseFloat(k.y)}else if(a){d.x=d.rotation=parseFloat(k.rotation)}else if(_){d.y=_.top();d.x=_.left()}else{d.y=parseFloat(n.style.top||(c=za(n))&&c.top)||0;d.x=parseFloat(n.style.left||(c||{}).left)||0}if((U||X||Y)&&!r&&(d.isDragging||d.isThrowing)){if(Y){ca.x=d.x;ca.y=d.y;l=Y(ca);if(l.x!==d.x){d.x=l.x;N=true}if(l.y!==d.y){d.y=l.y;N=true}}if(U){l=U(d.x);if(l!==d.x){d.x=l;if(a){d.rotation=l}N=true}}if(X){l=X(d.y);if(l!==d.y){d.y=l}N=true}}N&<(true);if(!i){d.deltaX=d.x-e;d.deltaY=d.y-o;Aa(d,"throwupdate","onThrowUpdate")}},ht=function t(i,n,r,e){if(n==null){n=-ia}if(r==null){r=ia}if($s(i)){return function(t){var o=!d.isPressed?1:1-d.edgeResistance;return i.call(d,(t>r?r+(t-r)*o:t<n?n+(t-n)*o:t)*e)*e}}if(Ks(i)){return function(t){var e=i.length,o=0,s=ia,a,l;while(--e>-1){a=i[e];l=a-t;if(l<0){l=-l}if(l<s&&a>=n&&a<=r){o=e;s=l}}return i[o]}}return isNaN(i)?function(t){return t}:function(){return i*e}},ut=function t(i,n,r,e,o,s,a){s=s&&s<ia?s*s:ia;if($s(i)){return function(t){var l=!d.isPressed?1:1-d.edgeResistance,c=t.x,h=t.y,u,f,C;t.x=c=c>r?r+(c-r)*l:c<n?n+(c-n)*l:c;t.y=h=h>o?o+(h-o)*l:h<e?e+(h-e)*l:h;u=i.call(d,t);if(u!==t){t.x=u.x;t.y=u.y}if(a!==1){t.x*=a;t.y*=a}if(s<ia){f=t.x-c;C=t.y-h;if(f*f+C*C>s){t.x=c;t.y=h}}return t}}if(Ks(i)){return function(t){var n=i.length,r=0,e=ia,o,a,l,c;while(--n>-1){l=i[n];o=l.x-t.x;a=l.y-t.y;c=o*o+a*a;if(c<e){r=n;e=c}}return e<=s?i[r]:t}}return function(t){return t}},ft=function t(){var i,e,o,s;E=false;if(_){_.calibrate();d.minX=O=-_.maxScrollLeft();d.minY=j=-_.maxScrollTop();d.maxX=D=d.maxY=T=0;E=true}else if(!!r.bounds){i=Da(r.bounds,n.parentNode);if(a){d.minX=O=i.left;d.maxX=D=i.left+i.width;d.minY=j=d.maxY=T=0}else if(!Xs(r.bounds.maxX)||!Xs(r.bounds.maxY)){i=r.bounds;d.minX=O=i.minX;d.minY=j=i.minY;d.maxX=D=i.maxX;d.maxY=T=i.maxY}else{e=Da(n,n.parentNode);d.minX=O=Math.round(Z(l,"px")+i.left-e.left);d.minY=j=Math.round(Z(c,"px")+i.top-e.top);d.maxX=D=Math.round(O+(i.width-e.width));d.maxY=T=Math.round(j+(i.height-e.height))}if(O>D){d.minX=D;d.maxX=D=O;O=d.minX}if(j>T){d.minY=T;d.maxY=T=j;j=d.minY}if(a){d.minRotation=O;d.maxRotation=D}E=true}if(r.liveSnap){o=r.liveSnap===true?r.snap||{}:r.liveSnap;s=Ks(o)||$s(o);if(a){U=ht(s?o:o.rotation,O,D,1);X=null}else{if(o.points){Y=ut(s?o:o.points,O,D,j,T,o.radius,_?-1:1)}else{if(h){U=ht(s?o:o.x||o.left||o.scrollLeft,O,D,_?-1:1)}if(u){X=ht(s?o:o.y||o.top||o.scrollTop,j,T,_?-1:1)}}}}},dt=function t(){d.isThrowing=false;Aa(d,"throwcomplete","onThrowComplete")},Ct=function t(){d.isThrowing=false},pt=function t(i,e){var o,s,f,C;if(i&&Ds){if(i===true){o=r.snap||r.liveSnap||{};s=Ks(o)||$s(o);i={resistance:(r.throwResistance||r.resistance||1e3)/(a?10:1)};if(a){i.rotation=ja(d,s?o:o.rotation,D,O,1,e)}else{if(h){i[l]=ja(d,s?o:o.points||o.x||o.left,D,O,_?-1:1,e||d.lockedAxis==="x")}if(u){i[c]=ja(d,s?o:o.points||o.y||o.top,T,j,_?-1:1,e||d.lockedAxis==="y")}if(o.points||Ks(o)&&Us(o[0])){i.linkedProps=l+","+c;i.radius=o.radius}}}d.isThrowing=true;C=!isNaN(r.overshootTolerance)?r.overshootTolerance:r.edgeResistance===1?0:1-d.edgeResistance+.2;if(!i.duration){i.duration={max:Math.max(r.minDuration||0,"maxDuration"in r?r.maxDuration:2),min:!isNaN(r.minDuration)?r.minDuration:C===0||Us(i)&&i.resistance>1e3?0:.5,overshoot:C}}d.tween=f=Ms.to(_||n,{inertia:i,data:"_draggable",inherit:false,onComplete:dt,onInterrupt:Ct,onUpdate:r.fastMode?Aa:ct,onUpdateParams:r.fastMode?[d,"onthrowupdate","onThrowUpdate"]:o&&o.radius?[false,true]:[]});if(!r.fastMode){if(_){_._skip=true}f.render(1e9,true,true);ct(true,true);d.endX=d.x;d.endY=d.y;if(a){d.endRotation=d.x}f.play(0);ct(true,true);if(_){_._skip=false}}}else if(E){d.applyBounds()}},vt=function t(i){var r=W,e;W=bs(n.parentNode,true);if(i&&d.isPressed&&!W.equals(r||new ws)){e=r.inverse().apply({x:B,y:F});W.apply(e,e);B=e.x;F=e.y}if(W.equals(na)){W=null}},gt=function t(){var i=1-d.edgeResistance,r=L?Za(H):0,e=L?La(H):0,o,h,u;if(s){k.x=Z(l,"px")+"px";k.y=Z(c,"px")+"px";k.renderTransform()}vt(false);Oa.x=d.pointerX-r;Oa.y=d.pointerY-e;W&&W.apply(Oa,Oa);B=Oa.x;F=Oa.y;if(N){Mt(d.pointerX,d.pointerY);lt(true)}ot=bs(n);if(_){ft();z=_.top();S=_.left()}else{if(wt()){ct(true,true);ft()}else{d.applyBounds()}if(a){o=n.ownerSVGElement?[k.xOrigin-n.getBBox().x,k.yOrigin-n.getBBox().y]:(za(n)[Qs]||"0 0").split(" ");q=d.rotationOrigin=bs(n).apply({x:parseFloat(o[0])||0,y:parseFloat(o[1])||0});ct(true,true);h=d.pointerX-q.x-r;u=q.y-d.pointerY+e;S=d.x;z=d.y=Math.atan2(u,h)*ta}else{z=Z(c,"px");S=Z(l,"px")}}if(E&&i){if(S>D){S=D+(S-D)/i}else if(S<O){S=O-(O-S)/i}if(!a){if(z>T){z=T+(z-T)/i}else if(z<j){z=j-(j-z)/i}}}d.startX=S=Ws(S);d.startY=z=Ws(z)},wt=function t(){return d.tween&&d.tween.isActive()},bt=function t(){if(Vs.parentNode&&!wt()&&!d.isDragging){Vs.parentNode.removeChild(Vs)}},xt=function t(e,o){var s;if(!V||d.isPressed||!e||(e.type==="mousedown"||e.type==="pointerdown")&&!o&&ra()-y<30&&Es[d.pointerEvent.type]){et&&e&&V&&ma(e);return}K=wt();st=false;d.pointerEvent=e;if(Es[e.type]){Q=~e.type.indexOf("touch")?e.currentTarget||e.target:H;ba(Q,"touchend",yt);ba(Q,"touchmove",mt);ba(Q,"touchcancel",yt);ba(H,"touchstart",ka)}else{Q=null;ba(H,"mousemove",mt)}tt=null;if(!Ts||!Q){ba(H,"mouseup",yt);e&&e.target&&ba(e.target,"mouseup",yt)}G=M.call(d,e.target)&&r.dragClickables===false&&!o;if(G){ba(e.target,"change",yt);Aa(d,"pressInit","onPressInit");Aa(d,"press","onPress");Ia(C,true);et=false;return}J=!Q||h===u||d.vars.allowNativeTouchScrolling===false||d.vars.allowContextMenu&&e&&(e.ctrlKey||e.which>2)?false:h?"y":"x";et=!J&&!d.allowEventDefault;if(et){ma(e);ba(ys,"touchforcechange",ma)}if(e.changedTouches){e=R=e.changedTouches[0];I=e.identifier}else if(e.pointerId){I=e.pointerId}else{R=I=null}Is++;pa(lt);F=d.pointerY=e.pageY;B=d.pointerX=e.pageX;Aa(d,"pressInit","onPressInit");if(J||d.autoScroll){Fa(n.parentNode)}if(n.parentNode&&d.autoScroll&&!_&&!a&&n.parentNode._gsMaxScrollX&&!Vs.parentNode&&!n.getBBox){Vs.style.width=n.parentNode.scrollWidth+"px";n.parentNode.appendChild(Vs)}gt();d.tween&&d.tween.kill();d.isThrowing=false;Ms.killTweensOf(_||n,p,true);_&&Ms.killTweensOf(n,{scrollTo:1},true);d.tween=d.lockedAxis=null;if(r.zIndexBoost||!a&&!_&&r.zIndexBoost!==false){n.style.zIndex=i.zIndex++}d.isPressed=true;P=!!(r.onDrag||d._listeners.drag);A=!!(r.onMove||d._listeners.move);if(r.cursor!==false||r.activeCursor){s=C.length;while(--s>-1){Ms.set(C[s],{cursor:r.activeCursor||r.cursor||(Os==="grab"?"grabbing":Os)})}}Aa(d,"press","onPress")},mt=function t(i){var r=i,e,o,s,a,l,c;if(!V||Ps||!d.isPressed||!i){et&&i&&V&&ma(i);return}d.pointerEvent=i;e=i.changedTouches;if(e){i=e[0];if(i!==R&&i.identifier!==I){a=e.length;while(--a>-1&&(i=e[a]).identifier!==I&&i.target!==n){}if(a<0){return}}}else if(i.pointerId&&I&&i.pointerId!==I){return}if(Q&&J&&!tt){Oa.x=i.pageX-(L?Za(H):0);Oa.y=i.pageY-(L?La(H):0);W&&W.apply(Oa,Oa);o=Oa.x;s=Oa.y;l=Math.abs(o-B);c=Math.abs(s-F);if(l!==c&&(l>f||c>f)||As&&J===tt){tt=l>c&&h?"x":"y";if(J&&tt!==J){ba(ys,"touchforcechange",ma)}if(d.vars.lockAxisOnTouchScroll!==false&&h&&u){d.lockedAxis=tt==="x"?"y":"x";$s(d.vars.onLockAxis)&&d.vars.onLockAxis.call(d,r)}if(As&&J===tt){yt(r);return}}}if(!d.allowEventDefault&&(!J||tt&&J!==tt)&&r.cancelable!==false){ma(r);et=true}else if(et){et=false}if(d.autoScroll){g=true}Mt(i.pageX,i.pageY,A)},Mt=function t(i,n,r){var e=1-d.dragResistance,o=1-d.edgeResistance,s=d.pointerX,l=d.pointerY,c=z,C=d.x,p=d.y,v=d.endX,g=d.endY,w=d.endRotation,b=N,x,m,M,y,k,Z;d.pointerX=i;d.pointerY=n;if(L){i-=Za(H);n-=La(H)}if(a){y=Math.atan2(q.y-n,i-q.x)*ta;k=d.y-y;if(k>180){z-=360;d.y=y}else if(k<-180){z+=360;d.y=y}if(d.x!==S||Math.abs(z-y)>f){d.y=y;M=S+(z-y)*e}else{M=S}}else{if(W){Z=i*W.a+n*W.c+W.e;n=i*W.b+n*W.d+W.f;i=Z}m=n-F;x=i-B;if(m<f&&m>-f){m=0}if(x<f&&x>-f){x=0}if((d.lockAxis||d.lockedAxis)&&(x||m)){Z=d.lockedAxis;if(!Z){d.lockedAxis=Z=h&&Math.abs(x)>Math.abs(m)?"y":u?"x":null;if(Z&&$s(d.vars.onLockAxis)){d.vars.onLockAxis.call(d,d.pointerEvent)}}if(Z==="y"){m=0}else if(Z==="x"){x=0}}M=Ws(S+x*e);y=Ws(z+m*e)}if((U||X||Y)&&(d.x!==M||d.y!==y&&!a)){if(Y){ca.x=M;ca.y=y;Z=Y(ca);M=Ws(Z.x);y=Ws(Z.y)}if(U){M=Ws(U(M))}if(X){y=Ws(X(y))}}if(E){if(M>D){M=D+Math.round((M-D)*o)}else if(M<O){M=O+Math.round((M-O)*o)}if(!a){if(y>T){y=Math.round(T+(y-T)*o)}else if(y<j){y=Math.round(j+(y-j)*o)}}}if(d.x!==M||d.y!==y&&!a){if(a){d.endRotation=d.x=d.endX=M;N=true}else{if(u){d.y=d.endY=y;N=true}if(h){d.x=d.endX=M;N=true}}if(!r||Aa(d,"move","onMove")!==false){if(!d.isDragging&&d.isPressed){d.isDragging=st=true;Aa(d,"dragstart","onDragStart")}}else{d.pointerX=s;d.pointerY=l;z=c;d.x=C;d.y=p;d.endX=v;d.endY=g;d.endRotation=w;N=b}}},yt=function t(i,e){if(!V||!d.isPressed||i&&I!=null&&!e&&(i.pointerId&&i.pointerId!==I&&i.target!==n||i.changedTouches&&!Ma(i.changedTouches,I))){et&&i&&V&&ma(i);return}d.isPressed=false;var o=i,s=d.isDragging,a=d.vars.allowContextMenu&&i&&(i.ctrlKey||i.which>2),l=Ms.delayedCall(.001,bt),c,h,u,f,p;if(Q){xa(Q,"touchend",t);xa(Q,"touchmove",mt);xa(Q,"touchcancel",t);xa(H,"touchstart",ka)}else{xa(H,"mousemove",mt)}xa(ys,"touchforcechange",ma);if(!Ts||!Q){xa(H,"mouseup",t);i&&i.target&&xa(i.target,"mouseup",t)}N=false;if(s){v=la=ra();d.isDragging=false}ga(lt);if(G&&!a){if(i){xa(i.target,"change",t);d.pointerEvent=o}Ia(C,false);Aa(d,"release","onRelease");Aa(d,"click","onClick");G=false;return}h=C.length;while(--h>-1){Sa(C[h],"cursor",r.cursor||(r.cursor!==false?Os:null))}Is--;if(i){c=i.changedTouches;if(c){i=c[0];if(i!==R&&i.identifier!==I){h=c.length;while(--h>-1&&(i=c[h]).identifier!==I&&i.target!==n){}if(h<0&&!e){return}}}d.pointerEvent=o;d.pointerX=i.pageX;d.pointerY=i.pageY}if(a&&o){ma(o);et=true;Aa(d,"release","onRelease")}else if(o&&!s){et=false;if(K&&(r.snap||r.bounds)){pt(r.inertia||r.throwProps)}Aa(d,"release","onRelease");if((!As||o.type!=="touchmove")&&o.type.indexOf("cancel")===-1){Aa(d,"click","onClick");if(ra()-y<300){Aa(d,"doubleclick","onDoubleClick")}f=o.target||n;y=ra();p=function t(){if(y!==nt&&d.enabled()&&!d.isPressed&&!o.defaultPrevented){if(f.click){f.click()}else if(H.createEvent){u=H.createEvent("MouseEvents");u.initMouseEvent("click",true,true,ys,1,d.pointerEvent.screenX,d.pointerEvent.screenY,d.pointerX,d.pointerY,false,false,false,false,0,null);f.dispatchEvent(u)}}};if(!As&&!o.defaultPrevented){Ms.delayedCall(.05,p)}}}else{pt(r.inertia||r.throwProps);if(!d.allowEventDefault&&o&&(r.dragClickables!==false||!M.call(d,o.target))&&s&&(!J||tt&&J===tt)&&o.cancelable!==false){et=true;ma(o)}else{et=false}Aa(d,"release","onRelease")}wt()&&l.duration(d.tween.duration());s&&Aa(d,"dragend","onDragEnd");return true},kt=function t(i){if(i&&d.isDragging&&!_){var r=i.target||n.parentNode,e=r.scrollLeft-r._gsScrollX,o=r.scrollTop-r._gsScrollY;if(e||o){if(W){B-=e*W.a+o*W.c;F-=o*W.d+e*W.b}else{B-=e;F-=o}r._gsScrollX+=e;r._gsScrollY+=o;Mt(d.pointerX,d.pointerY)}}},Lt=function t(i){var n=ra(),r=n-y<100,e=n-v<50,o=r&&nt===y,s=d.pointerEvent&&d.pointerEvent.defaultPrevented,a=r&&rt===y,l=i.isTrusted||i.isTrusted==null&&r&&o;if((o||e&&d.vars.suppressClickOnDrag!==false)&&i.stopImmediatePropagation){i.stopImmediatePropagation()}if(r&&!(d.pointerEvent&&d.pointerEvent.defaultPrevented)&&(!o||l&&!a)){if(l&&o){rt=y}nt=y;return}if(d.isPressed||e||r){if(!l||!i.detail||!r||s){ma(i)}}if(!r&&!e&&!st){i&&i.target&&(d.pointerEvent=i);Aa(d,"click","onClick")}},Zt=function t(i){return W?{x:i.x*W.a+i.y*W.c+W.e,y:i.x*W.b+i.y*W.d+W.f}:{x:i.x,y:i.y}};$=i.get(n);$&&$.kill();e.startDrag=function(t,i){var r,e,o,s;xt(t||d.pointerEvent,true);if(i&&!d.hitTest(t||d.pointerEvent)){r=Pa(t||d.pointerEvent);e=Pa(n);o=Zt({x:r.left+r.width/2,y:r.top+r.height/2});s=Zt({x:e.left+e.width/2,y:e.top+e.height/2});B-=o.x-s.x;F-=o.y-s.y}if(!d.isDragging){d.isDragging=st=true;Aa(d,"dragstart","onDragStart")}};e.drag=mt;e.endDrag=function(t){return yt(t||d.pointerEvent,true)};e.timeSinceDrag=function(){return d.isDragging?0:(ra()-v)/1e3};e.timeSinceClick=function(){return(ra()-y)/1e3};e.hitTest=function(t,n){return i.hitTest(d.target,t,n)};e.getDirection=function(t,i){var r=t==="velocity"&&Ds?t:Us(t)&&!a?"element":"start",e,o,s,h,u,f;if(r==="element"){u=Pa(d.target);f=Pa(t)}e=r==="start"?d.x-S:r==="velocity"?Ds.getVelocity(n,l):u.left+u.width/2-(f.left+f.width/2);if(a){return e<0?"counter-clockwise":"clockwise"}else{i=i||2;o=r==="start"?d.y-z:r==="velocity"?Ds.getVelocity(n,c):u.top+u.height/2-(f.top+f.height/2);s=Math.abs(e/o);h=s<1/i?"":e<0?"left":"right";if(s<i){if(h!==""){h+="-"}h+=o<0?"up":"down"}}return h};e.applyBounds=function(t,i){var e,o,s,l,c,f;if(t&&r.bounds!==t){r.bounds=t;return d.update(true,i)}ct(true);ft();if(E&&!wt()){e=d.x;o=d.y;if(e>D){e=D}else if(e<O){e=O}if(o>T){o=T}else if(o<j){o=j}if(d.x!==e||d.y!==o){s=true;d.x=d.endX=e;if(a){d.endRotation=e}else{d.y=d.endY=o}N=true;lt(true);if(d.autoScroll&&!d.isDragging){Fa(n.parentNode);l=n;ha.scrollTop=ys.pageYOffset!=null?ys.pageYOffset:H.documentElement.scrollTop!=null?H.documentElement.scrollTop:H.body.scrollTop;ha.scrollLeft=ys.pageXOffset!=null?ys.pageXOffset:H.documentElement.scrollLeft!=null?H.documentElement.scrollLeft:H.body.scrollLeft;while(l&&!f){f=_a(l.parentNode);c=f?ha:l.parentNode;if(u&&c.scrollTop>c._gsMaxScrollY){c.scrollTop=c._gsMaxScrollY}if(h&&c.scrollLeft>c._gsMaxScrollX){c.scrollLeft=c._gsMaxScrollX}l=c}}}if(d.isThrowing&&(s||d.endX>D||d.endX<O||d.endY>T||d.endY<j)){pt(r.inertia||r.throwProps,s)}}return d};e.update=function(t,i,r){if(i&&d.isPressed){var e=bs(n),o=ot.apply({x:d.x-S,y:d.y-z}),s=bs(n.parentNode,true);s.apply({x:e.e-o.x,y:e.f-o.y},o);d.x-=o.x-s.e;d.y-=o.y-s.f;lt(true);gt()}var l=d.x,c=d.y;vt(!i);if(t){d.applyBounds()}else{N&&r&<(true);ct(true)}if(i){Mt(d.pointerX,d.pointerY);N&<(true)}if(d.isPressed&&!i&&(h&&Math.abs(l-d.x)>.01||u&&Math.abs(c-d.y)>.01&&!a)){gt()}if(d.autoScroll){Fa(n.parentNode,d.isDragging);g=d.isDragging;lt(true);Va(n,kt);Ha(n,kt)}return d};e.enable=function(t){var i={lazy:true},e,o,l;if(r.cursor!==false){i.cursor=r.cursor||Os}if(Ms.utils.checkPrefix("touchCallout")){i.touchCallout="none"}if(t!=="soft"){da(C,h===u?"none":r.allowNativeTouchScrolling&&n.scrollHeight===n.clientHeight===(n.scrollWidth===n.clientHeight)||r.allowEventDefault?"manipulation":h?"pan-y":"pan-x");o=C.length;while(--o>-1){l=C[o];Ts||ba(l,"mousedown",xt);ba(l,"touchstart",xt);ba(l,"click",Lt,true);Ms.set(l,i);if(l.getBBox&&l.ownerSVGElement&&h!==u){Ms.set(l.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":h?"pan-y":"pan-x"})}r.allowContextMenu||ba(l,"contextmenu",at)}Ia(C,false)}Ha(n,kt);V=true;if(Ds&&t!=="soft"){Ds.track(_||n,s?"x,y":a?"rotation":"top,left")}n._gsDragID=e="d"+sa++;oa[e]=d;if(_){_.enable();_.element._gsDragID=e}(r.bounds||a)&>();r.bounds&&d.applyBounds();return d};e.disable=function(t){var i=d.isDragging,r=C.length,e;while(--r>-1){Sa(C[r],"cursor",null)}if(t!=="soft"){da(C,null);r=C.length;while(--r>-1){e=C[r];Sa(e,"touchCallout",null);xa(e,"mousedown",xt);xa(e,"touchstart",xt);xa(e,"click",Lt,true);xa(e,"contextmenu",at)}Ia(C,true);if(Q){xa(Q,"touchcancel",yt);xa(Q,"touchend",yt);xa(Q,"touchmove",mt)}xa(H,"mouseup",yt);xa(H,"mousemove",mt)}Va(n,kt);V=false;if(Ds&&t!=="soft"){Ds.untrack(_||n,s?"x,y":a?"rotation":"top,left");d.tween&&d.tween.kill()}_&&_.disable();ga(lt);d.isDragging=d.isPressed=G=false;i&&Aa(d,"dragend","onDragEnd");return d};e.enabled=function(t,i){return arguments.length?t?d.enable(i):d.disable(i):V};e.kill=function(){d.isThrowing=false;d.tween&&d.tween.kill();d.disable();Ms.set(C,{clearProps:"userSelect"});delete oa[n._gsDragID];return d};e.revert=function(){this.kill();this.styles&&this.styles.revert()};if(~o.indexOf("scroll")){_=e.scrollProxy=new Ua(n,fa({onKill:function t(){d.isPressed&&yt(null)}},r));n.style.overflowY=u&&!zs?"auto":"hidden";n.style.overflowX=h&&!zs?"auto":"hidden";n=_.content}if(a){p.rotation=1}else{if(h){p[l]=1}if(u){p[c]=1}}k.force3D="force3D"in r?r.force3D:true;js(xs(e));e.enable();return e}i.register=function t(i){Ms=i;Xa()};i.create=function t(n,r){_s||Xa(true);return Fs(n).map((function(t){return new i(t,r)}))};i.get=function t(i){return oa[(Fs(i)[0]||{})._gsDragID]};i.timeSinceDrag=function t(){return(ra()-la)/1e3};i.hitTest=function t(i,n,r){if(i===n){return false}var e=Pa(i),o=Pa(n),s=e.top,a=e.left,l=e.right,c=e.bottom,h=e.width,u=e.height,f=o.left>l||o.right<a||o.top>c||o.bottom<s,d,C,p;if(f||!r){return!f}p=(r+"").indexOf("%")!==-1;r=parseFloat(r)||0;d={left:Math.max(a,o.left),top:Math.max(s,o.top)};d.width=Math.min(l,o.right)-d.left;d.height=Math.min(c,o.bottom)-d.top;if(d.width<0||d.height<0){return false}if(p){r*=.01;C=d.width*d.height;return C>=h*u*r||C>=o.width*o.height*r}return d.width>r&&d.height>r};return i}(Ya);wa(Ga.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:false,isPressed:false});Ga.zIndex=1e3;Ga.version="3.12.5";Ns()&&Ms.registerPlugin(Ga);const Qa=":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}@media (max-width: 480px){:host(.include-mobile-styling) .modal-wrapper{scale:none;top:100%;left:0;height:unset;opacity:1}:host(.include-mobile-styling) .modal-container{width:100%;max-width:none;border-bottom-left-radius:0px;border-bottom-right-radius:0px}}.modal-header{position:sticky;top:0;padding-top:var(--inner-container-padding-top);background-color:var(--inner-container-background-color)}.modal-wrapper{z-index:9999999999998;position:fixed;top:0;left:0;display:none;height:100%;width:100%;justify-content:center;align-items:center;scale:0.8;opacity:0;transform:none}.modal-container{position:relative;overflow:hidden;-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);max-width:95vw;max-height:95vh;max-height:95dvh;overflow:auto;-ms-overflow-style:none;scrollbar-width:none;}.modal-container ::-webkit-scrollbar{display:none}.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:0;padding-bottom:var(--inner-container-padding-bottom);margin-bottom:var(--inner-container-margin-bottom);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;display:none}.modal-inner-container.no-footer{margin-bottom:0px;box-shadow:none}.modal-container.no-footer{padding-bottom:0px}.no-opacity{opacity:0}";const Wa=Qa;Xo.registerPlugin(Ga);const Ka=Xo.matchMedia();const Ja=class{constructor(i){t(this,i);this.cpslModalEntering=r(this,"cpslModalEntering",7);this.cpslModalEntered=r(this,"cpslModalEntered",7);this.cpslModalExiting=r(this,"cpslModalExiting",7);this.cpslModalExited=r(this,"cpslModalExited",7);this.cpslModalRequestClose=r(this,"cpslModalRequestClose",7);this.getDraggableHeight=()=>this.innerContainerEl.clientHeight;this.hasFooter=undefined;this.enterTransitionDuration=.15;this.exitTransitionDuration=.15;this.footerExpanded=undefined;this.footerTransitionDuration=.15;this.noOverlay=undefined;this.open=undefined}toggleHeight(){this.footerExpanded?this.expandFooterTl.play():this.expandFooterTl.reverse()}toggleModal(){if(this.open){if(window.innerWidth>=o+1){Xo.timeline({onStart:()=>{this.cpslModalEntering.emit()},onComplete:()=>{this.addExpandAnim();this.cpslModalEntered.emit()}}).set(this.modalWrapperEl,{display:"flex",yPercent:0}).to(this.modalWrapperEl,{scale:1,opacity:1,duration:this.enterTransitionDuration})}else{Xo.timeline({onStart:()=>{this.cpslModalEntering.emit()},onComplete:()=>{this.addExpandAnim();this.cpslModalEntered.emit()}}).set(this.modalWrapperEl,{display:"flex",scale:1,opacity:1}).to(this.modalWrapperEl,{yPercent:-100,duration:this.enterTransitionDuration})}}else{if(window.innerWidth>=o+1){Xo.timeline({onStart:()=>{this.cpslModalExiting.emit()},onComplete:()=>{this.cpslModalExited.emit();this.modalWrapperEl.style.setProperty("display","none")}}).to(this.modalWrapperEl,{scale:.8,opacity:0,duration:this.exitTransitionDuration})}else{Xo.timeline({onStart:()=>{this.cpslModalExiting.emit()},onComplete:()=>{this.cpslModalExited.emit();this.modalWrapperEl.style.setProperty("display","none")}}).to(this.modalWrapperEl,{yPercent:0,duration:this.exitTransitionDuration}).set(this.modalContainerEl,{y:0})}}}componentDidLoad(){Ka.add(`(min-width: ${o+1}px)`,(()=>{var t;(t=this.draggable)===null||t===void 0?void 0:t.disable();Xo.timeline({}).set(this.modalWrapperEl,{yPercent:0,scale:this.open?1:.8,opacity:this.open?1:0})}));Ka.add(`(max-width: ${o}px)`,(()=>{this.initDraggable();Xo.timeline({}).set(this.modalWrapperEl,{scale:1,opacity:1,yPercent:this.open?-100:0})}));this.footerSlotEl.addEventListener("slotchange",(()=>{if(this.footerSlotEl.assignedNodes().length>=1){this.hasFooter=true}else{this.hasFooter=false}}))}addExpandAnim(){setTimeout((()=>{this.expandFooterTl=Xo.timeline({reversed:true,paused:true,onReverseComplete:()=>{this.contentEl.style.setProperty("height","auto")},defaults:{duration:this.footerTransitionDuration}}).set(this.footerExpandedEl,{overflow:"auto",display:"block"}).set(this.headerExpandedEl,{display:"block"}).to(this.innerContainerEl,{paddingBottom:"8px"}).to(this.contentEl,{height:"0px",overflow:"hidden",opacity:0},"<").to(this.footerEl,{height:"0px",overflow:"hidden",opacity:0},"<").to(this.footerExpandedEl,{height:"auto",opacity:1},"<").to(this.headerExpandedEl,{height:"auto",opacity:1},"<")}),10)}initDraggable(){this.draggable=Ga.create(this.modalContainerEl,{trigger:this.headerEl,dragClickables:false,type:"y",edgeResistance:.2,liveSnap:{y:function(t){if(t<0)return 0;return t}},onDrag:()=>{const t=Xo.utils.mapRange(0,this.getDraggableHeight(),1,0,this.draggable.y);Xo.set(this.overlayEl,{opacity:t})},onDragEnd:()=>{if(this.draggable.y>60){this.cpslModalRequestClose.emit()}else{Xo.set(this.overlayEl,{opacity:1});Xo.set(this.modalWrapperEl,{yPercent:-100});Xo.set(this.modalContainerEl,{y:0})}}})[0]}get footerEl(){return this.el.shadowRoot.getElementById("modal-footer")}get footerExpandedEl(){return this.el.shadowRoot.getElementById("modal-footer-expanded")}get headerExpandedEl(){return this.el.shadowRoot.getElementById("modal-header-expanded")}get innerContainerEl(){return this.el.shadowRoot.getElementById("modal-inner-container")}get contentEl(){return this.el.shadowRoot.getElementById("modal-content")}get modalWrapperEl(){return this.el.shadowRoot.getElementById("modal-wrapper")}get modalContainerEl(){return this.el.shadowRoot.getElementById("modal-container")}get overlayEl(){return this.el.shadowRoot.getElementById("overlay")}get footerSlotEl(){return this.footerEl.querySelectorAll("slot")[0]}get headerEl(){return this.el.shadowRoot.getElementById("modal-header")}get Modal(){return i("div",{class:{"modal-container":true,"no-footer":!this.hasFooter},part:"modal-container",id:"modal-container"},i("slot",null),i("div",{id:"modal-inner-container",class:{"modal-inner-container":true,"no-footer":!this.hasFooter},part:"modal-inner-container"},i("div",{id:"modal-content",part:"modal-content"},i("div",{id:"modal-header",class:"modal-header"},i("slot",{name:"header"})),i("slot",{name:"body"})),i("div",{id:"modal-header-expanded",class:{"modal-header":true,expanded:true,"no-opacity":true}},i("slot",{name:"footerExpandedHeader"}))),i("div",{id:"modal-footer"},i("slot",{name:"footer"})),i("div",{id:"modal-footer-expanded",class:{expanded:true,"no-opacity":true}},i("slot",{name:"footerExpandedFooter"})))}render(){if(this.noOverlay){this.addExpandAnim();return i(n,null,this.Modal)}return i(n,{class:{"include-mobile-styling":true}},i("cpsl-overlay",{id:"overlay",open:this.open,enterTransitionDuration:this.enterTransitionDuration,exitTransitionDuration:this.exitTransitionDuration}),i("div",{id:"modal-wrapper",class:"modal-wrapper"},this.Modal))}get el(){return e(this)}static get watchers(){return{footerExpanded:["toggleHeight"],open:["toggleModal"]}}};Ja.style=Wa;const tl=":host{position:fixed;width:100%;height:100%;top:0;left:0;z-index:999999999999;opacity:0%;display:none;background-color:var(--cpsl-color-alpha-black-50)}";const il=tl;const nl=class{constructor(i){t(this,i);this.open=undefined;this.enterTransitionDuration=.5;this.exitTransitionDuration=.5}toggleHeight(){this.open?Xo.timeline({defaults:{duration:this.enterTransitionDuration}}).to(this.el,{display:"block",opacity:1}):Xo.timeline({defaults:{duration:this.exitTransitionDuration}}).to(this.el,{display:"none",opacity:0});if(this.open){document.documentElement.style.overflow="hidden"}else{setTimeout((()=>{document.documentElement.style.overflow="auto"}),this.exitTransitionDuration*1e3)}}componentDidLoad(){if(this.open){Xo.timeline({defaults:{duration:this.enterTransitionDuration}}).to(this.el,{display:"block",opacity:1});document.documentElement.style.overflow="hidden"}}render(){return i(n,{key:"4d8c07e1704e32808745d92d5befa8a4145a779f"},i("slot",{key:"f767b8da95b657cf8c118c298c38acaf72af8e8c"}))}get el(){return e(this)}static get watchers(){return{open:["toggleHeight"]}}};nl.style=il;const rl=":host{--pill-text-color:var(--cpsl-pill-text);--pill-text-size:clamp(10px, 0.625rem, 15px);--pill-text-line-height:100%;--pill-container-height:18px;--pill-container-background-color:var(--cpsl-color-pill-container-background);--pill-container-border-color:var(--cpsl-color-pill-container-border);--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 el=rl;const ol=class{constructor(i){t(this,i);this.text=undefined}render(){return i(n,{key:"c0d7930033e08ea264480fd457b176755eac7662"},i("div",{key:"b0f6d184dcfe34559b62a9c9da4354f5bfb59797",class:"pill-container"},i("span",{key:"88634c4cd20dba3d850c51bb4089649364112566"},this.text)))}};ol.style=el;const sl=":host{--step-height:3px;--step-active-color:var(--cpsl-color-progressIndicator-active);--step-next-color:var(--cpsl-color-progressIndicator-next);--step-previous-color:var(--cpsl-color-progressIndicator-previous);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 al=sl;const ll=class{constructor(i){t(this,i);this.totalSteps=undefined;this.step=undefined}render(){const t=new Array(this.totalSteps).fill(0).map(((t,i)=>{let n={active:false,previous:false};if(i===this.step){n.active=true}else if(i<this.step){n.previous=true}return n}));return i(n,null,t.map((t=>i("div",{class:{step:true,active:t.active,previous:t.previous}}))))}};ll.style=al;var cl={exports:{}};(function(t,i){!function(i,n){t.exports=n()}(self,(function(){return(()=>{var t={192:(t,i)=>{var n,r,e=function(){var t=function(t,i){var n=t,r=s[i],e=null,o=0,l=null,v=[],g={},b=function(t,i){e=function(t){for(var i=new Array(t),n=0;n<t;n+=1){i[n]=new Array(t);for(var r=0;r<t;r+=1)i[n][r]=null}return i}(o=4*n+17),x(0,0),x(o-7,0),x(0,o-7),M(),m(),k(t,i),n>=7&&y(t),null==l&&(l=Z(n,r,v)),L(l,i)},x=function(t,i){for(var n=-1;n<=7;n+=1)if(!(t+n<=-1||o<=t+n))for(var r=-1;r<=7;r+=1)i+r<=-1||o<=i+r||(e[t+n][i+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=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 i=8;i<o-8;i+=1)null==e[6][i]&&(e[6][i]=i%2==0)},M=function(){for(var t=a.getPatternPosition(n),i=0;i<t.length;i+=1)for(var r=0;r<t.length;r+=1){var o=t[i],s=t[r];if(null==e[o][s])for(var l=-2;l<=2;l+=1)for(var c=-2;c<=2;c+=1)e[o+l][s+c]=-2==l||2==l||-2==c||2==c||0==l&&0==c}},y=function(t){for(var i=a.getBCHTypeNumber(n),r=0;r<18;r+=1){var s=!t&&1==(i>>r&1);e[Math.floor(r/3)][r%3+o-8-3]=s}for(r=0;r<18;r+=1)s=!t&&1==(i>>r&1),e[r%3+o-8-3][Math.floor(r/3)]=s},k=function(t,i){for(var n=r<<3|i,s=a.getBCHTypeInfo(n),l=0;l<15;l+=1){var c=!t&&1==(s>>l&1);l<6?e[l][8]=c:l<8?e[l+1][8]=c:e[o-15+l][8]=c}for(l=0;l<15;l+=1)c=!t&&1==(s>>l&1),l<8?e[8][o-l-1]=c:l<9?e[8][15-l-1+1]=c:e[8][15-l-1]=c;e[o-8][8]=!t},L=function(t,i){for(var n=-1,r=o-1,s=7,l=0,c=a.getMaskFunction(i),h=o-1;h>0;h-=2)for(6==h&&(h-=1);;){for(var u=0;u<2;u+=1)if(null==e[r][h-u]){var f=!1;l<t.length&&(f=1==(t[l]>>>s&1)),c(r,h-u)&&(f=!f),e[r][h-u]=f,-1==(s-=1)&&(l+=1,s=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},Z=function(t,i,n){for(var r=h.getRSBlocks(t,i),e=u(),o=0;o<n.length;o+=1){var s=n[o];e.put(s.getMode(),4),e.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(e)}var l=0;for(o=0;o<r.length;o+=1)l+=r[o].dataCount;if(e.getLengthInBits()>8*l)throw"code length overflow. ("+e.getLengthInBits()+">"+8*l+")";for(e.getLengthInBits()+4<=8*l&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(!1);for(;!(e.getLengthInBits()>=8*l||(e.put(236,8),e.getLengthInBits()>=8*l));)e.put(17,8);return function(t,i){for(var n=0,r=0,e=0,o=new Array(i.length),s=new Array(i.length),l=0;l<i.length;l+=1){var h=i[l].dataCount,u=i[l].totalCount-h;r=Math.max(r,h),e=Math.max(e,u),o[l]=new Array(h);for(var f=0;f<o[l].length;f+=1)o[l][f]=255&t.getBuffer()[f+n];n+=h;var d=a.getErrorCorrectPolynomial(u),C=c(o[l],d.getLength()-1).mod(d);for(s[l]=new Array(d.getLength()-1),f=0;f<s[l].length;f+=1){var p=f+C.getLength()-s[l].length;s[l][f]=p>=0?C.getAt(p):0}}var v=0;for(f=0;f<i.length;f+=1)v+=i[f].totalCount;var g=new Array(v),w=0;for(f=0;f<r;f+=1)for(l=0;l<i.length;l+=1)f<o[l].length&&(g[w]=o[l][f],w+=1);for(f=0;f<e;f+=1)for(l=0;l<i.length;l+=1)f<s[l].length&&(g[w]=s[l][f],w+=1);return g}(e,r)};g.addData=function(t,i){var n=null;switch(i=i||"Byte"){case"Numeric":n=f(t);break;case"Alphanumeric":n=d(t);break;case"Byte":n=C(t);break;case"Kanji":n=p(t);break;default:throw"mode:"+i}v.push(n),l=null},g.isDark=function(t,i){if(t<0||o<=t||i<0||o<=i)throw t+","+i;return e[t][i]},g.getModuleCount=function(){return o},g.make=function(){if(n<1){for(var t=1;t<40;t++){for(var i=h.getRSBlocks(t,r),e=u(),o=0;o<v.length;o++){var s=v[o];e.put(s.getMode(),4),e.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(e)}var l=0;for(o=0;o<i.length;o++)l+=i[o].dataCount;if(e.getLengthInBits()<=8*l)break}n=t}b(!1,function(){for(var t=0,i=0,n=0;n<8;n+=1){b(!0,n);var r=a.getLostPoint(g);(0==n||t>r)&&(t=r,i=n)}return i}())},g.createTableTag=function(t,i){t=t||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(i=void 0===i?4*t:i)+"px;",n+='">',n+="<tbody>";for(var r=0;r<g.getModuleCount();r+=1){n+="<tr>";for(var e=0;e<g.getModuleCount();e+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+t+"px;",n+=" height: "+t+"px;",n+=" background-color: ",n+=g.isDark(r,e)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},g.createSvgTag=function(t,i,n,r){var e={};"object"==typeof arguments[0]&&(t=(e=arguments[0]).cellSize,i=e.margin,n=e.alt,r=e.title),t=t||2,i=void 0===i?4*t:i,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.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,s,a,l,c=g.getModuleCount()*t+2*i,h="";for(l="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="'+c+'px" height="'+c+'px"',h+=' viewBox="0 0 '+c+" "+c+'" ',h+=' preserveAspectRatio="xMinYMin meet"',h+=r.text||n.text?' role="img" aria-labelledby="'+H([r.id,n.id].join(" ").trim())+'"':"",h+=">",h+=r.text?'<title id="'+H(r.id)+'">'+H(r.text)+"</title>":"",h+=n.text?'<description id="'+H(n.id)+'">'+H(n.text)+"</description>":"",h+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',h+='<path d="',s=0;s<g.getModuleCount();s+=1)for(a=s*t+i,o=0;o<g.getModuleCount();o+=1)g.isDark(s,o)&&(h+="M"+(o*t+i)+","+a+l);return(h+='" stroke="transparent" fill="black"/>')+"</svg>"},g.createDataURL=function(t,i){t=t||2,i=void 0===i?4*t:i;var n=g.getModuleCount()*t+2*i,r=i,e=n-i;return w(n,n,(function(i,n){if(r<=i&&i<e&&r<=n&&n<e){var o=Math.floor((i-r)/t),s=Math.floor((n-r)/t);return g.isDark(s,o)?0:1}return 1}))},g.createImgTag=function(t,i,n){t=t||2,i=void 0===i?4*t:i;var r=g.getModuleCount()*t+2*i,e="";return e+="<img",e+=' src="',e+=g.createDataURL(t,i),e+='"',e+=' width="',e+=r,e+='"',e+=' height="',e+=r,e+='"',n&&(e+=' alt="',e+=H(n),e+='"'),e+"/>"};var H=function(t){for(var i="",n=0;n<t.length;n+=1){var r=t.charAt(n);switch(r){case"<":i+="<";break;case">":i+=">";break;case"&":i+="&";break;case'"':i+=""";break;default:i+=r}}return i};return g.createASCII=function(t,i){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var i,n,r,e,o,s=1*g.getModuleCount()+2*t,a=t,l=s-t,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},h={"██":"▀","█ ":"▀"," █":" "," ":" "},u="";for(i=0;i<s;i+=2){for(r=Math.floor((i-a)/1),e=Math.floor((i+1-a)/1),n=0;n<s;n+=1)o="█",a<=n&&n<l&&a<=i&&i<l&&g.isDark(r,Math.floor((n-a)/1))&&(o=" "),a<=n&&n<l&&a<=i+1&&i+1<l&&g.isDark(e,Math.floor((n-a)/1))?o+=" ":o+="█",u+=t<1&&i+1>=l?h[o]:c[o];u+="\n"}return s%2&&t>0?u.substring(0,u.length-s-1)+Array(s+1).join("▀"):u.substring(0,u.length-1)}(i);t-=1,i=void 0===i?2*t:i;var n,r,e,o,s=g.getModuleCount()*t+2*i,a=i,l=s-i,c=Array(t+1).join("██"),h=Array(t+1).join(" "),u="",f="";for(n=0;n<s;n+=1){for(e=Math.floor((n-a)/t),f="",r=0;r<s;r+=1)o=1,a<=r&&r<l&&a<=n&&n<l&&g.isDark(e,Math.floor((r-a)/t))&&(o=0),f+=o?c:h;for(e=0;e<t;e+=1)u+=f+"\n"}return u.substring(0,u.length-1)},g.renderTo2dContext=function(t,i){i=i||2;for(var n=g.getModuleCount(),r=0;r<n;r++)for(var e=0;e<n;e++)t.fillStyle=g.isDark(r,e)?"black":"white",t.fillRect(r*i,e*i,i,i)},g};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var i=[],n=0;n<t.length;n+=1){var r=t.charCodeAt(n);i.push(255&r)}return i}}).default,t.createStringToBytes=function(t,i){var n=function(){for(var n=g(t),r=function(){var t=n.read();if(-1==t)throw"eof";return t},e=0,o={};;){var s=n.read();if(-1==s)break;var a=r(),l=r()<<8|r();o[String.fromCharCode(s<<8|a)]=l,e+=1}if(e!=i)throw e+" != "+i;return o}(),r="?".charCodeAt(0);return function(t){for(var i=[],e=0;e<t.length;e+=1){var o=t.charCodeAt(e);if(o<128)i.push(o);else{var s=n[t.charAt(e)];"number"==typeof s?(255&s)==s?i.push(s):(i.push(s>>>8),i.push(255&s)):i.push(r)}}return i}};var i,n,r,e,o,s={L:1,M:0,Q:3,H:2},a=(i=[[],[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]],n=1335,r=7973,o=function(t){for(var i=0;0!=t;)i+=1,t>>>=1;return i},(e={}).getBCHTypeInfo=function(t){for(var i=t<<10;o(i)-o(n)>=0;)i^=n<<o(i)-o(n);return 21522^(t<<10|i)},e.getBCHTypeNumber=function(t){for(var i=t<<12;o(i)-o(r)>=0;)i^=r<<o(i)-o(r);return t<<12|i},e.getPatternPosition=function(t){return i[t-1]},e.getMaskFunction=function(t){switch(t){case 0:return function(t,i){return(t+i)%2==0};case 1:return function(t,i){return t%2==0};case 2:return function(t,i){return i%3==0};case 3:return function(t,i){return(t+i)%3==0};case 4:return function(t,i){return(Math.floor(t/2)+Math.floor(i/3))%2==0};case 5:return function(t,i){return t*i%2+t*i%3==0};case 6:return function(t,i){return(t*i%2+t*i%3)%2==0};case 7:return function(t,i){return(t*i%3+(t+i)%2)%2==0};default:throw"bad maskPattern:"+t}},e.getErrorCorrectPolynomial=function(t){for(var i=c([1],0),n=0;n<t;n+=1)i=i.multiply(c([1,l.gexp(n)],0));return i},e.getLengthInBits=function(t,i){if(1<=i&&i<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(i<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(!(i<41))throw"type:"+i;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 i=t.getModuleCount(),n=0,r=0;r<i;r+=1)for(var e=0;e<i;e+=1){for(var o=0,s=t.isDark(r,e),a=-1;a<=1;a+=1)if(!(r+a<0||i<=r+a))for(var l=-1;l<=1;l+=1)e+l<0||i<=e+l||0==a&&0==l||s==t.isDark(r+a,e+l)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<i-1;r+=1)for(e=0;e<i-1;e+=1){var c=0;t.isDark(r,e)&&(c+=1),t.isDark(r+1,e)&&(c+=1),t.isDark(r,e+1)&&(c+=1),t.isDark(r+1,e+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<i;r+=1)for(e=0;e<i-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)&&(n+=40);for(e=0;e<i;e+=1)for(r=0;r<i-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)&&(n+=40);var h=0;for(e=0;e<i;e+=1)for(r=0;r<i;r+=1)t.isDark(r,e)&&(h+=1);return n+Math.abs(100*h/i/i-50)/5*10},e),l=function(){for(var t=new Array(256),i=new Array(256),n=0;n<8;n+=1)t[n]=1<<n;for(n=8;n<256;n+=1)t[n]=t[n-4]^t[n-5]^t[n-6]^t[n-8];for(n=0;n<255;n+=1)i[t[n]]=n;return{glog:function(t){if(t<1)throw"glog("+t+")";return i[t]},gexp:function(i){for(;i<0;)i+=255;for(;i>=256;)i-=255;return t[i]}}}();function c(t,i){if(void 0===t.length)throw t.length+"/"+i;var n=function(){for(var n=0;n<t.length&&0==t[n];)n+=1;for(var r=new Array(t.length-n+i),e=0;e<t.length-n;e+=1)r[e]=t[e+n];return r}(),r={getAt:function(t){return n[t]},getLength:function(){return n.length},multiply:function(t){for(var i=new Array(r.getLength()+t.getLength()-1),n=0;n<r.getLength();n+=1)for(var e=0;e<t.getLength();e+=1)i[n+e]^=l.gexp(l.glog(r.getAt(n))+l.glog(t.getAt(e)));return c(i,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var i=l.glog(r.getAt(0))-l.glog(t.getAt(0)),n=new Array(r.getLength()),e=0;e<r.getLength();e+=1)n[e]=r.getAt(e);for(e=0;e<t.getLength();e+=1)n[e]^=l.gexp(l.glog(t.getAt(e))+i);return c(n,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]],i=function(t,i){var n={};return n.totalCount=t,n.dataCount=i,n},n={getRSBlocks:function(n,r){var e=function(i,n){switch(n){case s.L:return t[4*(i-1)+0];case s.M:return t[4*(i-1)+1];case s.Q:return t[4*(i-1)+2];case s.H:return t[4*(i-1)+3];default:return}}(n,r);if(void 0===e)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var o=e.length/3,a=[],l=0;l<o;l+=1)for(var c=e[3*l+0],h=e[3*l+1],u=e[3*l+2],f=0;f<c;f+=1)a.push(i(h,u));return a}};return n}(),u=function(){var t=[],i=0,n={getBuffer:function(){return t},getAt:function(i){var n=Math.floor(i/8);return 1==(t[n]>>>7-i%8&1)},put:function(t,i){for(var r=0;r<i;r+=1)n.putBit(1==(t>>>i-r-1&1))},getLengthInBits:function(){return i},putBit:function(n){var r=Math.floor(i/8);t.length<=r&&t.push(0),n&&(t[r]|=128>>>i%8),i+=1}};return n},f=function(t){var i=t,n={getMode:function(){return 1},getLength:function(t){return i.length},write:function(t){for(var n=i,e=0;e+2<n.length;)t.put(r(n.substring(e,e+3)),10),e+=3;e<n.length&&(n.length-e==1?t.put(r(n.substring(e,e+1)),4):n.length-e==2&&t.put(r(n.substring(e,e+2)),7))}},r=function(t){for(var i=0,n=0;n<t.length;n+=1)i=10*i+e(t.charAt(n));return i},e=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return n},d=function(t){var i=t,n={getMode:function(){return 2},getLength:function(t){return i.length},write:function(t){for(var n=i,e=0;e+1<n.length;)t.put(45*r(n.charAt(e))+r(n.charAt(e+1)),11),e+=2;e<n.length&&t.put(r(n.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 n},C=function(i){var n=t.stringToBytes(i);return{getMode:function(){return 4},getLength:function(t){return n.length},write:function(t){for(var i=0;i<n.length;i+=1)t.put(n[i],8)}}},p=function(i){var n=t.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(t,i){var r=n("友");if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=n(i);return{getMode:function(){return 8},getLength:function(t){return~~(r.length/2)},write:function(t){for(var i=r,n=0;n+1<i.length;){var e=(255&i[n])<<8|255&i[n+1];if(33088<=e&&e<=40956)e-=33088;else{if(!(57408<=e&&e<=60351))throw"illegal char at "+(n+1)+"/"+e;e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13),n+=2}if(n<i.length)throw"illegal char at "+(n+1)}}},v=function(){var t=[],i={writeByte:function(i){t.push(255&i)},writeShort:function(t){i.writeByte(t),i.writeByte(t>>>8)},writeBytes:function(t,n,r){n=n||0,r=r||t.length;for(var e=0;e<r;e+=1)i.writeByte(t[e+n])},writeString:function(t){for(var n=0;n<t.length;n+=1)i.writeByte(t.charCodeAt(n))},toByteArray:function(){return t},toString:function(){var i="";i+="[";for(var n=0;n<t.length;n+=1)n>0&&(i+=","),i+=t[n];return i+"]"}};return i},g=function(t){var i=t,n=0,r=0,e=0,o={read:function(){for(;e<8;){if(n>=i.length){if(0==e)return-1;throw"unexpected end of file./"+e}var t=i.charAt(n);if(n+=1,"="==t)return e=0,-1;t.match(/^\s$/)||(r=r<<6|s(t.charCodeAt(0)),e+=6)}var o=r>>>e-8&255;return e-=8,o}},s=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,i,n){for(var r=function(t,i){var n=t,r=i,e=new Array(t*i),o={setPixel:function(t,i,r){e[i*n+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(n),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(n),t.writeShort(r),t.writeByte(0);var i=s(2);t.writeByte(2);for(var e=0;i.length-e>255;)t.writeByte(255),t.writeBytes(i,e,255),e+=255;t.writeByte(i.length-e),t.writeBytes(i,e,i.length-e),t.writeByte(0),t.writeString(";")}},s=function(t){for(var i=1<<t,n=1+(1<<t),r=t+1,o=a(),s=0;s<i;s+=1)o.add(String.fromCharCode(s));o.add(String.fromCharCode(i)),o.add(String.fromCharCode(n));var l,c,h,u=v(),f=(l=u,c=0,h=0,{write:function(t,i){if(t>>>i!=0)throw"length over";for(;c+i>=8;)l.writeByte(255&(t<<c|h)),i-=8-c,t>>>=8-c,h=0,c=0;h|=t<<c,c+=i},flush:function(){c>0&&l.writeByte(h)}});f.write(i,r);var d=0,C=String.fromCharCode(e[d]);for(d+=1;d<e.length;){var p=String.fromCharCode(e[d]);d+=1,o.contains(C+p)?C+=p:(f.write(o.indexOf(C),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(C+p)),C=p)}return f.write(o.indexOf(C),r),f.write(n,r),f.flush(),u.toByteArray()},a=function(){var t={},i=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;t[r]=i,i+=1},size:function(){return i},indexOf:function(i){return t[i]},contains:function(i){return void 0!==t[i]}};return n};return o}(t,i),e=0;e<i;e+=1)for(var o=0;o<t;o+=1)r.setPixel(o,e,n(o,e));var s=v();r.write(s);for(var a=function(){var t=0,i=0,n=0,r="",e={},o=function(t){r+=String.fromCharCode(s(63&t))},s=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,i+=8,n+=1;i>=6;)o(t>>>i-6),i-=6},e.flush=function(){if(i>0&&(o(t<<6-i),t=0,i=0),n%3!=0)for(var e=3-n%3,s=0;s<e;s+=1)r+="="},e.toString=function(){return r},e}(),l=s.toByteArray(),c=0;c<l.length;c+=1)a.writeByte(l[c]);return a.flush(),"data:image/gif;base64,"+a};return t}();e.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var i=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?i.push(r):r<2048?i.push(192|r>>6,128|63&r):r<55296||r>=57344?i.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),i.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return i}(t)},void 0===(r="function"==typeof(n=function(){return e})?n.apply(i,[]):n)||(t.exports=r)},676:(t,i,n)=>{n.d(i,{default:()=>z});var r=function(){return(r=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)},e=function(){for(var t=0,i=0,n=arguments.length;i<n;i++)t+=arguments[i].length;var r=Array(t),e=0;for(i=0;i<n;i++)for(var o=arguments[i],s=0,a=o.length;s<a;s++,e++)r[e]=o[s];return r},o=function(t){return!!t&&"object"==typeof t&&!Array.isArray(t)};function s(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(!i.length)return t;var a=i.shift();return void 0!==a&&o(t)&&o(a)?(t=r({},t),Object.keys(a).forEach((function(i){var n=t[i],r=a[i];Array.isArray(n)&&Array.isArray(r)?t[i]=r:o(n)&&o(r)?t[i]=s(Object.assign({},n),r):t[i]=r})),s.apply(void 0,e([t],i))):t}function a(t,i){var n=document.createElement("a");n.download=i,n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function l(t){return i=this,n=void 0,e=function(){return function(t,i){var n,r,e,o,s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=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 s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((e=(e=s.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){s.label=o[1];break}if(6===o[0]&&s.label<e[1]){s.label=e[1],e=o;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(o);break}e[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],r=0}finally{n=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(i){return[2,new Promise((function(i){var n=new XMLHttpRequest;n.onload=function(){var t=new FileReader;t.onloadend=function(){i(t.result)},t.readAsDataURL(n.response)},n.open("GET",t),n.responseType="blob",n.send()}))]}))},new((r=void 0)||(r=Promise))((function(t,o){function s(t){try{l(e.next(t))}catch(t){o(t)}}function a(t){try{l(e.throw(t))}catch(t){o(t)}}function l(i){var n;i.done?t(i.value):(n=i.value,n instanceof r?n:new r((function(t){t(n)}))).then(s,a)}l((e=e.apply(i,n||[])).next())}));var i,n,r,e}const c={L:.07,M:.15,Q:.25,H:.3};var h=function(){return(h=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)};const u=function(){function t(t){var i=t.svg,n=t.type;this._svg=i,this._type=n}return t.prototype.draw=function(t,i,n,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:i,size:n,getNeighbor:r})},t.prototype._rotateFigure=function(t){var i,n=t.x,r=t.y,e=t.size,o=t.rotation,s=void 0===o?0:o,a=n+e/2,l=r+e/2;(0,t.draw)(),null===(i=this._element)||void 0===i||i.setAttribute("transform","rotate("+180*s/Math.PI+","+a+","+l+")")},t.prototype._basicDot=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),i._element.setAttribute("cx",String(r+n/2)),i._element.setAttribute("cy",String(e+n/2)),i._element.setAttribute("r",String(n/2))}}))},t.prototype._basicSquare=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),i._element.setAttribute("x",String(r)),i._element.setAttribute("y",String(e)),i._element.setAttribute("width",String(n)),i._element.setAttribute("height",String(n))}}))},t.prototype._basicSideRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("d","M "+r+" "+e+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},t.prototype._basicCornerRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("d","M "+r+" "+e+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},t.prototype._basicCornerExtraRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("d","M "+r+" "+e+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},t.prototype._basicCornersRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("d","M "+r+" "+e+"v "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+n/2+" "+n/2+"h "+n/2+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},t.prototype._drawDot=function(t){var i=t.x,n=t.y,r=t.size;this._basicDot({x:i,y:n,size:r,rotation:0})},t.prototype._drawSquare=function(t){var i=t.x,n=t.y,r=t.size;this._basicSquare({x:i,y:n,size:r,rotation:0})},t.prototype._drawRounded=function(t){var i=t.x,n=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,s=e?+e(1,0):0,a=e?+e(0,-1):0,l=e?+e(0,1):0,c=o+s+a+l;if(0!==c)if(c>2||o&&s||a&&l)this._basicSquare({x:i,y:n,size:r,rotation:0});else{if(2===c){var h=0;return o&&a?h=Math.PI/2:a&&s?h=Math.PI:s&&l&&(h=-Math.PI/2),void this._basicCornerRounded({x:i,y:n,size:r,rotation:h})}if(1===c)return h=0,a?h=Math.PI/2:s?h=Math.PI:l&&(h=-Math.PI/2),void this._basicSideRounded({x:i,y:n,size:r,rotation:h})}else this._basicDot({x:i,y:n,size:r,rotation:0})},t.prototype._drawExtraRounded=function(t){var i=t.x,n=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,s=e?+e(1,0):0,a=e?+e(0,-1):0,l=e?+e(0,1):0,c=o+s+a+l;if(0!==c)if(c>2||o&&s||a&&l)this._basicSquare({x:i,y:n,size:r,rotation:0});else{if(2===c){var h=0;return o&&a?h=Math.PI/2:a&&s?h=Math.PI:s&&l&&(h=-Math.PI/2),void this._basicCornerExtraRounded({x:i,y:n,size:r,rotation:h})}if(1===c)return h=0,a?h=Math.PI/2:s?h=Math.PI:l&&(h=-Math.PI/2),void this._basicSideRounded({x:i,y:n,size:r,rotation:h})}else this._basicDot({x:i,y:n,size:r,rotation:0})},t.prototype._drawClassy=function(t){var i=t.x,n=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,s=e?+e(1,0):0,a=e?+e(0,-1):0,l=e?+e(0,1):0;0!==o+s+a+l?o||a?s||l?this._basicSquare({x:i,y:n,size:r,rotation:0}):this._basicCornerRounded({x:i,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:i,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:i,y:n,size:r,rotation:Math.PI/2})},t.prototype._drawClassyRounded=function(t){var i=t.x,n=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,s=e?+e(1,0):0,a=e?+e(0,-1):0,l=e?+e(0,1):0;0!==o+s+a+l?o||a?s||l?this._basicSquare({x:i,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:i,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:i,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:i,y:n,size:r,rotation:Math.PI/2})},t}();var f=function(){return(f=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)};const d=function(){function t(t){var i=t.svg,n=t.type;this._svg=i,this._type=n}return t.prototype.draw=function(t,i,n,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:i,size:n,rotation:r})},t.prototype._rotateFigure=function(t){var i,n=t.x,r=t.y,e=t.size,o=t.rotation,s=void 0===o?0:o,a=n+e/2,l=r+e/2;(0,t.draw)(),null===(i=this._element)||void 0===i||i.setAttribute("transform","rotate("+180*s/Math.PI+","+a+","+l+")")},t.prototype._basicDot=function(t){var i=this,n=t.size,r=t.x,e=t.y,o=n/7;this._rotateFigure(f(f({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("clip-rule","evenodd"),i._element.setAttribute("d","M "+(r+n/2)+" "+e+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(n/2-o)+" "+(n/2-o)+" 0 1 1 -0.1 0Z")}}))},t.prototype._basicSquare=function(t){var i=this,n=t.size,r=t.x,e=t.y,o=n/7;this._rotateFigure(f(f({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("clip-rule","evenodd"),i._element.setAttribute("d","M "+r+" "+e+"v "+n+"h "+n+"v "+-n+"zM "+(r+o)+" "+(e+o)+"h "+(n-2*o)+"v "+(n-2*o)+"h "+(2*o-n)+"z")}}))},t.prototype._basicExtraRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y,o=n/7;this._rotateFigure(f(f({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("clip-rule","evenodd"),i._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 i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicDot({x:i,y:n,size:r,rotation:e})},t.prototype._drawSquare=function(t){var i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicSquare({x:i,y:n,size:r,rotation:e})},t.prototype._drawExtraRounded=function(t){var i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicExtraRounded({x:i,y:n,size:r,rotation:e})},t}();var C=function(){return(C=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)};const p=function(){function t(t){var i=t.svg,n=t.type;this._svg=i,this._type=n}return t.prototype.draw=function(t,i,n,r){var e;switch(this._type){case"square":e=this._drawSquare;break;case"dot":default:e=this._drawDot}e.call(this,{x:t,y:i,size:n,rotation:r})},t.prototype._rotateFigure=function(t){var i,n=t.x,r=t.y,e=t.size,o=t.rotation,s=void 0===o?0:o,a=n+e/2,l=r+e/2;(0,t.draw)(),null===(i=this._element)||void 0===i||i.setAttribute("transform","rotate("+180*s/Math.PI+","+a+","+l+")")},t.prototype._basicDot=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(C(C({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),i._element.setAttribute("cx",String(r+n/2)),i._element.setAttribute("cy",String(e+n/2)),i._element.setAttribute("r",String(n/2))}}))},t.prototype._basicSquare=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(C(C({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),i._element.setAttribute("x",String(r)),i._element.setAttribute("y",String(e)),i._element.setAttribute("width",String(n)),i._element.setAttribute("height",String(n))}}))},t.prototype._drawDot=function(t){var i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicDot({x:i,y:n,size:r,rotation:e})},t.prototype._drawSquare=function(t){var i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicSquare({x:i,y:n,size:r,rotation:e})},t}(),v="circle";var g=function(t,i,n,r){return new(n||(n=Promise))((function(e,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(s,a)}l((r=r.apply(t,i||[])).next())}))},w=function(t,i){var n,r,e,o,s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=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 s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((e=(e=s.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){s.label=o[1];break}if(6===o[0]&&s.label<e[1]){s.label=e[1],e=o;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(o);break}e[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],r=0}finally{n=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},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 i,n,r,e,o,s,a,l,h,u,f=this;return w(this,(function(d){switch(d.label){case 0:return i=t.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===v?n/Math.sqrt(2):n,e=Math.floor(r/i),o={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(d.sent(),!this._image)return[2];s=this._options,a=s.imageOptions,l=s.qrOptions,h=a.imageSize*c[l.errorCorrectionLevel],u=Math.floor(h*i*i),o=function(t){var i=t.originalHeight,n=t.originalWidth,r=t.maxHiddenDots,e=t.maxHiddenAxisDots,o=t.dotSize,s={x:0,y:0},a={x:0,y:0};if(i<=0||n<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var l=i/n;return s.x=Math.floor(Math.sqrt(r/l)),s.x<=0&&(s.x=1),e&&e<s.x&&(s.x=e),s.x%2==0&&s.x--,a.x=s.x*o,s.y=1+2*Math.ceil((s.x*l-1)/2),a.y=Math.round(a.x*l),(s.y*s.x>r||e&&e<s.y)&&(e&&e<s.y?(s.y=e,s.y%2==0&&s.x--):s.y-=2,a.y=s.y*o,s.x=1+2*Math.ceil((s.y/l-1)/2),a.x=Math.round(a.y/l)),{height:a.y,width:a.x,hideYDots:s.y,hideXDots:s.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:u,maxHiddenAxisDots:i-14,dotSize:e}),d.label=2;case 2:return this.drawBackground(),this.drawDots((function(t,n){var r,e,s,a,l,c;return!(f._options.imageOptions.hideBackgroundDots&&t>=(i-o.hideXDots)/2&&t<(i+o.hideXDots)/2&&n>=(i-o.hideYDots)/2&&n<(i+o.hideYDots)/2||(null===(r=b[t])||void 0===r?void 0:r[n])||(null===(e=b[t-i+7])||void 0===e?void 0:e[n])||(null===(s=b[t])||void 0===s?void 0:s[n-i+7])||(null===(a=x[t])||void 0===a?void 0:a[n])||(null===(l=x[t-i+7])||void 0===l?void 0:l[n])||(null===(c=x[t])||void 0===c?void 0:c[n-i+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:i,dotSize:e})]:[3,4];case 3:d.sent(),d.label=4;case 4:return[2]}}))}))},t.prototype.drawBackground=function(){var t,i,n,r=this._element,e=this._options;if(r){var o=null===(t=e.backgroundOptions)||void 0===t?void 0:t.gradient,s=null===(i=e.backgroundOptions)||void 0===i?void 0:i.color;if((o||s)&&this._createColor({options:o,color:s,additionalRotation:0,x:0,y:0,height:e.height,width:e.width,name:"background-color"}),null===(n=e.backgroundOptions)||void 0===n?void 0:n.round){var a=Math.min(e.width,e.height),l=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),l.setAttribute("x",String((e.width-a)/2)),l.setAttribute("y",String((e.height-a)/2)),l.setAttribute("width",String(a)),l.setAttribute("height",String(a)),l.setAttribute("rx",String(a/2*e.backgroundOptions.round)),this._backgroundClipPath.appendChild(l)}}},t.prototype.drawDots=function(t){var i,n,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 s=Math.min(e.width,e.height)-2*e.margin,a=e.shape===v?s/Math.sqrt(2):s,l=Math.floor(a/o),c=Math.floor((e.width-o*l)/2),h=Math.floor((e.height-o*l)/2),f=new u({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===(i=e.dotsOptions)||void 0===i?void 0:i.gradient,color:e.dotsOptions.color,additionalRotation:0,x:0,y:0,height:e.height,width:e.width,name:"dot-color"});for(var d=function(i){for(var e=function(e){return t&&!t(i,e)?"continue":(null===(n=C._qr)||void 0===n?void 0:n.isDark(i,e))?(f.draw(c+i*l,h+e*l,l,(function(n,s){return!(i+n<0||e+s<0||i+n>=o||e+s>=o)&&!(t&&!t(i+n,e+s))&&!!r._qr&&r._qr.isDark(i+n,e+s)})),void(f._element&&C._dotsClipPath&&C._dotsClipPath.appendChild(f._element))):"continue"},s=0;s<o;s++)e(s)},C=this,p=0;p<o;p++)d(p);if(e.shape===v){var g=Math.floor((s/l-o)/2),w=o+2*g,b=c-g*l,x=h-g*l,m=[],M=Math.floor(w/2);for(p=0;p<w;p++){m[p]=[];for(var y=0;y<w;y++)p>=g-1&&p<=w-g&&y>=g-1&&y<=w-g||Math.sqrt((p-M)*(p-M)+(y-M)*(y-M))>M?m[p][y]=0:m[p][y]=this._qr.isDark(y-2*g<0?y:y>=o?y-2*g:y-g,p-2*g<0?p:p>=o?p-2*g:p-g)?1:0}var k=function(t){for(var i=function(i){if(!m[t][i])return"continue";f.draw(b+t*l,x+i*l,l,(function(n,r){var e;return!!(null===(e=m[t+n])||void 0===e?void 0:e[i+r])})),f._element&&L._dotsClipPath&&L._dotsClipPath.appendChild(f._element)},n=0;n<w;n++)i(n)},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 i=this._element,n=this._options;if(!i)throw"Element code is not defined";var r=this._qr.getModuleCount(),e=Math.min(n.width,n.height)-2*n.margin,o=n.shape===v?e/Math.sqrt(2):e,s=Math.floor(o/r),a=7*s,l=3*s,c=Math.floor((n.width-r*s)/2),h=Math.floor((n.height-r*s)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(i){var e,o,f,C,v,g,w,m,M,y,k,L,Z=i[0],H=i[1],V=i[2],_=c+Z*s*(r-7),B=h+H*s*(r-7),F=t._dotsClipPath,S=t._dotsClipPath;if(((null===(e=n.cornersSquareOptions)||void 0===e?void 0:e.gradient)||(null===(o=n.cornersSquareOptions)||void 0===o?void 0:o.color))&&((F=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Z+"-"+H),t._defs.appendChild(F),t._cornersSquareClipPath=t._cornersDotClipPath=S=F,t._createColor({options:null===(f=n.cornersSquareOptions)||void 0===f?void 0:f.gradient,color:null===(C=n.cornersSquareOptions)||void 0===C?void 0:C.color,additionalRotation:V,x:_,y:B,height:a,width:a,name:"corners-square-color-"+Z+"-"+H})),null===(v=n.cornersSquareOptions)||void 0===v?void 0:v.type){var z=new d({svg:t._element,type:n.cornersSquareOptions.type});z.draw(_,B,a,V),z._element&&F&&F.appendChild(z._element)}else for(var E=new u({svg:t._element,type:n.dotsOptions.type}),P=function(t){for(var i=function(i){if(!(null===(g=b[t])||void 0===g?void 0:g[i]))return"continue";E.draw(_+t*s,B+i*s,s,(function(n,r){var e;return!!(null===(e=b[t+n])||void 0===e?void 0:e[i+r])})),E._element&&F&&F.appendChild(E._element)},n=0;n<b[t].length;n++)i(n)},A=0;A<b.length;A++)P(A);if(((null===(w=n.cornersDotOptions)||void 0===w?void 0:w.gradient)||(null===(m=n.cornersDotOptions)||void 0===m?void 0:m.color))&&((S=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Z+"-"+H),t._defs.appendChild(S),t._cornersDotClipPath=S,t._createColor({options:null===(M=n.cornersDotOptions)||void 0===M?void 0:M.gradient,color:null===(y=n.cornersDotOptions)||void 0===y?void 0:y.color,additionalRotation:V,x:_+2*s,y:B+2*s,height:l,width:l,name:"corners-dot-color-"+Z+"-"+H})),null===(k=n.cornersDotOptions)||void 0===k?void 0:k.type){var D=new p({svg:t._element,type:n.cornersDotOptions.type});D.draw(_+2*s,B+2*s,l,V),D._element&&S&&S.appendChild(D._element)}else{E=new u({svg:t._element,type:n.dotsOptions.type});var O=function(t){for(var i=function(i){if(!(null===(L=x[t])||void 0===L?void 0:L[i]))return"continue";E.draw(_+t*s,B+i*s,s,(function(n,r){var e;return!!(null===(e=x[t+n])||void 0===e?void 0:e[i+r])})),E._element&&S&&S.appendChild(E._element)},n=0;n<x[t].length;n++)i(n)};for(A=0;A<x.length;A++)O(A)}}))},t.prototype.loadImage=function(){var t=this;return new Promise((function(i,n){var r=t._options,e=new Image;if(!r.image)return n("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(e.crossOrigin=r.imageOptions.crossOrigin),t._image=e,e.onload=function(){i()},e.src=r.image}))},t.prototype.drawImage=function(t){var i=t.width,n=t.height,r=t.count,e=t.dotSize;return g(this,void 0,void 0,(function(){var t,o,s,a,c,h,u,f,d;return w(this,(function(C){switch(C.label){case 0:return t=this._options,o=Math.floor((t.width-r*e)/2),s=Math.floor((t.height-r*e)/2),a=o+t.imageOptions.margin+(r*e-i)/2,c=s+t.imageOptions.margin+(r*e-n)/2,h=i-2*t.imageOptions.margin,u=n-2*t.imageOptions.margin,(f=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(a)),f.setAttribute("y",String(c)),f.setAttribute("width",h+"px"),f.setAttribute("height",u+"px"),[4,l(t.image||"")];case 1:return d=C.sent(),f.setAttribute("href",d||""),this._element.appendChild(f),[2]}}))}))},t.prototype._createColor=function(t){var i=t.options,n=t.color,r=t.additionalRotation,e=t.x,o=t.y,s=t.height,a=t.width,l=t.name,c=a>s?a:s,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(s)),h.setAttribute("width",String(a)),h.setAttribute("clip-path","url('#clip-path-"+l+"')"),i){var u;if("radial"===i.type)(u=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",l),u.setAttribute("gradientUnits","userSpaceOnUse"),u.setAttribute("fx",String(e+a/2)),u.setAttribute("fy",String(o+s/2)),u.setAttribute("cx",String(e+a/2)),u.setAttribute("cy",String(o+s/2)),u.setAttribute("r",String(c/2));else{var f=((i.rotation||0)+r)%(2*Math.PI),d=(f+2*Math.PI)%(2*Math.PI),C=e+a/2,p=o+s/2,v=e+a/2,g=o+s/2;d>=0&&d<=.25*Math.PI||d>1.75*Math.PI&&d<=2*Math.PI?(C-=a/2,p-=s/2*Math.tan(f),v+=a/2,g+=s/2*Math.tan(f)):d>.25*Math.PI&&d<=.75*Math.PI?(p-=s/2,C-=a/2/Math.tan(f),g+=s/2,v+=a/2/Math.tan(f)):d>.75*Math.PI&&d<=1.25*Math.PI?(C+=a/2,p+=s/2*Math.tan(f),v-=a/2,g-=s/2*Math.tan(f)):d>1.25*Math.PI&&d<=1.75*Math.PI&&(p+=s/2,C+=a/2/Math.tan(f),g-=s/2,v-=a/2/Math.tan(f)),(u=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",l),u.setAttribute("gradientUnits","userSpaceOnUse"),u.setAttribute("x1",String(Math.round(C))),u.setAttribute("y1",String(Math.round(p))),u.setAttribute("x2",String(Math.round(v))),u.setAttribute("y2",String(Math.round(g)))}i.colorStops.forEach((function(t){var i=t.offset,n=t.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*i+"%"),r.setAttribute("stop-color",n),u.appendChild(r)})),h.setAttribute("fill","url('#"+l+"')"),this._defs.appendChild(u)}else n&&h.setAttribute("fill",n);this._element.appendChild(h)},t}(),M="canvas";for(var y={},k=0;k<=40;k++)y[k]=k;const L={type:M,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:y[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 Z=function(){return(Z=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)};function H(t){var i=Z({},t);if(!i.colorStops||!i.colorStops.length)throw"Field 'colorStops' is required in gradient";return i.rotation?i.rotation=Number(i.rotation):i.rotation=0,i.colorStops=i.colorStops.map((function(t){return Z(Z({},t),{offset:Number(t.offset)})})),i}function V(t){var i=Z({},t);return i.width=Number(i.width),i.height=Number(i.height),i.margin=Number(i.margin),i.imageOptions=Z(Z({},i.imageOptions),{hideBackgroundDots:Boolean(i.imageOptions.hideBackgroundDots),imageSize:Number(i.imageOptions.imageSize),margin:Number(i.imageOptions.margin)}),i.margin>Math.min(i.width,i.height)&&(i.margin=Math.min(i.width,i.height)),i.dotsOptions=Z({},i.dotsOptions),i.dotsOptions.gradient&&(i.dotsOptions.gradient=H(i.dotsOptions.gradient)),i.cornersSquareOptions&&(i.cornersSquareOptions=Z({},i.cornersSquareOptions),i.cornersSquareOptions.gradient&&(i.cornersSquareOptions.gradient=H(i.cornersSquareOptions.gradient))),i.cornersDotOptions&&(i.cornersDotOptions=Z({},i.cornersDotOptions),i.cornersDotOptions.gradient&&(i.cornersDotOptions.gradient=H(i.cornersDotOptions.gradient))),i.backgroundOptions&&(i.backgroundOptions=Z({},i.backgroundOptions),i.backgroundOptions.gradient&&(i.backgroundOptions.gradient=H(i.backgroundOptions.gradient))),i}var _=n(192),B=n.n(_),F=function(t,i,n,r){return new(n||(n=Promise))((function(e,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(s,a)}l((r=r.apply(t,i||[])).next())}))},S=function(t,i){var n,r,e,o,s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=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 s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((e=(e=s.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){s.label=o[1];break}if(6===o[0]&&s.label<e[1]){s.label=e[1],e=o;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(o);break}e[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],r=0}finally{n=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};const z=function(){function t(t){this._options=t?V(s(L,t)):L,this.update()}return t._clearContainer=function(t){t&&(t.innerHTML="")},t.prototype._setupSvg=function(){var t=this;if(this._qr){var i=new m(this._options);this._svg=i.getElement(),this._svgDrawingPromise=i.drawQR(this._qr).then((function(){var n;t._svg&&(null===(n=t._extension)||void 0===n||n.call(t,i.getElement(),t._options))}))}},t.prototype._setupCanvas=function(){var t,i=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(i._svg){var t=i._svg,n=(new XMLSerializer).serializeToString(t),r="data:image/svg+xml;base64,"+btoa(n),e=new Image;return new Promise((function(t){e.onload=function(){var n,r;null===(r=null===(n=i._canvas)||void 0===n?void 0:n.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"),F(this,void 0,void 0,(function(){return S(this,(function(i){switch(i.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 i.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return i.sent(),[2,this._canvas]}}))}))},t.prototype.update=function(i){t._clearContainer(this._container),this._options=i?V(s(this._options,i)):this._options,this._options.data&&(this._qr=B()(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===M?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===M?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"),F(this,void 0,void 0,(function(){var i,n,r;return S(this,(function(e){switch(e.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(t)];case 1:return(i=e.sent())?"svg"===t.toLowerCase()?(n=new XMLSerializer,r=n.serializeToString(i),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return i.toBlob(n,"image/"+t,1)}))]:[2,null]}}))}))},t.prototype.download=function(t){return F(this,void 0,void 0,(function(){var i,n,r,e,o;return S(this,(function(s){switch(s.label){case 0:if(!this._qr)throw"QR code is empty";return i="png",n="qr","string"==typeof t?(i=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&&(n=t.name),t.extension&&(i=t.extension)),[4,this._getElement(i)];case 1:return(r=s.sent())?("svg"===i.toLowerCase()?(e=new XMLSerializer,o='<?xml version="1.0" standalone="no"?>\r\n'+(o=e.serializeToString(r)),a("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):a(r.toDataURL("image/"+i),n+"."+i),[2]):[2]}}))}))},t}()}},i={};function n(r){if(i[r])return i[r].exports;var e=i[r]={exports:{}};return t[r](e,e.exports,n),e.exports}return n.n=t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return n.d(i,{a:i}),i},n.d=(t,i)=>{for(var r in i)n.o(i,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},n.o=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),n(676)})().default}))})(cl);const hl=s(cl.exports);const ul=":host{--qr-color:var(--cpsl-color-qr-fill);--qr-background-color:var(--cpsl-color-qr-background);--qr-border-color:var(--cpsl-color-qr-border);--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 fl=ul;const dl=class{constructor(i){t(this,i);this.url=undefined;this.imageSrc=undefined;this.size=250}componentDidLoad(){const t=this.el.shadowRoot.getElementById("qr-container");t.innerHTML="";const i=new hl({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"}});i.append(t)}render(){return i(n,{key:"5d582e113aff18956f54928d914685e1bef923a6"},i("div",{key:"5a81f7e78bf5263b1409c3ba348694acbee6b49a",id:"qr-container",class:"qr-container"}))}get el(){return e(this)}};dl.style=fl;const Cl=":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-slideButton-slider-container-start-background);--slider-container-end-background-color:var(--cpsl-color-slideButton-slider-container-end-background);--slider-container-start-border-color:var(--cpsl-color-slideButton-slider-container-start-border);--slider-container-end-border-color:var(--cpsl-color-slideButton-slider-container-end-border);--slider-border-width:1px;--slider-box-shadow:3px 0px 4px 0px var(--cpsl-color-alpha-black-16);--slider-border-color:var(--cpsl-color-slideButton-slider-border);--slider-background-color:var(--cpsl-color-slideButton-slider-background);--slider-color:var(--cpsl-color-slideButton-slider-text);--start-text-color:var(--cpsl-color-slideButton-start-text);--end-text-color:var(--cpsl-color-slideButton-end-text);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-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);border-color:var(--slider-container-start-border-color);opacity:100%}.end-slider-container-background{background-color:var(--slider-container-end-background-color);border-color:var(--slider-container-end-border-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)}.start-text.disabled{left:0;width:100%}.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);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)}.slider.disabled{visibility:hidden}";const pl=Cl;const vl=class{constructor(i){t(this,i);this.cpslComplete=r(this,"cpslComplete",7);this.disabled=undefined;this.endIcon=undefined;this.endText=undefined;this.startIcon=undefined;this.startText=undefined}componentDidLoad(){this.dragElement(this.el.shadowRoot.getElementById("slider"))}dragElement(t){const i=i=>{b=i.clientX;switch(i.pointerType){case"mouse":t.onmousedown=n;break;default:t.ontouchstart=r}};const n=t=>{t.preventDefault();b=t.clientX;document.onmouseup=a;document.onmousemove=e};const r=t=>{t.preventDefault();const i=t.targetTouches[0];b=i.clientX;document.ontouchend=a;document.ontouchmove=o};const e=t=>{t.preventDefault();w=b-t.clientX;b=t.clientX;s(w)};const o=t=>{t.preventDefault();const i=t.targetTouches[0];w=b-i.clientX;b=i.clientX;s(w)};const s=i=>{const n=t.offsetLeft-i;if(n>=v&&n<=g){const i=Math.max(Math.min(Math.round(n/g*100)/100,100),0);h.style.opacity=`${(1-i*2)*100}%`;u.style.opacity=`${i*100}%`;l.style.opacity=`${(1-i*2)*100}%`;c.style.opacity=`${i*100}%`;f.style.opacity=`${i*100}%`;t.style.left=`${n}px`}};const a=()=>{if(t.offsetLeft+p>=C-p/2){t.style.left=`${g}px`;h.style.opacity="0%";u.style.opacity="100%";l.style.opacity="0%";c.style.opacity="100%";f.style.opacity="100%";this.cpslComplete.emit(true)}else{t.style.left=`${v}px`;h.style.opacity="100%";u.style.opacity="0%";l.style.opacity="100%";c.style.opacity="0%";f.style.opacity="0%"}document.onmouseup=null;document.onmousemove=null;document.ontouchend=null;document.ontouchmove=null};const l=this.startIconEl;const c=this.endIconEl;const h=this.startTextEl;const u=this.endTextEl;const f=this.endBackgroundEl;const d=this.sliderContainerEl;const C=d.clientWidth;const p=t.getBoundingClientRect().height;const v=1;const g=C-p-1;let w=0,b=0;t.onpointerdown=i}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 i(n,{key:"d01cbdfa0b7e8f17ebb3a1f7ba49aded0ec70de6"},i("div",{key:"37fd16cc1f2d7fb26929438a382f0684195d16f9",id:"slider-container",class:"slider-container"},i("div",{key:"2504155ec8fb97a2daea8c1856db4332edf69fd4",id:"start-slider-container-background",class:{"start-slider-container-background":true,"slider-container-background":true}}),i("div",{key:"475d235f0c1ea7ac8551c81cf94ca0dd657d3d74",id:"end-slider-container-background",class:{"end-slider-container-background":true,"slider-container-background":true}}),i("div",{key:"c534e20d7d609392ef2f52e20b7b66a3cbb2d207",id:"slider",class:{slider:true,disabled:this.disabled}},i("cpsl-icon",{key:"76ea202fba460ab3083ba48e673582bf37440544",id:"start-icon",class:{"start-icon":true,icon:true},icon:this.startIcon}),i("cpsl-icon",{key:"dd92b0769644334cdba131523099cabc49b6f4e9",id:"end-icon",class:{"end-icon":true,icon:true},icon:this.endIcon})),i("span",{key:"97ff537baacce0bc3a2c31cc25fefc6078015f54",id:"start-text",class:{"start-text":true,disabled:this.disabled}},this.startText),i("span",{key:"c51e4d97e30e6b03adcf9fb9567a75f865822c9d",id:"end-text",class:"end-text"},this.endText)))}get el(){return e(this)}};vl.style=pl;const gl=":host{--path-color:var(--cpsl-color-spinner-path);--circle-color:var(--cpsl-color-spinner-circle);display:flex;justify-content:center;align-items:center}:host path{stroke:var(--path-color)}:host circle{fill:var(--circle-color)}";const wl=gl;const bl=class{constructor(i){t(this,i);this.size=54;this.speed=1}render(){return i(n,{key:"ccfa5727ea42f54e265ed2fc40632c608485a980",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`}},i("svg",{key:"507b1f733ae8bdf6d53966b1b64d687911f7c8a3",height:this.size,width:this.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 54 54",fill:"none"},i("path",{key:"ea462771d440975eea28cc13f2eb787c827746be",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"}),i("circle",{key:"1e60ac891f97076ad558fb83f51c552f34626370",cx:"45",cy:"27",r:"5"})))}};bl.style=wl;const xl=":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 ml=xl;const Ml=class{constructor(i){t(this,i);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 i=t.target;const n=this.el.parentElement;if(t.composedPath().includes(n)||(i===null||i===void 0?void 0:i.contains(this.el))){this.selected=this.tab===t.detail.tab}}render(){return i(n,{key:"482701b2915c5e5e30c3ee8c13ef35ef4c7cfcb8",onClick:this.onTabClicked},i("div",{key:"583db91ddbbf32225880b03d8521b117a85f5bf1",class:{"tab-container":true}},i("slot",{key:"a1596c1858376a41ee72d4133966fd7ed75e79c0"})))}get el(){return e(this)}};Ml.style=ml;const yl=":host{--tab-top-padding:5px;--tab-bottom-padding:5px;--tab-left-padding:16px;--tab-right-padding:16px;--tabs-border-radius:var(--cpsl-border-radius-tabs);--tabs-font-size:12px;--tabs-line-height:24px;--tabs-border-width:1px;--tabs-border-color:var(--cpsl-color-tabs-border);--tabs-background-color:var(--cpsl-color-tabs-background);--slider-background-color:var(--cpsl-color-tabs-slider-background);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(--tabs-border-width);border-style:solid;border-color:var(--tabs-border-color);border-radius:var(--tabs-border-radius);background-color:var(--tabs-background-color);font-size:var(--tabs-font-size);line-height:var(--tabs-line-height);-ms-overflow-style:none;scrollbar-width:none}.tabs-container::-webkit-scrollbar{display:none}.slider{position:absolute;top:calc(var(--tabs-border-width) * -1);bottom:calc(var(--tabs-border-width) * -1);left:-1px;border-width:var(--tabs-border-width);border-style:solid;border-color:var(--tabs-border-color);border-radius:var(--tabs-border-radius);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 kl=yl;const Ll=class{constructor(i){t(this,i);this.cpslTabsChanged=r(this,"cpslTabsChanged",7);this.cpslTabsInit=r(this,"cpslTabsInit",7);this.onTabClicked=t=>{const{tab:i}=t.detail;if(i!==this.selectedTab){this.selectedTabRect=Zl(this.tabs,i).getBoundingClientRect();this.cpslTabsChanged.emit({tab:i})}};this.selectedTabRect=undefined;this.loaded=false;this.fullWidth=undefined;this.selectedTab=undefined}updateSlider(){setTimeout((()=>{this.selectedTabRect=Zl(this.tabs,this.selectedTab).getBoundingClientRect()}),50)}updateTab(t,i){if(Boolean(t)&&!Boolean(i)){this.selectedTabRect=Zl(this.tabs,this.selectedTab).getBoundingClientRect()}}componentWillLoad(){var t,i;this.selectedTabRect=(i=(t=Zl(this.tabs,this.selectedTab))===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&i!==void 0?i:{width:0,x:0};this.cpslTabsInit.emit({tab:this.selectedTab})}componentDidLoad(){var t,i;this.selectedTabRect=(i=(t=Zl(this.tabs,this.selectedTab))===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&i!==void 0?i:{width:0,x:0};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("--tabs-border-width").slice(0,-2);const e=this.selectedTabRect;return i(n,{key:"db244b5a0ed262508ff5e5ca45e8f61cfcd6df35",class:{"full-width":this.fullWidth},onCpslTabButtonClick:this.onTabClicked},i("div",{key:"9acd1dcaab946f97d68d5fe625859c245b6fbebc",class:"tabs-container"},i("slot",{key:"6e58a5354af8118118773c9a296f06b90067d416"}),i("div",{key:"87a9977e13ccc5b3993d459284ce4dc886eb1103",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"],selectedTab:["updateTab"]}}};const Zl=(t,i)=>{const n=typeof i==="string"?t.find((t=>t.tab===i)):i;return n};Ll.style=kl;const Hl=":host{font-family:var(--cpsl-font-family, inherit);color:var(--cpsl-color-text-primary)}";const Vl=Hl;const _l=class{constructor(i){t(this,i)}render(){return i(n,{key:"14b6b911fe1c66fa0dbc118207755123110fd85a"},i("slot",{key:"ebf8c3b818cc85fd06bc4feb3d7c2b21818fcc9c"}))}};_l.style=Vl;const Bl=":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)}:host :active{--button-background-color:var(--cpsl-color-tile-button-surface-pressed)}.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 Fl=Bl;const Sl=class{constructor(i){t(this,i);this.src=undefined;this.icon=undefined}render(){return i(n,{key:"f86ee8387b40817115e680cad78b3cab4af7b35f"},i("button",{key:"7fa11eeed97fd89c8d5640cb270403c6bab8cda1",class:"button-native"},i("cpsl-icon",{key:"0b605c0839dd930cc97a70fd867619929c3ce5af",exportparts:"icon",src:this.src,icon:this.icon}),i("slot",{key:"8c3fe5d96e1443cd7a454589cdb279a684773a83"})))}};Sl.style=Fl;export{kt as cpsl_alert,Ht as cpsl_button,Bt as cpsl_code_input,zt as cpsl_divider,At as cpsl_icon,Tt as cpsl_input,Ja as cpsl_modal,nl as cpsl_overlay,ol as cpsl_pill,ll as cpsl_progress_indicator,dl as cpsl_qr_code,vl as cpsl_slide_button,bl as cpsl_spinner,Ml as cpsl_tab,Ll as cpsl_tabs,_l as cpsl_text,Sl as cpsl_tile_button};
|
29
|
-
//# sourceMappingURL=p-
|
28
|
+
*/var Yo,Go,Qo,Wo,Ko,Jo,ts,is,ns="transform",rs=ns+"Origin",es,os=function t(i){var n=i.ownerDocument||i;if(!(ns in i.style)&&"msTransform"in i.style){ns="msTransform";rs=ns+"Origin"}while(n.parentNode&&(n=n.parentNode)){}Go=window;ts=new ws;if(n){Yo=n;Qo=n.documentElement;Wo=n.body;is=Yo.createElementNS("http://www.w3.org/2000/svg","g");is.style.transform="none";var r=n.createElement("div"),e=n.createElement("div"),o=n&&(n.body||n.firstElementChild);if(o&&o.appendChild){o.appendChild(r);r.appendChild(e);r.setAttribute("style","position:static;transform:translate3d(0,0,1px)");es=e.offsetParent!==r;o.removeChild(r)}}return n},ss=function t(i){var n,r;while(i&&i!==Wo){r=i._gsap;r&&r.uncache&&r.get(i,"x");if(r&&!r.scaleX&&!r.scaleY&&r.renderTransform){r.scaleX=r.scaleY=1e-4;r.renderTransform(1,r);n?n.push(r):n=[r]}i=i.parentNode}return n},as=[],ls=[],cs=function t(){return Go.pageYOffset||Yo.scrollTop||Qo.scrollTop||Wo.scrollTop||0},hs=function t(){return Go.pageXOffset||Yo.scrollLeft||Qo.scrollLeft||Wo.scrollLeft||0},us=function t(i){return i.ownerSVGElement||((i.tagName+"").toLowerCase()==="svg"?i:null)},fs=function t(i){if(Go.getComputedStyle(i).position==="fixed"){return true}i=i.parentNode;if(i&&i.nodeType===1){return t(i)}},ds=function t(i,n){if(i.parentNode&&(Yo||os(i))){var r=us(i),e=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o=r?n?"rect":"g":"div",s=n!==2?0:100,a=n===3?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",c=Yo.createElementNS?Yo.createElementNS(e.replace(/^https/,"http"),o):Yo.createElement(o);if(n){if(!r){if(!Ko){Ko=t(i);Ko.style.cssText=l}c.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px";Ko.appendChild(c)}else{Jo||(Jo=t(i));c.setAttribute("width",.01);c.setAttribute("height",.01);c.setAttribute("transform","translate("+s+","+a+")");Jo.appendChild(c)}}return c}throw"Need document and parent."},Cs=function t(i){var n=new ws,r=0;for(;r<i.numberOfItems;r++){n.multiply(i.getItem(r).matrix)}return n},ps=function t(i){var n=i.getCTM(),r;if(!n){r=i.style[ns];i.style[ns]="none";i.appendChild(is);n=is.getCTM();i.removeChild(is);r?i.style[ns]=r:i.style.removeProperty(ns.replace(/([A-Z])/g,"-$1").toLowerCase())}return n||ts.clone()},vs=function t(i,n){var r=us(i),e=i===r,o=r?as:ls,s=i.parentNode,a,l,c,h,u,f;if(i===Go){return i}o.length||o.push(ds(i,1),ds(i,2),ds(i,3));a=r?Jo:Ko;if(r){if(e){c=ps(i);h=-c.e/c.a;u=-c.f/c.d;l=ts}else if(i.getBBox){c=i.getBBox();l=i.transform?i.transform.baseVal:{};l=!l.numberOfItems?ts:l.numberOfItems>1?Cs(l):l.getItem(0).matrix;h=l.a*c.x+l.c*c.y;u=l.b*c.x+l.d*c.y}else{l=new ws;h=u=0}if(n&&i.tagName.toLowerCase()==="g"){h=u=0}(e?r:s).appendChild(a);a.setAttribute("transform","matrix("+l.a+","+l.b+","+l.c+","+l.d+","+(l.e+h)+","+(l.f+u)+")")}else{h=u=0;if(es){l=i.offsetParent;c=i;while(c&&(c=c.parentNode)&&c!==l&&c.parentNode){if((Go.getComputedStyle(c)[ns]+"").length>4){h=c.offsetLeft;u=c.offsetTop;c=0}}}f=Go.getComputedStyle(i);if(f.position!=="absolute"&&f.position!=="fixed"){l=i.offsetParent;while(s&&s!==l){h+=s.scrollLeft||0;u+=s.scrollTop||0;s=s.parentNode}}c=a.style;c.top=i.offsetTop-u+"px";c.left=i.offsetLeft-h+"px";c[ns]=f[ns];c[rs]=f[rs];c.position=f.position==="fixed"?"fixed":"absolute";i.parentNode.appendChild(a)}return a},gs=function t(i,n,r,e,o,s,a){i.a=n;i.b=r;i.c=e;i.d=o;i.e=s;i.f=a;return i};var ws=function(){function t(t,i,n,r,e,o){if(t===void 0){t=1}if(i===void 0){i=0}if(n===void 0){n=0}if(r===void 0){r=1}if(e===void 0){e=0}if(o===void 0){o=0}gs(this,t,i,n,r,e,o)}var i=t.prototype;i.inverse=function t(){var i=this.a,n=this.b,r=this.c,e=this.d,o=this.e,s=this.f,a=i*e-n*r||1e-10;return gs(this,e/a,-n/a,-r/a,i/a,(r*s-e*o)/a,-(i*s-n*o)/a)};i.multiply=function t(i){var n=this.a,r=this.b,e=this.c,o=this.d,s=this.e,a=this.f,l=i.a,c=i.c,h=i.b,u=i.d,f=i.e,d=i.f;return gs(this,l*n+h*e,l*r+h*o,c*n+u*e,c*r+u*o,s+f*n+d*e,a+f*r+d*o)};i.clone=function i(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)};i.equals=function t(i){var n=this.a,r=this.b,e=this.c,o=this.d,s=this.e,a=this.f;return n===i.a&&r===i.b&&e===i.c&&o===i.d&&s===i.e&&a===i.f};i.apply=function t(i,n){if(n===void 0){n={}}var r=i.x,e=i.y,o=this.a,s=this.b,a=this.c,l=this.d,c=this.e,h=this.f;n.x=r*o+e*a+c||0;n.y=r*s+e*l+h||0;return n};return t}();function bs(t,i,n,r){if(!t||!t.parentNode||(Yo||os(t)).documentElement===t){return new ws}var e=ss(t),o=us(t),s=o?as:ls,a=vs(t,n),l=s[0].getBoundingClientRect(),c=s[1].getBoundingClientRect(),h=s[2].getBoundingClientRect(),u=a.parentNode,f=!r&&fs(t),d=new ws((c.left-l.left)/100,(c.top-l.top)/100,(h.left-l.left)/100,(h.top-l.top)/100,l.left+(f?0:hs()),l.top+(f?0:cs()));u.removeChild(a);if(e){l=e.length;while(l--){c=e[l];c.scaleX=c.scaleY=0;c.renderTransform(1,c)}}return i?d.inverse():d}function xs(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function ms(t,i){t.prototype=Object.create(i.prototype);t.prototype.constructor=t;t.__proto__=i}var Ms,ys,ks,Ls,Zs,Hs,Vs,_s,Bs,Fs,Ss,zs,Es,Ps,As,Ds,Os,Ts,js,Rs,Is=0,qs=function t(){return typeof window!=="undefined"},Ns=function t(){return Ms||qs()&&(Ms=window.gsap)&&Ms.registerPlugin&&Ms},$s=function t(i){return typeof i==="function"},Us=function t(i){return typeof i==="object"},Xs=function t(i){return typeof i==="undefined"},Ys=function t(){return false},Gs="transform",Qs="transformOrigin",Ws=function t(i){return Math.round(i*1e4)/1e4},Ks=Array.isArray,Js=function t(i,n){var r=ks.createElementNS?ks.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),i):ks.createElement(i);return r.style?r:ks.createElement(i)},ta=180/Math.PI,ia=1e20,na=new ws,ra=Date.now||function(){return(new Date).getTime()},ea=[],oa={},sa=0,aa=/^(?:a|input|textarea|button|select)$/i,la=0,ca={},ha={},ua=function t(i,n){var r={},e;for(e in i){r[e]=n?i[e]*n:i[e]}return r},fa=function t(i,n){for(var r in n){if(!(r in i)){i[r]=n[r]}}return i},da=function t(i,n){var r=i.length,e;while(r--){n?i[r].style.touchAction=n:i[r].style.removeProperty("touch-action");e=i[r].children;e&&e.length&&t(e,n)}},Ca=function t(){return ea.forEach((function(t){return t()}))},pa=function t(i){ea.push(i);if(ea.length===1){Ms.ticker.add(Ca)}},va=function t(){return!ea.length&&Ms.ticker.remove(Ca)},ga=function t(i){var n=ea.length;while(n--){if(ea[n]===i){ea.splice(n,1)}}Ms.to(va,{overwrite:true,delay:15,duration:0,onComplete:va,data:"_draggable"})},wa=function t(i,n){for(var r in n){if(!(r in i)){i[r]=n[r]}}return i},ba=function t(i,n,r,e){if(i.addEventListener){var o=Es[n];e=e||(Ss?{passive:false}:null);i.addEventListener(o||n,r,e);o&&n!==o&&i.addEventListener(n,r,e)}},xa=function t(i,n,r,e){if(i.removeEventListener){var o=Es[n];i.removeEventListener(o||n,r,e);o&&n!==o&&i.removeEventListener(n,r,e)}},ma=function t(i){i.preventDefault&&i.preventDefault();i.preventManipulation&&i.preventManipulation()},Ma=function t(i,n){var r=i.length;while(r--){if(i[r].identifier===n){return true}}},ya=function t(i){Ps=i.touches&&Is<i.touches.length;xa(i.target,"touchend",t)},ka=function t(i){Ps=i.touches&&Is<i.touches.length;ba(i.target,"touchend",ya)},La=function t(i){return ys.pageYOffset||i.scrollTop||i.documentElement.scrollTop||i.body.scrollTop||0},Za=function t(i){return ys.pageXOffset||i.scrollLeft||i.documentElement.scrollLeft||i.body.scrollLeft||0},Ha=function t(i,n){ba(i,"scroll",n);if(!_a(i.parentNode)){t(i.parentNode,n)}},Va=function t(i,n){xa(i,"scroll",n);if(!_a(i.parentNode)){t(i.parentNode,n)}},_a=function t(i){return!!(!i||i===Ls||i.nodeType===9||i===ks.body||i===ys||!i.nodeType||!i.parentNode)},Ba=function t(i,n){var r=n==="x"?"Width":"Height",e="scroll"+r,o="client"+r;return Math.max(0,_a(i)?Math.max(Ls[e],Zs[e])-(ys["inner"+r]||Ls[o]||Zs[o]):i[e]-i[o])},Fa=function t(i,n){var r=Ba(i,"x"),e=Ba(i,"y");if(_a(i)){i=ha}else{t(i.parentNode,n)}i._gsMaxScrollX=r;i._gsMaxScrollY=e;if(!n){i._gsScrollX=i.scrollLeft||0;i._gsScrollY=i.scrollTop||0}},Sa=function t(i,n,r){var e=i.style;if(!e){return}if(Xs(e[n])){n=Bs(n,i)||n}if(r==null){e.removeProperty&&e.removeProperty(n.replace(/([A-Z])/g,"-$1").toLowerCase())}else{e[n]=r}},za=function t(i){return ys.getComputedStyle(i instanceof Element?i:i.host||(i.parentNode||{}).host||i)},Ea={},Pa=function t(i){if(i===ys){Ea.left=Ea.top=0;Ea.width=Ea.right=Ls.clientWidth||i.innerWidth||Zs.clientWidth||0;Ea.height=Ea.bottom=(i.innerHeight||0)-20<Ls.clientHeight?Ls.clientHeight:i.innerHeight||Zs.clientHeight||0;return Ea}var n=i.ownerDocument||ks,r=!Xs(i.pageX)?{left:i.pageX-Za(n),top:i.pageY-La(n),right:i.pageX-Za(n)+1,bottom:i.pageY-La(n)+1}:!i.nodeType&&!Xs(i.left)&&!Xs(i.top)?i:Fs(i)[0].getBoundingClientRect();if(Xs(r.right)&&!Xs(r.width)){r.right=r.left+r.width;r.bottom=r.top+r.height}else if(Xs(r.width)){r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}}return r},Aa=function t(i,n,r){var e=i.vars,o=e[r],s=i._listeners[n],a;if($s(o)){a=o.apply(e.callbackScope||i,e[r+"Params"]||[i.pointerEvent])}if(s&&i.dispatchEvent(n)===false){a=false}return a},Da=function t(i,n){var r=Fs(i)[0],e,o,s;if(!r.nodeType&&r!==ys){if(!Xs(i.left)){s={x:0,y:0};return{left:i.left-s.x,top:i.top-s.y,width:i.width,height:i.height}}o=i.min||i.minX||i.minRotation||0;e=i.min||i.minY||0;return{left:o,top:e,width:(i.max||i.maxX||i.maxRotation||0)-o,height:(i.max||i.maxY||0)-e}}return Ta(r,n)},Oa={},Ta=function t(i,n){n=Fs(n)[0];var r=i.getBBox&&i.ownerSVGElement,e=i.ownerDocument||ks,o,s,a,l,c,h,u,f,d,C,p,v,g;if(i===ys){a=La(e);o=Za(e);s=o+(e.documentElement.clientWidth||i.innerWidth||e.body.clientWidth||0);l=a+((i.innerHeight||0)-20<e.documentElement.clientHeight?e.documentElement.clientHeight:i.innerHeight||e.body.clientHeight||0)}else if(n===ys||Xs(n)){return i.getBoundingClientRect()}else{o=a=0;if(r){C=i.getBBox();p=C.width;v=C.height}else{if(i.viewBox&&(C=i.viewBox.baseVal)){o=C.x||0;a=C.y||0;p=C.width;v=C.height}if(!p){g=za(i);C=g.boxSizing==="border-box";p=(parseFloat(g.width)||i.clientWidth||0)+(C?0:parseFloat(g.borderLeftWidth)+parseFloat(g.borderRightWidth));v=(parseFloat(g.height)||i.clientHeight||0)+(C?0:parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth))}}s=p;l=v}if(i===n){return{left:o,top:a,width:s-o,height:l-a}}c=bs(n,true).multiply(bs(i));h=c.apply({x:o,y:a});u=c.apply({x:s,y:a});f=c.apply({x:s,y:l});d=c.apply({x:o,y:l});o=Math.min(h.x,u.x,f.x,d.x);a=Math.min(h.y,u.y,f.y,d.y);return{left:o,top:a,width:Math.max(h.x,u.x,f.x,d.x)-o,height:Math.max(h.y,u.y,f.y,d.y)-a}},ja=function t(i,n,r,e,o,s){var a={},l,c,h;if(n){if(o!==1&&n instanceof Array){a.end=l=[];h=n.length;if(Us(n[0])){for(c=0;c<h;c++){l[c]=ua(n[c],o)}}else{for(c=0;c<h;c++){l[c]=n[c]*o}}r+=1.1;e-=1.1}else if($s(n)){a.end=function(t){var r=n.call(i,t),e,s;if(o!==1){if(Us(r)){e={};for(s in r){e[s]=r[s]*o}r=e}else{r*=o}}return r}}else{a.end=n}}if(r||r===0){a.max=r}if(e||e===0){a.min=e}if(s){a.velocity=0}return a},Ra=function t(i){var n;return!i||!i.getAttribute||i===Zs?false:(n=i.getAttribute("data-clickable"))==="true"||n!=="false"&&(aa.test(i.nodeName+"")||i.getAttribute("contentEditable")==="true")?true:t(i.parentNode)},Ia=function t(i,n){var r=i.length,e;while(r--){e=i[r];e.ondragstart=e.onselectstart=n?null:Ys;Ms.set(e,{lazy:true,userSelect:n?"text":"none"})}},qa=function t(i){if(za(i).position==="fixed"){return true}i=i.parentNode;if(i&&i.nodeType===1){return t(i)}},Na,$a,Ua=function t(i,n){i=Ms.utils.toArray(i)[0];n=n||{};var r=document.createElement("div"),e=r.style,o=i.firstChild,s=0,a=0,l=i.scrollTop,c=i.scrollLeft,h=i.scrollWidth,u=i.scrollHeight,f=0,d=0,C=0,p,v,g,w,b,x;if(Na&&n.force3D!==false){b="translate3d(";x="px,0px)"}else if(Gs){b="translate(";x="px)"}this.scrollTop=function(t,i){if(!arguments.length){return-this.top()}this.top(-t,i)};this.scrollLeft=function(t,i){if(!arguments.length){return-this.left()}this.left(-t,i)};this.left=function(t,r){if(!arguments.length){return-(i.scrollLeft+a)}var o=i.scrollLeft-c,l=a;if((o>2||o<-2)&&!r){c=i.scrollLeft;Ms.killTweensOf(this,{left:1,scrollLeft:1});this.left(-c);if(n.onKill){n.onKill()}return}t=-t;if(t<0){a=t-.5|0;t=0}else if(t>d){a=t-d|0;t=d}else{a=0}if(a||l){if(!this._skip){e[Gs]=b+-a+"px,"+-s+x}if(a+f>=0){e.paddingRight=a+f+"px"}}i.scrollLeft=t|0;c=i.scrollLeft};this.top=function(t,r){if(!arguments.length){return-(i.scrollTop+s)}var o=i.scrollTop-l,c=s;if((o>2||o<-2)&&!r){l=i.scrollTop;Ms.killTweensOf(this,{top:1,scrollTop:1});this.top(-l);if(n.onKill){n.onKill()}return}t=-t;if(t<0){s=t-.5|0;t=0}else if(t>C){s=t-C|0;t=C}else{s=0}if(s||c){if(!this._skip){e[Gs]=b+-a+"px,"+-s+x}}i.scrollTop=t|0;l=i.scrollTop};this.maxScrollTop=function(){return C};this.maxScrollLeft=function(){return d};this.disable=function(){o=r.firstChild;while(o){w=o.nextSibling;i.appendChild(o);o=w}if(i===r.parentNode){i.removeChild(r)}};this.enable=function(){o=i.firstChild;if(o===r){return}while(o){w=o.nextSibling;r.appendChild(o);o=w}i.appendChild(r);this.calibrate()};this.calibrate=function(t){var n=i.clientWidth===p,o,w,b;l=i.scrollTop;c=i.scrollLeft;if(n&&i.clientHeight===v&&r.offsetHeight===g&&h===i.scrollWidth&&u===i.scrollHeight&&!t){return}if(s||a){w=this.left();b=this.top();this.left(-i.scrollLeft);this.top(-i.scrollTop)}o=za(i);if(!n||t){e.display="block";e.width="auto";e.paddingRight="0px";f=Math.max(0,i.scrollWidth-i.clientWidth);if(f){f+=parseFloat(o.paddingLeft)+($a?parseFloat(o.paddingRight):0)}}e.display="inline-block";e.position="relative";e.overflow="visible";e.verticalAlign="top";e.boxSizing="content-box";e.width="100%";e.paddingRight=f+"px";if($a){e.paddingBottom=o.paddingBottom}p=i.clientWidth;v=i.clientHeight;h=i.scrollWidth;u=i.scrollHeight;d=i.scrollWidth-p;C=i.scrollHeight-v;g=r.offsetHeight;e.display="block";if(w||b){this.left(w);this.top(b)}};this.content=r;this.element=i;this._skip=false;this.enable()},Xa=function t(i){if(qs()&&document.body){var n=window&&window.navigator;ys=window;ks=document;Ls=ks.documentElement;Zs=ks.body;Hs=Js("div");Ts=!!window.PointerEvent;Vs=Js("div");Vs.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab";Os=Vs.style.cursor==="grab"?"grab":"move";As=n&&n.userAgent.toLowerCase().indexOf("android")!==-1;zs="ontouchstart"in Ls&&"orientation"in ys||n&&(n.MaxTouchPoints>0||n.msMaxTouchPoints>0);$a=function(){var t=Js("div"),i=Js("div"),n=i.style,r=Zs,e;n.display="inline-block";n.position="relative";t.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden";t.appendChild(i);r.appendChild(t);e=i.offsetHeight+18>t.scrollHeight;r.removeChild(t);return e}();Es=function(t){var i=t.split(","),n=("onpointerdown"in Hs?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Hs?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),r={},e=4;while(--e>-1){r[i[e]]=n[e];r[n[e]]=i[e]}try{Ls.addEventListener("test",null,Object.defineProperty({},"passive",{get:function t(){Ss=1}}))}catch(t){}return r}("touchstart,touchmove,touchend,touchcancel");ba(ks,"touchcancel",Ys);ba(ys,"touchmove",Ys);Zs&&Zs.addEventListener("touchstart",Ys);ba(ks,"contextmenu",(function(){for(var t in oa){if(oa[t].isPressed){oa[t].endDrag()}}}));Ms=_s=Ns()}if(Ms){Ds=Ms.plugins.inertia;js=Ms.core.context||function(){};Bs=Ms.utils.checkPrefix;Gs=Bs(Gs);Qs=Bs(Qs);Fs=Ms.utils.toArray;Rs=Ms.core.getStyleSaver;Na=!!Bs("perspective")}else if(i){console.warn("Please gsap.registerPlugin(Draggable)")}};var Ya=function(){function t(t){this._listeners={};this.target=t||this}var i=t.prototype;i.addEventListener=function t(i,n){var r=this._listeners[i]||(this._listeners[i]=[]);if(!~r.indexOf(n)){r.push(n)}};i.removeEventListener=function t(i,n){var r=this._listeners[i],e=r&&r.indexOf(n);e>=0&&r.splice(e,1)};i.dispatchEvent=function t(i){var n=this;var r;(this._listeners[i]||[]).forEach((function(t){return t.call(n,{type:i,target:n.target})===false&&(r=false)}));return r};return t}();var Ga=function(t){ms(i,t);function i(n,r){var e;e=t.call(this)||this;_s||Xa(1);n=Fs(n)[0];e.styles=Rs&&Rs(n,"transform,left,top");if(!Ds){Ds=Ms.plugins.inertia}e.vars=r=ua(r||{});e.target=n;e.x=e.y=e.rotation=0;e.dragResistance=parseFloat(r.dragResistance)||0;e.edgeResistance=isNaN(r.edgeResistance)?1:parseFloat(r.edgeResistance)||0;e.lockAxis=r.lockAxis;e.autoScroll=r.autoScroll||0;e.lockedAxis=null;e.allowEventDefault=!!r.allowEventDefault;Ms.getProperty(n,"x");var o=(r.type||"x,y").toLowerCase(),s=~o.indexOf("x")||~o.indexOf("y"),a=o.indexOf("rotation")!==-1,l=a?"rotation":s?"x":"left",c=s?"y":"top",h=!!(~o.indexOf("x")||~o.indexOf("left")||o==="scroll"),u=!!(~o.indexOf("y")||~o.indexOf("top")||o==="scroll"),f=r.minimumMovement||2,d=xs(e),C=Fs(r.trigger||r.handle||n),p={},v=0,g=false,w=r.autoScrollMarginTop||40,b=r.autoScrollMarginRight||40,x=r.autoScrollMarginBottom||40,m=r.autoScrollMarginLeft||40,M=r.clickableTest||Ra,y=0,k=n._gsap||Ms.core.getCache(n),L=qa(n),Z=function t(i,r){return parseFloat(k.get(n,i,r))},H=n.ownerDocument||ks,V,_,B,F,S,z,E,P,A,D,O,T,j,R,I,q,N,$,U,X,Y,G,Q,W,K,J,tt,it,nt,rt,et,ot,st,at=function t(i){ma(i);i.stopImmediatePropagation&&i.stopImmediatePropagation();return false},lt=function t(i){if(d.autoScroll&&d.isDragging&&(g||N)){var r=n,e=d.autoScroll*15,o,l,c,f,C,p,v,M;g=false;ha.scrollTop=ys.pageYOffset!=null?ys.pageYOffset:H.documentElement.scrollTop!=null?H.documentElement.scrollTop:H.body.scrollTop;ha.scrollLeft=ys.pageXOffset!=null?ys.pageXOffset:H.documentElement.scrollLeft!=null?H.documentElement.scrollLeft:H.body.scrollLeft;f=d.pointerX-ha.scrollLeft;C=d.pointerY-ha.scrollTop;while(r&&!l){l=_a(r.parentNode);o=l?ha:r.parentNode;c=l?{bottom:Math.max(Ls.clientHeight,ys.innerHeight||0),right:Math.max(Ls.clientWidth,ys.innerWidth||0),left:0,top:0}:o.getBoundingClientRect();p=v=0;if(u){M=o._gsMaxScrollY-o.scrollTop;if(M<0){v=M}else if(C>c.bottom-x&&M){g=true;v=Math.min(M,e*(1-Math.max(0,c.bottom-C)/x)|0)}else if(C<c.top+w&&o.scrollTop){g=true;v=-Math.min(o.scrollTop,e*(1-Math.max(0,C-c.top)/w)|0)}if(v){o.scrollTop+=v}}if(h){M=o._gsMaxScrollX-o.scrollLeft;if(M<0){p=M}else if(f>c.right-b&&M){g=true;p=Math.min(M,e*(1-Math.max(0,c.right-f)/b)|0)}else if(f<c.left+m&&o.scrollLeft){g=true;p=-Math.min(o.scrollLeft,e*(1-Math.max(0,f-c.left)/m)|0)}if(p){o.scrollLeft+=p}}if(l&&(p||v)){ys.scrollTo(o.scrollLeft,o.scrollTop);Mt(d.pointerX+p,d.pointerY+v)}r=o}}if(N){var y=d.x,L=d.y;if(a){d.deltaX=y-parseFloat(k.rotation);d.rotation=y;k.rotation=y+"deg";k.renderTransform(1,k)}else{if(_){if(u){d.deltaY=L-_.top();_.top(L)}if(h){d.deltaX=y-_.left();_.left(y)}}else if(s){if(u){d.deltaY=L-parseFloat(k.y);k.y=L+"px"}if(h){d.deltaX=y-parseFloat(k.x);k.x=y+"px"}k.renderTransform(1,k)}else{if(u){d.deltaY=L-parseFloat(n.style.top||0);n.style.top=L+"px"}if(h){d.deltaX=y-parseFloat(n.style.left||0);n.style.left=y+"px"}}}if(P&&!i&&!it){it=true;if(Aa(d,"drag","onDrag")===false){if(h){d.x-=d.deltaX}if(u){d.y-=d.deltaY}t(true)}it=false}}N=false},ct=function t(i,r){var e=d.x,o=d.y,l,c;if(!n._gsap){k=Ms.core.getCache(n)}k.uncache&&Ms.getProperty(n,"x");if(s){d.x=parseFloat(k.x);d.y=parseFloat(k.y)}else if(a){d.x=d.rotation=parseFloat(k.rotation)}else if(_){d.y=_.top();d.x=_.left()}else{d.y=parseFloat(n.style.top||(c=za(n))&&c.top)||0;d.x=parseFloat(n.style.left||(c||{}).left)||0}if((U||X||Y)&&!r&&(d.isDragging||d.isThrowing)){if(Y){ca.x=d.x;ca.y=d.y;l=Y(ca);if(l.x!==d.x){d.x=l.x;N=true}if(l.y!==d.y){d.y=l.y;N=true}}if(U){l=U(d.x);if(l!==d.x){d.x=l;if(a){d.rotation=l}N=true}}if(X){l=X(d.y);if(l!==d.y){d.y=l}N=true}}N&<(true);if(!i){d.deltaX=d.x-e;d.deltaY=d.y-o;Aa(d,"throwupdate","onThrowUpdate")}},ht=function t(i,n,r,e){if(n==null){n=-ia}if(r==null){r=ia}if($s(i)){return function(t){var o=!d.isPressed?1:1-d.edgeResistance;return i.call(d,(t>r?r+(t-r)*o:t<n?n+(t-n)*o:t)*e)*e}}if(Ks(i)){return function(t){var e=i.length,o=0,s=ia,a,l;while(--e>-1){a=i[e];l=a-t;if(l<0){l=-l}if(l<s&&a>=n&&a<=r){o=e;s=l}}return i[o]}}return isNaN(i)?function(t){return t}:function(){return i*e}},ut=function t(i,n,r,e,o,s,a){s=s&&s<ia?s*s:ia;if($s(i)){return function(t){var l=!d.isPressed?1:1-d.edgeResistance,c=t.x,h=t.y,u,f,C;t.x=c=c>r?r+(c-r)*l:c<n?n+(c-n)*l:c;t.y=h=h>o?o+(h-o)*l:h<e?e+(h-e)*l:h;u=i.call(d,t);if(u!==t){t.x=u.x;t.y=u.y}if(a!==1){t.x*=a;t.y*=a}if(s<ia){f=t.x-c;C=t.y-h;if(f*f+C*C>s){t.x=c;t.y=h}}return t}}if(Ks(i)){return function(t){var n=i.length,r=0,e=ia,o,a,l,c;while(--n>-1){l=i[n];o=l.x-t.x;a=l.y-t.y;c=o*o+a*a;if(c<e){r=n;e=c}}return e<=s?i[r]:t}}return function(t){return t}},ft=function t(){var i,e,o,s;E=false;if(_){_.calibrate();d.minX=O=-_.maxScrollLeft();d.minY=j=-_.maxScrollTop();d.maxX=D=d.maxY=T=0;E=true}else if(!!r.bounds){i=Da(r.bounds,n.parentNode);if(a){d.minX=O=i.left;d.maxX=D=i.left+i.width;d.minY=j=d.maxY=T=0}else if(!Xs(r.bounds.maxX)||!Xs(r.bounds.maxY)){i=r.bounds;d.minX=O=i.minX;d.minY=j=i.minY;d.maxX=D=i.maxX;d.maxY=T=i.maxY}else{e=Da(n,n.parentNode);d.minX=O=Math.round(Z(l,"px")+i.left-e.left);d.minY=j=Math.round(Z(c,"px")+i.top-e.top);d.maxX=D=Math.round(O+(i.width-e.width));d.maxY=T=Math.round(j+(i.height-e.height))}if(O>D){d.minX=D;d.maxX=D=O;O=d.minX}if(j>T){d.minY=T;d.maxY=T=j;j=d.minY}if(a){d.minRotation=O;d.maxRotation=D}E=true}if(r.liveSnap){o=r.liveSnap===true?r.snap||{}:r.liveSnap;s=Ks(o)||$s(o);if(a){U=ht(s?o:o.rotation,O,D,1);X=null}else{if(o.points){Y=ut(s?o:o.points,O,D,j,T,o.radius,_?-1:1)}else{if(h){U=ht(s?o:o.x||o.left||o.scrollLeft,O,D,_?-1:1)}if(u){X=ht(s?o:o.y||o.top||o.scrollTop,j,T,_?-1:1)}}}}},dt=function t(){d.isThrowing=false;Aa(d,"throwcomplete","onThrowComplete")},Ct=function t(){d.isThrowing=false},pt=function t(i,e){var o,s,f,C;if(i&&Ds){if(i===true){o=r.snap||r.liveSnap||{};s=Ks(o)||$s(o);i={resistance:(r.throwResistance||r.resistance||1e3)/(a?10:1)};if(a){i.rotation=ja(d,s?o:o.rotation,D,O,1,e)}else{if(h){i[l]=ja(d,s?o:o.points||o.x||o.left,D,O,_?-1:1,e||d.lockedAxis==="x")}if(u){i[c]=ja(d,s?o:o.points||o.y||o.top,T,j,_?-1:1,e||d.lockedAxis==="y")}if(o.points||Ks(o)&&Us(o[0])){i.linkedProps=l+","+c;i.radius=o.radius}}}d.isThrowing=true;C=!isNaN(r.overshootTolerance)?r.overshootTolerance:r.edgeResistance===1?0:1-d.edgeResistance+.2;if(!i.duration){i.duration={max:Math.max(r.minDuration||0,"maxDuration"in r?r.maxDuration:2),min:!isNaN(r.minDuration)?r.minDuration:C===0||Us(i)&&i.resistance>1e3?0:.5,overshoot:C}}d.tween=f=Ms.to(_||n,{inertia:i,data:"_draggable",inherit:false,onComplete:dt,onInterrupt:Ct,onUpdate:r.fastMode?Aa:ct,onUpdateParams:r.fastMode?[d,"onthrowupdate","onThrowUpdate"]:o&&o.radius?[false,true]:[]});if(!r.fastMode){if(_){_._skip=true}f.render(1e9,true,true);ct(true,true);d.endX=d.x;d.endY=d.y;if(a){d.endRotation=d.x}f.play(0);ct(true,true);if(_){_._skip=false}}}else if(E){d.applyBounds()}},vt=function t(i){var r=W,e;W=bs(n.parentNode,true);if(i&&d.isPressed&&!W.equals(r||new ws)){e=r.inverse().apply({x:B,y:F});W.apply(e,e);B=e.x;F=e.y}if(W.equals(na)){W=null}},gt=function t(){var i=1-d.edgeResistance,r=L?Za(H):0,e=L?La(H):0,o,h,u;if(s){k.x=Z(l,"px")+"px";k.y=Z(c,"px")+"px";k.renderTransform()}vt(false);Oa.x=d.pointerX-r;Oa.y=d.pointerY-e;W&&W.apply(Oa,Oa);B=Oa.x;F=Oa.y;if(N){Mt(d.pointerX,d.pointerY);lt(true)}ot=bs(n);if(_){ft();z=_.top();S=_.left()}else{if(wt()){ct(true,true);ft()}else{d.applyBounds()}if(a){o=n.ownerSVGElement?[k.xOrigin-n.getBBox().x,k.yOrigin-n.getBBox().y]:(za(n)[Qs]||"0 0").split(" ");q=d.rotationOrigin=bs(n).apply({x:parseFloat(o[0])||0,y:parseFloat(o[1])||0});ct(true,true);h=d.pointerX-q.x-r;u=q.y-d.pointerY+e;S=d.x;z=d.y=Math.atan2(u,h)*ta}else{z=Z(c,"px");S=Z(l,"px")}}if(E&&i){if(S>D){S=D+(S-D)/i}else if(S<O){S=O-(O-S)/i}if(!a){if(z>T){z=T+(z-T)/i}else if(z<j){z=j-(j-z)/i}}}d.startX=S=Ws(S);d.startY=z=Ws(z)},wt=function t(){return d.tween&&d.tween.isActive()},bt=function t(){if(Vs.parentNode&&!wt()&&!d.isDragging){Vs.parentNode.removeChild(Vs)}},xt=function t(e,o){var s;if(!V||d.isPressed||!e||(e.type==="mousedown"||e.type==="pointerdown")&&!o&&ra()-y<30&&Es[d.pointerEvent.type]){et&&e&&V&&ma(e);return}K=wt();st=false;d.pointerEvent=e;if(Es[e.type]){Q=~e.type.indexOf("touch")?e.currentTarget||e.target:H;ba(Q,"touchend",yt);ba(Q,"touchmove",mt);ba(Q,"touchcancel",yt);ba(H,"touchstart",ka)}else{Q=null;ba(H,"mousemove",mt)}tt=null;if(!Ts||!Q){ba(H,"mouseup",yt);e&&e.target&&ba(e.target,"mouseup",yt)}G=M.call(d,e.target)&&r.dragClickables===false&&!o;if(G){ba(e.target,"change",yt);Aa(d,"pressInit","onPressInit");Aa(d,"press","onPress");Ia(C,true);et=false;return}J=!Q||h===u||d.vars.allowNativeTouchScrolling===false||d.vars.allowContextMenu&&e&&(e.ctrlKey||e.which>2)?false:h?"y":"x";et=!J&&!d.allowEventDefault;if(et){ma(e);ba(ys,"touchforcechange",ma)}if(e.changedTouches){e=R=e.changedTouches[0];I=e.identifier}else if(e.pointerId){I=e.pointerId}else{R=I=null}Is++;pa(lt);F=d.pointerY=e.pageY;B=d.pointerX=e.pageX;Aa(d,"pressInit","onPressInit");if(J||d.autoScroll){Fa(n.parentNode)}if(n.parentNode&&d.autoScroll&&!_&&!a&&n.parentNode._gsMaxScrollX&&!Vs.parentNode&&!n.getBBox){Vs.style.width=n.parentNode.scrollWidth+"px";n.parentNode.appendChild(Vs)}gt();d.tween&&d.tween.kill();d.isThrowing=false;Ms.killTweensOf(_||n,p,true);_&&Ms.killTweensOf(n,{scrollTo:1},true);d.tween=d.lockedAxis=null;if(r.zIndexBoost||!a&&!_&&r.zIndexBoost!==false){n.style.zIndex=i.zIndex++}d.isPressed=true;P=!!(r.onDrag||d._listeners.drag);A=!!(r.onMove||d._listeners.move);if(r.cursor!==false||r.activeCursor){s=C.length;while(--s>-1){Ms.set(C[s],{cursor:r.activeCursor||r.cursor||(Os==="grab"?"grabbing":Os)})}}Aa(d,"press","onPress")},mt=function t(i){var r=i,e,o,s,a,l,c;if(!V||Ps||!d.isPressed||!i){et&&i&&V&&ma(i);return}d.pointerEvent=i;e=i.changedTouches;if(e){i=e[0];if(i!==R&&i.identifier!==I){a=e.length;while(--a>-1&&(i=e[a]).identifier!==I&&i.target!==n){}if(a<0){return}}}else if(i.pointerId&&I&&i.pointerId!==I){return}if(Q&&J&&!tt){Oa.x=i.pageX-(L?Za(H):0);Oa.y=i.pageY-(L?La(H):0);W&&W.apply(Oa,Oa);o=Oa.x;s=Oa.y;l=Math.abs(o-B);c=Math.abs(s-F);if(l!==c&&(l>f||c>f)||As&&J===tt){tt=l>c&&h?"x":"y";if(J&&tt!==J){ba(ys,"touchforcechange",ma)}if(d.vars.lockAxisOnTouchScroll!==false&&h&&u){d.lockedAxis=tt==="x"?"y":"x";$s(d.vars.onLockAxis)&&d.vars.onLockAxis.call(d,r)}if(As&&J===tt){yt(r);return}}}if(!d.allowEventDefault&&(!J||tt&&J!==tt)&&r.cancelable!==false){ma(r);et=true}else if(et){et=false}if(d.autoScroll){g=true}Mt(i.pageX,i.pageY,A)},Mt=function t(i,n,r){var e=1-d.dragResistance,o=1-d.edgeResistance,s=d.pointerX,l=d.pointerY,c=z,C=d.x,p=d.y,v=d.endX,g=d.endY,w=d.endRotation,b=N,x,m,M,y,k,Z;d.pointerX=i;d.pointerY=n;if(L){i-=Za(H);n-=La(H)}if(a){y=Math.atan2(q.y-n,i-q.x)*ta;k=d.y-y;if(k>180){z-=360;d.y=y}else if(k<-180){z+=360;d.y=y}if(d.x!==S||Math.abs(z-y)>f){d.y=y;M=S+(z-y)*e}else{M=S}}else{if(W){Z=i*W.a+n*W.c+W.e;n=i*W.b+n*W.d+W.f;i=Z}m=n-F;x=i-B;if(m<f&&m>-f){m=0}if(x<f&&x>-f){x=0}if((d.lockAxis||d.lockedAxis)&&(x||m)){Z=d.lockedAxis;if(!Z){d.lockedAxis=Z=h&&Math.abs(x)>Math.abs(m)?"y":u?"x":null;if(Z&&$s(d.vars.onLockAxis)){d.vars.onLockAxis.call(d,d.pointerEvent)}}if(Z==="y"){m=0}else if(Z==="x"){x=0}}M=Ws(S+x*e);y=Ws(z+m*e)}if((U||X||Y)&&(d.x!==M||d.y!==y&&!a)){if(Y){ca.x=M;ca.y=y;Z=Y(ca);M=Ws(Z.x);y=Ws(Z.y)}if(U){M=Ws(U(M))}if(X){y=Ws(X(y))}}if(E){if(M>D){M=D+Math.round((M-D)*o)}else if(M<O){M=O+Math.round((M-O)*o)}if(!a){if(y>T){y=Math.round(T+(y-T)*o)}else if(y<j){y=Math.round(j+(y-j)*o)}}}if(d.x!==M||d.y!==y&&!a){if(a){d.endRotation=d.x=d.endX=M;N=true}else{if(u){d.y=d.endY=y;N=true}if(h){d.x=d.endX=M;N=true}}if(!r||Aa(d,"move","onMove")!==false){if(!d.isDragging&&d.isPressed){d.isDragging=st=true;Aa(d,"dragstart","onDragStart")}}else{d.pointerX=s;d.pointerY=l;z=c;d.x=C;d.y=p;d.endX=v;d.endY=g;d.endRotation=w;N=b}}},yt=function t(i,e){if(!V||!d.isPressed||i&&I!=null&&!e&&(i.pointerId&&i.pointerId!==I&&i.target!==n||i.changedTouches&&!Ma(i.changedTouches,I))){et&&i&&V&&ma(i);return}d.isPressed=false;var o=i,s=d.isDragging,a=d.vars.allowContextMenu&&i&&(i.ctrlKey||i.which>2),l=Ms.delayedCall(.001,bt),c,h,u,f,p;if(Q){xa(Q,"touchend",t);xa(Q,"touchmove",mt);xa(Q,"touchcancel",t);xa(H,"touchstart",ka)}else{xa(H,"mousemove",mt)}xa(ys,"touchforcechange",ma);if(!Ts||!Q){xa(H,"mouseup",t);i&&i.target&&xa(i.target,"mouseup",t)}N=false;if(s){v=la=ra();d.isDragging=false}ga(lt);if(G&&!a){if(i){xa(i.target,"change",t);d.pointerEvent=o}Ia(C,false);Aa(d,"release","onRelease");Aa(d,"click","onClick");G=false;return}h=C.length;while(--h>-1){Sa(C[h],"cursor",r.cursor||(r.cursor!==false?Os:null))}Is--;if(i){c=i.changedTouches;if(c){i=c[0];if(i!==R&&i.identifier!==I){h=c.length;while(--h>-1&&(i=c[h]).identifier!==I&&i.target!==n){}if(h<0&&!e){return}}}d.pointerEvent=o;d.pointerX=i.pageX;d.pointerY=i.pageY}if(a&&o){ma(o);et=true;Aa(d,"release","onRelease")}else if(o&&!s){et=false;if(K&&(r.snap||r.bounds)){pt(r.inertia||r.throwProps)}Aa(d,"release","onRelease");if((!As||o.type!=="touchmove")&&o.type.indexOf("cancel")===-1){Aa(d,"click","onClick");if(ra()-y<300){Aa(d,"doubleclick","onDoubleClick")}f=o.target||n;y=ra();p=function t(){if(y!==nt&&d.enabled()&&!d.isPressed&&!o.defaultPrevented){if(f.click){f.click()}else if(H.createEvent){u=H.createEvent("MouseEvents");u.initMouseEvent("click",true,true,ys,1,d.pointerEvent.screenX,d.pointerEvent.screenY,d.pointerX,d.pointerY,false,false,false,false,0,null);f.dispatchEvent(u)}}};if(!As&&!o.defaultPrevented){Ms.delayedCall(.05,p)}}}else{pt(r.inertia||r.throwProps);if(!d.allowEventDefault&&o&&(r.dragClickables!==false||!M.call(d,o.target))&&s&&(!J||tt&&J===tt)&&o.cancelable!==false){et=true;ma(o)}else{et=false}Aa(d,"release","onRelease")}wt()&&l.duration(d.tween.duration());s&&Aa(d,"dragend","onDragEnd");return true},kt=function t(i){if(i&&d.isDragging&&!_){var r=i.target||n.parentNode,e=r.scrollLeft-r._gsScrollX,o=r.scrollTop-r._gsScrollY;if(e||o){if(W){B-=e*W.a+o*W.c;F-=o*W.d+e*W.b}else{B-=e;F-=o}r._gsScrollX+=e;r._gsScrollY+=o;Mt(d.pointerX,d.pointerY)}}},Lt=function t(i){var n=ra(),r=n-y<100,e=n-v<50,o=r&&nt===y,s=d.pointerEvent&&d.pointerEvent.defaultPrevented,a=r&&rt===y,l=i.isTrusted||i.isTrusted==null&&r&&o;if((o||e&&d.vars.suppressClickOnDrag!==false)&&i.stopImmediatePropagation){i.stopImmediatePropagation()}if(r&&!(d.pointerEvent&&d.pointerEvent.defaultPrevented)&&(!o||l&&!a)){if(l&&o){rt=y}nt=y;return}if(d.isPressed||e||r){if(!l||!i.detail||!r||s){ma(i)}}if(!r&&!e&&!st){i&&i.target&&(d.pointerEvent=i);Aa(d,"click","onClick")}},Zt=function t(i){return W?{x:i.x*W.a+i.y*W.c+W.e,y:i.x*W.b+i.y*W.d+W.f}:{x:i.x,y:i.y}};$=i.get(n);$&&$.kill();e.startDrag=function(t,i){var r,e,o,s;xt(t||d.pointerEvent,true);if(i&&!d.hitTest(t||d.pointerEvent)){r=Pa(t||d.pointerEvent);e=Pa(n);o=Zt({x:r.left+r.width/2,y:r.top+r.height/2});s=Zt({x:e.left+e.width/2,y:e.top+e.height/2});B-=o.x-s.x;F-=o.y-s.y}if(!d.isDragging){d.isDragging=st=true;Aa(d,"dragstart","onDragStart")}};e.drag=mt;e.endDrag=function(t){return yt(t||d.pointerEvent,true)};e.timeSinceDrag=function(){return d.isDragging?0:(ra()-v)/1e3};e.timeSinceClick=function(){return(ra()-y)/1e3};e.hitTest=function(t,n){return i.hitTest(d.target,t,n)};e.getDirection=function(t,i){var r=t==="velocity"&&Ds?t:Us(t)&&!a?"element":"start",e,o,s,h,u,f;if(r==="element"){u=Pa(d.target);f=Pa(t)}e=r==="start"?d.x-S:r==="velocity"?Ds.getVelocity(n,l):u.left+u.width/2-(f.left+f.width/2);if(a){return e<0?"counter-clockwise":"clockwise"}else{i=i||2;o=r==="start"?d.y-z:r==="velocity"?Ds.getVelocity(n,c):u.top+u.height/2-(f.top+f.height/2);s=Math.abs(e/o);h=s<1/i?"":e<0?"left":"right";if(s<i){if(h!==""){h+="-"}h+=o<0?"up":"down"}}return h};e.applyBounds=function(t,i){var e,o,s,l,c,f;if(t&&r.bounds!==t){r.bounds=t;return d.update(true,i)}ct(true);ft();if(E&&!wt()){e=d.x;o=d.y;if(e>D){e=D}else if(e<O){e=O}if(o>T){o=T}else if(o<j){o=j}if(d.x!==e||d.y!==o){s=true;d.x=d.endX=e;if(a){d.endRotation=e}else{d.y=d.endY=o}N=true;lt(true);if(d.autoScroll&&!d.isDragging){Fa(n.parentNode);l=n;ha.scrollTop=ys.pageYOffset!=null?ys.pageYOffset:H.documentElement.scrollTop!=null?H.documentElement.scrollTop:H.body.scrollTop;ha.scrollLeft=ys.pageXOffset!=null?ys.pageXOffset:H.documentElement.scrollLeft!=null?H.documentElement.scrollLeft:H.body.scrollLeft;while(l&&!f){f=_a(l.parentNode);c=f?ha:l.parentNode;if(u&&c.scrollTop>c._gsMaxScrollY){c.scrollTop=c._gsMaxScrollY}if(h&&c.scrollLeft>c._gsMaxScrollX){c.scrollLeft=c._gsMaxScrollX}l=c}}}if(d.isThrowing&&(s||d.endX>D||d.endX<O||d.endY>T||d.endY<j)){pt(r.inertia||r.throwProps,s)}}return d};e.update=function(t,i,r){if(i&&d.isPressed){var e=bs(n),o=ot.apply({x:d.x-S,y:d.y-z}),s=bs(n.parentNode,true);s.apply({x:e.e-o.x,y:e.f-o.y},o);d.x-=o.x-s.e;d.y-=o.y-s.f;lt(true);gt()}var l=d.x,c=d.y;vt(!i);if(t){d.applyBounds()}else{N&&r&<(true);ct(true)}if(i){Mt(d.pointerX,d.pointerY);N&<(true)}if(d.isPressed&&!i&&(h&&Math.abs(l-d.x)>.01||u&&Math.abs(c-d.y)>.01&&!a)){gt()}if(d.autoScroll){Fa(n.parentNode,d.isDragging);g=d.isDragging;lt(true);Va(n,kt);Ha(n,kt)}return d};e.enable=function(t){var i={lazy:true},e,o,l;if(r.cursor!==false){i.cursor=r.cursor||Os}if(Ms.utils.checkPrefix("touchCallout")){i.touchCallout="none"}if(t!=="soft"){da(C,h===u?"none":r.allowNativeTouchScrolling&&n.scrollHeight===n.clientHeight===(n.scrollWidth===n.clientHeight)||r.allowEventDefault?"manipulation":h?"pan-y":"pan-x");o=C.length;while(--o>-1){l=C[o];Ts||ba(l,"mousedown",xt);ba(l,"touchstart",xt);ba(l,"click",Lt,true);Ms.set(l,i);if(l.getBBox&&l.ownerSVGElement&&h!==u){Ms.set(l.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":h?"pan-y":"pan-x"})}r.allowContextMenu||ba(l,"contextmenu",at)}Ia(C,false)}Ha(n,kt);V=true;if(Ds&&t!=="soft"){Ds.track(_||n,s?"x,y":a?"rotation":"top,left")}n._gsDragID=e="d"+sa++;oa[e]=d;if(_){_.enable();_.element._gsDragID=e}(r.bounds||a)&>();r.bounds&&d.applyBounds();return d};e.disable=function(t){var i=d.isDragging,r=C.length,e;while(--r>-1){Sa(C[r],"cursor",null)}if(t!=="soft"){da(C,null);r=C.length;while(--r>-1){e=C[r];Sa(e,"touchCallout",null);xa(e,"mousedown",xt);xa(e,"touchstart",xt);xa(e,"click",Lt,true);xa(e,"contextmenu",at)}Ia(C,true);if(Q){xa(Q,"touchcancel",yt);xa(Q,"touchend",yt);xa(Q,"touchmove",mt)}xa(H,"mouseup",yt);xa(H,"mousemove",mt)}Va(n,kt);V=false;if(Ds&&t!=="soft"){Ds.untrack(_||n,s?"x,y":a?"rotation":"top,left");d.tween&&d.tween.kill()}_&&_.disable();ga(lt);d.isDragging=d.isPressed=G=false;i&&Aa(d,"dragend","onDragEnd");return d};e.enabled=function(t,i){return arguments.length?t?d.enable(i):d.disable(i):V};e.kill=function(){d.isThrowing=false;d.tween&&d.tween.kill();d.disable();Ms.set(C,{clearProps:"userSelect"});delete oa[n._gsDragID];return d};e.revert=function(){this.kill();this.styles&&this.styles.revert()};if(~o.indexOf("scroll")){_=e.scrollProxy=new Ua(n,fa({onKill:function t(){d.isPressed&&yt(null)}},r));n.style.overflowY=u&&!zs?"auto":"hidden";n.style.overflowX=h&&!zs?"auto":"hidden";n=_.content}if(a){p.rotation=1}else{if(h){p[l]=1}if(u){p[c]=1}}k.force3D="force3D"in r?r.force3D:true;js(xs(e));e.enable();return e}i.register=function t(i){Ms=i;Xa()};i.create=function t(n,r){_s||Xa(true);return Fs(n).map((function(t){return new i(t,r)}))};i.get=function t(i){return oa[(Fs(i)[0]||{})._gsDragID]};i.timeSinceDrag=function t(){return(ra()-la)/1e3};i.hitTest=function t(i,n,r){if(i===n){return false}var e=Pa(i),o=Pa(n),s=e.top,a=e.left,l=e.right,c=e.bottom,h=e.width,u=e.height,f=o.left>l||o.right<a||o.top>c||o.bottom<s,d,C,p;if(f||!r){return!f}p=(r+"").indexOf("%")!==-1;r=parseFloat(r)||0;d={left:Math.max(a,o.left),top:Math.max(s,o.top)};d.width=Math.min(l,o.right)-d.left;d.height=Math.min(c,o.bottom)-d.top;if(d.width<0||d.height<0){return false}if(p){r*=.01;C=d.width*d.height;return C>=h*u*r||C>=o.width*o.height*r}return d.width>r&&d.height>r};return i}(Ya);wa(Ga.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:false,isPressed:false});Ga.zIndex=1e3;Ga.version="3.12.5";Ns()&&Ms.registerPlugin(Ga);const Qa=":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}@media (max-width: 480px){:host(.include-mobile-styling) .modal-wrapper{scale:none;top:100%;left:0;height:unset;opacity:1}:host(.include-mobile-styling) .modal-container{width:100%;max-width:none;border-bottom-left-radius:0px;border-bottom-right-radius:0px}}.modal-header{position:sticky;top:0;padding-top:var(--inner-container-padding-top);background-color:var(--inner-container-background-color)}.modal-wrapper{z-index:9999999999998;position:fixed;top:0;left:0;display:none;height:100%;width:100%;justify-content:center;align-items:center;scale:0.8;opacity:0;transform:none}.modal-container{position:relative;overflow:hidden;-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);max-width:95vw;max-height:95vh;max-height:95dvh;overflow:auto;-ms-overflow-style:none;scrollbar-width:none;}.modal-container ::-webkit-scrollbar{display:none}.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:0;padding-bottom:var(--inner-container-padding-bottom);margin-bottom:var(--inner-container-margin-bottom);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;display:none}.modal-inner-container.no-footer{margin-bottom:0px;box-shadow:none}.modal-container.no-footer{padding-bottom:0px}.no-opacity{opacity:0}";const Wa=Qa;Xo.registerPlugin(Ga);const Ka=Xo.matchMedia();const Ja=class{constructor(i){t(this,i);this.cpslModalEntering=r(this,"cpslModalEntering",7);this.cpslModalEntered=r(this,"cpslModalEntered",7);this.cpslModalExiting=r(this,"cpslModalExiting",7);this.cpslModalExited=r(this,"cpslModalExited",7);this.cpslModalRequestClose=r(this,"cpslModalRequestClose",7);this.getDraggableHeight=()=>this.innerContainerEl.clientHeight;this.hasFooter=undefined;this.enterTransitionDuration=.15;this.exitTransitionDuration=.15;this.footerExpanded=undefined;this.footerTransitionDuration=.15;this.noOverlay=undefined;this.open=undefined}toggleHeight(){this.footerExpanded?this.expandFooterTl.play():this.expandFooterTl.reverse()}toggleModal(){if(this.hasAnimatedIn){this.handleAnimation()}}componentDidLoad(){this.handleAnimation();this.hasAnimatedIn=true;Ka.add(`(min-width: ${o+1}px)`,(()=>{var t;(t=this.draggable)===null||t===void 0?void 0:t.disable();Xo.timeline({}).set(this.modalWrapperEl,{yPercent:0,scale:this.open?1:.8,opacity:this.open?1:0})}));Ka.add(`(max-width: ${o}px)`,(()=>{this.initDraggable();Xo.timeline({}).set(this.modalWrapperEl,{scale:1,opacity:1,yPercent:this.open?-100:0})}));this.footerSlotEl.addEventListener("slotchange",(()=>{if(this.footerSlotEl.assignedNodes().length>=1){this.hasFooter=true}else{this.hasFooter=false}}))}handleAnimation(){if(this.open){if(window.innerWidth>=o+1){Xo.timeline({onStart:()=>{this.cpslModalEntering.emit()},onComplete:()=>{this.addExpandAnim();this.cpslModalEntered.emit()}}).set(this.modalWrapperEl,{display:"flex",yPercent:0}).to(this.modalWrapperEl,{scale:1,opacity:1,duration:this.enterTransitionDuration})}else{Xo.timeline({onStart:()=>{this.cpslModalEntering.emit()},onComplete:()=>{this.addExpandAnim();this.cpslModalEntered.emit()}}).set(this.modalWrapperEl,{display:"flex",scale:1,opacity:1}).to(this.modalWrapperEl,{yPercent:-100,duration:this.enterTransitionDuration})}}else{if(window.innerWidth>=o+1){Xo.timeline({onStart:()=>{this.cpslModalExiting.emit()},onComplete:()=>{this.cpslModalExited.emit();this.modalWrapperEl.style.setProperty("display","none")}}).to(this.modalWrapperEl,{scale:.8,opacity:0,duration:this.exitTransitionDuration})}else{Xo.timeline({onStart:()=>{this.cpslModalExiting.emit()},onComplete:()=>{this.cpslModalExited.emit();this.modalWrapperEl.style.setProperty("display","none")}}).to(this.modalWrapperEl,{yPercent:0,duration:this.exitTransitionDuration}).set(this.modalContainerEl,{y:0})}}}addExpandAnim(){setTimeout((()=>{this.expandFooterTl=Xo.timeline({reversed:true,paused:true,onReverseComplete:()=>{this.contentEl.style.setProperty("height","auto")},defaults:{duration:this.footerTransitionDuration}}).set(this.footerExpandedEl,{overflow:"auto",display:"block"}).set(this.headerExpandedEl,{display:"block"}).to(this.innerContainerEl,{paddingBottom:"8px"}).to(this.contentEl,{height:"0px",overflow:"hidden",opacity:0},"<").to(this.footerEl,{height:"0px",overflow:"hidden",opacity:0},"<").to(this.footerExpandedEl,{height:"auto",opacity:1},"<").to(this.headerExpandedEl,{height:"auto",opacity:1},"<")}),10)}initDraggable(){this.draggable=Ga.create(this.modalContainerEl,{trigger:this.headerEl,dragClickables:false,type:"y",edgeResistance:.2,liveSnap:{y:function(t){if(t<0)return 0;return t}},onDrag:()=>{const t=Xo.utils.mapRange(0,this.getDraggableHeight(),1,0,this.draggable.y);Xo.set(this.overlayEl,{opacity:t})},onDragEnd:()=>{if(this.draggable.y>60){this.cpslModalRequestClose.emit()}else{Xo.set(this.overlayEl,{opacity:1});Xo.set(this.modalWrapperEl,{yPercent:-100});Xo.set(this.modalContainerEl,{y:0})}}})[0]}get footerEl(){return this.el.shadowRoot.getElementById("modal-footer")}get footerExpandedEl(){return this.el.shadowRoot.getElementById("modal-footer-expanded")}get headerExpandedEl(){return this.el.shadowRoot.getElementById("modal-header-expanded")}get innerContainerEl(){return this.el.shadowRoot.getElementById("modal-inner-container")}get contentEl(){return this.el.shadowRoot.getElementById("modal-content")}get modalWrapperEl(){return this.el.shadowRoot.getElementById("modal-wrapper")}get modalContainerEl(){return this.el.shadowRoot.getElementById("modal-container")}get overlayEl(){return this.el.shadowRoot.getElementById("overlay")}get footerSlotEl(){return this.footerEl.querySelectorAll("slot")[0]}get headerEl(){return this.el.shadowRoot.getElementById("modal-header")}get Modal(){return i("div",{class:{"modal-container":true,"no-footer":!this.hasFooter},part:"modal-container",id:"modal-container"},i("slot",null),i("div",{id:"modal-inner-container",class:{"modal-inner-container":true,"no-footer":!this.hasFooter},part:"modal-inner-container"},i("div",{id:"modal-content",part:"modal-content"},i("div",{id:"modal-header",class:"modal-header"},i("slot",{name:"header"})),i("slot",{name:"body"})),i("div",{id:"modal-header-expanded",class:{"modal-header":true,expanded:true,"no-opacity":true}},i("slot",{name:"footerExpandedHeader"}))),i("div",{id:"modal-footer"},i("slot",{name:"footer"})),i("div",{id:"modal-footer-expanded",class:{expanded:true,"no-opacity":true}},i("slot",{name:"footerExpandedFooter"})))}render(){if(this.noOverlay){this.addExpandAnim();return i(n,null,this.Modal)}return i(n,{class:{"include-mobile-styling":true}},i("cpsl-overlay",{id:"overlay",open:this.open,enterTransitionDuration:this.enterTransitionDuration,exitTransitionDuration:this.exitTransitionDuration}),i("div",{id:"modal-wrapper",class:"modal-wrapper"},this.Modal))}get el(){return e(this)}static get watchers(){return{footerExpanded:["toggleHeight"],open:["toggleModal"]}}};Ja.style=Wa;const tl=":host{position:fixed;width:100%;height:100%;top:0;left:0;z-index:999999999999;opacity:0%;display:none;background-color:var(--cpsl-color-alpha-black-50)}";const il=tl;const nl=class{constructor(i){t(this,i);this.open=undefined;this.enterTransitionDuration=.5;this.exitTransitionDuration=.5}toggleHeight(){this.open?Xo.timeline({defaults:{duration:this.enterTransitionDuration}}).to(this.el,{display:"block",opacity:1}):Xo.timeline({defaults:{duration:this.exitTransitionDuration}}).to(this.el,{display:"none",opacity:0});if(this.open){document.documentElement.style.overflow="hidden"}else{setTimeout((()=>{document.documentElement.style.overflow="auto"}),this.exitTransitionDuration*1e3)}}componentDidLoad(){if(this.open){Xo.timeline({defaults:{duration:this.enterTransitionDuration}}).to(this.el,{display:"block",opacity:1});document.documentElement.style.overflow="hidden"}}render(){return i(n,{key:"4d8c07e1704e32808745d92d5befa8a4145a779f"},i("slot",{key:"f767b8da95b657cf8c118c298c38acaf72af8e8c"}))}get el(){return e(this)}static get watchers(){return{open:["toggleHeight"]}}};nl.style=il;const rl=":host{--pill-text-color:var(--cpsl-pill-text);--pill-text-size:clamp(10px, 0.625rem, 15px);--pill-text-line-height:100%;--pill-container-height:18px;--pill-container-background-color:var(--cpsl-color-pill-container-background);--pill-container-border-color:var(--cpsl-color-pill-container-border);--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 el=rl;const ol=class{constructor(i){t(this,i);this.text=undefined}render(){return i(n,{key:"c0d7930033e08ea264480fd457b176755eac7662"},i("div",{key:"b0f6d184dcfe34559b62a9c9da4354f5bfb59797",class:"pill-container"},i("span",{key:"88634c4cd20dba3d850c51bb4089649364112566"},this.text)))}};ol.style=el;const sl=":host{--step-height:3px;--step-active-color:var(--cpsl-color-progressIndicator-active);--step-next-color:var(--cpsl-color-progressIndicator-next);--step-previous-color:var(--cpsl-color-progressIndicator-previous);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 al=sl;const ll=class{constructor(i){t(this,i);this.totalSteps=undefined;this.step=undefined}render(){const t=new Array(this.totalSteps).fill(0).map(((t,i)=>{let n={active:false,previous:false};if(i===this.step){n.active=true}else if(i<this.step){n.previous=true}return n}));return i(n,null,t.map((t=>i("div",{class:{step:true,active:t.active,previous:t.previous}}))))}};ll.style=al;var cl={exports:{}};(function(t,i){!function(i,n){t.exports=n()}(self,(function(){return(()=>{var t={192:(t,i)=>{var n,r,e=function(){var t=function(t,i){var n=t,r=s[i],e=null,o=0,l=null,v=[],g={},b=function(t,i){e=function(t){for(var i=new Array(t),n=0;n<t;n+=1){i[n]=new Array(t);for(var r=0;r<t;r+=1)i[n][r]=null}return i}(o=4*n+17),x(0,0),x(o-7,0),x(0,o-7),M(),m(),k(t,i),n>=7&&y(t),null==l&&(l=Z(n,r,v)),L(l,i)},x=function(t,i){for(var n=-1;n<=7;n+=1)if(!(t+n<=-1||o<=t+n))for(var r=-1;r<=7;r+=1)i+r<=-1||o<=i+r||(e[t+n][i+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=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 i=8;i<o-8;i+=1)null==e[6][i]&&(e[6][i]=i%2==0)},M=function(){for(var t=a.getPatternPosition(n),i=0;i<t.length;i+=1)for(var r=0;r<t.length;r+=1){var o=t[i],s=t[r];if(null==e[o][s])for(var l=-2;l<=2;l+=1)for(var c=-2;c<=2;c+=1)e[o+l][s+c]=-2==l||2==l||-2==c||2==c||0==l&&0==c}},y=function(t){for(var i=a.getBCHTypeNumber(n),r=0;r<18;r+=1){var s=!t&&1==(i>>r&1);e[Math.floor(r/3)][r%3+o-8-3]=s}for(r=0;r<18;r+=1)s=!t&&1==(i>>r&1),e[r%3+o-8-3][Math.floor(r/3)]=s},k=function(t,i){for(var n=r<<3|i,s=a.getBCHTypeInfo(n),l=0;l<15;l+=1){var c=!t&&1==(s>>l&1);l<6?e[l][8]=c:l<8?e[l+1][8]=c:e[o-15+l][8]=c}for(l=0;l<15;l+=1)c=!t&&1==(s>>l&1),l<8?e[8][o-l-1]=c:l<9?e[8][15-l-1+1]=c:e[8][15-l-1]=c;e[o-8][8]=!t},L=function(t,i){for(var n=-1,r=o-1,s=7,l=0,c=a.getMaskFunction(i),h=o-1;h>0;h-=2)for(6==h&&(h-=1);;){for(var u=0;u<2;u+=1)if(null==e[r][h-u]){var f=!1;l<t.length&&(f=1==(t[l]>>>s&1)),c(r,h-u)&&(f=!f),e[r][h-u]=f,-1==(s-=1)&&(l+=1,s=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},Z=function(t,i,n){for(var r=h.getRSBlocks(t,i),e=u(),o=0;o<n.length;o+=1){var s=n[o];e.put(s.getMode(),4),e.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(e)}var l=0;for(o=0;o<r.length;o+=1)l+=r[o].dataCount;if(e.getLengthInBits()>8*l)throw"code length overflow. ("+e.getLengthInBits()+">"+8*l+")";for(e.getLengthInBits()+4<=8*l&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(!1);for(;!(e.getLengthInBits()>=8*l||(e.put(236,8),e.getLengthInBits()>=8*l));)e.put(17,8);return function(t,i){for(var n=0,r=0,e=0,o=new Array(i.length),s=new Array(i.length),l=0;l<i.length;l+=1){var h=i[l].dataCount,u=i[l].totalCount-h;r=Math.max(r,h),e=Math.max(e,u),o[l]=new Array(h);for(var f=0;f<o[l].length;f+=1)o[l][f]=255&t.getBuffer()[f+n];n+=h;var d=a.getErrorCorrectPolynomial(u),C=c(o[l],d.getLength()-1).mod(d);for(s[l]=new Array(d.getLength()-1),f=0;f<s[l].length;f+=1){var p=f+C.getLength()-s[l].length;s[l][f]=p>=0?C.getAt(p):0}}var v=0;for(f=0;f<i.length;f+=1)v+=i[f].totalCount;var g=new Array(v),w=0;for(f=0;f<r;f+=1)for(l=0;l<i.length;l+=1)f<o[l].length&&(g[w]=o[l][f],w+=1);for(f=0;f<e;f+=1)for(l=0;l<i.length;l+=1)f<s[l].length&&(g[w]=s[l][f],w+=1);return g}(e,r)};g.addData=function(t,i){var n=null;switch(i=i||"Byte"){case"Numeric":n=f(t);break;case"Alphanumeric":n=d(t);break;case"Byte":n=C(t);break;case"Kanji":n=p(t);break;default:throw"mode:"+i}v.push(n),l=null},g.isDark=function(t,i){if(t<0||o<=t||i<0||o<=i)throw t+","+i;return e[t][i]},g.getModuleCount=function(){return o},g.make=function(){if(n<1){for(var t=1;t<40;t++){for(var i=h.getRSBlocks(t,r),e=u(),o=0;o<v.length;o++){var s=v[o];e.put(s.getMode(),4),e.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(e)}var l=0;for(o=0;o<i.length;o++)l+=i[o].dataCount;if(e.getLengthInBits()<=8*l)break}n=t}b(!1,function(){for(var t=0,i=0,n=0;n<8;n+=1){b(!0,n);var r=a.getLostPoint(g);(0==n||t>r)&&(t=r,i=n)}return i}())},g.createTableTag=function(t,i){t=t||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(i=void 0===i?4*t:i)+"px;",n+='">',n+="<tbody>";for(var r=0;r<g.getModuleCount();r+=1){n+="<tr>";for(var e=0;e<g.getModuleCount();e+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+t+"px;",n+=" height: "+t+"px;",n+=" background-color: ",n+=g.isDark(r,e)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},g.createSvgTag=function(t,i,n,r){var e={};"object"==typeof arguments[0]&&(t=(e=arguments[0]).cellSize,i=e.margin,n=e.alt,r=e.title),t=t||2,i=void 0===i?4*t:i,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.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,s,a,l,c=g.getModuleCount()*t+2*i,h="";for(l="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="'+c+'px" height="'+c+'px"',h+=' viewBox="0 0 '+c+" "+c+'" ',h+=' preserveAspectRatio="xMinYMin meet"',h+=r.text||n.text?' role="img" aria-labelledby="'+H([r.id,n.id].join(" ").trim())+'"':"",h+=">",h+=r.text?'<title id="'+H(r.id)+'">'+H(r.text)+"</title>":"",h+=n.text?'<description id="'+H(n.id)+'">'+H(n.text)+"</description>":"",h+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',h+='<path d="',s=0;s<g.getModuleCount();s+=1)for(a=s*t+i,o=0;o<g.getModuleCount();o+=1)g.isDark(s,o)&&(h+="M"+(o*t+i)+","+a+l);return(h+='" stroke="transparent" fill="black"/>')+"</svg>"},g.createDataURL=function(t,i){t=t||2,i=void 0===i?4*t:i;var n=g.getModuleCount()*t+2*i,r=i,e=n-i;return w(n,n,(function(i,n){if(r<=i&&i<e&&r<=n&&n<e){var o=Math.floor((i-r)/t),s=Math.floor((n-r)/t);return g.isDark(s,o)?0:1}return 1}))},g.createImgTag=function(t,i,n){t=t||2,i=void 0===i?4*t:i;var r=g.getModuleCount()*t+2*i,e="";return e+="<img",e+=' src="',e+=g.createDataURL(t,i),e+='"',e+=' width="',e+=r,e+='"',e+=' height="',e+=r,e+='"',n&&(e+=' alt="',e+=H(n),e+='"'),e+"/>"};var H=function(t){for(var i="",n=0;n<t.length;n+=1){var r=t.charAt(n);switch(r){case"<":i+="<";break;case">":i+=">";break;case"&":i+="&";break;case'"':i+=""";break;default:i+=r}}return i};return g.createASCII=function(t,i){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var i,n,r,e,o,s=1*g.getModuleCount()+2*t,a=t,l=s-t,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},h={"██":"▀","█ ":"▀"," █":" "," ":" "},u="";for(i=0;i<s;i+=2){for(r=Math.floor((i-a)/1),e=Math.floor((i+1-a)/1),n=0;n<s;n+=1)o="█",a<=n&&n<l&&a<=i&&i<l&&g.isDark(r,Math.floor((n-a)/1))&&(o=" "),a<=n&&n<l&&a<=i+1&&i+1<l&&g.isDark(e,Math.floor((n-a)/1))?o+=" ":o+="█",u+=t<1&&i+1>=l?h[o]:c[o];u+="\n"}return s%2&&t>0?u.substring(0,u.length-s-1)+Array(s+1).join("▀"):u.substring(0,u.length-1)}(i);t-=1,i=void 0===i?2*t:i;var n,r,e,o,s=g.getModuleCount()*t+2*i,a=i,l=s-i,c=Array(t+1).join("██"),h=Array(t+1).join(" "),u="",f="";for(n=0;n<s;n+=1){for(e=Math.floor((n-a)/t),f="",r=0;r<s;r+=1)o=1,a<=r&&r<l&&a<=n&&n<l&&g.isDark(e,Math.floor((r-a)/t))&&(o=0),f+=o?c:h;for(e=0;e<t;e+=1)u+=f+"\n"}return u.substring(0,u.length-1)},g.renderTo2dContext=function(t,i){i=i||2;for(var n=g.getModuleCount(),r=0;r<n;r++)for(var e=0;e<n;e++)t.fillStyle=g.isDark(r,e)?"black":"white",t.fillRect(r*i,e*i,i,i)},g};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var i=[],n=0;n<t.length;n+=1){var r=t.charCodeAt(n);i.push(255&r)}return i}}).default,t.createStringToBytes=function(t,i){var n=function(){for(var n=g(t),r=function(){var t=n.read();if(-1==t)throw"eof";return t},e=0,o={};;){var s=n.read();if(-1==s)break;var a=r(),l=r()<<8|r();o[String.fromCharCode(s<<8|a)]=l,e+=1}if(e!=i)throw e+" != "+i;return o}(),r="?".charCodeAt(0);return function(t){for(var i=[],e=0;e<t.length;e+=1){var o=t.charCodeAt(e);if(o<128)i.push(o);else{var s=n[t.charAt(e)];"number"==typeof s?(255&s)==s?i.push(s):(i.push(s>>>8),i.push(255&s)):i.push(r)}}return i}};var i,n,r,e,o,s={L:1,M:0,Q:3,H:2},a=(i=[[],[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]],n=1335,r=7973,o=function(t){for(var i=0;0!=t;)i+=1,t>>>=1;return i},(e={}).getBCHTypeInfo=function(t){for(var i=t<<10;o(i)-o(n)>=0;)i^=n<<o(i)-o(n);return 21522^(t<<10|i)},e.getBCHTypeNumber=function(t){for(var i=t<<12;o(i)-o(r)>=0;)i^=r<<o(i)-o(r);return t<<12|i},e.getPatternPosition=function(t){return i[t-1]},e.getMaskFunction=function(t){switch(t){case 0:return function(t,i){return(t+i)%2==0};case 1:return function(t,i){return t%2==0};case 2:return function(t,i){return i%3==0};case 3:return function(t,i){return(t+i)%3==0};case 4:return function(t,i){return(Math.floor(t/2)+Math.floor(i/3))%2==0};case 5:return function(t,i){return t*i%2+t*i%3==0};case 6:return function(t,i){return(t*i%2+t*i%3)%2==0};case 7:return function(t,i){return(t*i%3+(t+i)%2)%2==0};default:throw"bad maskPattern:"+t}},e.getErrorCorrectPolynomial=function(t){for(var i=c([1],0),n=0;n<t;n+=1)i=i.multiply(c([1,l.gexp(n)],0));return i},e.getLengthInBits=function(t,i){if(1<=i&&i<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(i<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(!(i<41))throw"type:"+i;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 i=t.getModuleCount(),n=0,r=0;r<i;r+=1)for(var e=0;e<i;e+=1){for(var o=0,s=t.isDark(r,e),a=-1;a<=1;a+=1)if(!(r+a<0||i<=r+a))for(var l=-1;l<=1;l+=1)e+l<0||i<=e+l||0==a&&0==l||s==t.isDark(r+a,e+l)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<i-1;r+=1)for(e=0;e<i-1;e+=1){var c=0;t.isDark(r,e)&&(c+=1),t.isDark(r+1,e)&&(c+=1),t.isDark(r,e+1)&&(c+=1),t.isDark(r+1,e+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<i;r+=1)for(e=0;e<i-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)&&(n+=40);for(e=0;e<i;e+=1)for(r=0;r<i-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)&&(n+=40);var h=0;for(e=0;e<i;e+=1)for(r=0;r<i;r+=1)t.isDark(r,e)&&(h+=1);return n+Math.abs(100*h/i/i-50)/5*10},e),l=function(){for(var t=new Array(256),i=new Array(256),n=0;n<8;n+=1)t[n]=1<<n;for(n=8;n<256;n+=1)t[n]=t[n-4]^t[n-5]^t[n-6]^t[n-8];for(n=0;n<255;n+=1)i[t[n]]=n;return{glog:function(t){if(t<1)throw"glog("+t+")";return i[t]},gexp:function(i){for(;i<0;)i+=255;for(;i>=256;)i-=255;return t[i]}}}();function c(t,i){if(void 0===t.length)throw t.length+"/"+i;var n=function(){for(var n=0;n<t.length&&0==t[n];)n+=1;for(var r=new Array(t.length-n+i),e=0;e<t.length-n;e+=1)r[e]=t[e+n];return r}(),r={getAt:function(t){return n[t]},getLength:function(){return n.length},multiply:function(t){for(var i=new Array(r.getLength()+t.getLength()-1),n=0;n<r.getLength();n+=1)for(var e=0;e<t.getLength();e+=1)i[n+e]^=l.gexp(l.glog(r.getAt(n))+l.glog(t.getAt(e)));return c(i,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var i=l.glog(r.getAt(0))-l.glog(t.getAt(0)),n=new Array(r.getLength()),e=0;e<r.getLength();e+=1)n[e]=r.getAt(e);for(e=0;e<t.getLength();e+=1)n[e]^=l.gexp(l.glog(t.getAt(e))+i);return c(n,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]],i=function(t,i){var n={};return n.totalCount=t,n.dataCount=i,n},n={getRSBlocks:function(n,r){var e=function(i,n){switch(n){case s.L:return t[4*(i-1)+0];case s.M:return t[4*(i-1)+1];case s.Q:return t[4*(i-1)+2];case s.H:return t[4*(i-1)+3];default:return}}(n,r);if(void 0===e)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var o=e.length/3,a=[],l=0;l<o;l+=1)for(var c=e[3*l+0],h=e[3*l+1],u=e[3*l+2],f=0;f<c;f+=1)a.push(i(h,u));return a}};return n}(),u=function(){var t=[],i=0,n={getBuffer:function(){return t},getAt:function(i){var n=Math.floor(i/8);return 1==(t[n]>>>7-i%8&1)},put:function(t,i){for(var r=0;r<i;r+=1)n.putBit(1==(t>>>i-r-1&1))},getLengthInBits:function(){return i},putBit:function(n){var r=Math.floor(i/8);t.length<=r&&t.push(0),n&&(t[r]|=128>>>i%8),i+=1}};return n},f=function(t){var i=t,n={getMode:function(){return 1},getLength:function(t){return i.length},write:function(t){for(var n=i,e=0;e+2<n.length;)t.put(r(n.substring(e,e+3)),10),e+=3;e<n.length&&(n.length-e==1?t.put(r(n.substring(e,e+1)),4):n.length-e==2&&t.put(r(n.substring(e,e+2)),7))}},r=function(t){for(var i=0,n=0;n<t.length;n+=1)i=10*i+e(t.charAt(n));return i},e=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return n},d=function(t){var i=t,n={getMode:function(){return 2},getLength:function(t){return i.length},write:function(t){for(var n=i,e=0;e+1<n.length;)t.put(45*r(n.charAt(e))+r(n.charAt(e+1)),11),e+=2;e<n.length&&t.put(r(n.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 n},C=function(i){var n=t.stringToBytes(i);return{getMode:function(){return 4},getLength:function(t){return n.length},write:function(t){for(var i=0;i<n.length;i+=1)t.put(n[i],8)}}},p=function(i){var n=t.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(t,i){var r=n("友");if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=n(i);return{getMode:function(){return 8},getLength:function(t){return~~(r.length/2)},write:function(t){for(var i=r,n=0;n+1<i.length;){var e=(255&i[n])<<8|255&i[n+1];if(33088<=e&&e<=40956)e-=33088;else{if(!(57408<=e&&e<=60351))throw"illegal char at "+(n+1)+"/"+e;e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13),n+=2}if(n<i.length)throw"illegal char at "+(n+1)}}},v=function(){var t=[],i={writeByte:function(i){t.push(255&i)},writeShort:function(t){i.writeByte(t),i.writeByte(t>>>8)},writeBytes:function(t,n,r){n=n||0,r=r||t.length;for(var e=0;e<r;e+=1)i.writeByte(t[e+n])},writeString:function(t){for(var n=0;n<t.length;n+=1)i.writeByte(t.charCodeAt(n))},toByteArray:function(){return t},toString:function(){var i="";i+="[";for(var n=0;n<t.length;n+=1)n>0&&(i+=","),i+=t[n];return i+"]"}};return i},g=function(t){var i=t,n=0,r=0,e=0,o={read:function(){for(;e<8;){if(n>=i.length){if(0==e)return-1;throw"unexpected end of file./"+e}var t=i.charAt(n);if(n+=1,"="==t)return e=0,-1;t.match(/^\s$/)||(r=r<<6|s(t.charCodeAt(0)),e+=6)}var o=r>>>e-8&255;return e-=8,o}},s=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,i,n){for(var r=function(t,i){var n=t,r=i,e=new Array(t*i),o={setPixel:function(t,i,r){e[i*n+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(n),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(n),t.writeShort(r),t.writeByte(0);var i=s(2);t.writeByte(2);for(var e=0;i.length-e>255;)t.writeByte(255),t.writeBytes(i,e,255),e+=255;t.writeByte(i.length-e),t.writeBytes(i,e,i.length-e),t.writeByte(0),t.writeString(";")}},s=function(t){for(var i=1<<t,n=1+(1<<t),r=t+1,o=a(),s=0;s<i;s+=1)o.add(String.fromCharCode(s));o.add(String.fromCharCode(i)),o.add(String.fromCharCode(n));var l,c,h,u=v(),f=(l=u,c=0,h=0,{write:function(t,i){if(t>>>i!=0)throw"length over";for(;c+i>=8;)l.writeByte(255&(t<<c|h)),i-=8-c,t>>>=8-c,h=0,c=0;h|=t<<c,c+=i},flush:function(){c>0&&l.writeByte(h)}});f.write(i,r);var d=0,C=String.fromCharCode(e[d]);for(d+=1;d<e.length;){var p=String.fromCharCode(e[d]);d+=1,o.contains(C+p)?C+=p:(f.write(o.indexOf(C),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(C+p)),C=p)}return f.write(o.indexOf(C),r),f.write(n,r),f.flush(),u.toByteArray()},a=function(){var t={},i=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;t[r]=i,i+=1},size:function(){return i},indexOf:function(i){return t[i]},contains:function(i){return void 0!==t[i]}};return n};return o}(t,i),e=0;e<i;e+=1)for(var o=0;o<t;o+=1)r.setPixel(o,e,n(o,e));var s=v();r.write(s);for(var a=function(){var t=0,i=0,n=0,r="",e={},o=function(t){r+=String.fromCharCode(s(63&t))},s=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,i+=8,n+=1;i>=6;)o(t>>>i-6),i-=6},e.flush=function(){if(i>0&&(o(t<<6-i),t=0,i=0),n%3!=0)for(var e=3-n%3,s=0;s<e;s+=1)r+="="},e.toString=function(){return r},e}(),l=s.toByteArray(),c=0;c<l.length;c+=1)a.writeByte(l[c]);return a.flush(),"data:image/gif;base64,"+a};return t}();e.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var i=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?i.push(r):r<2048?i.push(192|r>>6,128|63&r):r<55296||r>=57344?i.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),i.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return i}(t)},void 0===(r="function"==typeof(n=function(){return e})?n.apply(i,[]):n)||(t.exports=r)},676:(t,i,n)=>{n.d(i,{default:()=>z});var r=function(){return(r=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)},e=function(){for(var t=0,i=0,n=arguments.length;i<n;i++)t+=arguments[i].length;var r=Array(t),e=0;for(i=0;i<n;i++)for(var o=arguments[i],s=0,a=o.length;s<a;s++,e++)r[e]=o[s];return r},o=function(t){return!!t&&"object"==typeof t&&!Array.isArray(t)};function s(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(!i.length)return t;var a=i.shift();return void 0!==a&&o(t)&&o(a)?(t=r({},t),Object.keys(a).forEach((function(i){var n=t[i],r=a[i];Array.isArray(n)&&Array.isArray(r)?t[i]=r:o(n)&&o(r)?t[i]=s(Object.assign({},n),r):t[i]=r})),s.apply(void 0,e([t],i))):t}function a(t,i){var n=document.createElement("a");n.download=i,n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function l(t){return i=this,n=void 0,e=function(){return function(t,i){var n,r,e,o,s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=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 s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((e=(e=s.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){s.label=o[1];break}if(6===o[0]&&s.label<e[1]){s.label=e[1],e=o;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(o);break}e[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],r=0}finally{n=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(i){return[2,new Promise((function(i){var n=new XMLHttpRequest;n.onload=function(){var t=new FileReader;t.onloadend=function(){i(t.result)},t.readAsDataURL(n.response)},n.open("GET",t),n.responseType="blob",n.send()}))]}))},new((r=void 0)||(r=Promise))((function(t,o){function s(t){try{l(e.next(t))}catch(t){o(t)}}function a(t){try{l(e.throw(t))}catch(t){o(t)}}function l(i){var n;i.done?t(i.value):(n=i.value,n instanceof r?n:new r((function(t){t(n)}))).then(s,a)}l((e=e.apply(i,n||[])).next())}));var i,n,r,e}const c={L:.07,M:.15,Q:.25,H:.3};var h=function(){return(h=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)};const u=function(){function t(t){var i=t.svg,n=t.type;this._svg=i,this._type=n}return t.prototype.draw=function(t,i,n,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:i,size:n,getNeighbor:r})},t.prototype._rotateFigure=function(t){var i,n=t.x,r=t.y,e=t.size,o=t.rotation,s=void 0===o?0:o,a=n+e/2,l=r+e/2;(0,t.draw)(),null===(i=this._element)||void 0===i||i.setAttribute("transform","rotate("+180*s/Math.PI+","+a+","+l+")")},t.prototype._basicDot=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),i._element.setAttribute("cx",String(r+n/2)),i._element.setAttribute("cy",String(e+n/2)),i._element.setAttribute("r",String(n/2))}}))},t.prototype._basicSquare=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),i._element.setAttribute("x",String(r)),i._element.setAttribute("y",String(e)),i._element.setAttribute("width",String(n)),i._element.setAttribute("height",String(n))}}))},t.prototype._basicSideRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("d","M "+r+" "+e+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},t.prototype._basicCornerRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("d","M "+r+" "+e+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},t.prototype._basicCornerExtraRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("d","M "+r+" "+e+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},t.prototype._basicCornersRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(h(h({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("d","M "+r+" "+e+"v "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+n/2+" "+n/2+"h "+n/2+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},t.prototype._drawDot=function(t){var i=t.x,n=t.y,r=t.size;this._basicDot({x:i,y:n,size:r,rotation:0})},t.prototype._drawSquare=function(t){var i=t.x,n=t.y,r=t.size;this._basicSquare({x:i,y:n,size:r,rotation:0})},t.prototype._drawRounded=function(t){var i=t.x,n=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,s=e?+e(1,0):0,a=e?+e(0,-1):0,l=e?+e(0,1):0,c=o+s+a+l;if(0!==c)if(c>2||o&&s||a&&l)this._basicSquare({x:i,y:n,size:r,rotation:0});else{if(2===c){var h=0;return o&&a?h=Math.PI/2:a&&s?h=Math.PI:s&&l&&(h=-Math.PI/2),void this._basicCornerRounded({x:i,y:n,size:r,rotation:h})}if(1===c)return h=0,a?h=Math.PI/2:s?h=Math.PI:l&&(h=-Math.PI/2),void this._basicSideRounded({x:i,y:n,size:r,rotation:h})}else this._basicDot({x:i,y:n,size:r,rotation:0})},t.prototype._drawExtraRounded=function(t){var i=t.x,n=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,s=e?+e(1,0):0,a=e?+e(0,-1):0,l=e?+e(0,1):0,c=o+s+a+l;if(0!==c)if(c>2||o&&s||a&&l)this._basicSquare({x:i,y:n,size:r,rotation:0});else{if(2===c){var h=0;return o&&a?h=Math.PI/2:a&&s?h=Math.PI:s&&l&&(h=-Math.PI/2),void this._basicCornerExtraRounded({x:i,y:n,size:r,rotation:h})}if(1===c)return h=0,a?h=Math.PI/2:s?h=Math.PI:l&&(h=-Math.PI/2),void this._basicSideRounded({x:i,y:n,size:r,rotation:h})}else this._basicDot({x:i,y:n,size:r,rotation:0})},t.prototype._drawClassy=function(t){var i=t.x,n=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,s=e?+e(1,0):0,a=e?+e(0,-1):0,l=e?+e(0,1):0;0!==o+s+a+l?o||a?s||l?this._basicSquare({x:i,y:n,size:r,rotation:0}):this._basicCornerRounded({x:i,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:i,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:i,y:n,size:r,rotation:Math.PI/2})},t.prototype._drawClassyRounded=function(t){var i=t.x,n=t.y,r=t.size,e=t.getNeighbor,o=e?+e(-1,0):0,s=e?+e(1,0):0,a=e?+e(0,-1):0,l=e?+e(0,1):0;0!==o+s+a+l?o||a?s||l?this._basicSquare({x:i,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:i,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:i,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:i,y:n,size:r,rotation:Math.PI/2})},t}();var f=function(){return(f=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)};const d=function(){function t(t){var i=t.svg,n=t.type;this._svg=i,this._type=n}return t.prototype.draw=function(t,i,n,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:i,size:n,rotation:r})},t.prototype._rotateFigure=function(t){var i,n=t.x,r=t.y,e=t.size,o=t.rotation,s=void 0===o?0:o,a=n+e/2,l=r+e/2;(0,t.draw)(),null===(i=this._element)||void 0===i||i.setAttribute("transform","rotate("+180*s/Math.PI+","+a+","+l+")")},t.prototype._basicDot=function(t){var i=this,n=t.size,r=t.x,e=t.y,o=n/7;this._rotateFigure(f(f({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("clip-rule","evenodd"),i._element.setAttribute("d","M "+(r+n/2)+" "+e+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(n/2-o)+" "+(n/2-o)+" 0 1 1 -0.1 0Z")}}))},t.prototype._basicSquare=function(t){var i=this,n=t.size,r=t.x,e=t.y,o=n/7;this._rotateFigure(f(f({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("clip-rule","evenodd"),i._element.setAttribute("d","M "+r+" "+e+"v "+n+"h "+n+"v "+-n+"zM "+(r+o)+" "+(e+o)+"h "+(n-2*o)+"v "+(n-2*o)+"h "+(2*o-n)+"z")}}))},t.prototype._basicExtraRounded=function(t){var i=this,n=t.size,r=t.x,e=t.y,o=n/7;this._rotateFigure(f(f({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","path"),i._element.setAttribute("clip-rule","evenodd"),i._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 i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicDot({x:i,y:n,size:r,rotation:e})},t.prototype._drawSquare=function(t){var i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicSquare({x:i,y:n,size:r,rotation:e})},t.prototype._drawExtraRounded=function(t){var i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicExtraRounded({x:i,y:n,size:r,rotation:e})},t}();var C=function(){return(C=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)};const p=function(){function t(t){var i=t.svg,n=t.type;this._svg=i,this._type=n}return t.prototype.draw=function(t,i,n,r){var e;switch(this._type){case"square":e=this._drawSquare;break;case"dot":default:e=this._drawDot}e.call(this,{x:t,y:i,size:n,rotation:r})},t.prototype._rotateFigure=function(t){var i,n=t.x,r=t.y,e=t.size,o=t.rotation,s=void 0===o?0:o,a=n+e/2,l=r+e/2;(0,t.draw)(),null===(i=this._element)||void 0===i||i.setAttribute("transform","rotate("+180*s/Math.PI+","+a+","+l+")")},t.prototype._basicDot=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(C(C({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),i._element.setAttribute("cx",String(r+n/2)),i._element.setAttribute("cy",String(e+n/2)),i._element.setAttribute("r",String(n/2))}}))},t.prototype._basicSquare=function(t){var i=this,n=t.size,r=t.x,e=t.y;this._rotateFigure(C(C({},t),{draw:function(){i._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),i._element.setAttribute("x",String(r)),i._element.setAttribute("y",String(e)),i._element.setAttribute("width",String(n)),i._element.setAttribute("height",String(n))}}))},t.prototype._drawDot=function(t){var i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicDot({x:i,y:n,size:r,rotation:e})},t.prototype._drawSquare=function(t){var i=t.x,n=t.y,r=t.size,e=t.rotation;this._basicSquare({x:i,y:n,size:r,rotation:e})},t}(),v="circle";var g=function(t,i,n,r){return new(n||(n=Promise))((function(e,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(s,a)}l((r=r.apply(t,i||[])).next())}))},w=function(t,i){var n,r,e,o,s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=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 s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((e=(e=s.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){s.label=o[1];break}if(6===o[0]&&s.label<e[1]){s.label=e[1],e=o;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(o);break}e[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],r=0}finally{n=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},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 i,n,r,e,o,s,a,l,h,u,f=this;return w(this,(function(d){switch(d.label){case 0:return i=t.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===v?n/Math.sqrt(2):n,e=Math.floor(r/i),o={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(d.sent(),!this._image)return[2];s=this._options,a=s.imageOptions,l=s.qrOptions,h=a.imageSize*c[l.errorCorrectionLevel],u=Math.floor(h*i*i),o=function(t){var i=t.originalHeight,n=t.originalWidth,r=t.maxHiddenDots,e=t.maxHiddenAxisDots,o=t.dotSize,s={x:0,y:0},a={x:0,y:0};if(i<=0||n<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var l=i/n;return s.x=Math.floor(Math.sqrt(r/l)),s.x<=0&&(s.x=1),e&&e<s.x&&(s.x=e),s.x%2==0&&s.x--,a.x=s.x*o,s.y=1+2*Math.ceil((s.x*l-1)/2),a.y=Math.round(a.x*l),(s.y*s.x>r||e&&e<s.y)&&(e&&e<s.y?(s.y=e,s.y%2==0&&s.x--):s.y-=2,a.y=s.y*o,s.x=1+2*Math.ceil((s.y/l-1)/2),a.x=Math.round(a.y/l)),{height:a.y,width:a.x,hideYDots:s.y,hideXDots:s.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:u,maxHiddenAxisDots:i-14,dotSize:e}),d.label=2;case 2:return this.drawBackground(),this.drawDots((function(t,n){var r,e,s,a,l,c;return!(f._options.imageOptions.hideBackgroundDots&&t>=(i-o.hideXDots)/2&&t<(i+o.hideXDots)/2&&n>=(i-o.hideYDots)/2&&n<(i+o.hideYDots)/2||(null===(r=b[t])||void 0===r?void 0:r[n])||(null===(e=b[t-i+7])||void 0===e?void 0:e[n])||(null===(s=b[t])||void 0===s?void 0:s[n-i+7])||(null===(a=x[t])||void 0===a?void 0:a[n])||(null===(l=x[t-i+7])||void 0===l?void 0:l[n])||(null===(c=x[t])||void 0===c?void 0:c[n-i+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:i,dotSize:e})]:[3,4];case 3:d.sent(),d.label=4;case 4:return[2]}}))}))},t.prototype.drawBackground=function(){var t,i,n,r=this._element,e=this._options;if(r){var o=null===(t=e.backgroundOptions)||void 0===t?void 0:t.gradient,s=null===(i=e.backgroundOptions)||void 0===i?void 0:i.color;if((o||s)&&this._createColor({options:o,color:s,additionalRotation:0,x:0,y:0,height:e.height,width:e.width,name:"background-color"}),null===(n=e.backgroundOptions)||void 0===n?void 0:n.round){var a=Math.min(e.width,e.height),l=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),l.setAttribute("x",String((e.width-a)/2)),l.setAttribute("y",String((e.height-a)/2)),l.setAttribute("width",String(a)),l.setAttribute("height",String(a)),l.setAttribute("rx",String(a/2*e.backgroundOptions.round)),this._backgroundClipPath.appendChild(l)}}},t.prototype.drawDots=function(t){var i,n,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 s=Math.min(e.width,e.height)-2*e.margin,a=e.shape===v?s/Math.sqrt(2):s,l=Math.floor(a/o),c=Math.floor((e.width-o*l)/2),h=Math.floor((e.height-o*l)/2),f=new u({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===(i=e.dotsOptions)||void 0===i?void 0:i.gradient,color:e.dotsOptions.color,additionalRotation:0,x:0,y:0,height:e.height,width:e.width,name:"dot-color"});for(var d=function(i){for(var e=function(e){return t&&!t(i,e)?"continue":(null===(n=C._qr)||void 0===n?void 0:n.isDark(i,e))?(f.draw(c+i*l,h+e*l,l,(function(n,s){return!(i+n<0||e+s<0||i+n>=o||e+s>=o)&&!(t&&!t(i+n,e+s))&&!!r._qr&&r._qr.isDark(i+n,e+s)})),void(f._element&&C._dotsClipPath&&C._dotsClipPath.appendChild(f._element))):"continue"},s=0;s<o;s++)e(s)},C=this,p=0;p<o;p++)d(p);if(e.shape===v){var g=Math.floor((s/l-o)/2),w=o+2*g,b=c-g*l,x=h-g*l,m=[],M=Math.floor(w/2);for(p=0;p<w;p++){m[p]=[];for(var y=0;y<w;y++)p>=g-1&&p<=w-g&&y>=g-1&&y<=w-g||Math.sqrt((p-M)*(p-M)+(y-M)*(y-M))>M?m[p][y]=0:m[p][y]=this._qr.isDark(y-2*g<0?y:y>=o?y-2*g:y-g,p-2*g<0?p:p>=o?p-2*g:p-g)?1:0}var k=function(t){for(var i=function(i){if(!m[t][i])return"continue";f.draw(b+t*l,x+i*l,l,(function(n,r){var e;return!!(null===(e=m[t+n])||void 0===e?void 0:e[i+r])})),f._element&&L._dotsClipPath&&L._dotsClipPath.appendChild(f._element)},n=0;n<w;n++)i(n)},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 i=this._element,n=this._options;if(!i)throw"Element code is not defined";var r=this._qr.getModuleCount(),e=Math.min(n.width,n.height)-2*n.margin,o=n.shape===v?e/Math.sqrt(2):e,s=Math.floor(o/r),a=7*s,l=3*s,c=Math.floor((n.width-r*s)/2),h=Math.floor((n.height-r*s)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(i){var e,o,f,C,v,g,w,m,M,y,k,L,Z=i[0],H=i[1],V=i[2],_=c+Z*s*(r-7),B=h+H*s*(r-7),F=t._dotsClipPath,S=t._dotsClipPath;if(((null===(e=n.cornersSquareOptions)||void 0===e?void 0:e.gradient)||(null===(o=n.cornersSquareOptions)||void 0===o?void 0:o.color))&&((F=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Z+"-"+H),t._defs.appendChild(F),t._cornersSquareClipPath=t._cornersDotClipPath=S=F,t._createColor({options:null===(f=n.cornersSquareOptions)||void 0===f?void 0:f.gradient,color:null===(C=n.cornersSquareOptions)||void 0===C?void 0:C.color,additionalRotation:V,x:_,y:B,height:a,width:a,name:"corners-square-color-"+Z+"-"+H})),null===(v=n.cornersSquareOptions)||void 0===v?void 0:v.type){var z=new d({svg:t._element,type:n.cornersSquareOptions.type});z.draw(_,B,a,V),z._element&&F&&F.appendChild(z._element)}else for(var E=new u({svg:t._element,type:n.dotsOptions.type}),P=function(t){for(var i=function(i){if(!(null===(g=b[t])||void 0===g?void 0:g[i]))return"continue";E.draw(_+t*s,B+i*s,s,(function(n,r){var e;return!!(null===(e=b[t+n])||void 0===e?void 0:e[i+r])})),E._element&&F&&F.appendChild(E._element)},n=0;n<b[t].length;n++)i(n)},A=0;A<b.length;A++)P(A);if(((null===(w=n.cornersDotOptions)||void 0===w?void 0:w.gradient)||(null===(m=n.cornersDotOptions)||void 0===m?void 0:m.color))&&((S=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Z+"-"+H),t._defs.appendChild(S),t._cornersDotClipPath=S,t._createColor({options:null===(M=n.cornersDotOptions)||void 0===M?void 0:M.gradient,color:null===(y=n.cornersDotOptions)||void 0===y?void 0:y.color,additionalRotation:V,x:_+2*s,y:B+2*s,height:l,width:l,name:"corners-dot-color-"+Z+"-"+H})),null===(k=n.cornersDotOptions)||void 0===k?void 0:k.type){var D=new p({svg:t._element,type:n.cornersDotOptions.type});D.draw(_+2*s,B+2*s,l,V),D._element&&S&&S.appendChild(D._element)}else{E=new u({svg:t._element,type:n.dotsOptions.type});var O=function(t){for(var i=function(i){if(!(null===(L=x[t])||void 0===L?void 0:L[i]))return"continue";E.draw(_+t*s,B+i*s,s,(function(n,r){var e;return!!(null===(e=x[t+n])||void 0===e?void 0:e[i+r])})),E._element&&S&&S.appendChild(E._element)},n=0;n<x[t].length;n++)i(n)};for(A=0;A<x.length;A++)O(A)}}))},t.prototype.loadImage=function(){var t=this;return new Promise((function(i,n){var r=t._options,e=new Image;if(!r.image)return n("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(e.crossOrigin=r.imageOptions.crossOrigin),t._image=e,e.onload=function(){i()},e.src=r.image}))},t.prototype.drawImage=function(t){var i=t.width,n=t.height,r=t.count,e=t.dotSize;return g(this,void 0,void 0,(function(){var t,o,s,a,c,h,u,f,d;return w(this,(function(C){switch(C.label){case 0:return t=this._options,o=Math.floor((t.width-r*e)/2),s=Math.floor((t.height-r*e)/2),a=o+t.imageOptions.margin+(r*e-i)/2,c=s+t.imageOptions.margin+(r*e-n)/2,h=i-2*t.imageOptions.margin,u=n-2*t.imageOptions.margin,(f=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(a)),f.setAttribute("y",String(c)),f.setAttribute("width",h+"px"),f.setAttribute("height",u+"px"),[4,l(t.image||"")];case 1:return d=C.sent(),f.setAttribute("href",d||""),this._element.appendChild(f),[2]}}))}))},t.prototype._createColor=function(t){var i=t.options,n=t.color,r=t.additionalRotation,e=t.x,o=t.y,s=t.height,a=t.width,l=t.name,c=a>s?a:s,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(s)),h.setAttribute("width",String(a)),h.setAttribute("clip-path","url('#clip-path-"+l+"')"),i){var u;if("radial"===i.type)(u=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",l),u.setAttribute("gradientUnits","userSpaceOnUse"),u.setAttribute("fx",String(e+a/2)),u.setAttribute("fy",String(o+s/2)),u.setAttribute("cx",String(e+a/2)),u.setAttribute("cy",String(o+s/2)),u.setAttribute("r",String(c/2));else{var f=((i.rotation||0)+r)%(2*Math.PI),d=(f+2*Math.PI)%(2*Math.PI),C=e+a/2,p=o+s/2,v=e+a/2,g=o+s/2;d>=0&&d<=.25*Math.PI||d>1.75*Math.PI&&d<=2*Math.PI?(C-=a/2,p-=s/2*Math.tan(f),v+=a/2,g+=s/2*Math.tan(f)):d>.25*Math.PI&&d<=.75*Math.PI?(p-=s/2,C-=a/2/Math.tan(f),g+=s/2,v+=a/2/Math.tan(f)):d>.75*Math.PI&&d<=1.25*Math.PI?(C+=a/2,p+=s/2*Math.tan(f),v-=a/2,g-=s/2*Math.tan(f)):d>1.25*Math.PI&&d<=1.75*Math.PI&&(p+=s/2,C+=a/2/Math.tan(f),g-=s/2,v-=a/2/Math.tan(f)),(u=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",l),u.setAttribute("gradientUnits","userSpaceOnUse"),u.setAttribute("x1",String(Math.round(C))),u.setAttribute("y1",String(Math.round(p))),u.setAttribute("x2",String(Math.round(v))),u.setAttribute("y2",String(Math.round(g)))}i.colorStops.forEach((function(t){var i=t.offset,n=t.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*i+"%"),r.setAttribute("stop-color",n),u.appendChild(r)})),h.setAttribute("fill","url('#"+l+"')"),this._defs.appendChild(u)}else n&&h.setAttribute("fill",n);this._element.appendChild(h)},t}(),M="canvas";for(var y={},k=0;k<=40;k++)y[k]=k;const L={type:M,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:y[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 Z=function(){return(Z=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)};function H(t){var i=Z({},t);if(!i.colorStops||!i.colorStops.length)throw"Field 'colorStops' is required in gradient";return i.rotation?i.rotation=Number(i.rotation):i.rotation=0,i.colorStops=i.colorStops.map((function(t){return Z(Z({},t),{offset:Number(t.offset)})})),i}function V(t){var i=Z({},t);return i.width=Number(i.width),i.height=Number(i.height),i.margin=Number(i.margin),i.imageOptions=Z(Z({},i.imageOptions),{hideBackgroundDots:Boolean(i.imageOptions.hideBackgroundDots),imageSize:Number(i.imageOptions.imageSize),margin:Number(i.imageOptions.margin)}),i.margin>Math.min(i.width,i.height)&&(i.margin=Math.min(i.width,i.height)),i.dotsOptions=Z({},i.dotsOptions),i.dotsOptions.gradient&&(i.dotsOptions.gradient=H(i.dotsOptions.gradient)),i.cornersSquareOptions&&(i.cornersSquareOptions=Z({},i.cornersSquareOptions),i.cornersSquareOptions.gradient&&(i.cornersSquareOptions.gradient=H(i.cornersSquareOptions.gradient))),i.cornersDotOptions&&(i.cornersDotOptions=Z({},i.cornersDotOptions),i.cornersDotOptions.gradient&&(i.cornersDotOptions.gradient=H(i.cornersDotOptions.gradient))),i.backgroundOptions&&(i.backgroundOptions=Z({},i.backgroundOptions),i.backgroundOptions.gradient&&(i.backgroundOptions.gradient=H(i.backgroundOptions.gradient))),i}var _=n(192),B=n.n(_),F=function(t,i,n,r){return new(n||(n=Promise))((function(e,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(s,a)}l((r=r.apply(t,i||[])).next())}))},S=function(t,i){var n,r,e,o,s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=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 s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((e=(e=s.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){s.label=o[1];break}if(6===o[0]&&s.label<e[1]){s.label=e[1],e=o;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(o);break}e[2]&&s.ops.pop(),s.trys.pop();continue}o=i.call(t,s)}catch(t){o=[6,t],r=0}finally{n=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};const z=function(){function t(t){this._options=t?V(s(L,t)):L,this.update()}return t._clearContainer=function(t){t&&(t.innerHTML="")},t.prototype._setupSvg=function(){var t=this;if(this._qr){var i=new m(this._options);this._svg=i.getElement(),this._svgDrawingPromise=i.drawQR(this._qr).then((function(){var n;t._svg&&(null===(n=t._extension)||void 0===n||n.call(t,i.getElement(),t._options))}))}},t.prototype._setupCanvas=function(){var t,i=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(i._svg){var t=i._svg,n=(new XMLSerializer).serializeToString(t),r="data:image/svg+xml;base64,"+btoa(n),e=new Image;return new Promise((function(t){e.onload=function(){var n,r;null===(r=null===(n=i._canvas)||void 0===n?void 0:n.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"),F(this,void 0,void 0,(function(){return S(this,(function(i){switch(i.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 i.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return i.sent(),[2,this._canvas]}}))}))},t.prototype.update=function(i){t._clearContainer(this._container),this._options=i?V(s(this._options,i)):this._options,this._options.data&&(this._qr=B()(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===M?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===M?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"),F(this,void 0,void 0,(function(){var i,n,r;return S(this,(function(e){switch(e.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(t)];case 1:return(i=e.sent())?"svg"===t.toLowerCase()?(n=new XMLSerializer,r=n.serializeToString(i),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return i.toBlob(n,"image/"+t,1)}))]:[2,null]}}))}))},t.prototype.download=function(t){return F(this,void 0,void 0,(function(){var i,n,r,e,o;return S(this,(function(s){switch(s.label){case 0:if(!this._qr)throw"QR code is empty";return i="png",n="qr","string"==typeof t?(i=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&&(n=t.name),t.extension&&(i=t.extension)),[4,this._getElement(i)];case 1:return(r=s.sent())?("svg"===i.toLowerCase()?(e=new XMLSerializer,o='<?xml version="1.0" standalone="no"?>\r\n'+(o=e.serializeToString(r)),a("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):a(r.toDataURL("image/"+i),n+"."+i),[2]):[2]}}))}))},t}()}},i={};function n(r){if(i[r])return i[r].exports;var e=i[r]={exports:{}};return t[r](e,e.exports,n),e.exports}return n.n=t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return n.d(i,{a:i}),i},n.d=(t,i)=>{for(var r in i)n.o(i,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},n.o=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),n(676)})().default}))})(cl);const hl=s(cl.exports);const ul=":host{--qr-color:var(--cpsl-color-qr-fill);--qr-background-color:var(--cpsl-color-qr-background);--qr-border-color:var(--cpsl-color-qr-border);--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 fl=ul;const dl=class{constructor(i){t(this,i);this.url=undefined;this.imageSrc=undefined;this.size=250}componentDidLoad(){const t=this.el.shadowRoot.getElementById("qr-container");t.innerHTML="";const i=new hl({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"}});i.append(t)}render(){return i(n,{key:"5d582e113aff18956f54928d914685e1bef923a6"},i("div",{key:"5a81f7e78bf5263b1409c3ba348694acbee6b49a",id:"qr-container",class:"qr-container"}))}get el(){return e(this)}};dl.style=fl;const Cl=":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-slideButton-slider-container-start-background);--slider-container-end-background-color:var(--cpsl-color-slideButton-slider-container-end-background);--slider-container-start-border-color:var(--cpsl-color-slideButton-slider-container-start-border);--slider-container-end-border-color:var(--cpsl-color-slideButton-slider-container-end-border);--slider-border-width:1px;--slider-box-shadow:3px 0px 4px 0px var(--cpsl-color-alpha-black-16);--slider-border-color:var(--cpsl-color-slideButton-slider-border);--slider-background-color:var(--cpsl-color-slideButton-slider-background);--slider-color:var(--cpsl-color-slideButton-slider-text);--start-text-color:var(--cpsl-color-slideButton-start-text);--end-text-color:var(--cpsl-color-slideButton-end-text);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-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);border-color:var(--slider-container-start-border-color);opacity:100%}.end-slider-container-background{background-color:var(--slider-container-end-background-color);border-color:var(--slider-container-end-border-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)}.start-text.disabled{left:0;width:100%}.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);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)}.slider.disabled{visibility:hidden}";const pl=Cl;const vl=class{constructor(i){t(this,i);this.cpslComplete=r(this,"cpslComplete",7);this.disabled=undefined;this.endIcon=undefined;this.endText=undefined;this.startIcon=undefined;this.startText=undefined}componentDidLoad(){this.dragElement(this.el.shadowRoot.getElementById("slider"))}dragElement(t){const i=i=>{b=i.clientX;switch(i.pointerType){case"mouse":t.onmousedown=n;break;default:t.ontouchstart=r}};const n=t=>{t.preventDefault();b=t.clientX;document.onmouseup=a;document.onmousemove=e};const r=t=>{t.preventDefault();const i=t.targetTouches[0];b=i.clientX;document.ontouchend=a;document.ontouchmove=o};const e=t=>{t.preventDefault();w=b-t.clientX;b=t.clientX;s(w)};const o=t=>{t.preventDefault();const i=t.targetTouches[0];w=b-i.clientX;b=i.clientX;s(w)};const s=i=>{const n=t.offsetLeft-i;if(n>=v&&n<=g){const i=Math.max(Math.min(Math.round(n/g*100)/100,100),0);h.style.opacity=`${(1-i*2)*100}%`;u.style.opacity=`${i*100}%`;l.style.opacity=`${(1-i*2)*100}%`;c.style.opacity=`${i*100}%`;f.style.opacity=`${i*100}%`;t.style.left=`${n}px`}};const a=()=>{if(t.offsetLeft+p>=C-p/2){t.style.left=`${g}px`;h.style.opacity="0%";u.style.opacity="100%";l.style.opacity="0%";c.style.opacity="100%";f.style.opacity="100%";this.cpslComplete.emit(true)}else{t.style.left=`${v}px`;h.style.opacity="100%";u.style.opacity="0%";l.style.opacity="100%";c.style.opacity="0%";f.style.opacity="0%"}document.onmouseup=null;document.onmousemove=null;document.ontouchend=null;document.ontouchmove=null};const l=this.startIconEl;const c=this.endIconEl;const h=this.startTextEl;const u=this.endTextEl;const f=this.endBackgroundEl;const d=this.sliderContainerEl;const C=d.clientWidth;const p=t.getBoundingClientRect().height;const v=1;const g=C-p-1;let w=0,b=0;t.onpointerdown=i}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 i(n,{key:"d01cbdfa0b7e8f17ebb3a1f7ba49aded0ec70de6"},i("div",{key:"37fd16cc1f2d7fb26929438a382f0684195d16f9",id:"slider-container",class:"slider-container"},i("div",{key:"2504155ec8fb97a2daea8c1856db4332edf69fd4",id:"start-slider-container-background",class:{"start-slider-container-background":true,"slider-container-background":true}}),i("div",{key:"475d235f0c1ea7ac8551c81cf94ca0dd657d3d74",id:"end-slider-container-background",class:{"end-slider-container-background":true,"slider-container-background":true}}),i("div",{key:"c534e20d7d609392ef2f52e20b7b66a3cbb2d207",id:"slider",class:{slider:true,disabled:this.disabled}},i("cpsl-icon",{key:"76ea202fba460ab3083ba48e673582bf37440544",id:"start-icon",class:{"start-icon":true,icon:true},icon:this.startIcon}),i("cpsl-icon",{key:"dd92b0769644334cdba131523099cabc49b6f4e9",id:"end-icon",class:{"end-icon":true,icon:true},icon:this.endIcon})),i("span",{key:"97ff537baacce0bc3a2c31cc25fefc6078015f54",id:"start-text",class:{"start-text":true,disabled:this.disabled}},this.startText),i("span",{key:"c51e4d97e30e6b03adcf9fb9567a75f865822c9d",id:"end-text",class:"end-text"},this.endText)))}get el(){return e(this)}};vl.style=pl;const gl=":host{--path-color:var(--cpsl-color-spinner-path);--circle-color:var(--cpsl-color-spinner-circle);display:flex;justify-content:center;align-items:center}:host path{stroke:var(--path-color)}:host circle{fill:var(--circle-color)}";const wl=gl;const bl=class{constructor(i){t(this,i);this.size=54;this.speed=1}render(){return i(n,{key:"ccfa5727ea42f54e265ed2fc40632c608485a980",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`}},i("svg",{key:"507b1f733ae8bdf6d53966b1b64d687911f7c8a3",height:this.size,width:this.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 54 54",fill:"none"},i("path",{key:"ea462771d440975eea28cc13f2eb787c827746be",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"}),i("circle",{key:"1e60ac891f97076ad558fb83f51c552f34626370",cx:"45",cy:"27",r:"5"})))}};bl.style=wl;const xl=":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 ml=xl;const Ml=class{constructor(i){t(this,i);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 i=t.target;const n=this.el.parentElement;if(t.composedPath().includes(n)||(i===null||i===void 0?void 0:i.contains(this.el))){this.selected=this.tab===t.detail.tab}}render(){return i(n,{key:"482701b2915c5e5e30c3ee8c13ef35ef4c7cfcb8",onClick:this.onTabClicked},i("div",{key:"583db91ddbbf32225880b03d8521b117a85f5bf1",class:{"tab-container":true}},i("slot",{key:"a1596c1858376a41ee72d4133966fd7ed75e79c0"})))}get el(){return e(this)}};Ml.style=ml;const yl=":host{--tab-top-padding:5px;--tab-bottom-padding:5px;--tab-left-padding:16px;--tab-right-padding:16px;--tabs-border-radius:var(--cpsl-border-radius-tabs);--tabs-font-size:12px;--tabs-line-height:24px;--tabs-border-width:1px;--tabs-border-color:var(--cpsl-color-tabs-border);--tabs-background-color:var(--cpsl-color-tabs-background);--slider-background-color:var(--cpsl-color-tabs-slider-background);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(--tabs-border-width);border-style:solid;border-color:var(--tabs-border-color);border-radius:var(--tabs-border-radius);background-color:var(--tabs-background-color);font-size:var(--tabs-font-size);line-height:var(--tabs-line-height);-ms-overflow-style:none;scrollbar-width:none}.tabs-container::-webkit-scrollbar{display:none}.slider{position:absolute;top:calc(var(--tabs-border-width) * -1);bottom:calc(var(--tabs-border-width) * -1);left:-1px;border-width:var(--tabs-border-width);border-style:solid;border-color:var(--tabs-border-color);border-radius:var(--tabs-border-radius);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 kl=yl;const Ll=class{constructor(i){t(this,i);this.cpslTabsChanged=r(this,"cpslTabsChanged",7);this.cpslTabsInit=r(this,"cpslTabsInit",7);this.onTabClicked=t=>{const{tab:i}=t.detail;if(i!==this.selectedTab){this.selectedTabRect=Zl(this.tabs,i).getBoundingClientRect();this.cpslTabsChanged.emit({tab:i})}};this.selectedTabRect=undefined;this.loaded=false;this.fullWidth=undefined;this.selectedTab=undefined}updateSlider(){setTimeout((()=>{this.selectedTabRect=Zl(this.tabs,this.selectedTab).getBoundingClientRect()}),50)}updateTab(t,i){if(Boolean(t)&&!Boolean(i)){this.selectedTabRect=Zl(this.tabs,this.selectedTab).getBoundingClientRect()}}componentWillLoad(){var t,i;this.selectedTabRect=(i=(t=Zl(this.tabs,this.selectedTab))===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&i!==void 0?i:{width:0,x:0};this.cpslTabsInit.emit({tab:this.selectedTab})}componentDidLoad(){var t,i;this.selectedTabRect=(i=(t=Zl(this.tabs,this.selectedTab))===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&i!==void 0?i:{width:0,x:0};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("--tabs-border-width").slice(0,-2);const e=this.selectedTabRect;return i(n,{key:"db244b5a0ed262508ff5e5ca45e8f61cfcd6df35",class:{"full-width":this.fullWidth},onCpslTabButtonClick:this.onTabClicked},i("div",{key:"9acd1dcaab946f97d68d5fe625859c245b6fbebc",class:"tabs-container"},i("slot",{key:"6e58a5354af8118118773c9a296f06b90067d416"}),i("div",{key:"87a9977e13ccc5b3993d459284ce4dc886eb1103",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"],selectedTab:["updateTab"]}}};const Zl=(t,i)=>{const n=typeof i==="string"?t.find((t=>t.tab===i)):i;return n};Ll.style=kl;const Hl=":host{font-family:var(--cpsl-font-family, inherit);color:var(--cpsl-color-text-primary)}";const Vl=Hl;const _l=class{constructor(i){t(this,i)}render(){return i(n,{key:"14b6b911fe1c66fa0dbc118207755123110fd85a"},i("slot",{key:"ebf8c3b818cc85fd06bc4feb3d7c2b21818fcc9c"}))}};_l.style=Vl;const Bl=":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)}:host :active{--button-background-color:var(--cpsl-color-tile-button-surface-pressed)}.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 Fl=Bl;const Sl=class{constructor(i){t(this,i);this.src=undefined;this.icon=undefined}render(){return i(n,{key:"f86ee8387b40817115e680cad78b3cab4af7b35f"},i("button",{key:"7fa11eeed97fd89c8d5640cb270403c6bab8cda1",class:"button-native"},i("cpsl-icon",{key:"0b605c0839dd930cc97a70fd867619929c3ce5af",exportparts:"icon",src:this.src,icon:this.icon}),i("slot",{key:"8c3fe5d96e1443cd7a454589cdb279a684773a83"})))}};Sl.style=Fl;export{kt as cpsl_alert,Ht as cpsl_button,Bt as cpsl_code_input,zt as cpsl_divider,At as cpsl_icon,Tt as cpsl_input,Ja as cpsl_modal,nl as cpsl_overlay,ol as cpsl_pill,ll as cpsl_progress_indicator,dl as cpsl_qr_code,vl as cpsl_slide_button,bl as cpsl_spinner,Ml as cpsl_tab,Ll as cpsl_tabs,_l as cpsl_text,Sl as cpsl_tile_button};
|
29
|
+
//# sourceMappingURL=p-654cb899.entry.js.map
|