@aurolabs/auro-background
Advanced tools
Comparing version
# Semantic Release Automated Changelog | ||
## [1.2.3](https://github.com/AlaskaAirlines/aurolabs-background/compare/v1.2.2...v1.2.3) (2021-06-05) | ||
### Bug Fixes | ||
* attempt using encapsulated divs for other sizes ([e6d9585](https://github.com/AlaskaAirlines/aurolabs-background/commit/e6d9585eb054eee197996930f0aefc114f0f311e)) | ||
* linting issues ([e297a2f](https://github.com/AlaskaAirlines/aurolabs-background/commit/e297a2fae34d9f54f5b07eed32e881f00371fe4a)) | ||
* use height instead of min-height ([1ff22b7](https://github.com/AlaskaAirlines/aurolabs-background/commit/1ff22b742a7007d0a71b1891e99e2c4936f5294d)) | ||
## [1.2.2](https://github.com/AlaskaAirlines/aurolabs-background/compare/v1.2.1...v1.2.2) (2021-06-04) | ||
@@ -4,0 +13,0 @@ |
@@ -105,3 +105,4 @@ # auro-background | ||
<div class="bannerImage"> | ||
<auro-background minHeight="17rem" minHeightSm="100%" background="#d3c7ad url(https://images.unsplash.com/photo-1612277795511-39caabca8185?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80) right center/cover no-repeat;" backgroundsm="#d3c7ad url(https://images.unsplash.com/photo-1612277795511-39caabca8185?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80) right bottom/cover no-repeat;"></auro-background> | ||
<auro-background minHeight="17rem" minHeightSm="100%" background="#d3c7ad url(https://images.unsplash.com/photo-1612277795511-39caabca8185?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80) right center/cover no-repeat;" backgroundsm="#d3c7ad url(https://images.unsplash.com/photo-1612277795511-39caabca8185?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80) right bottom/cover no-repeat;"> | ||
<div class="content"></div></auro-background> | ||
</div> | ||
@@ -128,3 +129,3 @@ </div> | ||
<div class="bannerImage"> | ||
<auro-background background="#d3c7ad url(https://images.unsplash.com/photo-1535853563674-dbdba022f845?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1900&q=80) center center/cover no-repeat fixed;"></auro-background> | ||
<auro-background background="#d3c7ad url(https://images.unsplash.com/photo-1535853563674-dbdba022f845?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1900&q=80) center center/cover no-repeat fixed;" backgroundSm="red"></auro-background> | ||
</div> | ||
@@ -131,0 +132,0 @@ </div> |
@@ -1,2 +0,2 @@ | ||
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n=function(t){try{return!!t()}catch(t){return!0}},i={}.toString,s=function(t){return i.call(t).slice(8,-1)},o=s,a="".split,c=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},u=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a.call(t,""):Object(t)}:Object,l=c,h=function(t){return u(l(t))},p={exports:{}},d=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f={},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=g,m=r.document,v=y(m)&&y(m.createElement),_=function(t){return v?m.createElement(t):{}},S=_,b=!d&&!n((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),w=g,x=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},P=g,E=function(t,e){if(!P(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!P(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!P(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!P(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},T=d,O=b,k=x,A=E,N=Object.defineProperty;f.f=T?N:function(t,e,r){if(k(t),e=A(e,!0),k(r),O)try{return N(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},R=f,L=C,j=d?function(t,e,r){return R.f(t,e,L(1,r))}:function(t,e,r){return t[e]=r,t},I=r,V=j,M=function(t,e){try{V(I,t,e)}catch(r){I[t]=e}return e},U=M,$=r["__core-js_shared__"]||U("__core-js_shared__",{}),H=$;(p.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var F,z,D=c,q=function(t){return Object(D(t))},B=q,G={}.hasOwnProperty,W=function(t,e){return G.call(B(t),e)},J=0,K=Math.random(),Y=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++J+K).toString(36)},X=r,Z=r,Q=function(t){return"function"==typeof t?t:void 0},tt=function(t,e){return arguments.length<2?Q(X[t])||Q(Z[t]):X[t]&&X[t][e]||Z[t]&&Z[t][e]},et=tt("navigator","userAgent")||"",rt=r.process,nt=rt&&rt.versions,it=nt&&nt.v8;it?z=(F=it.split("."))[0]<4?1:F[0]+F[1]:et&&(!(F=et.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=et.match(/Chrome\/(\d+)/))&&(z=F[1]);var st,ot=z&&+z,at=n,ct=!!Object.getOwnPropertySymbols&&!at((function(){return!String(Symbol())||!Symbol.sham&&ot&&ot<41})),ut=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=r,ht=p.exports,pt=W,dt=Y,ft=ct,gt=ut,yt=ht("wks"),mt=lt.Symbol,vt=gt?mt:mt&&mt.withoutSetter||dt,_t=function(t){return pt(yt,t)&&(ft||"string"==typeof yt[t])||(ft&&pt(mt,t)?yt[t]=mt[t]:yt[t]=vt("Symbol."+t)),yt[t]},St=Math.ceil,bt=Math.floor,wt=function(t){return isNaN(t=+t)?0:(t>0?bt:St)(t)},xt=wt,Pt=Math.min,Et=function(t){return t>0?Pt(xt(t),9007199254740991):0},Tt=wt,Ot=Math.max,kt=Math.min,At=h,Nt=Et,Ct=function(t,e){var r=Tt(t);return r<0?Ot(r+e,0):kt(r,e)},Rt=function(t){return function(e,r,n){var i,s=At(e),o=Nt(s.length),a=Ct(n,o);if(t&&r!=r){for(;o>a;)if((i=s[a++])!=i)return!0}else for(;o>a;a++)if((t||a in s)&&s[a]===r)return t||a||0;return!t&&-1}},Lt={includes:Rt(!0),indexOf:Rt(!1)},jt={},It=W,Vt=h,Mt=Lt.indexOf,Ut=jt,$t=function(t,e){var r,n=Vt(t),i=0,s=[];for(r in n)!It(Ut,r)&&It(n,r)&&s.push(r);for(;e.length>i;)It(n,r=e[i++])&&(~Mt(s,r)||s.push(r));return s},Ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ft=$t,zt=Ht,Dt=Object.keys||function(t){return Ft(t,zt)},qt=f,Bt=x,Gt=Dt,Wt=d?Object.defineProperties:function(t,e){Bt(t);for(var r,n=Gt(e),i=n.length,s=0;i>s;)qt.f(t,r=n[s++],e[r]);return t},Jt=tt("document","documentElement"),Kt=p.exports,Yt=Y,Xt=Kt("keys"),Zt=function(t){return Xt[t]||(Xt[t]=Yt(t))},Qt=x,te=Wt,ee=Ht,re=jt,ne=Jt,ie=_,se=Zt("IE_PROTO"),oe=function(){},ae=function(t){return"<script>"+t+"<\/script>"},ce=function(){try{st=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ce=st?function(t){t.write(ae("")),t.close();var e=t.parentWindow.Object;return t=null,e}(st):((e=ie("iframe")).style.display="none",ne.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ae("document.F=Object")),t.close(),t.F);for(var r=ee.length;r--;)delete ce.prototype[ee[r]];return ce()};re[se]=!0;var ue=Object.create||function(t,e){var r;return null!==t?(oe.prototype=Qt(t),r=new oe,oe.prototype=null,r[se]=t):r=ce(),void 0===e?r:te(r,e)},le=ue,he=f,pe=_t("unscopables"),de=Array.prototype;null==de[pe]&&he.f(de,pe,{configurable:!0,value:le(null)});var fe=$,ge=Function.toString;"function"!=typeof fe.inspectSource&&(fe.inspectSource=function(t){return ge.call(t)});var ye,me,ve,_e=fe.inspectSource,Se=_e,be=r.WeakMap,we="function"==typeof be&&/native code/.test(Se(be)),xe=g,Pe=j,Ee=W,Te=$,Oe=Zt,ke=jt,Ae=r.WeakMap;if(we||Te.state){var Ne=Te.state||(Te.state=new Ae),Ce=Ne.get,Re=Ne.has,Le=Ne.set;ye=function(t,e){if(Re.call(Ne,t))throw new TypeError("Object already initialized");return e.facade=t,Le.call(Ne,t,e),e},me=function(t){return Ce.call(Ne,t)||{}},ve=function(t){return Re.call(Ne,t)}}else{var je=Oe("state");ke[je]=!0,ye=function(t,e){if(Ee(t,je))throw new TypeError("Object already initialized");return e.facade=t,Pe(t,je,e),e},me=function(t){return Ee(t,je)?t[je]:{}},ve=function(t){return Ee(t,je)}}var Ie={set:ye,get:me,has:ve,enforce:function(t){return ve(t)?me(t):ye(t,{})},getterFor:function(t){return function(e){var r;if(!xe(e)||(r=me(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Ve={},Me={},Ue={}.propertyIsEnumerable,$e=Object.getOwnPropertyDescriptor,He=$e&&!Ue.call({1:2},1);Me.f=He?function(t){var e=$e(this,t);return!!e&&e.enumerable}:Ue;var Fe=d,ze=Me,De=C,qe=h,Be=E,Ge=W,We=b,Je=Object.getOwnPropertyDescriptor;Ve.f=Fe?Je:function(t,e){if(t=qe(t),e=Be(e,!0),We)try{return Je(t,e)}catch(t){}if(Ge(t,e))return De(!ze.f.call(t,e),t[e])};var Ke={exports:{}},Ye=r,Xe=j,Ze=W,Qe=M,tr=_e,er=Ie.get,rr=Ie.enforce,nr=String(String).split("String");(Ke.exports=function(t,e,r,n){var i,s=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Ze(r,"name")||Xe(r,"name",e),(i=rr(r)).source||(i.source=nr.join("string"==typeof e?e:""))),t!==Ye?(s?!a&&t[e]&&(o=!0):delete t[e],o?t[e]=r:Xe(t,e,r)):o?t[e]=r:Qe(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&er(this).source||tr(this)}));var ir={},sr=$t,or=Ht.concat("length","prototype");ir.f=Object.getOwnPropertyNames||function(t){return sr(t,or)};var ar={};ar.f=Object.getOwnPropertySymbols;var cr,ur,lr,hr=ir,pr=ar,dr=x,fr=tt("Reflect","ownKeys")||function(t){var e=hr.f(dr(t)),r=pr.f;return r?e.concat(r(t)):e},gr=W,yr=fr,mr=Ve,vr=f,_r=n,Sr=/#|\.prototype\./,br=function(t,e){var r=xr[wr(t)];return r==Er||r!=Pr&&("function"==typeof e?_r(e):!!e)},wr=br.normalize=function(t){return String(t).replace(Sr,".").toLowerCase()},xr=br.data={},Pr=br.NATIVE="N",Er=br.POLYFILL="P",Tr=br,Or=r,kr=Ve.f,Ar=j,Nr=Ke.exports,Cr=M,Rr=function(t,e){for(var r=yr(e),n=vr.f,i=mr.f,s=0;s<r.length;s++){var o=r[s];gr(t,o)||n(t,o,i(e,o))}},Lr=Tr,jr=function(t,e){var r,n,i,s,o,a=t.target,c=t.global,u=t.stat;if(r=c?Or:u?Or[a]||Cr(a,{}):(Or[a]||{}).prototype)for(n in e){if(s=e[n],i=t.noTargetGet?(o=kr(r,n))&&o.value:r[n],!Lr(c?n:a+(u?".":"#")+n,t.forced)&&void 0!==i){if(typeof s==typeof i)continue;Rr(s,i)}(t.sham||i&&i.sham)&&Ar(s,"sham",!0),Nr(r,n,s,t)}},Ir=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Vr=W,Mr=q,Ur=Ir,$r=Zt("IE_PROTO"),Hr=Object.prototype,Fr=Ur?Object.getPrototypeOf:function(t){return t=Mr(t),Vr(t,$r)?t[$r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Hr:null},zr=n,Dr=Fr,qr=j,Br=W,Gr=_t("iterator"),Wr=!1;[].keys&&("next"in(lr=[].keys())?(ur=Dr(Dr(lr)))!==Object.prototype&&(cr=ur):Wr=!0),(null==cr||zr((function(){var t={};return cr[Gr].call(t)!==t})))&&(cr={}),Br(cr,Gr)||qr(cr,Gr,(function(){return this}));var Jr={IteratorPrototype:cr,BUGGY_SAFARI_ITERATORS:Wr},Kr=f.f,Yr=W,Xr=_t("toStringTag"),Zr=function(t,e,r){t&&!Yr(t=r?t:t.prototype,Xr)&&Kr(t,Xr,{configurable:!0,value:e})},Qr=Jr.IteratorPrototype,tn=ue,en=C,rn=Zr,nn=g,sn=x,on=function(t){if(!nn(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},an=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return sn(r),on(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),cn=jr,un=function(t,e,r){var n=e+" Iterator";return t.prototype=tn(Qr,{next:en(1,r)}),rn(t,n,!1),t},ln=Fr,hn=an,pn=Zr,dn=j,fn=Ke.exports,gn=Jr.IteratorPrototype,yn=Jr.BUGGY_SAFARI_ITERATORS,mn=_t("iterator"),vn=function(){return this},_n=h,Sn=function(t){de[pe][t]=!0},bn=Ie,wn=function(t,e,r,n,i,s,o){un(r,e,n);var a,c,u,l=function(t){if(t===i&&g)return g;if(!yn&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,d=t.prototype,f=d[mn]||d["@@iterator"]||i&&d[i],g=!yn&&f||l(i),y="Array"==e&&d.entries||f;if(y&&(a=ln(y.call(new t)),gn!==Object.prototype&&a.next&&(ln(a)!==gn&&(hn?hn(a,gn):"function"!=typeof a[mn]&&dn(a,mn,vn)),pn(a,h,!0))),"values"==i&&f&&"values"!==f.name&&(p=!0,g=function(){return f.call(this)}),d[mn]!==g&&dn(d,mn,g),i)if(c={values:l("values"),keys:s?g:l("keys"),entries:l("entries")},o)for(u in c)(yn||p||!(u in d))&&fn(d,u,c[u]);else cn({target:e,proto:!0,forced:yn||p},c);return c},xn=bn.set,Pn=bn.getterFor("Array Iterator"),En=wn(Array,"Array",(function(t,e){xn(this,{type:"Array Iterator",target:_n(t),index:0,kind:e})}),(function(){var t=Pn(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Sn("keys"),Sn("values"),Sn("entries");var Tn=r,On={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kn=En,An=j,Nn=_t,Cn=Nn("iterator"),Rn=Nn("toStringTag"),Ln=kn.values;for(var jn in On){var In=Tn[jn],Vn=In&&In.prototype;if(Vn){if(Vn[Cn]!==Ln)try{An(Vn,Cn,Ln)}catch(t){Vn[Cn]=Ln}if(Vn[Rn]||An(Vn,Rn,jn),On[jn])for(var Mn in kn)if(Vn[Mn]!==kn[Mn])try{An(Vn,Mn,kn[Mn])}catch(t){Vn[Mn]=kn[Mn]}}}var Un=x,$n={},Hn=n;function Fn(t,e){return RegExp(t,e)}$n.UNSUPPORTED_Y=Hn((function(){var t=Fn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),$n.BROKEN_CARET=Hn((function(){var t=Fn("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var zn,Dn,qn=function(){var t=Un(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Bn=$n,Gn=p.exports,Wn=RegExp.prototype.exec,Jn=Gn("native-string-replace",String.prototype.replace),Kn=Wn,Yn=(zn=/a/,Dn=/b*/g,Wn.call(zn,"a"),Wn.call(Dn,"a"),0!==zn.lastIndex||0!==Dn.lastIndex),Xn=Bn.UNSUPPORTED_Y||Bn.BROKEN_CARET,Zn=void 0!==/()??/.exec("")[1];(Yn||Zn||Xn)&&(Kn=function(t){var e,r,n,i,s=this,o=Xn&&s.sticky,a=qn.call(s),c=s.source,u=0,l=t;return o&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),l=String(t).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==t[s.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,u++),r=new RegExp("^(?:"+c+")",a)),Zn&&(r=new RegExp("^"+c+"$(?!\\s)",a)),Yn&&(e=s.lastIndex),n=Wn.call(o?r:s,l),o?n?(n.input=n.input.slice(u),n[0]=n[0].slice(u),n.index=s.lastIndex,s.lastIndex+=n[0].length):s.lastIndex=0:Yn&&n&&(s.lastIndex=s.global?n.index+n[0].length:e),Zn&&n&&n.length>1&&Jn.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n});var Qn=Kn;jr({target:"RegExp",proto:!0,forced:/./.exec!==Qn},{exec:Qn});var ti=Ke.exports,ei=Qn,ri=n,ni=_t,ii=j,si=ni("species"),oi=RegExp.prototype,ai=!ri((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ci="$0"==="a".replace(/./,"$0"),ui=ni("replace"),li=!!/./[ui]&&""===/./[ui]("a","$0"),hi=!ri((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),pi=wt,di=c,fi=function(t){return function(e,r){var n,i,s=String(di(e)),o=pi(r),a=s.length;return o<0||o>=a?t?"":void 0:(n=s.charCodeAt(o))<55296||n>56319||o+1===a||(i=s.charCodeAt(o+1))<56320||i>57343?t?s.charAt(o):n:t?s.slice(o,o+2):i-56320+(n-55296<<10)+65536}},gi={codeAt:fi(!1),charAt:fi(!0)}.charAt,yi=q,mi=Math.floor,vi="".replace,_i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Si=/\$([$&'`]|\d{1,2})/g,bi=s,wi=Qn,xi=function(t,e,r,n){var i=ni(t),s=!ri((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),o=s&&!ri((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[si]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e}));if(!s||!o||"replace"===t&&(!ai||!ci||li)||"split"===t&&!hi){var a=/./[i],c=r(i,""[t],(function(t,e,r,n,i){var o=e.exec;return o===ei||o===oi.exec?s&&!i?{done:!0,value:a.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:ci,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:li}),u=c[0],l=c[1];ti(String.prototype,t,u),ti(oi,i,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}n&&ii(oi[i],"sham",!0)},Pi=x,Ei=Et,Ti=wt,Oi=c,ki=function(t,e,r){return e+(r?gi(t,e).length:1)},Ai=function(t,e,r,n,i,s){var o=r+t.length,a=n.length,c=Si;return void 0!==i&&(i=yi(i),c=_i),vi.call(s,c,(function(s,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(o);case"<":u=i[c.slice(1,-1)];break;default:var l=+c;if(0===l)return s;if(l>a){var h=mi(l/10);return 0===h?s:h<=a?void 0===n[h-1]?c.charAt(1):n[h-1]+c.charAt(1):s}u=n[l-1]}return void 0===u?"":u}))},Ni=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==bi(t))throw TypeError("RegExp#exec called on incompatible receiver");return wi.call(t,e)},Ci=Math.max,Ri=Math.min;xi("replace",2,(function(t,e,r,n){var i=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,s=n.REPLACE_KEEPS_$0,o=i?"$":"$0";return[function(r,n){var i=Oi(this),s=null==r?void 0:r[t];return void 0!==s?s.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!i&&s||"string"==typeof n&&-1===n.indexOf(o)){var a=r(e,t,this,n);if(a.done)return a.value}var c=Pi(t),u=String(this),l="function"==typeof n;l||(n=String(n));var h=c.global;if(h){var p=c.unicode;c.lastIndex=0}for(var d=[];;){var f=Ni(c,u);if(null===f)break;if(d.push(f),!h)break;""===String(f[0])&&(c.lastIndex=ki(u,Ei(c.lastIndex),p))}for(var g,y="",m=0,v=0;v<d.length;v++){f=d[v];for(var _=String(f[0]),S=Ci(Ri(Ti(f.index),u.length),0),b=[],w=1;w<f.length;w++)b.push(void 0===(g=f[w])?g:String(g));var x=f.groups;if(l){var P=[_].concat(b,S,u);void 0!==x&&P.push(x);var E=String(n.apply(void 0,P))}else E=Ai(_,u,S,b,x,n);S>=m&&(y+=u.slice(m,S)+E,m=S+_.length)}return y+u.slice(m)}]})); | ||
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n=function(t){try{return!!t()}catch(t){return!0}},i={}.toString,s=function(t){return i.call(t).slice(8,-1)},o=s,a="".split,c=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},u=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a.call(t,""):Object(t)}:Object,l=c,h=function(t){return u(l(t))},p={exports:{}},d=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f={},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=g,m=r.document,v=y(m)&&y(m.createElement),_=function(t){return v?m.createElement(t):{}},S=_,b=!d&&!n((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),w=g,x=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},P=g,E=function(t,e){if(!P(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!P(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!P(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!P(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},k=d,T=b,O=x,A=E,N=Object.defineProperty;f.f=k?N:function(t,e,r){if(O(t),e=A(e,!0),O(r),T)try{return N(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},R=f,L=C,M=d?function(t,e,r){return R.f(t,e,L(1,r))}:function(t,e,r){return t[e]=r,t},j=r,I=M,V=function(t,e){try{I(j,t,e)}catch(r){j[t]=e}return e},U=V,$=r["__core-js_shared__"]||U("__core-js_shared__",{}),H=$;(p.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var F,z,D=c,q=function(t){return Object(D(t))},B=q,G={}.hasOwnProperty,W=function(t,e){return G.call(B(t),e)},J=0,K=Math.random(),Y=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++J+K).toString(36)},X=r,Z=r,Q=function(t){return"function"==typeof t?t:void 0},tt=function(t,e){return arguments.length<2?Q(X[t])||Q(Z[t]):X[t]&&X[t][e]||Z[t]&&Z[t][e]},et=tt("navigator","userAgent")||"",rt=r.process,nt=rt&&rt.versions,it=nt&&nt.v8;it?z=(F=it.split("."))[0]<4?1:F[0]+F[1]:et&&(!(F=et.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=et.match(/Chrome\/(\d+)/))&&(z=F[1]);var st,ot=z&&+z,at=n,ct=!!Object.getOwnPropertySymbols&&!at((function(){return!String(Symbol())||!Symbol.sham&&ot&&ot<41})),ut=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=r,ht=p.exports,pt=W,dt=Y,ft=ct,gt=ut,yt=ht("wks"),mt=lt.Symbol,vt=gt?mt:mt&&mt.withoutSetter||dt,_t=function(t){return pt(yt,t)&&(ft||"string"==typeof yt[t])||(ft&&pt(mt,t)?yt[t]=mt[t]:yt[t]=vt("Symbol."+t)),yt[t]},St=Math.ceil,bt=Math.floor,wt=function(t){return isNaN(t=+t)?0:(t>0?bt:St)(t)},xt=wt,Pt=Math.min,Et=function(t){return t>0?Pt(xt(t),9007199254740991):0},kt=wt,Tt=Math.max,Ot=Math.min,At=h,Nt=Et,Ct=function(t,e){var r=kt(t);return r<0?Tt(r+e,0):Ot(r,e)},Rt=function(t){return function(e,r,n){var i,s=At(e),o=Nt(s.length),a=Ct(n,o);if(t&&r!=r){for(;o>a;)if((i=s[a++])!=i)return!0}else for(;o>a;a++)if((t||a in s)&&s[a]===r)return t||a||0;return!t&&-1}},Lt={includes:Rt(!0),indexOf:Rt(!1)},Mt={},jt=W,It=h,Vt=Lt.indexOf,Ut=Mt,$t=function(t,e){var r,n=It(t),i=0,s=[];for(r in n)!jt(Ut,r)&&jt(n,r)&&s.push(r);for(;e.length>i;)jt(n,r=e[i++])&&(~Vt(s,r)||s.push(r));return s},Ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ft=$t,zt=Ht,Dt=Object.keys||function(t){return Ft(t,zt)},qt=f,Bt=x,Gt=Dt,Wt=d?Object.defineProperties:function(t,e){Bt(t);for(var r,n=Gt(e),i=n.length,s=0;i>s;)qt.f(t,r=n[s++],e[r]);return t},Jt=tt("document","documentElement"),Kt=p.exports,Yt=Y,Xt=Kt("keys"),Zt=function(t){return Xt[t]||(Xt[t]=Yt(t))},Qt=x,te=Wt,ee=Ht,re=Mt,ne=Jt,ie=_,se=Zt("IE_PROTO"),oe=function(){},ae=function(t){return"<script>"+t+"<\/script>"},ce=function(){try{st=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ce=st?function(t){t.write(ae("")),t.close();var e=t.parentWindow.Object;return t=null,e}(st):((e=ie("iframe")).style.display="none",ne.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ae("document.F=Object")),t.close(),t.F);for(var r=ee.length;r--;)delete ce.prototype[ee[r]];return ce()};re[se]=!0;var ue=Object.create||function(t,e){var r;return null!==t?(oe.prototype=Qt(t),r=new oe,oe.prototype=null,r[se]=t):r=ce(),void 0===e?r:te(r,e)},le=ue,he=f,pe=_t("unscopables"),de=Array.prototype;null==de[pe]&&he.f(de,pe,{configurable:!0,value:le(null)});var fe=$,ge=Function.toString;"function"!=typeof fe.inspectSource&&(fe.inspectSource=function(t){return ge.call(t)});var ye,me,ve,_e=fe.inspectSource,Se=_e,be=r.WeakMap,we="function"==typeof be&&/native code/.test(Se(be)),xe=g,Pe=M,Ee=W,ke=$,Te=Zt,Oe=Mt,Ae=r.WeakMap;if(we||ke.state){var Ne=ke.state||(ke.state=new Ae),Ce=Ne.get,Re=Ne.has,Le=Ne.set;ye=function(t,e){if(Re.call(Ne,t))throw new TypeError("Object already initialized");return e.facade=t,Le.call(Ne,t,e),e},me=function(t){return Ce.call(Ne,t)||{}},ve=function(t){return Re.call(Ne,t)}}else{var Me=Te("state");Oe[Me]=!0,ye=function(t,e){if(Ee(t,Me))throw new TypeError("Object already initialized");return e.facade=t,Pe(t,Me,e),e},me=function(t){return Ee(t,Me)?t[Me]:{}},ve=function(t){return Ee(t,Me)}}var je={set:ye,get:me,has:ve,enforce:function(t){return ve(t)?me(t):ye(t,{})},getterFor:function(t){return function(e){var r;if(!xe(e)||(r=me(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Ie={},Ve={},Ue={}.propertyIsEnumerable,$e=Object.getOwnPropertyDescriptor,He=$e&&!Ue.call({1:2},1);Ve.f=He?function(t){var e=$e(this,t);return!!e&&e.enumerable}:Ue;var Fe=d,ze=Ve,De=C,qe=h,Be=E,Ge=W,We=b,Je=Object.getOwnPropertyDescriptor;Ie.f=Fe?Je:function(t,e){if(t=qe(t),e=Be(e,!0),We)try{return Je(t,e)}catch(t){}if(Ge(t,e))return De(!ze.f.call(t,e),t[e])};var Ke={exports:{}},Ye=r,Xe=M,Ze=W,Qe=V,tr=_e,er=je.get,rr=je.enforce,nr=String(String).split("String");(Ke.exports=function(t,e,r,n){var i,s=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Ze(r,"name")||Xe(r,"name",e),(i=rr(r)).source||(i.source=nr.join("string"==typeof e?e:""))),t!==Ye?(s?!a&&t[e]&&(o=!0):delete t[e],o?t[e]=r:Xe(t,e,r)):o?t[e]=r:Qe(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&er(this).source||tr(this)}));var ir={},sr=$t,or=Ht.concat("length","prototype");ir.f=Object.getOwnPropertyNames||function(t){return sr(t,or)};var ar={};ar.f=Object.getOwnPropertySymbols;var cr,ur,lr,hr=ir,pr=ar,dr=x,fr=tt("Reflect","ownKeys")||function(t){var e=hr.f(dr(t)),r=pr.f;return r?e.concat(r(t)):e},gr=W,yr=fr,mr=Ie,vr=f,_r=n,Sr=/#|\.prototype\./,br=function(t,e){var r=xr[wr(t)];return r==Er||r!=Pr&&("function"==typeof e?_r(e):!!e)},wr=br.normalize=function(t){return String(t).replace(Sr,".").toLowerCase()},xr=br.data={},Pr=br.NATIVE="N",Er=br.POLYFILL="P",kr=br,Tr=r,Or=Ie.f,Ar=M,Nr=Ke.exports,Cr=V,Rr=function(t,e){for(var r=yr(e),n=vr.f,i=mr.f,s=0;s<r.length;s++){var o=r[s];gr(t,o)||n(t,o,i(e,o))}},Lr=kr,Mr=function(t,e){var r,n,i,s,o,a=t.target,c=t.global,u=t.stat;if(r=c?Tr:u?Tr[a]||Cr(a,{}):(Tr[a]||{}).prototype)for(n in e){if(s=e[n],i=t.noTargetGet?(o=Or(r,n))&&o.value:r[n],!Lr(c?n:a+(u?".":"#")+n,t.forced)&&void 0!==i){if(typeof s==typeof i)continue;Rr(s,i)}(t.sham||i&&i.sham)&&Ar(s,"sham",!0),Nr(r,n,s,t)}},jr=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ir=W,Vr=q,Ur=jr,$r=Zt("IE_PROTO"),Hr=Object.prototype,Fr=Ur?Object.getPrototypeOf:function(t){return t=Vr(t),Ir(t,$r)?t[$r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Hr:null},zr=n,Dr=Fr,qr=M,Br=W,Gr=_t("iterator"),Wr=!1;[].keys&&("next"in(lr=[].keys())?(ur=Dr(Dr(lr)))!==Object.prototype&&(cr=ur):Wr=!0),(null==cr||zr((function(){var t={};return cr[Gr].call(t)!==t})))&&(cr={}),Br(cr,Gr)||qr(cr,Gr,(function(){return this}));var Jr={IteratorPrototype:cr,BUGGY_SAFARI_ITERATORS:Wr},Kr=f.f,Yr=W,Xr=_t("toStringTag"),Zr=function(t,e,r){t&&!Yr(t=r?t:t.prototype,Xr)&&Kr(t,Xr,{configurable:!0,value:e})},Qr=Jr.IteratorPrototype,tn=ue,en=C,rn=Zr,nn=g,sn=x,on=function(t){if(!nn(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},an=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return sn(r),on(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),cn=Mr,un=function(t,e,r){var n=e+" Iterator";return t.prototype=tn(Qr,{next:en(1,r)}),rn(t,n,!1),t},ln=Fr,hn=an,pn=Zr,dn=M,fn=Ke.exports,gn=Jr.IteratorPrototype,yn=Jr.BUGGY_SAFARI_ITERATORS,mn=_t("iterator"),vn=function(){return this},_n=h,Sn=function(t){de[pe][t]=!0},bn=je,wn=function(t,e,r,n,i,s,o){un(r,e,n);var a,c,u,l=function(t){if(t===i&&g)return g;if(!yn&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,d=t.prototype,f=d[mn]||d["@@iterator"]||i&&d[i],g=!yn&&f||l(i),y="Array"==e&&d.entries||f;if(y&&(a=ln(y.call(new t)),gn!==Object.prototype&&a.next&&(ln(a)!==gn&&(hn?hn(a,gn):"function"!=typeof a[mn]&&dn(a,mn,vn)),pn(a,h,!0))),"values"==i&&f&&"values"!==f.name&&(p=!0,g=function(){return f.call(this)}),d[mn]!==g&&dn(d,mn,g),i)if(c={values:l("values"),keys:s?g:l("keys"),entries:l("entries")},o)for(u in c)(yn||p||!(u in d))&&fn(d,u,c[u]);else cn({target:e,proto:!0,forced:yn||p},c);return c},xn=bn.set,Pn=bn.getterFor("Array Iterator"),En=wn(Array,"Array",(function(t,e){xn(this,{type:"Array Iterator",target:_n(t),index:0,kind:e})}),(function(){var t=Pn(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Sn("keys"),Sn("values"),Sn("entries");var kn=r,Tn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},On=En,An=M,Nn=_t,Cn=Nn("iterator"),Rn=Nn("toStringTag"),Ln=On.values;for(var Mn in Tn){var jn=kn[Mn],In=jn&&jn.prototype;if(In){if(In[Cn]!==Ln)try{An(In,Cn,Ln)}catch(t){In[Cn]=Ln}if(In[Rn]||An(In,Rn,Mn),Tn[Mn])for(var Vn in On)if(In[Vn]!==On[Vn])try{An(In,Vn,On[Vn])}catch(t){In[Vn]=On[Vn]}}}var Un=x,$n={},Hn=n;function Fn(t,e){return RegExp(t,e)}$n.UNSUPPORTED_Y=Hn((function(){var t=Fn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),$n.BROKEN_CARET=Hn((function(){var t=Fn("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var zn,Dn,qn=function(){var t=Un(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Bn=$n,Gn=p.exports,Wn=RegExp.prototype.exec,Jn=Gn("native-string-replace",String.prototype.replace),Kn=Wn,Yn=(zn=/a/,Dn=/b*/g,Wn.call(zn,"a"),Wn.call(Dn,"a"),0!==zn.lastIndex||0!==Dn.lastIndex),Xn=Bn.UNSUPPORTED_Y||Bn.BROKEN_CARET,Zn=void 0!==/()??/.exec("")[1];(Yn||Zn||Xn)&&(Kn=function(t){var e,r,n,i,s=this,o=Xn&&s.sticky,a=qn.call(s),c=s.source,u=0,l=t;return o&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),l=String(t).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==t[s.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,u++),r=new RegExp("^(?:"+c+")",a)),Zn&&(r=new RegExp("^"+c+"$(?!\\s)",a)),Yn&&(e=s.lastIndex),n=Wn.call(o?r:s,l),o?n?(n.input=n.input.slice(u),n[0]=n[0].slice(u),n.index=s.lastIndex,s.lastIndex+=n[0].length):s.lastIndex=0:Yn&&n&&(s.lastIndex=s.global?n.index+n[0].length:e),Zn&&n&&n.length>1&&Jn.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n});var Qn=Kn;Mr({target:"RegExp",proto:!0,forced:/./.exec!==Qn},{exec:Qn});var ti=Ke.exports,ei=Qn,ri=n,ni=_t,ii=M,si=ni("species"),oi=RegExp.prototype,ai=!ri((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ci="$0"==="a".replace(/./,"$0"),ui=ni("replace"),li=!!/./[ui]&&""===/./[ui]("a","$0"),hi=!ri((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),pi=wt,di=c,fi=function(t){return function(e,r){var n,i,s=String(di(e)),o=pi(r),a=s.length;return o<0||o>=a?t?"":void 0:(n=s.charCodeAt(o))<55296||n>56319||o+1===a||(i=s.charCodeAt(o+1))<56320||i>57343?t?s.charAt(o):n:t?s.slice(o,o+2):i-56320+(n-55296<<10)+65536}},gi={codeAt:fi(!1),charAt:fi(!0)}.charAt,yi=q,mi=Math.floor,vi="".replace,_i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Si=/\$([$&'`]|\d{1,2})/g,bi=s,wi=Qn,xi=function(t,e,r,n){var i=ni(t),s=!ri((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),o=s&&!ri((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[si]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e}));if(!s||!o||"replace"===t&&(!ai||!ci||li)||"split"===t&&!hi){var a=/./[i],c=r(i,""[t],(function(t,e,r,n,i){var o=e.exec;return o===ei||o===oi.exec?s&&!i?{done:!0,value:a.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:ci,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:li}),u=c[0],l=c[1];ti(String.prototype,t,u),ti(oi,i,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}n&&ii(oi[i],"sham",!0)},Pi=x,Ei=Et,ki=wt,Ti=c,Oi=function(t,e,r){return e+(r?gi(t,e).length:1)},Ai=function(t,e,r,n,i,s){var o=r+t.length,a=n.length,c=Si;return void 0!==i&&(i=yi(i),c=_i),vi.call(s,c,(function(s,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(o);case"<":u=i[c.slice(1,-1)];break;default:var l=+c;if(0===l)return s;if(l>a){var h=mi(l/10);return 0===h?s:h<=a?void 0===n[h-1]?c.charAt(1):n[h-1]+c.charAt(1):s}u=n[l-1]}return void 0===u?"":u}))},Ni=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==bi(t))throw TypeError("RegExp#exec called on incompatible receiver");return wi.call(t,e)},Ci=Math.max,Ri=Math.min;xi("replace",2,(function(t,e,r,n){var i=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,s=n.REPLACE_KEEPS_$0,o=i?"$":"$0";return[function(r,n){var i=Ti(this),s=null==r?void 0:r[t];return void 0!==s?s.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!i&&s||"string"==typeof n&&-1===n.indexOf(o)){var a=r(e,t,this,n);if(a.done)return a.value}var c=Pi(t),u=String(this),l="function"==typeof n;l||(n=String(n));var h=c.global;if(h){var p=c.unicode;c.lastIndex=0}for(var d=[];;){var f=Ni(c,u);if(null===f)break;if(d.push(f),!h)break;""===String(f[0])&&(c.lastIndex=Oi(u,Ei(c.lastIndex),p))}for(var g,y="",m=0,v=0;v<d.length;v++){f=d[v];for(var _=String(f[0]),S=Ci(Ri(ki(f.index),u.length),0),b=[],w=1;w<f.length;w++)b.push(void 0===(g=f[w])?g:String(g));var x=f.groups;if(l){var P=[_].concat(b,S,u);void 0!==x&&P.push(x);var E=String(n.apply(void 0,P))}else E=Ai(_,u,S,b,x,n);S>=m&&(y+=u.slice(m,S)+E,m=S+_.length)}return y+u.slice(m)}]})); | ||
/** | ||
@@ -15,3 +15,3 @@ * @license | ||
*/ | ||
const Li=new WeakMap,ji=t=>"function"==typeof t&&Li.has(t),Ii="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,Vi=(t,e,r=null)=>{for(;e!==r;){const r=e.nextSibling;t.removeChild(e),e=r}},Mi={},Ui={},$i=`{{lit-${String(Math.random()).slice(2)}}}`,Hi=`\x3c!--${$i}--\x3e`,Fi=new RegExp(`${$i}|${Hi}`);class zi{constructor(t,e){this.parts=[],this.element=e;const r=[],n=[],i=document.createTreeWalker(e.content,133,null,!1);let s=0,o=-1,a=0;const{strings:c,values:{length:u}}=t;for(;a<u;){const t=i.nextNode();if(null!==t){if(o++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:r}=e;let n=0;for(let t=0;t<r;t++)Di(e[t].name,"$lit$")&&n++;for(;n-- >0;){const e=c[a],r=Gi.exec(e)[2],n=r.toLowerCase()+"$lit$",i=t.getAttribute(n);t.removeAttribute(n);const s=i.split(Fi);this.parts.push({type:"attribute",index:o,name:r,strings:s}),a+=s.length-1}}"TEMPLATE"===t.tagName&&(n.push(t),i.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf($i)>=0){const n=t.parentNode,i=e.split(Fi),s=i.length-1;for(let e=0;e<s;e++){let r,s=i[e];if(""===s)r=Bi();else{const t=Gi.exec(s);null!==t&&Di(t[2],"$lit$")&&(s=s.slice(0,t.index)+t[1]+t[2].slice(0,-"$lit$".length)+t[3]),r=document.createTextNode(s)}n.insertBefore(r,t),this.parts.push({type:"node",index:++o})}""===i[s]?(n.insertBefore(Bi(),t),r.push(t)):t.data=i[s],a+=s}}else if(8===t.nodeType)if(t.data===$i){const e=t.parentNode;null!==t.previousSibling&&o!==s||(o++,e.insertBefore(Bi(),t)),s=o,this.parts.push({type:"node",index:o}),null===t.nextSibling?t.data="":(r.push(t),o--),a++}else{let e=-1;for(;-1!==(e=t.data.indexOf($i,e+1));)this.parts.push({type:"node",index:-1}),a++}}else i.currentNode=n.pop()}for(const t of r)t.parentNode.removeChild(t)}}const Di=(t,e)=>{const r=t.length-e.length;return r>=0&&t.slice(r)===e},qi=t=>-1!==t.index,Bi=()=>document.createComment(""),Gi=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/; | ||
const Li=new WeakMap,Mi=t=>"function"==typeof t&&Li.has(t),ji="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,Ii=(t,e,r=null)=>{for(;e!==r;){const r=e.nextSibling;t.removeChild(e),e=r}},Vi={},Ui={},$i=`{{lit-${String(Math.random()).slice(2)}}}`,Hi=`\x3c!--${$i}--\x3e`,Fi=new RegExp(`${$i}|${Hi}`);class zi{constructor(t,e){this.parts=[],this.element=e;const r=[],n=[],i=document.createTreeWalker(e.content,133,null,!1);let s=0,o=-1,a=0;const{strings:c,values:{length:u}}=t;for(;a<u;){const t=i.nextNode();if(null!==t){if(o++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:r}=e;let n=0;for(let t=0;t<r;t++)Di(e[t].name,"$lit$")&&n++;for(;n-- >0;){const e=c[a],r=Gi.exec(e)[2],n=r.toLowerCase()+"$lit$",i=t.getAttribute(n);t.removeAttribute(n);const s=i.split(Fi);this.parts.push({type:"attribute",index:o,name:r,strings:s}),a+=s.length-1}}"TEMPLATE"===t.tagName&&(n.push(t),i.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf($i)>=0){const n=t.parentNode,i=e.split(Fi),s=i.length-1;for(let e=0;e<s;e++){let r,s=i[e];if(""===s)r=Bi();else{const t=Gi.exec(s);null!==t&&Di(t[2],"$lit$")&&(s=s.slice(0,t.index)+t[1]+t[2].slice(0,-"$lit$".length)+t[3]),r=document.createTextNode(s)}n.insertBefore(r,t),this.parts.push({type:"node",index:++o})}""===i[s]?(n.insertBefore(Bi(),t),r.push(t)):t.data=i[s],a+=s}}else if(8===t.nodeType)if(t.data===$i){const e=t.parentNode;null!==t.previousSibling&&o!==s||(o++,e.insertBefore(Bi(),t)),s=o,this.parts.push({type:"node",index:o}),null===t.nextSibling?t.data="":(r.push(t),o--),a++}else{let e=-1;for(;-1!==(e=t.data.indexOf($i,e+1));)this.parts.push({type:"node",index:-1}),a++}}else i.currentNode=n.pop()}for(const t of r)t.parentNode.removeChild(t)}}const Di=(t,e)=>{const r=t.length-e.length;return r>=0&&t.slice(r)===e},qi=t=>-1!==t.index,Bi=()=>document.createComment(""),Gi=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/; | ||
/** | ||
@@ -30,3 +30,3 @@ * @license | ||
*/ | ||
class Wi{constructor(t,e,r){this.__parts=[],this.template=t,this.processor=e,this.options=r}update(t){let e=0;for(const r of this.__parts)void 0!==r&&r.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=Ii?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],r=this.template.parts,n=document.createTreeWalker(t,133,null,!1);let i,s=0,o=0,a=n.nextNode();for(;s<r.length;)if(i=r[s],qi(i)){for(;o<i.index;)o++,"TEMPLATE"===a.nodeName&&(e.push(a),n.currentNode=a.content),null===(a=n.nextNode())&&(n.currentNode=e.pop(),a=n.nextNode());if("node"===i.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(a.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(a,i.name,i.strings,this.options));s++}else this.__parts.push(void 0),s++;return Ii&&(document.adoptNode(t),customElements.upgrade(t)),t}} | ||
class Wi{constructor(t,e,r){this.__parts=[],this.template=t,this.processor=e,this.options=r}update(t){let e=0;for(const r of this.__parts)void 0!==r&&r.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=ji?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],r=this.template.parts,n=document.createTreeWalker(t,133,null,!1);let i,s=0,o=0,a=n.nextNode();for(;s<r.length;)if(i=r[s],qi(i)){for(;o<i.index;)o++,"TEMPLATE"===a.nodeName&&(e.push(a),n.currentNode=a.content),null===(a=n.nextNode())&&(n.currentNode=e.pop(),a=n.nextNode());if("node"===i.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(a.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(a,i.name,i.strings,this.options));s++}else this.__parts.push(void 0),s++;return ji&&(document.adoptNode(t),customElements.upgrade(t)),t}} | ||
/** | ||
@@ -57,3 +57,3 @@ * @license | ||
* http://polymer.github.io/PATENTS.txt | ||
*/const Xi=t=>null===t||!("object"==typeof t||"function"==typeof t),Zi=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class Qi{constructor(t,e,r){this.dirty=!0,this.element=t,this.name=e,this.strings=r,this.parts=[];for(let t=0;t<r.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new ts(this)}_getValue(){const t=this.strings,e=t.length-1,r=this.parts;if(1===e&&""===t[0]&&""===t[1]){const t=r[0].value;if("symbol"==typeof t)return String(t);if("string"==typeof t||!Zi(t))return t}let n="";for(let i=0;i<e;i++){n+=t[i];const e=r[i];if(void 0!==e){const t=e.value;if(Xi(t)||!Zi(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class ts{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===Mi||Xi(t)&&t===this.value||(this.value=t,ji(t)||(this.committer.dirty=!0))}commit(){for(;ji(this.value);){const t=this.value;this.value=Mi,t(this)}this.value!==Mi&&this.committer.commit()}}class es{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(Bi()),this.endNode=t.appendChild(Bi())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=Bi()),t.__insert(this.endNode=Bi())}insertAfterPart(t){t.__insert(this.startNode=Bi()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(null===this.startNode.parentNode)return;for(;ji(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=Mi,t(this)}const t=this.__pendingValue;t!==Mi&&(Xi(t)?t!==this.value&&this.__commitText(t):t instanceof Yi?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):Zi(t)?this.__commitIterable(t):t===Ui?(this.value=Ui,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,r="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=r:this.__commitNode(document.createTextNode(r)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof Wi&&this.value.template===e)this.value.update(t.values);else{const r=new Wi(e,t.processor,this.options),n=r._clone();r.update(t.values),this.__commitNode(n),this.value=r}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let r,n=0;for(const i of t)r=e[n],void 0===r&&(r=new es(this.options),e.push(r),0===n?r.appendIntoPart(this):r.insertAfterPart(e[n-1])),r.setValue(i),r.commit(),n++;n<e.length&&(e.length=n,this.clear(r&&r.endNode))}clear(t=this.startNode){Vi(this.startNode.parentNode,t.nextSibling,this.endNode)}}class rs{constructor(t,e,r){if(this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=r}setValue(t){this.__pendingValue=t}commit(){for(;ji(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=Mi,t(this)}if(this.__pendingValue===Mi)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=Mi}}class ns extends Qi{constructor(t,e,r){super(t,e,r),this.single=2===r.length&&""===r[0]&&""===r[1]}_createPart(){return new is(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class is extends ts{}let ss=!1;(()=>{try{const t={get capture(){return ss=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class os{constructor(t,e,r){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=r,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;ji(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=Mi,t(this)}if(this.__pendingValue===Mi)return;const t=this.__pendingValue,e=this.value,r=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),n=null!=t&&(null==e||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=as(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=Mi}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const as=t=>t&&(ss?{capture:t.capture,passive:t.passive,once:t.once}:t.capture) | ||
*/const Xi=t=>null===t||!("object"==typeof t||"function"==typeof t),Zi=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class Qi{constructor(t,e,r){this.dirty=!0,this.element=t,this.name=e,this.strings=r,this.parts=[];for(let t=0;t<r.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new ts(this)}_getValue(){const t=this.strings,e=t.length-1,r=this.parts;if(1===e&&""===t[0]&&""===t[1]){const t=r[0].value;if("symbol"==typeof t)return String(t);if("string"==typeof t||!Zi(t))return t}let n="";for(let i=0;i<e;i++){n+=t[i];const e=r[i];if(void 0!==e){const t=e.value;if(Xi(t)||!Zi(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class ts{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===Vi||Xi(t)&&t===this.value||(this.value=t,Mi(t)||(this.committer.dirty=!0))}commit(){for(;Mi(this.value);){const t=this.value;this.value=Vi,t(this)}this.value!==Vi&&this.committer.commit()}}class es{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(Bi()),this.endNode=t.appendChild(Bi())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=Bi()),t.__insert(this.endNode=Bi())}insertAfterPart(t){t.__insert(this.startNode=Bi()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(null===this.startNode.parentNode)return;for(;Mi(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=Vi,t(this)}const t=this.__pendingValue;t!==Vi&&(Xi(t)?t!==this.value&&this.__commitText(t):t instanceof Yi?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):Zi(t)?this.__commitIterable(t):t===Ui?(this.value=Ui,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,r="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=r:this.__commitNode(document.createTextNode(r)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof Wi&&this.value.template===e)this.value.update(t.values);else{const r=new Wi(e,t.processor,this.options),n=r._clone();r.update(t.values),this.__commitNode(n),this.value=r}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let r,n=0;for(const i of t)r=e[n],void 0===r&&(r=new es(this.options),e.push(r),0===n?r.appendIntoPart(this):r.insertAfterPart(e[n-1])),r.setValue(i),r.commit(),n++;n<e.length&&(e.length=n,this.clear(r&&r.endNode))}clear(t=this.startNode){Ii(this.startNode.parentNode,t.nextSibling,this.endNode)}}class rs{constructor(t,e,r){if(this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=r}setValue(t){this.__pendingValue=t}commit(){for(;Mi(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=Vi,t(this)}if(this.__pendingValue===Vi)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=Vi}}class ns extends Qi{constructor(t,e,r){super(t,e,r),this.single=2===r.length&&""===r[0]&&""===r[1]}_createPart(){return new is(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class is extends ts{}let ss=!1;(()=>{try{const t={get capture(){return ss=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class os{constructor(t,e,r){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=r,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;Mi(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=Vi,t(this)}if(this.__pendingValue===Vi)return;const t=this.__pendingValue,e=this.value,r=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),n=null!=t&&(null==e||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=as(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=Vi}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const as=t=>t&&(ss?{capture:t.capture,passive:t.passive,once:t.once}:t.capture) | ||
/** | ||
@@ -162,2 +162,2 @@ * @license | ||
*/ | ||
(window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const bs={};class ws extends gs{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,r)=>t.reduceRight(((t,r)=>Array.isArray(r)?e(r,t):(t.add(r),t)),r),r=e(t,new Set),n=[];r.forEach((t=>n.unshift(t))),this._styles=n}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!ms){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return new _s(String(e),vs)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?ms?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==bs&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return bs}}ws.finalized=!0,ws.render=(t,e,r)=>{let n=hs.get(e);void 0===n&&(Vi(e,e.firstChild),hs.set(e,n=new es(Object.assign({templateFactory:us},r))),n.appendInto(e)),n.setValue(t),n.commit()},ws.shadowRootOptions={mode:"open"};var xs=Ss`*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:reduce){*,:after,:before{transition:none!important;animation:none!important}}:focus-visible{outline:0}:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :focus:not(.focus-visible){outline:3px solid transparent}.sized-background{display:none}@media (min-width:660px){.background-sm{display:block}}@media (min-width:1024px){.background-md{display:block}}@media (min-width:1232px){.background-lg{display:block}}`,Ps=Ss``;const Es=t=>Object.entries(t).reduce(((t,[e,r])=>`${t}${e.replace(/(?<prop>[A-Z])/gu,(t=>`-${t[0].toLowerCase()}`))}:${r};`),"");class Ts extends ws{constructor(){super(),this.background="transparent",this.minHeight="100%"}static get properties(){return{background:{type:String},backgroundSm:{type:String},backgroundMd:{type:String},backgroundLg:{type:String},minHeight:{type:String},minHeightSm:{type:String},minHeightMd:{type:String},minHeightLg:{type:String}}}static get styles(){return[xs,Ps]}render(){return this.backgroundStyles={...this.background&&{background:this.background},...this.minHeight&&{"min-height":this.minHeight,width:"auto"}},this.backgroundSmallStyles={...this.backgroundSm&&{background:this.backgroundSm},...this.minHeightSm&&{"min-height":this.minHeightSm,width:"auto"}},this.backgroundMediumStyles={...this.backgroundSm&&{background:this.backgroundSm},...this.minHeightSm&&{"min-height":this.minHeightSm,width:"auto"}},this.backgroundLargeStyles={...this.backgroundSm&&{background:this.backgroundSm},...this.minHeightSm&&{"min-height":this.minHeightSm,width:"auto"}},ys`<div class="bg" style="${Es(this.backgroundStyles)}"><slot></slot></div>${this.backgroundSm&&ys`<div class="sized-background background-sm" style="${Es(this.backgroundSmallStyles)}"><slot></slot></div>`} ${this.backgroundMd&&ys`<div class="sized-background background-md" style="${Es(this.backgroundMediumStyles)}"><slot></slot></div>`} ${this.backgroundLg&&ys`<div class="sized-background background-lg" style="${Es(this.backgroundLargeStyles)}"><slot></slot></div>`}`}}customElements.get("auro-background")||customElements.define("auro-background",Ts); | ||
(window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const bs={};class ws extends gs{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,r)=>t.reduceRight(((t,r)=>Array.isArray(r)?e(r,t):(t.add(r),t)),r),r=e(t,new Set),n=[];r.forEach((t=>n.unshift(t))),this._styles=n}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!ms){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return new _s(String(e),vs)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?ms?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==bs&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return bs}}ws.finalized=!0,ws.render=(t,e,r)=>{let n=hs.get(e);void 0===n&&(Ii(e,e.firstChild),hs.set(e,n=new es(Object.assign({templateFactory:us},r))),n.appendInto(e)),n.setValue(t),n.commit()},ws.shadowRootOptions={mode:"open"};var xs=Ss`*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:reduce){*,:after,:before{transition:none!important;animation:none!important}}:focus-visible{outline:0}:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :focus:not(.focus-visible){outline:3px solid transparent}.background{width:auto;height:inherit}@media (max-width:659px){.background-lg,.background-md,.background-sm{height:100%!important;background:0 0!important}}@media (min-width:660px) and (max-width:1023px){.background-lg,.background-md,.background-xs{height:100%!important;background:0 0!important}}@media (min-width:1024px) and (max-width:1231px){.background-lg,.background-sm,.background-xs{height:100%!important;background:0 0!important}}@media (min-width:1232px){.background-md,.background-sm,.background-xs{height:100%!important;background:0 0!important}}`,Ps=Ss``;const Es=t=>Object.entries(t).reduce(((t,[e,r])=>`${t}${e.replace(/(?<prop>[A-Z])/gu,(t=>`-${t[0].toLowerCase()}`))}:${r};`),"");class ks extends ws{constructor(){super(),this.background="transparent",this.minHeight="250px",this.minHeightSm="100%"}static get properties(){return{background:{type:String},backgroundSm:{type:String},backgroundMd:{type:String},backgroundLg:{type:String},minHeight:{type:String},minHeightSm:{type:String},minHeightMd:{type:String},minHeightLg:{type:String}}}static get styles(){return[xs,Ps]}render(){return this.backgroundStyles={background:this.background,"min-height":this.minHeight},this.backgroundSmallStyles={background:this.backgroundSm?this.backgroundSm:this.background,"min-height":this.minHeightSm?this.minHeightSm:this.minHeight},this.backgroundMediumStyles={background:this.backgroundMd?this.backgroundMd:this.backgroundSmallStyles.background,"min-height":this.minHeightMd?this.minHeightMd:this.backgroundSmallStyles["min-height"]},this.backgroundLargeStyles={background:this.backgroundLg?this.backgroundLg:this.backgroundMediumStyles.background,"min-height":this.minHeightLg?this.minHeightLg:this.backgroundMediumStyles["min-height"]},ys`<div class="background background-xs" style="${Es(this.backgroundStyles)}"><div class="background background-sm" style="${Es(this.backgroundSmallStyles)}"><div class="background background-md" style="${Es(this.backgroundMediumStyles)}"><div class="background background-lg" style="${Es(this.backgroundLargeStyles)}"><slot></slot></div></div></div></div>`}}customElements.get("auro-background")||customElements.define("auro-background",ks); |
@@ -48,4 +48,4 @@ /* eslint-disable no-magic-numbers */ | ||
this.background = "transparent"; | ||
this.minHeight = "100%"; | ||
this.minHeight = "250px"; | ||
this.minHeightSm = "100%"; | ||
} | ||
@@ -80,27 +80,28 @@ | ||
this.backgroundStyles = { | ||
...this.background && {'background': this.background}, | ||
...this.minHeight && {'min-height': this.minHeight, | ||
'width': 'auto'} | ||
'background': this.background, | ||
'min-height': this.minHeight, | ||
}; | ||
this.backgroundSmallStyles = { | ||
...this.backgroundSm && {'background': this.backgroundSm}, | ||
...this.minHeightSm && {'min-height': this.minHeightSm, | ||
'width': 'auto'} | ||
'background': this.backgroundSm ? this.backgroundSm : this.background, | ||
'min-height': this.minHeightSm ? this.minHeightSm : this.minHeight, | ||
}; | ||
this.backgroundMediumStyles = { | ||
...this.backgroundSm && {'background': this.backgroundSm}, | ||
...this.minHeightSm && {'min-height': this.minHeightSm, | ||
'width': 'auto'} | ||
'background': this.backgroundMd ? this.backgroundMd : this.backgroundSmallStyles.background, | ||
'min-height': this.minHeightMd ? this.minHeightMd : this.backgroundSmallStyles['min-height'], | ||
}; | ||
this.backgroundLargeStyles = { | ||
...this.backgroundSm && {'background': this.backgroundSm}, | ||
...this.minHeightSm && {'min-height': this.minHeightSm, | ||
'width': 'auto'} | ||
'background': this.backgroundLg ? this.backgroundLg : this.backgroundMediumStyles.background, | ||
'min-height': this.minHeightLg ? this.minHeightLg : this.backgroundMediumStyles['min-height'], | ||
}; | ||
return html` | ||
<div class="bg" style=${styleMap(this.backgroundStyles)}><slot></slot></div> | ||
${this.backgroundSm && html`<div class="sized-background background-sm" style=${styleMap(this.backgroundSmallStyles)}><slot></slot></div>`} | ||
${this.backgroundMd && html`<div class="sized-background background-md" style=${styleMap(this.backgroundMediumStyles)}><slot></slot></div>`} | ||
${this.backgroundLg && html`<div class="sized-background background-lg" style=${styleMap(this.backgroundLargeStyles)}><slot></slot></div>`} | ||
<div class="background background-xs" style=${styleMap(this.backgroundStyles)}> | ||
<div class="background background-sm" style=${styleMap(this.backgroundSmallStyles)}> | ||
<div class="background background-md" style=${styleMap(this.backgroundMediumStyles)}> | ||
<div class="background background-lg" style=${styleMap(this.backgroundLargeStyles)}> | ||
<slot></slot> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
@@ -107,0 +108,0 @@ } |
import {css} from 'lit-element'; | ||
export default css`*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: reduce){*,*:before,*:after{transition:none !important;animation:none !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :focus:not(.focus-visible){outline:3px solid transparent}.sized-background{display:none}@media (min-width: 660px){.background-sm{display:block}}@media (min-width: 1024px){.background-md{display:block}}@media (min-width: 1232px){.background-lg{display:block}} | ||
export default css`*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: reduce){*,*:before,*:after{transition:none !important;animation:none !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :focus:not(.focus-visible){outline:3px solid transparent}.background{width:auto;height:inherit}@media (max-width: 659px){.background-sm,.background-md,.background-lg{height:100% !important;background:transparent !important}}@media (min-width: 660px) and (max-width: 1023px){.background-xs,.background-md,.background-lg{height:100% !important;background:transparent !important}}@media (min-width: 1024px) and (max-width: 1231px){.background-xs,.background-sm,.background-lg{height:100% !important;background:transparent !important}}@media (min-width: 1232px){.background-xs,.background-sm,.background-md{height:100% !important;background:transparent !important}} | ||
`; |
@@ -11,3 +11,3 @@ { | ||
"name": "@aurolabs/auro-background", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "auro-background HTML custom element", | ||
@@ -14,0 +14,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
342317
0.3%1447
0.21%