@danielgindi/dom-utils 1.0.5 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +1120 -522
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +28 -5
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +1120 -522
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/Css.js +12 -1
- package/lib/Dom.js +9 -1
- package/lib/ScrollHelper.js +5 -1
- package/package.json +11 -11
package/dist/lib.umd.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dom-utils 1.0.
|
|
2
|
+
* @danielgindi/dom-utils 1.0.8
|
|
3
3
|
* git://github.com/danielgindi/dom-utils.git
|
|
4
4
|
*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).domutils={})}(this,(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){this.wrapped=e}function r(e){var t,r;function o(t,r){try{var a=e[t](r),l=a.value,c=l instanceof n;Promise.resolve(c?l.wrapped:l).then((function(e){c?o("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(i,a){var l={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=l:(t=r=l,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)};var u,f,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e){return e&&e.Math==Math&&e},p=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof s&&s)||function(){return this}()||Function("return this")(),h={},v=function(e){try{return!!e()}catch(e){return!0}},g=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y={},m={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,x=b&&!m.call({1:2},1),S=(y.f=x?function(e){var t=b(this,e);return!!t&&t.enumerable}:m,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),w={}.toString,E=function(e){return w.call(e).slice(8,-1)},O=E,j="".split,T=v((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?j.call(e,""):Object(e)}:Object,C=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},A=T,I=C,_=function(e){return A(I(e))},N=function(e){return"function"==typeof e},F=N,R=function(e){return"object"==typeof e?null!==e:F(e)},P=p,L=N,M=function(e){return L(e)?e:void 0},k=function(e,t){return arguments.length<2?M(P[e]):P[e]&&P[e][t]},W=p,$=k("navigator","userAgent")||"",D=W.process,z=W.Deno,B=D&&D.versions||z&&z.version,H=B&&B.v8;H?f=(u=H.split("."))[0]<4?1:u[0]+u[1]:$&&(!(u=$.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=$.match(/Chrome\/(\d+)/))&&(f=u[1]);var U=f&&+f,Y=U,q=v,X=!!Object.getOwnPropertySymbols&&!q((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),G=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=N,V=k,J=G?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return K(t)&&Object(e)instanceof t},Q=function(e){try{return String(e)}catch(e){return"Object"}},Z=N,ee=Q,te=function(e){if(Z(e))return e;throw TypeError(ee(e)+" is not a function")},ne=te,re=function(e,t){var n=e[t];return null==n?void 0:ne(n)},oe=N,ie=R,ae={exports:{}},le=p,ce=function(e,t){try{Object.defineProperty(le,e,{value:t,configurable:!0,writable:!0})}catch(n){le[e]=t}return t},ue=ce,fe="__core-js_shared__",se=p[fe]||ue(fe,{}),de=se;(ae.exports=function(e,t){return de[e]||(de[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"}),ae.exports;var pe=C,he=function(e){return Object(pe(e))},ve=he,ge={}.hasOwnProperty,ye=Object.hasOwn||function(e,t){return ge.call(ve(e),t)},me=0,be=Math.random(),xe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++me+be).toString(36)},Se=p,we=ae.exports,Ee=ye,Oe=xe,je=X,Te=G,Ce=we("wks"),Ae=Se.Symbol,Ie=Te?Ae:Ae&&Ae.withoutSetter||Oe,_e=function(e){return Ee(Ce,e)&&(je||"string"==typeof Ce[e])||(je&&Ee(Ae,e)?Ce[e]=Ae[e]:Ce[e]=Ie("Symbol."+e)),Ce[e]},Ne=R,Fe=J,Re=re,Pe=_e("toPrimitive"),Le=function(e,t){if(!Ne(e)||Fe(e))return e;var n,r=Re(e,Pe);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!Ne(n)||Fe(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&oe(n=e.toString)&&!ie(r=n.call(e)))return r;if(oe(n=e.valueOf)&&!ie(r=n.call(e)))return r;if("string"!==t&&oe(n=e.toString)&&!ie(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},Me=J,ke=function(e){var t=Le(e,"string");return Me(t)?t:String(t)},We=R,$e=p.document,De=We($e)&&We($e.createElement),ze=function(e){return De?$e.createElement(e):{}},Be=ze,He=!g&&!v((function(){return 7!=Object.defineProperty(Be("div"),"a",{get:function(){return 7}}).a})),Ue=g,Ye=y,qe=S,Xe=_,Ge=ke,Ke=ye,Ve=He,Je=Object.getOwnPropertyDescriptor,Qe=(h.f=Ue?Je:function(e,t){if(e=Xe(e),t=Ge(t),Ve)try{return Je(e,t)}catch(e){}if(Ke(e,t))return qe(!Ye.f.call(e,t),e[t])},{}),Ze=R,et=function(e){if(Ze(e))return e;throw TypeError(String(e)+" is not an object")},tt=g,nt=He,rt=et,ot=ke,it=Object.defineProperty,at=(Qe.f=tt?it:function(e,t,n){if(rt(e),t=ot(t),rt(n),nt)try{return it(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qe),lt=S,ct=g?function(e,t,n){return at.f(e,t,lt(1,n))}:function(e,t,n){return e[t]=n,e},ut={exports:{}},ft=N,st=se,dt=Function.toString;ft(st.inspectSource)||(st.inspectSource=function(e){return dt.call(e)});var pt,ht,vt,gt=st.inspectSource,yt=N,mt=gt,bt=p.WeakMap,xt=yt(bt)&&/native code/.test(mt(bt)),St=ae.exports,wt=xe,Et=St("keys"),Ot=function(e){return Et[e]||(Et[e]=wt(e))},jt={},Tt=xt,Ct=R,At=ct,It=ye,_t=se,Nt=Ot,Ft=jt,Rt="Object already initialized",Pt=p.WeakMap;if(Tt||_t.state){var Lt=_t.state||(_t.state=new Pt),Mt=Lt.get,kt=Lt.has,Wt=Lt.set;pt=function(e,t){if(kt.call(Lt,e))throw new TypeError(Rt);return t.facade=e,Wt.call(Lt,e,t),t},ht=function(e){return Mt.call(Lt,e)||{}},vt=function(e){return kt.call(Lt,e)}}else{var $t=Nt("state");Ft[$t]=!0,pt=function(e,t){if(It(e,$t))throw new TypeError(Rt);return t.facade=e,At(e,$t,t),t},ht=function(e){return It(e,$t)?e[$t]:{}},vt=function(e){return It(e,$t)}}var Dt={set:pt,get:ht,has:vt,enforce:function(e){return vt(e)?ht(e):pt(e,{})},getterFor:function(e){return function(t){var n;if(!Ct(t)||(n=ht(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},zt=g,Bt=ye,Ht=Function.prototype,Ut=zt&&Object.getOwnPropertyDescriptor,Yt=Bt(Ht,"name"),qt={EXISTS:Yt,PROPER:Yt&&"something"===function(){}.name,CONFIGURABLE:Yt&&(!zt||zt&&Ut(Ht,"name").configurable)},Xt=p,Gt=N,Kt=ye,Vt=ct,Jt=ce,Qt=gt,Zt=qt.CONFIGURABLE,en=Dt.get,tn=Dt.enforce,nn=String(String).split("String");(ut.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,l=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Gt(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Kt(n,"name")||Zt&&n.name!==c)&&Vt(n,"name",c),(o=tn(n)).source||(o.source=nn.join("string"==typeof c?c:""))),e!==Xt?(i?!l&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Vt(e,t,n)):a?e[t]=n:Jt(t,n)})(Function.prototype,"toString",(function(){return Gt(this)&&en(this).source||Qt(this)})),ut.exports;var rn={},on=Math.ceil,an=Math.floor,ln=function(e){var t=+e;return t!=t||0===t?0:(t>0?an:on)(t)},cn=ln,un=Math.max,fn=Math.min,sn=ln,dn=Math.min,pn=function(e){return e>0?dn(sn(e),9007199254740991):0},hn=pn,vn=function(e){return hn(e.length)},gn=_,yn=vn,mn=function(e){return function(t,n,r){var o,i=gn(t),a=yn(i),l=function(e,t){var n=cn(e);return n<0?un(n+t,0):fn(n,t)}(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},bn={includes:mn(!0),indexOf:mn(!1)},xn=ye,Sn=_,wn=bn.indexOf,En=jt,On=function(e,t){var n,r=Sn(e),o=0,i=[];for(n in r)!xn(En,n)&&xn(r,n)&&i.push(n);for(;t.length>o;)xn(r,n=t[o++])&&(~wn(i,n)||i.push(n));return i},jn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tn=On,Cn=jn.concat("length","prototype"),An=(rn.f=Object.getOwnPropertyNames||function(e){return Tn(e,Cn)},{}),In=(An.f=Object.getOwnPropertySymbols,rn),_n=An,Nn=et,Fn=k("Reflect","ownKeys")||function(e){var t=In.f(Nn(e)),n=_n.f;return n?t.concat(n(e)):t},Rn=ye,Pn=Fn,Ln=h,Mn=Qe,kn=v,Wn=N,$n=/#|\.prototype\./,Dn=function(e,t){var n=Bn[zn(e)];return n==Un||n!=Hn&&(Wn(t)?kn(t):!!t)},zn=Dn.normalize=function(e){return String(e).replace($n,".").toLowerCase()},Bn=Dn.data={},Hn=Dn.NATIVE="N",Un=Dn.POLYFILL="P",Yn=Dn,qn=p,Xn=h.f,Gn=ct,Kn=ut.exports,Vn=ce,Jn=function(e,t){for(var n=Pn(t),r=Mn.f,o=Ln.f,i=0;i<n.length;i++){var a=n[i];Rn(e,a)||r(e,a,o(t,a))}},Qn=Yn,Zn=function(e,t){var n,r,o,i,a,l=e.target,c=e.global,u=e.stat;if(n=c?qn:u?qn[l]||Vn(l,{}):(qn[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xn(n,r))&&a.value:n[r],!Qn(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jn(i,o)}(e.sham||o&&o.sham)&&Gn(i,"sham",!0),Kn(n,r,i,e)}},er=On,tr=jn,nr=Object.keys||function(e){return er(e,tr)},rr=g,or=nr,ir=_,ar=y.f,lr=function(e){return function(t){for(var n,r=ir(t),o=or(r),i=o.length,a=0,l=[];i>a;)n=o[a++],rr&&!ar.call(r,n)||l.push(e?[n,r[n]]:r[n]);return l}},cr=[lr(!0),lr(!1)][0];Zn({target:"Object",stat:!0},{entries:function(e){return cr(e)}});var ur={};ur[_e("toStringTag")]="z";var fr,sr="[object z]"===String(ur),dr=N,pr=E,hr=_e("toStringTag"),vr="Arguments"==pr(function(){return arguments}()),gr=sr?pr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),hr))?n:vr?pr(t):"Object"==(r=pr(t))&&dr(t.callee)?"Arguments":r},yr=gr,mr=function(e){if("Symbol"===yr(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},br=R,xr=E,Sr=_e("match"),wr=function(e){var t;return br(e)&&(void 0!==(t=e[Sr])?!!t:"RegExp"==xr(e))},Er=wr,Or=_e("match"),jr=Zn,Tr=h.f,Cr=pn,Ar=mr,Ir=function(e){if(Er(e))throw TypeError("The method doesn't accept regular expressions");return e},_r=C,Nr="".endsWith,Fr=Math.min,Rr=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Or]=!1,"/./"[e](t)}catch(e){}}return!1}("endsWith");jr({target:"String",proto:!0,forced:!(!Rr&&(fr=Tr(String.prototype,"endsWith"),fr&&!fr.writable)||Rr)},{endsWith:function(e){var t=Ar(_r(this));Ir(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Fr(Cr(n),r),i=Ar(e);return Nr?Nr.call(t,i,o):t.slice(o-i.length,o)===i}});var Pr,Lr=et,Mr={},kr=v,Wr=p.RegExp,$r=(Mr.UNSUPPORTED_Y=kr((function(){var e=Wr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Mr.BROKEN_CARET=kr((function(){var e=Wr("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Qe),Dr=et,zr=nr,Br=g?Object.defineProperties:function(e,t){Dr(e);for(var n,r=zr(t),o=r.length,i=0;o>i;)$r.f(e,n=r[i++],t[n]);return e},Hr=k("document","documentElement"),Ur=et,Yr=Br,qr=jn,Xr=jt,Gr=Hr,Kr=ze,Vr=Ot("IE_PROTO"),Jr=function(){},Qr=function(e){return"<script>"+e+"<\/script>"},Zr=function(e){e.write(Qr("")),e.close();var t=e.parentWindow.Object;return e=null,t},eo=function(){try{Pr=new ActiveXObject("htmlfile")}catch(e){}var e,t;eo="undefined"!=typeof document?document.domain&&Pr?Zr(Pr):((t=Kr("iframe")).style.display="none",Gr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Qr("document.F=Object")),e.close(),e.F):Zr(Pr);for(var n=qr.length;n--;)delete eo.prototype[qr[n]];return eo()};Xr[Vr]=!0;var to,no,ro=Object.create||function(e,t){var n;return null!==e?(Jr.prototype=Ur(e),n=new Jr,Jr.prototype=null,n[Vr]=e):n=eo(),void 0===t?n:Yr(n,t)},oo=v,io=p.RegExp,ao=oo((function(){var e=io(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),lo=v,co=p.RegExp,uo=lo((function(){var e=co("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),fo=mr,so=function(){var e=Lr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},po=Mr,ho=ae.exports,vo=ro,go=Dt.get,yo=ao,mo=uo,bo=RegExp.prototype.exec,xo=ho("native-string-replace",String.prototype.replace),So=bo,wo=(to=/a/,no=/b*/g,bo.call(to,"a"),bo.call(no,"a"),0!==to.lastIndex||0!==no.lastIndex),Eo=po.UNSUPPORTED_Y||po.BROKEN_CARET,Oo=void 0!==/()??/.exec("")[1];(wo||Oo||Eo||yo||mo)&&(So=function(e){var t,n,r,o,i,a,l,c=this,u=go(c),f=fo(e),s=u.raw;if(s)return s.lastIndex=c.lastIndex,t=So.call(s,f),c.lastIndex=s.lastIndex,t;var d=u.groups,p=Eo&&c.sticky,h=so.call(c),v=c.source,g=0,y=f;if(p&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),y=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Oo&&(n=new RegExp("^"+v+"$(?!\\s)",h)),wo&&(r=c.lastIndex),o=bo.call(p?n:c,y),p?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:wo&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Oo&&o&&o.length>1&&xo.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=vo(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var jo=So;Zn({target:"RegExp",proto:!0,forced:/./.exec!==jo},{exec:jo});var To=ut.exports,Co=jo,Ao=v,Io=_e,_o=ct,No=Io("species"),Fo=RegExp.prototype,Ro=function(e,t,n,r){var o=Io(e),i=!Ao((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ao((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[No]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=/./[o],c=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Co||a===Fo.exec?i&&!o?{done:!0,value:l.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));To(String.prototype,e,c[0]),To(Fo,o,c[1])}r&&_o(Fo[o],"sham",!0)},Po=v,Lo=N,Mo=gr,ko=gt,Wo=[],$o=k("Reflect","construct"),Do=/^\s*(?:class|function)\b/,zo=Do.exec,Bo=!Do.exec((function(){})),Ho=function(e){if(!Lo(e))return!1;try{return $o(Object,Wo,e),!0}catch(e){return!1}},Uo=!$o||Po((function(){var e;return Ho(Ho.call)||!Ho(Object)||!Ho((function(){e=!0}))||e}))?function(e){if(!Lo(e))return!1;switch(Mo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bo||!!zo.call(Do,ko(e))}:Ho,Yo=Uo,qo=Q,Xo=et,Go=_e("species"),Ko=ln,Vo=mr,Jo=C,Qo=function(e){return function(t,n){var r,o,i=Vo(Jo(t)),a=Ko(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===l||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Zo=(Qo(!1),Qo(!0)),ei=function(e,t,n){return t+(n?Zo(e,t).length:1)},ti=et,ni=N,ri=E,oi=jo,ii=function(e,t){var n=e.exec;if(ni(n)){var r=n.call(e,t);return null!==r&&ti(r),r}if("RegExp"===ri(e))return oi.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},ai=Ro,li=wr,ci=et,ui=C,fi=function(e,t){var n,r=Xo(e).constructor;return void 0===r||null==(n=Xo(r)[Go])?t:function(e){if(Yo(e))return e;throw TypeError(qo(e)+" is not a constructor")}(n)},si=ei,di=pn,pi=mr,hi=re,vi=ii,gi=jo,yi=v,mi=Mr.UNSUPPORTED_Y,bi=[].push,xi=Math.min,Si=4294967295;ai("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=pi(ui(this)),o=void 0===n?Si:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!li(e))return t.call(r,e,o);for(var i,a,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,u+"g");(i=gi.call(s,r))&&!((a=s.lastIndex)>f&&(c.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&bi.apply(c,i.slice(1)),l=i[0].length,f=a,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!l&&s.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=ui(this),i=null==t?void 0:hi(t,e);return i?i.call(t,o,n):r.call(pi(o),t,n)},function(e,o){var i=ci(this),a=pi(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var c=fi(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mi?"g":"y"),s=new c(mi?"^(?:"+i.source+")":i,f),d=void 0===o?Si:o>>>0;if(0===d)return[];if(0===a.length)return null===vi(s,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){s.lastIndex=mi?0:h;var g,y=vi(s,mi?a.slice(h):a);if(null===y||(g=xi(di(s.lastIndex+(mi?h:0)),a.length))===p)h=si(a,h,u);else{if(v.push(a.slice(p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===d)return v;h=p=g}}return v.push(a.slice(p)),v}]}),!!yi((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),mi);var wi=te,Ei=E,Oi=Array.isArray||function(e){return"Array"==Ei(e)},ji=Uo,Ti=R,Ci=_e("species"),Ai=T,Ii=he,_i=vn,Ni=function(e,t){return new(function(e){var t;return Oi(e)&&(t=e.constructor,(ji(t)&&(t===Array||Oi(t.prototype))||Ti(t)&&null===(t=t[Ci]))&&(t=void 0)),void 0===t?Array:t}(e))(0===t?0:t)},Fi=[].push,Ri=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(c,u,f,s){for(var d,p,h=Ii(c),v=Ai(h),g=function(e,t,n){if(wi(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(u,f,3),y=_i(v),m=0,b=s||Ni,x=t?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((l||m in v)&&(p=g(d=v[m],m,h),e))if(t)x[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Fi.call(x,d)}else switch(e){case 4:return!1;case 7:Fi.call(x,d)}return i?-1:r||o?o:x}},Pi={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},Li=v,Mi=U,ki=_e("species"),Wi=function(e){return Mi>=51||!Li((function(){var t=[];return(t.constructor={})[ki]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$i=Pi.map;Zn({target:"Array",proto:!0,forced:!Wi("map")},{map:function(e){return $i(this,e,arguments.length>1?arguments[1]:void 0)}});var Di=Pi.filter;Zn({target:"Array",proto:!0,forced:!Wi("filter")},{filter:function(e){return Di(this,e,arguments.length>1?arguments[1]:void 0)}});var zi=et,Bi=pn,Hi=mr,Ui=C,Yi=re,qi=ei,Xi=ii;Ro("match",(function(e,t,n){return[function(t){var n=Ui(this),r=null==t?void 0:Yi(t,e);return r?r.call(t,n):new RegExp(t)[e](Hi(n))},function(e){var r=zi(this),o=Hi(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xi(r,o);var a=r.unicode;r.lastIndex=0;for(var l,c=[],u=0;null!==(l=Xi(r,o));){var f=Hi(l[0]);c[u]=f,""===f&&(r.lastIndex=qi(o,Bi(r.lastIndex),a)),u++}return 0===u?null:c}]}));var Gi,Ki=C,Vi=mr,Ji="[\t\n\v\f\r \u2028\u2029\ufeff]",Qi=RegExp("^"+Ji+Ji+"*"),Zi=RegExp(Ji+Ji+"*$"),ea=function(e){return function(t){var n=Vi(Ki(t));return 1&e&&(n=n.replace(Qi,"")),2&e&&(n=n.replace(Zi,"")),n}},ta={start:ea(1),end:ea(2),trim:ea(3)},na=qt.PROPER,ra="\t\n\v\f\r \u2028\u2029\ufeff",oa=ta.trim;Zn({target:"String",proto:!0,forced:(Gi="trim",v((function(){return!!ra.trim()||"
"!=="
".trim()||na&&ra.trim.name!==Gi})))},{trim:function(){return oa(this)}});var ia=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],l=o[1];e.style[a]=null==l?"":String(l)}},aa=function(e,t,n,r,o){return function(){var i,a,l,c,u=arguments.length<=0?void 0:arguments[0];if(e?(i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]),l=!!(arguments.length<=3?void 0:arguments[3]),c=!!(arguments.length<=4?void 0:arguments[4])):(a=!!(arguments.length<=1?void 0:arguments[1]),l=!!(arguments.length<=2?void 0:arguments[2]),c=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(n)];if(9===u.nodeType){var f=u.documentElement,s=u.body;return Math.max(s["scroll".concat(n)],f["scroll".concat(n)],s["offset".concat(n)],f["offset".concat(n)],f["client".concat(n)])}var d,p,h=!1,v=!1;if(!e&&"getBoundingClientRect"in u&&(d=u.getBoundingClientRect()[t],h=!0,v=!0),(void 0===d||c||h!==a||v!==l)&&(p=e?getComputedStyle(u,i):getComputedStyle(u)),void 0===d){var g=p[t];"auto"===g?(d=u["client".concat(n)],h=!0):d=parseFloat(g),"border-box"===p.boxSizing&&(h=!0,v=!0)}if(a!==h){var y=parseFloat(p["padding-".concat(r)]||0)+parseFloat(p["padding-".concat(o)]||0);a?d+=y:d-=y}if(l!==v){var m=parseFloat(p["border-".concat(r,"-width")]||0)+parseFloat(p["border-".concat(o,"-width")]||0);l?d+=m:d-=m}if(d<0&&(d=0),c){var b=parseFloat(p["margin-".concat(r)]||0)+parseFloat(p["margin-".concat(o)]||0);d+=b}return d}},la=function(e,t,n,r){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t!==window&&9!==t.nodeType){var c=getComputedStyle(t),u=!1;if("border-box"===c.boxSizing&&(u=!0),i=!!i,a=!!a,(l=!!l)&&(o-=(parseFloat(c["margin-".concat(n)])||0)+(parseFloat(c["margin-".concat(r)])||0)),i!==u){var f=parseFloat(c["padding-".concat(n)]||0)+parseFloat(c["padding-".concat(r)]||0);i?o-=f:o+=f}if(a!==u){var s=(parseFloat(c["border-".concat(n,"-width")])||0)+(parseFloat(c["border-".concat(r,"-width")])||0);a?o-=s:o+=s}o<0&&(o=0),t.style[e]=o+"px"}}},ca=aa(!1,"width","Width","left","right"),ua=aa(!1,"height","Height","top","bottom"),fa=aa(!0,"width","Width","left","right"),sa=aa(!0,"height","Height","top","bottom"),da=la("width",0,"left","right"),pa=la("height",0,"top","bottom"),ha=function(e){if(e){var t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)}},va=function(e){return/^-?(0?\.)?\d+m?s$/.test(e)},ga=function(e){var t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],i=t[3];return va(o)?{delay:ha(o),duration:ha(r),name:n}:{delay:ha(i),duration:ha(r),name:n,timingFunction:o}},ya=Object.freeze({__proto__:null,getCssProps:function(e,t){var n,r=getComputedStyle(e),o={},i=c(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,l=r[a];("width"===a||"height"===a)&&"auto"===l&&e instanceof HTMLElement&&(l=e["offset"+a.substr(0,1).toUpperCase()+a.substr(1)],"border-box"!==r.boxSizing&&("width"===a?(l-=parseFloat(r.paddingLeft||0),l-=parseFloat(r.paddingRight||0),l-=parseFloat(r.borderLeftWidth||0),l-=parseFloat(r.borderRightWidth||0)):(l-=parseFloat(r.paddingTop||0),l-=parseFloat(r.paddingBottom||0),l-=parseFloat(r.borderTopWidth||0),l-=parseFloat(r.borderBottomWidth||0)),l<0&&(l=0)),l+="px"),o[a]=l}}catch(e){i.e(e)}finally{i.f()}return o},setCssProps:ia,getElementWidth:ca,getElementHeight:ua,setElementWidth:da,setElementHeight:pa,getPseudoElementWidth:fa,getPseudoElementHeight:sa,getElementOffset:function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,r,o){var i,a,l,c;if(r||(r={width:ca(e,!0,!0),height:ca(e,!0,!0)}),"start"!==t&&"end"!==t||(null==o&&(o="rtl"===getComputedStyle(e).direction),t="start"===t?o?"right":"left":o?"left":"right"),"right"===t)i=r.width,l=0;else if("center"===t)l=i=r.width/2;else if("left"===t)i=0,l=r.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){var u=(parseFloat(t)||0)/100;i=r.width*u,l=r.width*-u,null==o&&(o="rtl"===getComputedStyle(e).direction),o&&(i=r.width-i,l=r.width-i)}else l=-(i=parseFloat(t)||0);if("bottom"===n)a=r.height,c=0;else if("center"===n)c=a=r.height/2;else if("top"===n)a=0,c=r.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){var f=(parseFloat(n)||0)/100;a=r.height*f,c=r.height*-f}else c=-(a=parseFloat(n)||0);return{left:i,top:a,right:l,bottom:c,xSpec:t,ySpec:n}},parseTransition:function(e){return e.match(/([^,()]|\([^)]*\))+/g).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).map(ga)},parseSingleTransition:ga,isTimeString:va,timeToMs:ha}),ma=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],l=o[1];null!=l&&("innerHTML"===a?e.innerHTML=String(l):"css"===a&&"style"in e?ia(e,l):"readOnly"===a||"tabIndex"===a||"textContent"===a?e[a]=l:e.setAttribute(a,String(l)))}},ba=Object.freeze({__proto__:null,createElement:function(e,n,r){var o=document.createElement(e);if(n&&"object"===t(n)&&ma(o,n),r)if(r instanceof Node)o.appendChild(r);else if(Array.isArray(r)){var i,a=c(r);try{for(a.s();!(i=a.n()).done;){var l=i.value;o.appendChild(l)}}catch(e){a.e(e)}finally{a.f()}}return o},setElementAttrs:ma,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);var r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null}}),xa=he,Sa=Math.floor,wa="".replace,Ea=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oa=/\$([$&'`]|\d{1,2})/g,ja=Ro,Ta=v,Ca=et,Aa=N,Ia=ln,_a=pn,Na=mr,Fa=C,Ra=ei,Pa=re,La=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,c=Oa;return void 0!==o&&(o=xa(o),c=Ea),wa.call(i,c,(function(i,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":u=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>l){var s=Sa(f/10);return 0===s?i:s<=l?void 0===r[s-1]?c.charAt(1):r[s-1]+c.charAt(1):i}u=r[f-1]}return void 0===u?"":u}))},Ma=ii,ka=_e("replace"),Wa=Math.max,$a=Math.min,Da="$0"==="a".replace(/./,"$0"),za=!!/./[ka]&&""===/./[ka]("a","$0");ja("replace",(function(e,t,n){var r=za?"$":"$0";return[function(e,n){var r=Fa(this),o=null==e?void 0:Pa(e,ka);return o?o.call(e,r,n):t.call(Na(r),e,n)},function(e,o){var i=Ca(this),a=Na(e);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var l=n(t,i,a,o);if(l.done)return l.value}var c=Aa(o);c||(o=Na(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Ma(i,a);if(null===d)break;if(s.push(d),!u)break;""===Na(d[0])&&(i.lastIndex=Ra(a,_a(i.lastIndex),f))}for(var p,h="",v=0,g=0;g<s.length;g++){d=s[g];for(var y=Na(d[0]),m=Wa($a(Ia(d.index),a.length),0),b=[],x=1;x<d.length;x++)b.push(void 0===(p=d[x])?p:String(p));var S=d.groups;if(c){var w=[y].concat(b,m,a);void 0!==S&&w.push(S);var E=Na(o.apply(void 0,w))}else E=La(y,a,m,b,S,o);m>=v&&(h+=a.slice(v,m)+E,v=m+y.length)}return h+a.slice(v)}]}),!!Ta((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Da||za);var Ba=null,Ha=function(){try{document.createElement("div").querySelector(":scope > div"),Ba=!0}catch(e){Ba=!1}},Ua=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("before"in e)e.before.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.parentNode.insertBefore(o,e)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.parentNode.insertBefore(l,e)}},after:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("after"in e)e.after.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.nextSibling?e.parentNode.insertBefore(o,e.nextSibling):e.parentNode.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.nextSibling?e.parentNode.insertBefore(l,e.nextSibling):e.parentNode.appendChild(l)}},prepend:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("prepend"in e)e.prepend.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}},append:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("append"in e)e.append.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.appendChild(l)}},scopedSelector:function(e,t){if(null===Ba&&Ha(),!0===Ba)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}},scopedSelectorAll:function(e,t){if(null===Ba&&Ha(),!0===Ba)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}},toggleClass:function(e,t,n){var r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),Ya=g,qa=qt.EXISTS,Xa=Qe.f,Ga=Function.prototype,Ka=Ga.toString,Va=/^\s*function ([^ (]*)/;Ya&&!qa&&Xa(Ga,"name",{configurable:!0,get:function(){try{return Ka.call(this).match(Va)[1]}catch(e){return""}}});var Ja=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events=[]}var n,r;return n=e,(r=[{key:"add",value:function(e,n,r,o){var i=n.split("."),a=i[0],l=i[1];e.addEventListener(a,r,o||!1);var c=!0===o||"object"===t(o)&&!0===o.capture;return this._events.push({el:e,name:a,namespace:l,handler:r,useCapture:c}),this}},{key:"remove",value:function(e,n,r,o){var i=n?n.split("."):"",a=i[0],l=i[1],u=!0===o||"object"===t(o)&&!0===o.capture,f=[],s=[];if(e||a||l||r||void 0!==o){var d,p=c(this._events);try{for(p.s();!(d=p.n()).done;){var h=d.value;e&&h.el!==e||a&&h.name!==a||l&&h.namespace!==l||r&&h.handler!==r||void 0!==o&&h.useCapture!==u?f.push(h):s.push(h)}}catch(e){p.e(e)}finally{p.f()}}else s=this._events;this._events=f;var v,g=c(s);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.el.removeEventListener(y.name,y.handler,y.useCapture)}}catch(e){g.e(e)}finally{g.f()}return this}}])&&o(n.prototype,r),e}(),Qa=Object.freeze({__proto__:null,default:Ja}),Za=Zn,el=Math.hypot,tl=Math.abs,nl=Math.sqrt;Za({target:"Math",stat:!0,forced:!!el&&el(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,i=0,a=arguments.length,l=0;i<a;)l<(n=tl(arguments[i++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*nl(o)}});var rl,ol=Object.freeze({__proto__:null,bindTouchTap:function(e,t){var n=null,r=null,o=function(t){if(null===n){var o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",i),e.addEventListener("touchcancel",a)}},i=function(e){if(null!==n){var o=null;if(e.changedTouches){if(null!=n){var i,a=c(e.changedTouches);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(l.identifier===n){o=l;break}}}catch(e){a.e(e)}finally{a.f()}}o||(o=e.changedTouches[0])}var u=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},f=r;if(n=null,r=null,null!==t.distance){var s=t.distance||1;if(Math.hypot(Math.abs(u.x-f.x),Math.abs(u.y-f.y))>=s)return!1}t.handler&&t.handler(e)}},a=function t(){n=null,r=null,e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",t)};return e.addEventListener("touchstart",o),{unbind:function(){e.removeEventListener("touchstart",o),e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",a)}}}}),il=g,al=v,ll=nr,cl=An,ul=y,fl=he,sl=T,dl=Object.assign,pl=Object.defineProperty,hl=!dl||al((function(){if(il&&1!==dl({b:1},dl(pl({},"a",{enumerable:!0,get:function(){pl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=dl({},e)[n]||ll(dl({},t)).join("")!=r}))?function(e,t){for(var n=fl(e),r=arguments.length,o=1,i=cl.f,a=ul.f;r>o;)for(var l,c=sl(arguments[o++]),u=i?ll(c).concat(i(c)):ll(c),f=u.length,s=0;f>s;)l=u[s++],il&&!a.call(c,l)||(n[l]=c[l]);return n}:dl;Zn({target:"Object",stat:!0,forced:Object.assign!==hl},{assign:hl});var vl=function(){var e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===e.scrollLeft&&(t="negative")),e.parentNode.removeChild(e),t};function gl(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===rl&&(rl=vl()),!n)return t;switch(rl){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function yl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===rl&&(rl=vl()),!t)return e.scrollLeft;switch(rl){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function ml(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),gl(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var bl=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:gl,getScrollLeft:yl,setScrollLeft:function(e,t,n){e.scrollLeft=gl(e,t,n)},calculateNativeScrollLeftForHorz:ml,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-yl(e,t):yl(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=ml(e,t,n)}});e.Css=ya,e.Dom=ba,e.DomCompat=Ua,e.DomEventsSink=Qa,e.ScrollHelper=bl,e.Touches=ol,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).domutils={})}(this,(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){this.wrapped=e}function r(e){var t,r;function o(t,r){try{var a=e[t](r),u=a.value,c=u instanceof n;Promise.resolve(c?u.wrapped:u).then((function(e){c?o("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(i,a){var u={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=u:(t=r=u,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)};var l,f,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e){return e&&e.Math==Math&&e},p=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof s&&s)||function(){return this}()||Function("return this")(),h={},v=function(e){try{return!!e()}catch(e){return!0}},g=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=!v((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),m=y,b=Function.prototype.call,S=m?b.bind(b):function(){return b.apply(b,arguments)},x={},w={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,O=E&&!w.call({1:2},1),j=(x.f=O?function(e){var t=E(this,e);return!!t&&t.enumerable}:w,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),C=y,T=Function.prototype,F=T.bind,I=T.call,N=C&&F.bind(I,I),_=C?function(e){return e&&N(e)}:function(e){return e&&function(){return I.apply(e,arguments)}},A=_,R=A({}.toString),P=A("".slice),M=function(e){return P(R(e),8,-1)},L=_,k=v,W=M,$=p.Object,z=L("".split),D=k((function(){return!$("z").propertyIsEnumerable(0)}))?function(e){return"String"==W(e)?z(e,""):$(e)}:$,B=p.TypeError,H=function(e){if(null==e)throw B("Can't call method on "+e);return e},U=D,Y=H,q=function(e){return U(Y(e))},X=function(e){return"function"==typeof e},G=X,K=function(e){return"object"==typeof e?null!==e:G(e)},V=p,J=X,Q=function(e){return J(e)?e:void 0},Z=function(e,t){return arguments.length<2?Q(V[e]):V[e]&&V[e][t]},ee=_({}.isPrototypeOf),te=p,ne=Z("navigator","userAgent")||"",re=te.process,oe=te.Deno,ie=re&&re.versions||oe&&oe.version,ae=ie&&ie.v8;ae&&(f=(l=ae.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!f&&ne&&(!(l=ne.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=ne.match(/Chrome\/(\d+)/))&&(f=+l[1]);var ue=f,ce=ue,le=v,fe=!!Object.getOwnPropertySymbols&&!le((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ce&&ce<41})),se=fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,de=Z,pe=X,he=ee,ve=se,ge=p.Object,ye=ve?function(e){return"symbol"==typeof e}:function(e){var t=de("Symbol");return pe(t)&&he(t.prototype,ge(e))},me=p.String,be=function(e){try{return me(e)}catch(e){return"Object"}},Se=X,xe=be,we=p.TypeError,Ee=function(e){if(Se(e))return e;throw we(xe(e)+" is not a function")},Oe=Ee,je=function(e,t){var n=e[t];return null==n?void 0:Oe(n)},Ce=S,Te=X,Fe=K,Ie=p.TypeError,Ne={exports:{}},_e=p,Ae=Object.defineProperty,Re=function(e,t){try{Ae(_e,e,{value:t,configurable:!0,writable:!0})}catch(n){_e[e]=t}return t},Pe=Re,Me="__core-js_shared__",Le=p[Me]||Pe(Me,{}),ke=Le;(Ne.exports=function(e,t){return ke[e]||(ke[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Ne.exports;var We=H,$e=p.Object,ze=function(e){return $e(We(e))},De=ze,Be=_({}.hasOwnProperty),He=Object.hasOwn||function(e,t){return Be(De(e),t)},Ue=_,Ye=0,qe=Math.random(),Xe=Ue(1..toString),Ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Xe(++Ye+qe,36)},Ke=p,Ve=Ne.exports,Je=He,Qe=Ge,Ze=fe,et=se,tt=Ve("wks"),nt=Ke.Symbol,rt=nt&&nt.for,ot=et?nt:nt&&nt.withoutSetter||Qe,it=function(e){if(!Je(tt,e)||!Ze&&"string"!=typeof tt[e]){var t="Symbol."+e;Ze&&Je(nt,e)?tt[e]=nt[e]:tt[e]=et&&rt?rt(t):ot(t)}return tt[e]},at=S,ut=K,ct=ye,lt=je,ft=it,st=p.TypeError,dt=ft("toPrimitive"),pt=function(e,t){if(!ut(e)||ct(e))return e;var n,r=lt(e,dt);if(r){if(void 0===t&&(t="default"),n=at(r,e,t),!ut(n)||ct(n))return n;throw st("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Te(n=e.toString)&&!Fe(r=Ce(n,e)))return r;if(Te(n=e.valueOf)&&!Fe(r=Ce(n,e)))return r;if("string"!==t&&Te(n=e.toString)&&!Fe(r=Ce(n,e)))return r;throw Ie("Can't convert object to primitive value")}(e,t)},ht=ye,vt=function(e){var t=pt(e,"string");return ht(t)?t:t+""},gt=K,yt=p.document,mt=gt(yt)&>(yt.createElement),bt=function(e){return mt?yt.createElement(e):{}},St=bt,xt=!g&&!v((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),wt=g,Et=S,Ot=x,jt=j,Ct=q,Tt=vt,Ft=He,It=xt,Nt=Object.getOwnPropertyDescriptor,_t=(h.f=wt?Nt:function(e,t){if(e=Ct(e),t=Tt(t),It)try{return Nt(e,t)}catch(e){}if(Ft(e,t))return jt(!Et(Ot.f,e,t),e[t])},{}),At=g&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=p,Pt=K,Mt=Rt.String,Lt=Rt.TypeError,kt=function(e){if(Pt(e))return e;throw Lt(Mt(e)+" is not an object")},Wt=g,$t=xt,zt=At,Dt=kt,Bt=vt,Ht=p.TypeError,Ut=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,qt=(_t.f=Wt?zt?function(e,t,n){if(Dt(e),t=Bt(t),Dt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Yt(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ut(e,t,n)}:Ut:function(e,t,n){if(Dt(e),t=Bt(t),Dt(n),$t)try{return Ut(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ht("Accessors not supported");return"value"in n&&(e[t]=n.value),e},_t),Xt=j,Gt=g?function(e,t,n){return qt.f(e,t,Xt(1,n))}:function(e,t,n){return e[t]=n,e},Kt={exports:{}},Vt=X,Jt=Le,Qt=_(Function.toString);Vt(Jt.inspectSource)||(Jt.inspectSource=function(e){return Qt(e)});var Zt,en,tn,nn=Jt.inspectSource,rn=X,on=nn,an=p.WeakMap,un=rn(an)&&/native code/.test(on(an)),cn=Ne.exports,ln=Ge,fn=cn("keys"),sn=function(e){return fn[e]||(fn[e]=ln(e))},dn={},pn=un,hn=p,vn=_,gn=K,yn=Gt,mn=He,bn=Le,Sn=sn,xn=dn,wn="Object already initialized",En=hn.TypeError,On=hn.WeakMap;if(pn||bn.state){var jn=bn.state||(bn.state=new On),Cn=vn(jn.get),Tn=vn(jn.has),Fn=vn(jn.set);Zt=function(e,t){if(Tn(jn,e))throw new En(wn);return t.facade=e,Fn(jn,e,t),t},en=function(e){return Cn(jn,e)||{}},tn=function(e){return Tn(jn,e)}}else{var In=Sn("state");xn[In]=!0,Zt=function(e,t){if(mn(e,In))throw new En(wn);return t.facade=e,yn(e,In,t),t},en=function(e){return mn(e,In)?e[In]:{}},tn=function(e){return mn(e,In)}}var Nn={set:Zt,get:en,has:tn,enforce:function(e){return tn(e)?en(e):Zt(e,{})},getterFor:function(e){return function(t){var n;if(!gn(t)||(n=en(t)).type!==e)throw En("Incompatible receiver, "+e+" required");return n}}},_n=g,An=He,Rn=Function.prototype,Pn=_n&&Object.getOwnPropertyDescriptor,Mn=An(Rn,"name"),Ln={EXISTS:Mn,PROPER:Mn&&"something"===function(){}.name,CONFIGURABLE:Mn&&(!_n||_n&&Pn(Rn,"name").configurable)},kn=p,Wn=X,$n=He,zn=Gt,Dn=Re,Bn=nn,Hn=Ln.CONFIGURABLE,Un=Nn.get,Yn=Nn.enforce,qn=String(String).split("String");(Kt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Wn(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$n(n,"name")||Hn&&n.name!==c)&&zn(n,"name",c),(o=Yn(n)).source||(o.source=qn.join("string"==typeof c?c:""))),e!==kn?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:zn(e,t,n)):a?e[t]=n:Dn(t,n)})(Function.prototype,"toString",(function(){return Wn(this)&&Un(this).source||Bn(this)})),Kt.exports;var Xn={},Gn=Math.ceil,Kn=Math.floor,Vn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Kn:Gn)(t)},Jn=Vn,Qn=Math.max,Zn=Math.min,er=function(e,t){var n=Jn(e);return n<0?Qn(n+t,0):Zn(n,t)},tr=Vn,nr=Math.min,rr=function(e){return e>0?nr(tr(e),9007199254740991):0},or=rr,ir=function(e){return or(e.length)},ar=q,ur=er,cr=ir,lr=function(e){return function(t,n,r){var o,i=ar(t),a=cr(i),u=ur(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},fr={includes:lr(!0),indexOf:lr(!1)},sr=He,dr=q,pr=fr.indexOf,hr=dn,vr=_([].push),gr=function(e,t){var n,r=dr(e),o=0,i=[];for(n in r)!sr(hr,n)&&sr(r,n)&&vr(i,n);for(;t.length>o;)sr(r,n=t[o++])&&(~pr(i,n)||vr(i,n));return i},yr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mr=gr,br=yr.concat("length","prototype"),Sr=(Xn.f=Object.getOwnPropertyNames||function(e){return mr(e,br)},{}),xr=(Sr.f=Object.getOwnPropertySymbols,Z),wr=Xn,Er=Sr,Or=kt,jr=_([].concat),Cr=xr("Reflect","ownKeys")||function(e){var t=wr.f(Or(e)),n=Er.f;return n?jr(t,n(e)):t},Tr=He,Fr=Cr,Ir=h,Nr=_t,_r=v,Ar=X,Rr=/#|\.prototype\./,Pr=function(e,t){var n=Lr[Mr(e)];return n==Wr||n!=kr&&(Ar(t)?_r(t):!!t)},Mr=Pr.normalize=function(e){return String(e).replace(Rr,".").toLowerCase()},Lr=Pr.data={},kr=Pr.NATIVE="N",Wr=Pr.POLYFILL="P",$r=Pr,zr=p,Dr=h.f,Br=Gt,Hr=Kt.exports,Ur=Re,Yr=function(e,t,n){for(var r=Fr(t),o=Nr.f,i=Ir.f,a=0;a<r.length;a++){var u=r[a];Tr(e,u)||n&&Tr(n,u)||o(e,u,i(t,u))}},qr=$r,Xr=function(e,t){var n,r,o,i,a,u=e.target,c=e.global,l=e.stat;if(n=c?zr:l?zr[u]||Ur(u,{}):(zr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Dr(n,r))&&a.value:n[r],!qr(c?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Yr(i,o)}(e.sham||o&&o.sham)&&Br(i,"sham",!0),Hr(n,r,i,e)}},Gr={};Gr[it("toStringTag")]="z";var Kr="[object z]"===String(Gr),Vr=p,Jr=Kr,Qr=X,Zr=M,eo=it("toStringTag"),to=Vr.Object,no="Arguments"==Zr(function(){return arguments}()),ro=Jr?Zr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=to(e),eo))?n:no?Zr(t):"Object"==(r=Zr(t))&&Qr(t.callee)?"Arguments":r},oo=ro,io=p.String,ao=function(e){if("Symbol"===oo(e))throw TypeError("Cannot convert a Symbol value to a string");return io(e)},uo=H,co=ao,lo=_("".replace),fo="[\t\n\v\f\r \u2028\u2029\ufeff]",so=RegExp("^"+fo+fo+"*"),po=RegExp(fo+fo+"*$"),ho=function(e){return function(t){var n=co(uo(t));return 1&e&&(n=lo(n,so,"")),2&e&&(n=lo(n,po,"")),n}},vo={start:ho(1),end:ho(2),trim:ho(3)},go=p,yo=v,mo=ao,bo=vo.trim,So=_("".charAt),xo=go.parseFloat,wo=go.Symbol,Eo=wo&&wo.iterator,Oo=1/xo("\t\n\v\f\r \u2028\u2029\ufeff-0")!=-1/0||Eo&&!yo((function(){xo(Object(Eo))}))?function(e){var t=bo(mo(e)),n=xo(t);return 0===n&&"-"==So(t,0)?-0:n}:xo;Xr({global:!0,forced:parseFloat!=Oo},{parseFloat:Oo});var jo=gr,Co=yr,To=Object.keys||function(e){return jo(e,Co)},Fo=g,Io=_,No=To,_o=q,Ao=Io(x.f),Ro=Io([].push),Po=function(e){return function(t){for(var n,r=_o(t),o=No(r),i=o.length,a=0,u=[];i>a;)n=o[a++],Fo&&!Ao(r,n)||Ro(u,e?[n,r[n]]:r[n]);return u}},Mo=[Po(!0),Po(!1)][0];Xr({target:"Object",stat:!0},{entries:function(e){return Mo(e)}});var Lo,ko=K,Wo=M,$o=it("match"),zo=function(e){var t;return ko(e)&&(void 0!==(t=e[$o])?!!t:"RegExp"==Wo(e))},Do=zo,Bo=p.TypeError,Ho=it("match"),Uo=Xr,Yo=_,qo=h.f,Xo=rr,Go=ao,Ko=function(e){if(Do(e))throw Bo("The method doesn't accept regular expressions");return e},Vo=H,Jo=Yo("".endsWith),Qo=Yo("".slice),Zo=Math.min,ei=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ho]=!1,"/./"[e](t)}catch(e){}}return!1}("endsWith");Uo({target:"String",proto:!0,forced:!(!ei&&(Lo=qo(String.prototype,"endsWith"),Lo&&!Lo.writable)||ei)},{endsWith:function(e){var t=Go(Vo(this));Ko(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Zo(Xo(n),r),i=Go(e);return Jo?Jo(t,i,o):Qo(t,o-i.length,o)===i}});var ti,ni=kt,ri=v,oi=p.RegExp,ii=ri((function(){var e=oi("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ai=ii||ri((function(){return!oi("a","y").sticky})),ui={BROKEN_CARET:ii||ri((function(){var e=oi("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ai,UNSUPPORTED_Y:ii},ci={},li=g,fi=At,si=_t,di=kt,pi=q,hi=To,vi=(ci.f=li&&!fi?Object.defineProperties:function(e,t){di(e);for(var n,r=pi(t),o=hi(t),i=o.length,a=0;i>a;)si.f(e,n=o[a++],r[n]);return e},Z("document","documentElement")),gi=kt,yi=ci,mi=yr,bi=dn,Si=vi,xi=bt,wi=sn("IE_PROTO"),Ei=function(){},Oi=function(e){return"<script>"+e+"<\/script>"},ji=function(e){e.write(Oi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ci=function(){try{ti=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ci="undefined"!=typeof document?document.domain&&ti?ji(ti):((t=xi("iframe")).style.display="none",Si.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Oi("document.F=Object")),e.close(),e.F):ji(ti);for(var n=mi.length;n--;)delete Ci.prototype[mi[n]];return Ci()};bi[wi]=!0;var Ti,Fi,Ii=Object.create||function(e,t){var n;return null!==e?(Ei.prototype=gi(e),n=new Ei,Ei.prototype=null,n[wi]=e):n=Ci(),void 0===t?n:yi.f(n,t)},Ni=v,_i=p.RegExp,Ai=Ni((function(){var e=_i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ri=v,Pi=p.RegExp,Mi=Ri((function(){var e=Pi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Li=S,ki=_,Wi=ao,$i=function(){var e=ni(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},zi=ui,Di=Ne.exports,Bi=Ii,Hi=Nn.get,Ui=Ai,Yi=Mi,qi=Di("native-string-replace",String.prototype.replace),Xi=RegExp.prototype.exec,Gi=Xi,Ki=ki("".charAt),Vi=ki("".indexOf),Ji=ki("".replace),Qi=ki("".slice),Zi=(Fi=/b*/g,Li(Xi,Ti=/a/,"a"),Li(Xi,Fi,"a"),0!==Ti.lastIndex||0!==Fi.lastIndex),ea=zi.BROKEN_CARET,ta=void 0!==/()??/.exec("")[1];(Zi||ta||ea||Ui||Yi)&&(Gi=function(e){var t,n,r,o,i,a,u,c=this,l=Hi(c),f=Wi(e),s=l.raw;if(s)return s.lastIndex=c.lastIndex,t=Li(Gi,s,f),c.lastIndex=s.lastIndex,t;var d=l.groups,p=ea&&c.sticky,h=Li($i,c),v=c.source,g=0,y=f;if(p&&(h=Ji(h,"y",""),-1===Vi(h,"g")&&(h+="g"),y=Qi(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ki(f,c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),ta&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Zi&&(r=c.lastIndex),o=Li(Xi,p?n:c,y),p?o?(o.input=Qi(o.input,g),o[0]=Qi(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Zi&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),ta&&o&&o.length>1&&Li(qi,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Bi(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var na=Gi;Xr({target:"RegExp",proto:!0,forced:/./.exec!==na},{exec:na});var ra=y,oa=Function.prototype,ia=oa.apply,aa=oa.call,ua="object"==typeof Reflect&&Reflect.apply||(ra?aa.bind(ia):function(){return aa.apply(ia,arguments)}),ca=_,la=Kt.exports,fa=na,sa=v,da=it,pa=Gt,ha=da("species"),va=RegExp.prototype,ga=function(e,t,n,r){var o=da(e),i=!sa((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!sa((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ha]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=ca(/./[o]),c=t(o,""[e],(function(e,t,n,r,o){var a=ca(e),c=t.exec;return c===fa||c===va.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));la(String.prototype,e,c[0]),la(va,o,c[1])}r&&pa(va[o],"sham",!0)},ya=_,ma=v,ba=X,Sa=ro,xa=nn,wa=function(){},Ea=[],Oa=Z("Reflect","construct"),ja=/^\s*(?:class|function)\b/,Ca=ya(ja.exec),Ta=!ja.exec(wa),Fa=function(e){if(!ba(e))return!1;try{return Oa(wa,Ea,e),!0}catch(e){return!1}},Ia=function(e){if(!ba(e))return!1;switch(Sa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ta||!!Ca(ja,xa(e))}catch(e){return!0}};Ia.sham=!0;var Na=!Oa||ma((function(){var e;return Fa(Fa.call)||!Fa(Object)||!Fa((function(){e=!0}))||e}))?Ia:Fa,_a=Na,Aa=be,Ra=p.TypeError,Pa=kt,Ma=it("species"),La=_,ka=Vn,Wa=ao,$a=H,za=La("".charAt),Da=La("".charCodeAt),Ba=La("".slice),Ha=function(e){return function(t,n){var r,o,i=Wa($a(t)),a=ka(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Da(i,a))<55296||r>56319||a+1===u||(o=Da(i,a+1))<56320||o>57343?e?za(i,a):r:e?Ba(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ua=(Ha(!1),Ha(!0)),Ya=function(e,t,n){return t+(n?Ua(e,t).length:1)},qa=vt,Xa=_t,Ga=j,Ka=er,Va=ir,Ja=p.Array,Qa=Math.max,Za=S,eu=kt,tu=X,nu=M,ru=na,ou=p.TypeError,iu=function(e,t){var n=e.exec;if(tu(n)){var r=Za(n,e,t);return null!==r&&eu(r),r}if("RegExp"===nu(e))return Za(ru,e,t);throw ou("RegExp#exec called on incompatible receiver")},au=ua,uu=S,cu=_,lu=ga,fu=zo,su=kt,du=H,pu=function(e,t){var n,r=Pa(e).constructor;return void 0===r||null==(n=Pa(r)[Ma])?t:function(e){if(_a(e))return e;throw Ra(Aa(e)+" is not a constructor")}(n)},hu=Ya,vu=rr,gu=ao,yu=je,mu=function(e,t,n){for(var r=Va(e),o=Ka(t,r),i=Ka(void 0===n?r:n,r),a=Ja(Qa(i-o,0)),u=0;o<i;o++,u++)c=a,l=u,f=e[o],s=void 0,(s=qa(l))in c?Xa.f(c,s,Ga(0,f)):c[s]=f;var c,l,f,s;return a.length=u,a},bu=iu,Su=na,xu=v,wu=ui.UNSUPPORTED_Y,Eu=4294967295,Ou=Math.min,ju=[].push,Cu=cu(/./.exec),Tu=cu(ju),Fu=cu("".slice);lu("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=gu(du(this)),o=void 0===n?Eu:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!fu(e))return uu(t,r,e,o);for(var i,a,u,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,l+"g");(i=uu(Su,s,r))&&!((a=s.lastIndex)>f&&(Tu(c,Fu(r,f,i.index)),i.length>1&&i.index<r.length&&au(ju,c,mu(i,1)),u=i[0].length,f=a,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!u&&Cu(s,"")||Tu(c,""):Tu(c,Fu(r,f)),c.length>o?mu(c,0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:uu(t,this,e,n)}:t,[function(t,n){var o=du(this),i=null==t?void 0:yu(t,e);return i?uu(i,t,o,n):uu(r,gu(o),t,n)},function(e,o){var i=su(this),a=gu(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var c=pu(i,RegExp),l=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(wu?"g":"y"),s=new c(wu?"^(?:"+i.source+")":i,f),d=void 0===o?Eu:o>>>0;if(0===d)return[];if(0===a.length)return null===bu(s,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){s.lastIndex=wu?0:h;var g,y=bu(s,wu?Fu(a,h):a);if(null===y||(g=Ou(vu(s.lastIndex+(wu?h:0)),a.length))===p)h=hu(a,h,l);else{if(Tu(v,Fu(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Tu(v,y[m]),v.length===d)return v;h=p=g}}return Tu(v,Fu(a,p)),v}]}),!!xu((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),wu);var Iu=Ee,Nu=y,_u=_(_.bind),Au=M,Ru=p,Pu=Array.isArray||function(e){return"Array"==Au(e)},Mu=Na,Lu=K,ku=it("species"),Wu=Ru.Array,$u=D,zu=ze,Du=ir,Bu=function(e,t){return new(function(e){var t;return Pu(e)&&(t=e.constructor,(Mu(t)&&(t===Wu||Pu(t.prototype))||Lu(t)&&null===(t=t[ku]))&&(t=void 0)),void 0===t?Wu:t}(e))(0===t?0:t)},Hu=_([].push),Uu=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(c,l,f,s){for(var d,p,h=zu(c),v=$u(h),g=function(e,t){return Iu(e),void 0===t?e:Nu?_u(e,t):function(){return e.apply(t,arguments)}}(l,f),y=Du(v),m=0,b=s||Bu,S=t?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)S[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Hu(S,d)}else switch(e){case 4:return!1;case 7:Hu(S,d)}return i?-1:r||o?o:S}},Yu={forEach:Uu(0),map:Uu(1),filter:Uu(2),some:Uu(3),every:Uu(4),find:Uu(5),findIndex:Uu(6),filterReject:Uu(7)},qu=v,Xu=ue,Gu=it("species"),Ku=function(e){return Xu>=51||!qu((function(){var t=[];return(t.constructor={})[Gu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Vu=Yu.map;Xr({target:"Array",proto:!0,forced:!Ku("map")},{map:function(e){return Vu(this,e,arguments.length>1?arguments[1]:void 0)}});var Ju=Yu.filter;Xr({target:"Array",proto:!0,forced:!Ku("filter")},{filter:function(e){return Ju(this,e,arguments.length>1?arguments[1]:void 0)}});var Qu=ro,Zu=Kr?{}.toString:function(){return"[object "+Qu(this)+"]"},ec=Kr,tc=Kt.exports,nc=Zu;ec||tc(Object.prototype,"toString",nc,{unsafe:!0});var rc=S,oc=kt,ic=rr,ac=ao,uc=H,cc=je,lc=Ya,fc=iu;ga("match",(function(e,t,n){return[function(t){var n=uc(this),r=null==t?void 0:cc(t,e);return r?rc(r,t,n):new RegExp(t)[e](ac(n))},function(e){var r=oc(this),o=ac(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return fc(r,o);var a=r.unicode;r.lastIndex=0;for(var u,c=[],l=0;null!==(u=fc(r,o));){var f=ac(u[0]);c[l]=f,""===f&&(r.lastIndex=lc(o,ic(r.lastIndex),a)),l++}return 0===l?null:c}]}));var sc,dc=Ln.PROPER,pc="\t\n\v\f\r \u2028\u2029\ufeff",hc=vo.trim;Xr({target:"String",proto:!0,forced:(sc="trim",v((function(){return!!pc.trim()||"
"!=="
".trim()||dc&&pc.trim.name!==sc})))},{trim:function(){return hc(this)}});var vc=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],u=o[1];e.style[a]=null==u?"":String(u)}},gc=function(e,t,n,r,o){return function(){var i,a,u,c,l=arguments.length<=0?void 0:arguments[0];if(e?(i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]),u=!!(arguments.length<=3?void 0:arguments[3]),c=!!(arguments.length<=4?void 0:arguments[4])):(a=!!(arguments.length<=1?void 0:arguments[1]),u=!!(arguments.length<=2?void 0:arguments[2]),c=!!(arguments.length<=3?void 0:arguments[3])),l===window)return l.document.documentElement["client".concat(n)];if(9===l.nodeType){var f=l.documentElement,s=l.body;return Math.max(s["scroll".concat(n)],f["scroll".concat(n)],s["offset".concat(n)],f["offset".concat(n)],f["client".concat(n)])}var d,p,h=!1,v=!1;if(!e&&"getBoundingClientRect"in l&&(d=l.getBoundingClientRect()[t],h=!0,v=!0),(void 0===d||c||h!==a||v!==u)&&(p=e?getComputedStyle(l,i):getComputedStyle(l)),void 0===d){var g=p[t];"auto"===g?(d=l["client".concat(n)],h=!0):d=parseFloat(g),"border-box"===p.boxSizing&&(h=!0,v=!0)}if(a!==h){var y=parseFloat(p["padding-".concat(r)]||0)+parseFloat(p["padding-".concat(o)]||0);a?d+=y:d-=y}if(u!==v){var m=parseFloat(p["border-".concat(r,"-width")]||0)+parseFloat(p["border-".concat(o,"-width")]||0);u?d+=m:d-=m}if(d<0&&(d=0),c){var b=parseFloat(p["margin-".concat(r)]||0)+parseFloat(p["margin-".concat(o)]||0);d+=b}return d}},yc=function(e,t,n,r){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t!==window&&9!==t.nodeType){var c=getComputedStyle(t),l=!1;if("border-box"===c.boxSizing&&(l=!0),i=!!i,a=!!a,(u=!!u)&&(o-=(parseFloat(c["margin-".concat(n)])||0)+(parseFloat(c["margin-".concat(r)])||0)),i!==l){var f=parseFloat(c["padding-".concat(n)]||0)+parseFloat(c["padding-".concat(r)]||0);i?o-=f:o+=f}if(a!==l){var s=(parseFloat(c["border-".concat(n,"-width")])||0)+(parseFloat(c["border-".concat(r,"-width")])||0);a?o-=s:o+=s}o<0&&(o=0),t.style[e]=o+"px"}}},mc=gc(!1,"width","Width","left","right"),bc=gc(!1,"height","Height","top","bottom"),Sc=gc(!0,"width","Width","left","right"),xc=gc(!0,"height","Height","top","bottom"),wc=yc("width",0,"left","right"),Ec=yc("height",0,"top","bottom"),Oc=function(e){if(e){var t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)}},jc=function(e){return/^-?(0?\.)?\d+m?s$/.test(e)},Cc=function(e){var t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],i=t[3];return jc(o)?{delay:Oc(o),duration:Oc(r),name:n}:{delay:Oc(i),duration:Oc(r),name:n,timingFunction:o}},Tc=Object.freeze({__proto__:null,getCssProps:function(e,t){var n,r=getComputedStyle(e),o={},i=c(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,u=r[a];("width"===a||"height"===a)&&"auto"===u&&e instanceof HTMLElement&&(u=e["offset"+a.substr(0,1).toUpperCase()+a.substr(1)],"border-box"!==r.boxSizing&&("width"===a?(u-=parseFloat(r.paddingLeft||0),u-=parseFloat(r.paddingRight||0),u-=parseFloat(r.borderLeftWidth||0),u-=parseFloat(r.borderRightWidth||0)):(u-=parseFloat(r.paddingTop||0),u-=parseFloat(r.paddingBottom||0),u-=parseFloat(r.borderTopWidth||0),u-=parseFloat(r.borderBottomWidth||0)),u<0&&(u=0)),u+="px"),o[a]=u}}catch(e){i.e(e)}finally{i.f()}return o},setCssProps:vc,getElementWidth:mc,getElementHeight:bc,setElementWidth:wc,setElementHeight:Ec,getPseudoElementWidth:Sc,getPseudoElementHeight:xc,getElementOffset:function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,r,o){var i,a,u,c;if(r||(r={width:mc(e,!0,!0),height:mc(e,!0,!0)}),"start"!==t&&"end"!==t||(null==o&&(o="rtl"===getComputedStyle(e).direction),t="start"===t?o?"right":"left":o?"left":"right"),"right"===t)i=r.width,u=0;else if("center"===t)u=i=r.width/2;else if("left"===t)i=0,u=r.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){var l=(parseFloat(t)||0)/100;i=r.width*l,u=r.width*-l,null==o&&(o="rtl"===getComputedStyle(e).direction),o&&(i=r.width-i,u=r.width-i)}else u=-(i=parseFloat(t)||0);if("bottom"===n)a=r.height,c=0;else if("center"===n)c=a=r.height/2;else if("top"===n)a=0,c=r.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){var f=(parseFloat(n)||0)/100;a=r.height*f,c=r.height*-f}else c=-(a=parseFloat(n)||0);return{left:i,top:a,right:u,bottom:c,xSpec:t,ySpec:n}},parseTransition:function(e){var t;return e?(null!==(t=e.match(/([^,()]|\([^)]*\))+/g))&&void 0!==t?t:[]).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).map(Cc):[]},parseSingleTransition:Cc,isTimeString:jc,timeToMs:Oc}),Fc=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],u=o[1];null!=u&&("innerHTML"===a?e.innerHTML=String(u):"css"===a&&"style"in e?vc(e,u):a in e&&"style"!==a?e[a]=u:e.setAttribute(a,String(u)))}},Ic=Object.freeze({__proto__:null,createElement:function(e,n,r){var o=document.createElement(e);if(n&&"object"===t(n)&&Fc(o,n),r)if(r instanceof Node)o.appendChild(r);else if(Array.isArray(r)){var i,a=c(r);try{for(a.s();!(i=a.n()).done;){var u=i.value;o.appendChild(u)}}catch(e){a.e(e)}finally{a.f()}}return o},setElementAttrs:Fc,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);var r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null},unwrapChildren:function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}),Nc=_,_c=ze,Ac=Math.floor,Rc=Nc("".charAt),Pc=Nc("".replace),Mc=Nc("".slice),Lc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kc=/\$([$&'`]|\d{1,2})/g,Wc=ua,$c=S,zc=_,Dc=ga,Bc=v,Hc=kt,Uc=X,Yc=Vn,qc=rr,Xc=ao,Gc=H,Kc=Ya,Vc=je,Jc=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,c=kc;return void 0!==o&&(o=_c(o),c=Lc),Pc(i,c,(function(i,c){var l;switch(Rc(c,0)){case"$":return"$";case"&":return e;case"`":return Mc(t,0,n);case"'":return Mc(t,a);case"<":l=o[Mc(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>u){var s=Ac(f/10);return 0===s?i:s<=u?void 0===r[s-1]?Rc(c,1):r[s-1]+Rc(c,1):i}l=r[f-1]}return void 0===l?"":l}))},Qc=iu,Zc=it("replace"),el=Math.max,tl=Math.min,nl=zc([].concat),rl=zc([].push),ol=zc("".indexOf),il=zc("".slice),al="$0"==="a".replace(/./,"$0"),ul=!!/./[Zc]&&""===/./[Zc]("a","$0");Dc("replace",(function(e,t,n){var r=ul?"$":"$0";return[function(e,n){var r=Gc(this),o=null==e?void 0:Vc(e,Zc);return o?$c(o,e,r,n):$c(t,Xc(r),e,n)},function(e,o){var i=Hc(this),a=Xc(e);if("string"==typeof o&&-1===ol(o,r)&&-1===ol(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var c=Uc(o);c||(o=Xc(o));var l=i.global;if(l){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Qc(i,a);if(null===d)break;if(rl(s,d),!l)break;""===Xc(d[0])&&(i.lastIndex=Kc(a,qc(i.lastIndex),f))}for(var p,h="",v=0,g=0;g<s.length;g++){for(var y=Xc((d=s[g])[0]),m=el(tl(Yc(d.index),a.length),0),b=[],S=1;S<d.length;S++)rl(b,void 0===(p=d[S])?p:String(p));var x=d.groups;if(c){var w=nl([y],b,m,a);void 0!==x&&rl(w,x);var E=Xc(Wc(o,void 0,w))}else E=Jc(y,a,m,b,x,o);m>=v&&(h+=il(a,v,m)+E,v=m+y.length)}return h+il(a,v)}]}),!!Bc((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!al||ul);var cl=null,ll=function(){try{document.createElement("div").querySelector(":scope > div"),cl=!0}catch(e){cl=!1}},fl=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("before"in e)e.before.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.parentNode.insertBefore(o,e)}else{var a,u=document.createDocumentFragment(),l=c(n);try{for(l.s();!(a=l.n()).done;){var f=a.value,s=f instanceof Node;u.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){l.e(e)}finally{l.f()}e.parentNode.insertBefore(u,e)}},after:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("after"in e)e.after.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.nextSibling?e.parentNode.insertBefore(o,e.nextSibling):e.parentNode.appendChild(o)}else{var a,u=document.createDocumentFragment(),l=c(n);try{for(l.s();!(a=l.n()).done;){var f=a.value,s=f instanceof Node;u.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){l.e(e)}finally{l.f()}e.nextSibling?e.parentNode.insertBefore(u,e.nextSibling):e.parentNode.appendChild(u)}},prepend:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("prepend"in e)e.prepend.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}else{var a,u=document.createDocumentFragment(),l=c(n);try{for(l.s();!(a=l.n()).done;){var f=a.value,s=f instanceof Node;u.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){l.e(e)}finally{l.f()}e.firstChild?e.insertBefore(u,e.firstChild):e.appendChild(u)}},append:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("append"in e)e.append.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.appendChild(o)}else{var a,u=document.createDocumentFragment(),l=c(n);try{for(l.s();!(a=l.n()).done;){var f=a.value,s=f instanceof Node;u.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){l.e(e)}finally{l.f()}e.appendChild(u)}},scopedSelector:function(e,t){if(null===cl&&ll(),!0===cl)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}},scopedSelectorAll:function(e,t){if(null===cl&&ll(),!0===cl)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}},toggleClass:function(e,t,n){var r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),sl=g,dl=Ln.EXISTS,pl=_,hl=_t.f,vl=Function.prototype,gl=pl(vl.toString),yl=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ml=pl(yl.exec);sl&&!dl&&hl(vl,"name",{configurable:!0,get:function(){try{return ml(yl,gl(this))[1]}catch(e){return""}}});var bl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events=[]}var n,r;return n=e,(r=[{key:"add",value:function(e,n,r,o){var i=n.split("."),a=i[0],u=i[1];e.addEventListener(a,r,o||!1);var c=!0===o||"object"===t(o)&&!0===o.capture;return this._events.push({el:e,name:a,namespace:u,handler:r,useCapture:c}),this}},{key:"remove",value:function(e,n,r,o){var i=n?n.split("."):"",a=i[0],u=i[1],l=!0===o||"object"===t(o)&&!0===o.capture,f=[],s=[];if(e||a||u||r||void 0!==o){var d,p=c(this._events);try{for(p.s();!(d=p.n()).done;){var h=d.value;e&&h.el!==e||a&&h.name!==a||u&&h.namespace!==u||r&&h.handler!==r||void 0!==o&&h.useCapture!==l?f.push(h):s.push(h)}}catch(e){p.e(e)}finally{p.f()}}else s=this._events;this._events=f;var v,g=c(s);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.el.removeEventListener(y.name,y.handler,y.useCapture)}}catch(e){g.e(e)}finally{g.f()}return this}}])&&o(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Sl=Object.freeze({__proto__:null,default:bl}),xl=Xr,wl=Math.hypot,El=Math.abs,Ol=Math.sqrt;xl({target:"Math",stat:!0,forced:!!wl&&wl(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,i=0,a=arguments.length,u=0;i<a;)u<(n=El(arguments[i++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Ol(o)}});var jl,Cl=Object.freeze({__proto__:null,bindTouchTap:function(e,t){var n=null,r=null,o=function(t){if(null===n){var o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",i),e.addEventListener("touchcancel",a)}},i=function(e){if(null!==n){var o=null;if(e.changedTouches){if(null!=n){var i,a=c(e.changedTouches);try{for(a.s();!(i=a.n()).done;){var u=i.value;if(u.identifier===n){o=u;break}}}catch(e){a.e(e)}finally{a.f()}}o||(o=e.changedTouches[0])}var l=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},f=r;if(n=null,r=null,null!==t.distance){var s=t.distance||1;if(Math.hypot(Math.abs(l.x-f.x),Math.abs(l.y-f.y))>=s)return!1}t.handler&&t.handler(e)}},a=function t(){n=null,r=null,e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",t)};return e.addEventListener("touchstart",o),{unbind:function(){e.removeEventListener("touchstart",o),e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",a)}}}}),Tl=g,Fl=_,Il=S,Nl=v,_l=To,Al=Sr,Rl=x,Pl=ze,Ml=D,Ll=Object.assign,kl=Object.defineProperty,Wl=Fl([].concat),$l=!Ll||Nl((function(){if(Tl&&1!==Ll({b:1},Ll(kl({},"a",{enumerable:!0,get:function(){kl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Ll({},e)[n]||_l(Ll({},t)).join("")!=r}))?function(e,t){for(var n=Pl(e),r=arguments.length,o=1,i=Al.f,a=Rl.f;r>o;)for(var u,c=Ml(arguments[o++]),l=i?Wl(_l(c),i(c)):_l(c),f=l.length,s=0;f>s;)u=l[s++],Tl&&!Il(a,c,u)||(n[u]=c[u]);return n}:Ll;Xr({target:"Object",stat:!0,forced:Object.assign!==$l},{assign:$l});var zl=function(){var e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function Dl(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===jl&&(jl=zl()),!n)return t;switch(jl){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function Bl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===jl&&(jl=zl()),!t)return e.scrollLeft;switch(jl){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function Hl(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),Dl(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var Ul=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:Dl,getScrollLeft:Bl,setScrollLeft:function(e,t,n){e.scrollLeft=Dl(e,t,n)},calculateNativeScrollLeftForHorz:Hl,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-Bl(e,t):Bl(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=Hl(e,t,n)}});e.Css=Tc,e.Dom=Ic,e.DomCompat=fl,e.DomEventsSink=Sl,e.ScrollHelper=Ul,e.Touches=Cl,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=lib.umd.min.js.map
|