umaki 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +592 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2871 -0
- package/dist/index.umd.cjs +3 -0
- package/dist/libs/control/bgScrollStop.d.ts +15 -0
- package/dist/libs/control/index.d.ts +7 -0
- package/dist/libs/control/pd.d.ts +6 -0
- package/dist/libs/control/pd.test.d.ts +1 -0
- package/dist/libs/control/scrollToHash.d.ts +9 -0
- package/dist/libs/control/scrollToHash.test.d.ts +1 -0
- package/dist/libs/control/videoPlayControl.d.ts +14 -0
- package/dist/libs/control/videoPlayControl.test.d.ts +1 -0
- package/dist/libs/convert/changeDateStringToSpecificFormat.d.ts +8 -0
- package/dist/libs/convert/changeDateStringToSpecificFormat.test.d.ts +1 -0
- package/dist/libs/convert/index.d.ts +5 -0
- package/dist/libs/convert/jsonStringToJsonObject.d.ts +7 -0
- package/dist/libs/convert/jsonStringToJsonObject.test.d.ts +1 -0
- package/dist/libs/get/getAspectRatio.d.ts +11 -0
- package/dist/libs/get/getAspectRatio.test.d.ts +1 -0
- package/dist/libs/get/getClassNames.d.ts +7 -0
- package/dist/libs/get/getClassNames.test.d.ts +1 -0
- package/dist/libs/get/getDocumentHeight.d.ts +6 -0
- package/dist/libs/get/getDocumentHeight.test.d.ts +1 -0
- package/dist/libs/get/getEventPaths.d.ts +6 -0
- package/dist/libs/get/getGcd.d.ts +11 -0
- package/dist/libs/get/getGcd.test.d.ts +1 -0
- package/dist/libs/get/getImageSize.d.ts +7 -0
- package/dist/libs/get/getOrientation.d.ts +6 -0
- package/dist/libs/get/getOrientation.test.d.ts +1 -0
- package/dist/libs/get/getParentList.d.ts +7 -0
- package/dist/libs/get/getParentList.test.d.ts +1 -0
- package/dist/libs/get/getPath.d.ts +7 -0
- package/dist/libs/get/getPath.test.d.ts +1 -0
- package/dist/libs/get/getPathFromLocalPublic.d.ts +7 -0
- package/dist/libs/get/getPathFromLocalPublic.test.d.ts +1 -0
- package/dist/libs/get/getQueryParams.d.ts +10 -0
- package/dist/libs/get/getQueryParams.test.d.ts +1 -0
- package/dist/libs/get/getRem.d.ts +7 -0
- package/dist/libs/get/getRem.test.d.ts +1 -0
- package/dist/libs/get/getScrollbarWidth.d.ts +6 -0
- package/dist/libs/get/getScrollbarWidth.test.d.ts +1 -0
- package/dist/libs/get/getSessionStorage.d.ts +7 -0
- package/dist/libs/get/getSessionStorage.test.d.ts +1 -0
- package/dist/libs/get/getStringLength.d.ts +10 -0
- package/dist/libs/get/getStringLength.test.d.ts +1 -0
- package/dist/libs/get/getStylePropertyValue.d.ts +7 -0
- package/dist/libs/get/getStylePropertyValue.test.d.ts +1 -0
- package/dist/libs/get/getStylePropertyValueToNumber.d.ts +7 -0
- package/dist/libs/get/getStylePropertyValueToNumber.test.d.ts +1 -0
- package/dist/libs/get/getUaData.d.ts +24 -0
- package/dist/libs/get/getUaData.test.d.ts +1 -0
- package/dist/libs/get/index.d.ts +18 -0
- package/dist/libs/is/index.d.ts +10 -0
- package/dist/libs/is/isBetweenDateTime.d.ts +11 -0
- package/dist/libs/is/isBetweenDateTime.test.d.ts +1 -0
- package/dist/libs/is/isExistAllElements.d.ts +7 -0
- package/dist/libs/is/isExistAllElements.test.d.ts +1 -0
- package/dist/libs/is/isIpad.d.ts +7 -0
- package/dist/libs/is/isIpad.test.d.ts +1 -0
- package/dist/libs/is/isKeyExists.d.ts +10 -0
- package/dist/libs/is/isKeyExists.test.d.ts +1 -0
- package/dist/libs/is/isProduction.d.ts +1 -0
- package/dist/libs/is/isProduction.test.d.ts +1 -0
- package/dist/libs/is/isSafari.d.ts +7 -0
- package/dist/libs/is/isSafari.test.d.ts +1 -0
- package/dist/libs/is/isScrollable.d.ts +7 -0
- package/dist/libs/is/isScrollable.test.d.ts +1 -0
- package/dist/libs/is/isTouchSupport.d.ts +6 -0
- package/dist/libs/remove/index.d.ts +7 -0
- package/dist/libs/remove/removeAllHtmlTags.d.ts +7 -0
- package/dist/libs/remove/removeAllHtmlTags.test.d.ts +1 -0
- package/dist/libs/remove/removeAttribute.d.ts +7 -0
- package/dist/libs/remove/removeAttribute.test.d.ts +1 -0
- package/dist/libs/remove/removeSessionStorage.d.ts +6 -0
- package/dist/libs/remove/removeSessionStorage.test.d.ts +1 -0
- package/dist/libs/remove/removeStylePropertyValue.d.ts +6 -0
- package/dist/libs/remove/removeStylePropertyValue.test.d.ts +1 -0
- package/dist/libs/set/index.d.ts +9 -0
- package/dist/libs/set/set100vh.d.ts +11 -0
- package/dist/libs/set/set100vh.test.d.ts +1 -0
- package/dist/libs/set/set100vw.d.ts +6 -0
- package/dist/libs/set/set100vw.test.d.ts +1 -0
- package/dist/libs/set/setAttribute.d.ts +8 -0
- package/dist/libs/set/setAttribute.test.d.ts +1 -0
- package/dist/libs/set/setScrollPositionToCenter.d.ts +8 -0
- package/dist/libs/set/setScrollPositionToCenter.test.d.ts +1 -0
- package/dist/libs/set/setSessionStorage.d.ts +7 -0
- package/dist/libs/set/setSessionStorage.test.d.ts +1 -0
- package/dist/libs/set/setStylePropertyValue.d.ts +7 -0
- package/dist/libs/set/setStylePropertyValue.test.d.ts +1 -0
- package/dist/libs/to/index.d.ts +5 -0
- package/dist/libs/to/toBoolean.d.ts +7 -0
- package/dist/libs/to/toBoolean.test.d.ts +1 -0
- package/dist/libs/to/toPositiveNumber.d.ts +7 -0
- package/dist/libs/to/toPositiveNumber.test.d.ts +1 -0
- package/dist/libs/transform/index.d.ts +4 -0
- package/dist/libs/transform/wrapTextWithSpans.d.ts +10 -0
- package/dist/libs/transform/wrapTextWithSpans.test.d.ts +1 -0
- package/dist/libs/wait/index.d.ts +5 -0
- package/dist/libs/wait/sleep.d.ts +7 -0
- package/dist/libs/wait/sleep.test.d.ts +1 -0
- package/dist/libs/wait/waitForAllMediaLoaded.d.ts +7 -0
- package/dist/libs/wait/waitForAllMediaLoaded.test.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(function(I,Be){typeof exports=="object"&&typeof module<"u"?Be(exports):typeof define=="function"&&define.amd?define(["exports"],Be):(I=typeof globalThis<"u"?globalThis:I||self,Be(I.umaki={}))})(this,function(I){"use strict";const Be=()=>window.innerWidth-document.body.clientWidth,Fn=(e=!0)=>{document.body.style.paddingRight=e?`${Be()}px`:"",e&&(document.body.style.overflow="hidden"),e||(document.body.style.overflow="")},Un=e=>e.preventDefault(),Hn=async(e,t=!0,i)=>{const n=e.replace("#",""),a=document.getElementById(n);if(!a)return!1;const c=Math.floor(a.getBoundingClientRect().top+window.scrollY)-(i||0);return window.scrollTo({top:c,behavior:t?"smooth":"instant"}),new Promise(d=>{const v=setTimeout(()=>{window.removeEventListener("scroll",k),d(!1)},1e3),k=()=>{window.scrollY===c&&(window.removeEventListener("scroll",k),clearTimeout(v),d(!0))};window.scrollY===c&&(clearTimeout(v),d(!0)),window.scrollY!==c&&window.addEventListener("scroll",k,!1)})},Pt=e=>e?e.toLowerCase()==="true":!1,$n=async(e,t)=>{if(t&&e.paused){if(Pt(e.dataset.playing))return;const n=e.play();if(n===void 0)return;try{await n,e.currentTime=0,e.dataset.playing="true"}catch{}}if(!t&&!e.paused){if(!Pt(e.dataset.playing))return;e.pause(),e.dataset.playing="false"}};var Le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kt={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Le,function(){var i=1e3,n=6e4,a=36e5,o="millisecond",s="second",c="minute",d="hour",v="day",k="week",Y="month",u="quarter",m="year",l="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ae=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,pe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var w=["th","st","nd","rd"],g=S%100;return"["+S+(w[(g-20)%10]||w[g]||w[0])+"]"}},C=function(S,w,g){var T=String(S);return!T||T.length>=w?S:""+Array(w+1-T.length).join(g)+S},L={s:C,z:function(S){var w=-S.utcOffset(),g=Math.abs(w),T=Math.floor(g/60),b=g%60;return(w<=0?"+":"-")+C(T,2,"0")+":"+C(b,2,"0")},m:function S(w,g){if(w.date()<g.date())return-S(g,w);var T=12*(g.year()-w.year())+(g.month()-w.month()),b=w.clone().add(T,Y),R=g-b<0,O=w.clone().add(T+(R?-1:1),Y);return+(-(T+(g-b)/(R?b-O:O-b))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:Y,y:m,w:k,d:v,D:l,h:d,m:c,s,ms:o,Q:u}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},z="en",W={};W[z]=pe;var we="$isDayjsObject",K=function(S){return S instanceof ce||!(!S||!S[we])},Ee=function S(w,g,T){var b;if(!w)return z;if(typeof w=="string"){var R=w.toLowerCase();W[R]&&(b=R),g&&(W[R]=g,b=R);var O=w.split("-");if(!b&&O.length>1)return S(O[0])}else{var $=w.name;W[$]=w,b=$}return!T&&b&&(z=b),b||!T&&z},_=function(S,w){if(K(S))return S.clone();var g=typeof w=="object"?w:{};return g.date=S,g.args=arguments,new ce(g)},H=L;H.l=Ee,H.i=K,H.w=function(S,w){return _(S,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var ce=function(){function S(g){this.$L=Ee(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[we]=!0}var w=S.prototype;return w.parse=function(g){this.$d=function(T){var b=T.date,R=T.utc;if(b===null)return new Date(NaN);if(H.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var O=b.match(p);if(O){var $=O[2]-1||0,G=(O[7]||"0").substring(0,3);return R?new Date(Date.UTC(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)):new Date(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)}}return new Date(b)}(g),this.init()},w.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},w.$utils=function(){return H},w.isValid=function(){return this.$d.toString()!==f},w.isSame=function(g,T){var b=_(g);return this.startOf(T)<=b&&b<=this.endOf(T)},w.isAfter=function(g,T){return _(g)<this.startOf(T)},w.isBefore=function(g,T){return this.endOf(T)<_(g)},w.$g=function(g,T,b){return H.u(g)?this[T]:this.set(b,g)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(g,T){var b=this,R=!!H.u(T)||T,O=H.p(g),$=function(Te,ee){var be=H.w(b.$u?Date.UTC(b.$y,ee,Te):new Date(b.$y,ee,Te),b);return R?be:be.endOf(v)},G=function(Te,ee){return H.w(b.toDate()[Te].apply(b.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(ee)),b)},V=this.$W,X=this.$M,te=this.$D,_e="set"+(this.$u?"UTC":"");switch(O){case m:return R?$(1,0):$(31,11);case Y:return R?$(1,X):$(0,X+1);case k:var ge=this.$locale().weekStart||0,Se=(V<ge?V+7:V)-ge;return $(R?te-Se:te+(6-Se),X);case v:case l:return G(_e+"Hours",0);case d:return G(_e+"Minutes",1);case c:return G(_e+"Seconds",2);case s:return G(_e+"Milliseconds",3);default:return this.clone()}},w.endOf=function(g){return this.startOf(g,!1)},w.$set=function(g,T){var b,R=H.p(g),O="set"+(this.$u?"UTC":""),$=(b={},b[v]=O+"Date",b[l]=O+"Date",b[Y]=O+"Month",b[m]=O+"FullYear",b[d]=O+"Hours",b[c]=O+"Minutes",b[s]=O+"Seconds",b[o]=O+"Milliseconds",b)[R],G=R===v?this.$D+(T-this.$W):T;if(R===Y||R===m){var V=this.clone().set(l,1);V.$d[$](G),V.init(),this.$d=V.set(l,Math.min(this.$D,V.daysInMonth())).$d}else $&&this.$d[$](G);return this.init(),this},w.set=function(g,T){return this.clone().$set(g,T)},w.get=function(g){return this[H.p(g)]()},w.add=function(g,T){var b,R=this;g=Number(g);var O=H.p(T),$=function(X){var te=_(R);return H.w(te.date(te.date()+Math.round(X*g)),R)};if(O===Y)return this.set(Y,this.$M+g);if(O===m)return this.set(m,this.$y+g);if(O===v)return $(1);if(O===k)return $(7);var G=(b={},b[c]=n,b[d]=a,b[s]=i,b)[O]||1,V=this.$d.getTime()+g*G;return H.w(V,this)},w.subtract=function(g,T){return this.add(-1*g,T)},w.format=function(g){var T=this,b=this.$locale();if(!this.isValid())return b.invalidDate||f;var R=g||"YYYY-MM-DDTHH:mm:ssZ",O=H.z(this),$=this.$H,G=this.$m,V=this.$M,X=b.weekdays,te=b.months,_e=b.meridiem,ge=function(ee,be,Ie,ye){return ee&&(ee[be]||ee(T,R))||Ie[be].slice(0,ye)},Se=function(ee){return H.s($%12||12,ee,"0")},Te=_e||function(ee,be,Ie){var ye=ee<12?"AM":"PM";return Ie?ye.toLowerCase():ye};return R.replace(ae,function(ee,be){return be||function(Ie){switch(Ie){case"YY":return String(T.$y).slice(-2);case"YYYY":return H.s(T.$y,4,"0");case"M":return V+1;case"MM":return H.s(V+1,2,"0");case"MMM":return ge(b.monthsShort,V,te,3);case"MMMM":return ge(te,V);case"D":return T.$D;case"DD":return H.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return ge(b.weekdaysMin,T.$W,X,2);case"ddd":return ge(b.weekdaysShort,T.$W,X,3);case"dddd":return X[T.$W];case"H":return String($);case"HH":return H.s($,2,"0");case"h":return Se(1);case"hh":return Se(2);case"a":return Te($,G,!0);case"A":return Te($,G,!1);case"m":return String(G);case"mm":return H.s(G,2,"0");case"s":return String(T.$s);case"ss":return H.s(T.$s,2,"0");case"SSS":return H.s(T.$ms,3,"0");case"Z":return O}return null}(ee)||O.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(g,T,b){var R,O=this,$=H.p(T),G=_(g),V=(G.utcOffset()-this.utcOffset())*n,X=this-G,te=function(){return H.m(O,G)};switch($){case m:R=te()/12;break;case Y:R=te();break;case u:R=te()/3;break;case k:R=(X-V)/6048e5;break;case v:R=(X-V)/864e5;break;case d:R=X/a;break;case c:R=X/n;break;case s:R=X/i;break;default:R=X}return b?R:H.a(R)},w.daysInMonth=function(){return this.endOf(Y).$D},w.$locale=function(){return W[this.$L]},w.locale=function(g,T){if(!g)return this.$L;var b=this.clone(),R=Ee(g,T,!0);return R&&(b.$L=R),b},w.clone=function(){return H.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},S}(),me=ce.prototype;return _.prototype=me,[["$ms",o],["$s",s],["$m",c],["$H",d],["$W",v],["$M",Y],["$y",m],["$D",l]].forEach(function(S){me[S[1]]=function(w){return this.$g(w,S[0],S[1])}}),_.extend=function(S,w){return S.$i||(S(w,ce,_),S.$i=!0),_},_.locale=Ee,_.isDayjs=K,_.unix=function(S){return _(1e3*S)},_.en=W[z],_.Ls=W,_.p={},_})})(kt);var Bn=kt.exports;const Pe=ze(Bn),zn=(e,t="YYYY年MM月DD日")=>Pe(e).format(t),Wn=e=>{try{return JSON.parse(e)}catch{}},Ft=e=>Math.abs(e),lt=(e,t)=>{const i=Ft(Math.abs(e)),n=Ft(Math.abs(t));return n===0?i:lt(n,i%n)},Gn=(e,t)=>{const i=lt(e,t);return{w:e/i,h:t/i}},jn=e=>String(e.classList).split(" ").filter(i=>i),Yn=()=>document.body.clientHeight-window.innerHeight,Vn=e=>{var a;let t=((a=e.composedPath)==null?void 0:a.call(e))||null;const i=e.target;if(t!=null)return t=t.indexOf(window)<0?t.concat([window]):t,t;if(i instanceof Window)return[window];const n=(o,s)=>{const c=s||[],d=o.parentNode;return d?n(d,c.concat([d])):s};return[i].concat(n(i,[])).concat([window])},Ut=()=>window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",Ht=e=>{const t=e.parentElement;return t?[e].concat(Ht(t)):[e]},$t="%[a-f0-9]{2}",Bt=new RegExp("("+$t+")|([^%]+?)","gi"),zt=new RegExp("("+$t+")+","gi");function ut(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const i=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],ut(i),ut(n))}function qn(e){try{return decodeURIComponent(e)}catch{let t=e.match(Bt)||[];for(let i=1;i<t.length;i++)e=ut(t,i).join(""),t=e.match(Bt)||[];return e}}function Xn(e){const t={"%FE%FF":"��","%FF%FE":"��"};let i=zt.exec(e);for(;i;){try{t[i[0]]=decodeURIComponent(i[0])}catch{const a=qn(i[0]);a!==i[0]&&(t[i[0]]=a)}i=zt.exec(e)}t["%C2"]="�";const n=Object.keys(t);for(const a of n)e=e.replace(new RegExp(a,"g"),t[a]);return e}function Kn(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Xn(e)}}function Zn(e,t){const i={};if(Array.isArray(t))for(const n of t){const a=Object.getOwnPropertyDescriptor(e,n);a!=null&&a.enumerable&&Object.defineProperty(i,n,a)}else for(const n of Reflect.ownKeys(e)){const a=Object.getOwnPropertyDescriptor(e,n);if(a.enumerable){const o=e[n];t(n,o,e)&&Object.defineProperty(i,n,a)}}return i}function Wt(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const i=e.indexOf(t);return i===-1?[]:[e.slice(0,i),e.slice(i+t.length)]}const Jn=e=>e==null,Qn=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),ft=Symbol("encodeFragmentIdentifier");function er(e){switch(e.arrayFormat){case"index":return t=>(i,n)=>{const a=i.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?i:n===null?[...i,[Q(t,e),"[",a,"]"].join("")]:[...i,[Q(t,e),"[",Q(a,e),"]=",Q(n,e)].join("")]};case"bracket":return t=>(i,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?i:n===null?[...i,[Q(t,e),"[]"].join("")]:[...i,[Q(t,e),"[]=",Q(n,e)].join("")];case"colon-list-separator":return t=>(i,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?i:n===null?[...i,[Q(t,e),":list="].join("")]:[...i,[Q(t,e),":list=",Q(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(n,a)=>a===void 0||e.skipNull&&a===null||e.skipEmptyString&&a===""?n:(a=a===null?"":a,n.length===0?[[Q(i,e),t,Q(a,e)].join("")]:[[n,Q(a,e)].join(e.arrayFormatSeparator)])}default:return t=>(i,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?i:n===null?[...i,Q(t,e)]:[...i,[Q(t,e),"=",Q(n,e)].join("")]}}function tr(e){let t;switch(e.arrayFormat){case"index":return(i,n,a)=>{if(t=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!t){a[i]=n;return}a[i]===void 0&&(a[i]={}),a[i][t[1]]=n};case"bracket":return(i,n,a)=>{if(t=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!t){a[i]=n;return}if(a[i]===void 0){a[i]=[n];return}a[i]=[...a[i],n]};case"colon-list-separator":return(i,n,a)=>{if(t=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!t){a[i]=n;return}if(a[i]===void 0){a[i]=[n];return}a[i]=[...a[i],n]};case"comma":case"separator":return(i,n,a)=>{const o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&De(n,e).includes(e.arrayFormatSeparator);n=s?De(n,e):n;const c=o||s?n.split(e.arrayFormatSeparator).map(d=>De(d,e)):n===null?n:De(n,e);a[i]=c};case"bracket-separator":return(i,n,a)=>{const o=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!o){a[i]=n&&De(n,e);return}const s=n===null?[]:De(n,e).split(e.arrayFormatSeparator);if(a[i]===void 0){a[i]=s;return}a[i]=[...a[i],...s]};default:return(i,n,a)=>{if(a[i]===void 0){a[i]=n;return}a[i]=[...[a[i]].flat(),n]}}}function Gt(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Q(e,t){return t.encode?t.strict?Qn(e):encodeURIComponent(e):e}function De(e,t){return t.decode?Kn(e):e}function jt(e){return Array.isArray(e)?e.sort():typeof e=="object"?jt(Object.keys(e)).sort((t,i)=>Number(t)-Number(i)).map(t=>e[t]):e}function Yt(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function nr(e){let t="";const i=e.indexOf("#");return i!==-1&&(t=e.slice(i)),t}function Vt(e,t,i){return i==="string"&&typeof e=="string"?e:typeof i=="function"&&typeof e=="string"?i(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":i==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function dt(e){e=Yt(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function mt(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},Gt(t.arrayFormatSeparator);const i=tr(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(const a of e.split("&")){if(a==="")continue;const o=t.decode?a.replaceAll("+"," "):a;let[s,c]=Wt(o,"=");s===void 0&&(s=o),c=c===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?c:De(c,t),i(De(s,t),c,n)}for(const[a,o]of Object.entries(n))if(typeof o=="object"&&o!==null&&t.types[a]!=="string")for(const[s,c]of Object.entries(o)){const d=t.types[a]?t.types[a].replace("[]",""):void 0;o[s]=Vt(c,t,d)}else typeof o=="object"&&o!==null&&t.types[a]==="string"?n[a]=Object.values(o).join(t.arrayFormatSeparator):n[a]=Vt(o,t,t.types[a]);return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((a,o)=>{const s=n[o];return a[o]=s&&typeof s=="object"&&!Array.isArray(s)?jt(s):s,a},Object.create(null))}function qt(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},Gt(t.arrayFormatSeparator);const i=s=>t.skipNull&&Jn(e[s])||t.skipEmptyString&&e[s]==="",n=er(t),a={};for(const[s,c]of Object.entries(e))i(s)||(a[s]=c);const o=Object.keys(a);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const c=e[s];return c===void 0?"":c===null?Q(s,t):Array.isArray(c)?c.length===0&&t.arrayFormat==="bracket-separator"?Q(s,t)+"[]":c.reduce(n(s),[]).join("&"):Q(s,t)+"="+Q(c,t)}).filter(s=>s.length>0).join("&")}function Xt(e,t){var a;t={decode:!0,...t};let[i,n]=Wt(e,"#");return i===void 0&&(i=e),{url:((a=i==null?void 0:i.split("?"))==null?void 0:a[0])??"",query:mt(dt(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:De(n,t)}:{}}}function Kt(e,t){t={encode:!0,strict:!0,[ft]:!0,...t};const i=Yt(e.url).split("?")[0]||"",n=dt(e.url),a={...mt(n,{sort:!1}),...e.query};let o=qt(a,t);o&&(o=`?${o}`);let s=nr(e.url);if(typeof e.fragmentIdentifier=="string"){const c=new URL(i);c.hash=e.fragmentIdentifier,s=t[ft]?c.hash:`#${e.fragmentIdentifier}`}return`${i}${o}${s}`}function Zt(e,t,i){i={parseFragmentIdentifier:!0,[ft]:!1,...i};const{url:n,query:a,fragmentIdentifier:o}=Xt(e,i);return Kt({url:n,query:Zn(a,t),fragmentIdentifier:o},i)}function rr(e,t,i){const n=Array.isArray(t)?a=>!t.includes(a):(a,o)=>!t(a,o);return Zt(e,n,i)}const ir=Object.freeze(Object.defineProperty({__proto__:null,exclude:rr,extract:dt,parse:mt,parseUrl:Xt,pick:Zt,stringify:qt,stringifyUrl:Kt},Symbol.toStringTag,{value:"Module"})),or={arrayFormat:"comma",parseNumbers:!0},ar=(e,t)=>{const i={...or,...t},n=ir.parse(window.location.search,i);if(!n)return null;const a=n[e];return a??null},sr=e=>`${e/16}rem`;var Jt={exports:{}};/*! store2 - v2.14.3 - 2024-02-14
|
|
2
|
+
* Copyright (c) 2024 Nathan Bubna; Licensed MIT */(function(e){(function(t,i){var n={version:"2.14.3",areas:{},apis:{},nsdelim:".",inherit:function(o,s){for(var c in o)s.hasOwnProperty(c)||Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(o,c));return s},stringify:function(o,s){return o===void 0||typeof o=="function"?o+"":JSON.stringify(o,s||n.replace)},parse:function(o,s){try{return JSON.parse(o,s||n.revive)}catch{return o}},fn:function(o,s){n.storeAPI[o]=s;for(var c in n.apis)n.apis[c][o]=s},get:function(o,s){return o.getItem(s)},set:function(o,s,c){o.setItem(s,c)},remove:function(o,s){o.removeItem(s)},key:function(o,s){return o.key(s)},length:function(o){return o.length},clear:function(o){o.clear()},Store:function(o,s,c){var d=n.inherit(n.storeAPI,function(k,Y,u){return arguments.length===0?d.getAll():typeof Y=="function"?d.transact(k,Y,u):Y!==void 0?d.set(k,Y,u):typeof k=="string"||typeof k=="number"?d.get(k):typeof k=="function"?d.each(k):k?d.setAll(k,Y):d.clear()});d._id=o;try{var v="__store2_test";s.setItem(v,"ok"),d._area=s,s.removeItem(v)}catch{d._area=n.storage("fake")}return d._ns=c||"",n.areas[o]||(n.areas[o]=d._area),n.apis[d._ns+d._id]||(n.apis[d._ns+d._id]=d),d},storeAPI:{area:function(o,s){var c=this[o];return(!c||!c.area)&&(c=n.Store(o,s,this._ns),this[o]||(this[o]=c)),c},namespace:function(o,s,c){if(c=c||this._delim||n.nsdelim,!o)return this._ns?this._ns.substring(0,this._ns.length-c.length):"";var d=o,v=this[d];if((!v||!v.namespace)&&(v=n.Store(this._id,this._area,this._ns+d+c),v._delim=c,this[d]||(this[d]=v),!s))for(var k in n.areas)v.area(k,n.areas[k]);return v},isFake:function(o){return o?(this._real=this._area,this._area=n.storage("fake")):o===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(o){return this._area.has?this._area.has(this._in(o)):this._in(o)in this._area},size:function(){return this.keys().length},each:function(o,s){for(var c=0,d=n.length(this._area);c<d;c++){var v=this._out(n.key(this._area,c));if(v!==void 0&&o.call(this,v,this.get(v),s)===!1)break;d>n.length(this._area)&&(d--,c--)}return s||this},keys:function(o){return this.each(function(s,c,d){d.push(s)},o||[])},get:function(o,s){var c=n.get(this._area,this._in(o)),d;return typeof s=="function"&&(d=s,s=null),c!==null?n.parse(c,d):s??c},getAll:function(o){return this.each(function(s,c,d){d[s]=c},o||{})},transact:function(o,s,c){var d=this.get(o,c),v=s(d);return this.set(o,v===void 0?d:v),this},set:function(o,s,c){var d=this.get(o),v;return d!=null&&c===!1?s:(typeof c=="function"&&(v=c,c=void 0),n.set(this._area,this._in(o),n.stringify(s,v),c)||d)},setAll:function(o,s){var c,d;for(var v in o)d=o[v],this.set(v,d,s)!==d&&(c=!0);return c},add:function(o,s,c){var d=this.get(o);if(d instanceof Array)s=d.concat(s);else if(d!==null){var v=typeof d;if(v===typeof s&&v==="object"){for(var k in s)d[k]=s[k];s=d}else s=d+s}return n.set(this._area,this._in(o),n.stringify(s,c)),s},remove:function(o,s){var c=this.get(o,s);return n.remove(this._area,this._in(o)),c},clear:function(){return this._ns?this.each(function(o){n.remove(this._area,this._in(o))},1):n.clear(this._area),this},clearAll:function(){var o=this._area;for(var s in n.areas)n.areas.hasOwnProperty(s)&&(this._area=n.areas[s],this.clear());return this._area=o,this},_in:function(o){return typeof o!="string"&&(o=n.stringify(o)),this._ns?this._ns+o:o},_out:function(o){return this._ns?o&&o.indexOf(this._ns)===0?o.substring(this._ns.length):void 0:o}},storage:function(o){return n.inherit(n.storageAPI,{items:{},name:o})},storageAPI:{length:0,has:function(o){return this.items.hasOwnProperty(o)},key:function(o){var s=0;for(var c in this.items)if(this.has(c)&&o===s++)return c},setItem:function(o,s){this.has(o)||this.length++,this.items[o]=s},removeItem:function(o){this.has(o)&&(delete this.items[o],this.length--)},getItem:function(o){return this.has(o)?this.items[o]:null},clear:function(){for(var o in this.items)this.removeItem(o)}}},a=n.Store("local",function(){try{return localStorage}catch{}}());a.local=a,a._=n,a.area("session",function(){try{return sessionStorage}catch{}}()),a.area("page",n.storage("page")),typeof i=="function"&&i.amd!==void 0?i("store2",[],function(){return a}):e.exports?e.exports=a:(t.store&&(n.conflict=t.store),t.store=a)})(Le,Le&&Le.define)})(Jt);var cr=Jt.exports;const ht=ze(cr),lr=e=>{const t=ht.session.get(e);return t===void 0?null:t};var Qt;(function(e){e[e.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",e[e.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",e[e.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",e[e.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",e[e.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",e[e.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",e[e.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",e[e.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",e[e.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",e[e.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",e[e.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",e[e.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",e[e.TAGS_START=917504]="TAGS_START",e[e.TAGS_END=917631]="TAGS_END",e[e.ZWJ=8205]="ZWJ"})(Qt||(Qt={}));const ur=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var en;function fr(e){if(typeof e!="string")throw new TypeError("string cannot be undefined or null");const t=[];let i=0,n=0;for(;i<e.length;)n+=dr(i+n,e),_r(e[i+n])&&n++,gr(e[i+n])&&n++,br(e[i+n])&&n++,Tr(e[i+n])?n++:(t.push(e.substring(i,i+n)),i+=n,n=0);return t}function dr(e,t){const i=t[e];if(!mr(i)||e===t.length-1)return 1;const n=i+t[e+1];let a=t.substring(e+2,e+5);return tn(n)&&tn(a)?4:hr(n)&&wr(a)?t.slice(e).indexOf(String.fromCodePoint(917631))+2:pr(a)?4:2}function mr(e){return e&&ke(e[0].charCodeAt(0),55296,56319)}function tn(e){return ke(pt(e),127462,127487)}function hr(e){return ke(pt(e),127988,127988)}function pr(e){return ke(pt(e),127995,127999)}function gr(e){return typeof e=="string"&&ke(e.charCodeAt(0),65024,65039)}function br(e){return typeof e=="string"&&ke(e.charCodeAt(0),8400,8447)}function wr(e){const t=e.codePointAt(0);return typeof e=="string"&&typeof t=="number"&&ke(t,917504,917631)}function _r(e){return typeof e=="string"&&ur.includes(e.charCodeAt(0))}function Tr(e){return typeof e=="string"&&e.charCodeAt(0)===8205}function pt(e){return(e.charCodeAt(0)-55296<<10)+(e.charCodeAt(1)-56320)+65536}function ke(e,t,i){return e>=t&&e<=i}(function(e){e[e.unit_1=1]="unit_1",e[e.unit_2=2]="unit_2",e[e.unit_4=4]="unit_4"})(en||(en={}));const yr=e=>fr(e).length,nn=e=>getComputedStyle(document.documentElement).getPropertyValue(e),Ar=e=>Number.parseInt(nn(e))||0;var gt={exports:{}};(function(e,t){(function(i,n){var a="1.0.39",o="",s="?",c="function",d="undefined",v="object",k="string",Y="major",u="model",m="name",l="type",f="vendor",p="version",ae="architecture",pe="console",C="mobile",L="tablet",z="smarttv",W="wearable",we="embedded",K=500,Ee="Amazon",_="Apple",H="ASUS",ce="BlackBerry",me="Browser",S="Chrome",w="Edge",g="Firefox",T="Google",b="Huawei",R="LG",O="Microsoft",$="Motorola",G="Opera",V="Samsung",X="Sharp",te="Sony",_e="Xiaomi",ge="Zebra",Se="Facebook",Te="Chromium OS",ee="Mac OS",be=" Browser",Ie=function(M,F){var N={};for(var j in M)F[j]&&F[j].length%2===0?N[j]=F[j].concat(M[j]):N[j]=M[j];return N},ye=function(M){for(var F={},N=0;N<M.length;N++)F[M[N].toUpperCase()]=M[N];return F},tt=function(M,F){return typeof M===k?Ne(F).indexOf(Ne(M))!==-1:!1},Ne=function(M){return M.toLowerCase()},Fe=function(M){return typeof M===k?M.replace(/[^\d\.]/g,o).split(".")[0]:n},Xe=function(M,F){if(typeof M===k)return M=M.replace(/^\s\s*/,o),typeof F===d?M:M.substring(0,K)},Ue=function(M,F){for(var N=0,j,le,Ae,B,D,ue;N<F.length&&!D;){var Me=F[N],nt=F[N+1];for(j=le=0;j<Me.length&&!D&&Me[j];)if(D=Me[j++].exec(M),D)for(Ae=0;Ae<nt.length;Ae++)ue=D[++le],B=nt[Ae],typeof B===v&&B.length>0?B.length===2?typeof B[1]==c?this[B[0]]=B[1].call(this,ue):this[B[0]]=B[1]:B.length===3?typeof B[1]===c&&!(B[1].exec&&B[1].test)?this[B[0]]=ue?B[1].call(this,ue,B[2]):n:this[B[0]]=ue?ue.replace(B[1],B[2]):n:B.length===4&&(this[B[0]]=ue?B[3].call(this,ue.replace(B[1],B[2])):n):this[B]=ue||n;N+=2}},He=function(M,F){for(var N in F)if(typeof F[N]===v&&F[N].length>0){for(var j=0;j<F[N].length;j++)if(tt(F[N][j],M))return N===s?n:N}else if(tt(F[N],M))return N===s?n:N;return F.hasOwnProperty("*")?F["*"]:M},Tt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},U={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},A={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,p],[/opios[\/ ]+([\w\.]+)/i],[p,[m,G+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[m,G+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[m,G]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[m,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[m,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[m,"UC"+me]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[m,"Smart Lenovo "+me]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+me],p],[/\bfocus\/([\w\.]+)/i],[p,[m,g+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[m,G+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[m,G+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[m,"MIUI "+me]],[/fxios\/([-\w\.]+)/i],[p,[m,g]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360"+be]],[/\b(qq)\/([\w\.]+)/i],[[m,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1"+be],p],[/samsungbrowser\/([\w\.]+)/i],[p,[m,V+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[m,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,Se],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[m,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[m,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,S+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[m,"Android "+me]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[p,He,Tt]],[/(webkit|khtml)\/([\w\.]+)/i],[m,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],p],[/(wolvic)\/([\w\.]+)/i],[m,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[m,g+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[m,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[m,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[ae,"amd64"]],[/(ia32(?=;))/i],[[ae,Ne]],[/((?:i[346]|x)86)[;\)]/i],[[ae,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[ae,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[ae,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ae,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[ae,/ower/,o,Ne]],[/(sun4\w)[;\)]/i],[[ae,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[ae,Ne]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,V],[l,L]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,V],[l,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,_],[l,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,_],[l,L]],[/(macintosh);/i],[u,[f,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,X],[l,C]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,b],[l,L]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,b],[l,C]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[u,/_/g," "],[f,_e],[l,C]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,_e],[l,L]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[l,C]],[/\b(opd2\d{3}a?) bui/i],[u,[f,"OPPO"],[l,L]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[l,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[l,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,$],[l,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,$],[l,L]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,R],[l,L]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,R],[l,C]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[l,L]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[l,C]],[/(pixel c)\b/i],[u,[f,T],[l,L]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,T],[l,C]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,te],[l,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,te],[l,L]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[l,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,Ee],[l,L]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,Ee],[l,C]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[l,L]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,ce],[l,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,H],[l,L]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,H],[l,C]],[/(nexus 9)/i],[u,[f,"HTC"],[l,L]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[l,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[f,"TCL"],[l,L]],[/(itel) ((\w+))/i],[[f,Ne],u,[l,He,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[l,L]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[l,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[f,"Ulefone"],[l,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[f,"Nothing"],[l,C]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[l,C]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[l,L]],[/(surface duo)/i],[u,[f,O],[l,L]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[l,C]],[/(u304aa)/i],[u,[f,"AT&T"],[l,C]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[l,C]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[l,L]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[l,L]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[l,L]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[l,L]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[l,L]],[/\b(k88) b/i],[u,[f,"ZTE"],[l,L]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[l,C]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[l,C]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[l,L]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[l,L]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[l,L]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[l,L]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[l,L]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[l,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[l,C]],[/\b(ph-1) /i],[u,[f,"Essential"],[l,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[l,L]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[l,L]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[l,L]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[l,L]],[/(sprint) (\w+)/i],[f,u,[l,C]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,O],[l,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,ge],[l,L]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,ge],[l,C]],[/smart-tv.+(samsung)/i],[f,[l,z]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,V],[l,z]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,R],[l,z]],[/(apple) ?tv/i],[f,[u,_+" TV"],[l,z]],[/crkey/i],[[u,S+"cast"],[f,T],[l,z]],[/droid.+aft(\w+)( bui|\))/i],[u,[f,Ee],[l,z]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,X],[l,z]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,te],[l,z]],[/(mitv-\w{5}) bui/i],[u,[f,_e],[l,z]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[l,z]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,Xe],[u,Xe],[l,z]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,z]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[l,pe]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[l,pe]],[/(playstation [345portablevi]+)/i],[u,[f,te],[l,pe]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,O],[l,pe]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[u,[f,V],[l,W]],[/((pebble))app/i],[f,u,[l,W]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,_],[l,W]],[/droid.+; (glass) \d/i],[u,[f,T],[l,W]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,ge],[l,W]],[/(quest( \d| pro)?)/i],[u,[f,Se],[l,W]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,we]],[/(aeobc)\b/i],[u,[f,Ee],[l,we]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[l,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[l,L]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,L]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,C]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[m,w+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[m,[p,He,U]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,He,U],[m,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,ee],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,p],[/\(bb(10);/i],[p,[m,ce]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[m,g+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[m,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,Te],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,p],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,p]]},x=function(M,F){if(typeof M===v&&(F=M,M=n),!(this instanceof x))return new x(M,F).getResult();var N=typeof i!==d&&i.navigator?i.navigator:n,j=M||(N&&N.userAgent?N.userAgent:o),le=N&&N.userAgentData?N.userAgentData:n,Ae=F?Ie(A,F):A,B=N&&N.userAgent==j;return this.getBrowser=function(){var D={};return D[m]=n,D[p]=n,Ue.call(D,j,Ae.browser),D[Y]=Fe(D[p]),B&&N&&N.brave&&typeof N.brave.isBrave==c&&(D[m]="Brave"),D},this.getCPU=function(){var D={};return D[ae]=n,Ue.call(D,j,Ae.cpu),D},this.getDevice=function(){var D={};return D[f]=n,D[u]=n,D[l]=n,Ue.call(D,j,Ae.device),B&&!D[l]&&le&&le.mobile&&(D[l]=C),B&&D[u]=="Macintosh"&&N&&typeof N.standalone!==d&&N.maxTouchPoints&&N.maxTouchPoints>2&&(D[u]="iPad",D[l]=L),D},this.getEngine=function(){var D={};return D[m]=n,D[p]=n,Ue.call(D,j,Ae.engine),D},this.getOS=function(){var D={};return D[m]=n,D[p]=n,Ue.call(D,j,Ae.os),B&&!D[m]&&le&&le.platform&&le.platform!="Unknown"&&(D[m]=le.platform.replace(/chrome os/i,Te).replace(/macos/i,ee)),D},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return j},this.setUA=function(D){return j=typeof D===k&&D.length>K?Xe(D,K):D,this},this.setUA(j),this};x.VERSION=a,x.BROWSER=ye([m,p,Y]),x.CPU=ye([ae]),x.DEVICE=ye([u,f,l,pe,C,z,L,W,we]),x.ENGINE=x.OS=ye([m,p]),e.exports&&(t=e.exports=x),t.UAParser=x;var P=typeof i!==d&&(i.jQuery||i.Zepto);if(P&&!P.ua){var Z=new x;P.ua=Z.getResult(),P.ua.get=function(){return Z.getUA()},P.ua.set=function(M){Z.setUA(M);var F=Z.getResult();for(var N in F)P.ua[N]=F[N]}}})(typeof window=="object"?window:Le)})(gt,gt.exports);var Er=gt.exports;const Sr=ze(Er);var bt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(){return!!(typeof window<"u"&&("ontouchstart"in window||window.DocumentTouch&&typeof document<"u"&&document instanceof window.DocumentTouch))||!!(typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints))}e.exports=t.default})(bt,bt.exports);var vr=bt.exports;const Or=ze(vr),rn=()=>Or(),wt=()=>{const t=new Sr().getResult(),i=t.browser.name,n=t.browser.version,a=t.engine.name,o=t.os.name,s=t.device.type;return{browserName:i?i.toLowerCase().replace(" ","-"):"",browserVersion:n||"",browserEngine:a?a.toLowerCase().replace(" ","-"):"",osName:o?o.toLowerCase().replace(" ","-"):"",type:typeof s<"u"?s.toLowerCase().replace(" ","-"):"laptop",touchSupport:rn()}};var on={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Le,function(){return function(i,n,a){n.prototype.isBetween=function(o,s,c,d){var v=a(o),k=a(s),Y=(d=d||"()")[0]==="(",u=d[1]===")";return(Y?this.isAfter(v,c):!this.isBefore(v,c))&&(u?this.isBefore(k,c):!this.isAfter(k,c))||(Y?this.isBefore(v,c):!this.isAfter(v,c))&&(u?this.isAfter(k,c):!this.isBefore(k,c))}}})})(on);var Rr=on.exports;const Dr=ze(Rr);Pe.extend(Dr);const Ir=(e,t,i=Pe())=>{if(!Pe(e).isValid()||!Pe(t).isValid())throw new Error("dateA or dateB is not valid date");const n=Pe(e),a=Pe(t);return i.isBetween(n,a,"millisecond")},Nr=e=>e.length>0&&e.every(t=>t!==null),Mr=(e="portrait")=>{const t=wt();return t.touchSupport?t.type==="laptop"&&t.osName==="mac-os"&&t.browserName==="safari"&&t.touchSupport&&Ut()===e:!1},xr=(e,t)=>!!e&&Object.prototype.hasOwnProperty.call(e,t),Cr=(e=!0)=>{const t=wt();return e?t.browserName==="safari"||t.browserName==="mobile-safari":t.browserName==="safari"},Lr=e=>{const t=e.scrollWidth>e.clientWidth,i=e.scrollHeight>e.clientHeight;return t||i};var _t={exports:{}};/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */var an;function sn(){return an||(an=1,function(e,t){(function(i,n){e.exports=n()})(Le,function(){const{entries:i,setPrototypeOf:n,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object;let{freeze:c,seal:d,create:v}=Object,{apply:k,construct:Y}=typeof Reflect<"u"&&Reflect;c||(c=function(A){return A}),d||(d=function(A){return A}),k||(k=function(A,x,P){return A.apply(x,P)}),Y||(Y=function(A,x){return new A(...x)});const u=K(Array.prototype.forEach),m=K(Array.prototype.pop),l=K(Array.prototype.push),f=K(String.prototype.toLowerCase),p=K(String.prototype.toString),ae=K(String.prototype.match),pe=K(String.prototype.replace),C=K(String.prototype.indexOf),L=K(String.prototype.trim),z=K(Object.prototype.hasOwnProperty),W=K(RegExp.prototype.test),we=Ee(TypeError);function K(U){return function(A){for(var x=arguments.length,P=new Array(x>1?x-1:0),Z=1;Z<x;Z++)P[Z-1]=arguments[Z];return k(U,A,P)}}function Ee(U){return function(){for(var A=arguments.length,x=new Array(A),P=0;P<A;P++)x[P]=arguments[P];return Y(U,x)}}function _(U,A){let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f;n&&n(U,null);let P=A.length;for(;P--;){let Z=A[P];if(typeof Z=="string"){const M=x(Z);M!==Z&&(a(A)||(A[P]=M),Z=M)}U[Z]=!0}return U}function H(U){for(let A=0;A<U.length;A++)z(U,A)||(U[A]=null);return U}function ce(U){const A=v(null);for(const[x,P]of i(U))z(U,x)&&(Array.isArray(P)?A[x]=H(P):P&&typeof P=="object"&&P.constructor===Object?A[x]=ce(P):A[x]=P);return A}function me(U,A){for(;U!==null;){const P=s(U,A);if(P){if(P.get)return K(P.get);if(typeof P.value=="function")return K(P.value)}U=o(U)}function x(){return null}return x}const S=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),w=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),g=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),b=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=c(["#text"]),$=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),te=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_e=d(/<%[\w\W]*|[\w\W]*%>/gm),ge=d(/\${[\w\W]*}/gm),Se=d(/^data-[\-\w.\u00B7-\uFFFF]/),Te=d(/^aria-[\-\w]+$/),ee=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=d(/^(?:\w+script|data):/i),Ie=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ye=d(/^html$/i),tt=d(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ne=Object.freeze({__proto__:null,MUSTACHE_EXPR:te,ERB_EXPR:_e,TMPLIT_EXPR:ge,DATA_ATTR:Se,ARIA_ATTR:Te,IS_ALLOWED_URI:ee,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:Ie,DOCTYPE_NAME:ye,CUSTOM_ELEMENT:tt});const Fe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Xe=function(){return typeof window>"u"?null:window},Ue=function(A,x){if(typeof A!="object"||typeof A.createPolicy!="function")return null;let P=null;const Z="data-tt-policy-suffix";x&&x.hasAttribute(Z)&&(P=x.getAttribute(Z));const M="dompurify"+(P?"#"+P:"");try{return A.createPolicy(M,{createHTML(F){return F},createScriptURL(F){return F}})}catch{return console.warn("TrustedTypes policy "+M+" could not be created."),null}};function He(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xe();const A=E=>He(E);if(A.version="3.1.7",A.removed=[],!U||!U.document||U.document.nodeType!==Fe.document)return A.isSupported=!1,A;let{document:x}=U;const P=x,Z=P.currentScript,{DocumentFragment:M,HTMLTemplateElement:F,Node:N,Element:j,NodeFilter:le,NamedNodeMap:Ae=U.NamedNodeMap||U.MozNamedAttrMap,HTMLFormElement:B,DOMParser:D,trustedTypes:ue}=U,Me=j.prototype,nt=me(Me,"cloneNode"),Xr=me(Me,"remove"),Kr=me(Me,"nextSibling"),Zr=me(Me,"childNodes"),rt=me(Me,"parentNode");if(typeof F=="function"){const E=x.createElement("template");E.content&&E.content.ownerDocument&&(x=E.content.ownerDocument)}let fe,Ke="";const{implementation:yt,createNodeIterator:Jr,createDocumentFragment:Qr,getElementsByTagName:ei}=x,{importNode:ti}=P;let ve={};A.isSupported=typeof i=="function"&&typeof rt=="function"&&yt&&yt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:At,ERB_EXPR:Et,TMPLIT_EXPR:St,DATA_ATTR:ni,ARIA_ATTR:ri,IS_SCRIPT_OR_DATA:ii,ATTR_WHITESPACE:ln,CUSTOM_ELEMENT:oi}=Ne;let{IS_ALLOWED_URI:un}=Ne,ne=null;const fn=_({},[...S,...w,...g,...b,...O]);let re=null;const dn=_({},[...$,...G,...V,...X]);let J=Object.seal(v(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ze=null,vt=null,mn=!0,Ot=!0,hn=!1,pn=!0,We=!1,Rt=!0,$e=!1,Dt=!1,It=!1,Ge=!1,it=!1,ot=!1,gn=!0,bn=!1;const ai="user-content-";let Nt=!0,Je=!1,je={},Ye=null;const wn=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let _n=null;const Tn=_({},["audio","video","img","source","image","track"]);let Mt=null;const yn=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),at="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",xe="http://www.w3.org/1999/xhtml";let Ve=xe,xt=!1,Ct=null;const si=_({},[at,st,xe],p);let Qe=null;const ci=["application/xhtml+xml","text/html"],li="text/html";let ie=null,qe=null;const ui=x.createElement("form"),An=function(r){return r instanceof RegExp||r instanceof Function},Lt=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(qe&&qe===r)){if((!r||typeof r!="object")&&(r={}),r=ce(r),Qe=ci.indexOf(r.PARSER_MEDIA_TYPE)===-1?li:r.PARSER_MEDIA_TYPE,ie=Qe==="application/xhtml+xml"?p:f,ne=z(r,"ALLOWED_TAGS")?_({},r.ALLOWED_TAGS,ie):fn,re=z(r,"ALLOWED_ATTR")?_({},r.ALLOWED_ATTR,ie):dn,Ct=z(r,"ALLOWED_NAMESPACES")?_({},r.ALLOWED_NAMESPACES,p):si,Mt=z(r,"ADD_URI_SAFE_ATTR")?_(ce(yn),r.ADD_URI_SAFE_ATTR,ie):yn,_n=z(r,"ADD_DATA_URI_TAGS")?_(ce(Tn),r.ADD_DATA_URI_TAGS,ie):Tn,Ye=z(r,"FORBID_CONTENTS")?_({},r.FORBID_CONTENTS,ie):wn,Ze=z(r,"FORBID_TAGS")?_({},r.FORBID_TAGS,ie):{},vt=z(r,"FORBID_ATTR")?_({},r.FORBID_ATTR,ie):{},je=z(r,"USE_PROFILES")?r.USE_PROFILES:!1,mn=r.ALLOW_ARIA_ATTR!==!1,Ot=r.ALLOW_DATA_ATTR!==!1,hn=r.ALLOW_UNKNOWN_PROTOCOLS||!1,pn=r.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=r.SAFE_FOR_TEMPLATES||!1,Rt=r.SAFE_FOR_XML!==!1,$e=r.WHOLE_DOCUMENT||!1,Ge=r.RETURN_DOM||!1,it=r.RETURN_DOM_FRAGMENT||!1,ot=r.RETURN_TRUSTED_TYPE||!1,It=r.FORCE_BODY||!1,gn=r.SANITIZE_DOM!==!1,bn=r.SANITIZE_NAMED_PROPS||!1,Nt=r.KEEP_CONTENT!==!1,Je=r.IN_PLACE||!1,un=r.ALLOWED_URI_REGEXP||ee,Ve=r.NAMESPACE||xe,J=r.CUSTOM_ELEMENT_HANDLING||{},r.CUSTOM_ELEMENT_HANDLING&&An(r.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(J.tagNameCheck=r.CUSTOM_ELEMENT_HANDLING.tagNameCheck),r.CUSTOM_ELEMENT_HANDLING&&An(r.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(J.attributeNameCheck=r.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),r.CUSTOM_ELEMENT_HANDLING&&typeof r.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=r.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(Ot=!1),it&&(Ge=!0),je&&(ne=_({},O),re=[],je.html===!0&&(_(ne,S),_(re,$)),je.svg===!0&&(_(ne,w),_(re,G),_(re,X)),je.svgFilters===!0&&(_(ne,g),_(re,G),_(re,X)),je.mathMl===!0&&(_(ne,b),_(re,V),_(re,X))),r.ADD_TAGS&&(ne===fn&&(ne=ce(ne)),_(ne,r.ADD_TAGS,ie)),r.ADD_ATTR&&(re===dn&&(re=ce(re)),_(re,r.ADD_ATTR,ie)),r.ADD_URI_SAFE_ATTR&&_(Mt,r.ADD_URI_SAFE_ATTR,ie),r.FORBID_CONTENTS&&(Ye===wn&&(Ye=ce(Ye)),_(Ye,r.FORBID_CONTENTS,ie)),Nt&&(ne["#text"]=!0),$e&&_(ne,["html","head","body"]),ne.table&&(_(ne,["tbody"]),delete Ze.tbody),r.TRUSTED_TYPES_POLICY){if(typeof r.TRUSTED_TYPES_POLICY.createHTML!="function")throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof r.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');fe=r.TRUSTED_TYPES_POLICY,Ke=fe.createHTML("")}else fe===void 0&&(fe=Ue(ue,Z)),fe!==null&&typeof Ke=="string"&&(Ke=fe.createHTML(""));c&&c(r),qe=r}},En=_({},["mi","mo","mn","ms","mtext"]),Sn=_({},["annotation-xml"]),fi=_({},["title","style","font","a","script"]),vn=_({},[...w,...g,...T]),On=_({},[...b,...R]),di=function(r){let h=rt(r);(!h||!h.tagName)&&(h={namespaceURI:Ve,tagName:"template"});const y=f(r.tagName),q=f(h.tagName);return Ct[r.namespaceURI]?r.namespaceURI===st?h.namespaceURI===xe?y==="svg":h.namespaceURI===at?y==="svg"&&(q==="annotation-xml"||En[q]):!!vn[y]:r.namespaceURI===at?h.namespaceURI===xe?y==="math":h.namespaceURI===st?y==="math"&&Sn[q]:!!On[y]:r.namespaceURI===xe?h.namespaceURI===st&&!Sn[q]||h.namespaceURI===at&&!En[q]?!1:!On[y]&&(fi[y]||!vn[y]):!!(Qe==="application/xhtml+xml"&&Ct[r.namespaceURI]):!1},Oe=function(r){l(A.removed,{element:r});try{rt(r).removeChild(r)}catch{Xr(r)}},ct=function(r,h){try{l(A.removed,{attribute:h.getAttributeNode(r),from:h})}catch{l(A.removed,{attribute:null,from:h})}if(h.removeAttribute(r),r==="is"&&!re[r])if(Ge||it)try{Oe(h)}catch{}else try{h.setAttribute(r,"")}catch{}},Rn=function(r){let h=null,y=null;if(It)r="<remove></remove>"+r;else{const oe=ae(r,/^[\r\n\t ]+/);y=oe&&oe[0]}Qe==="application/xhtml+xml"&&Ve===xe&&(r='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+r+"</body></html>");const q=fe?fe.createHTML(r):r;if(Ve===xe)try{h=new D().parseFromString(q,Qe)}catch{}if(!h||!h.documentElement){h=yt.createDocument(Ve,"template",null);try{h.documentElement.innerHTML=xt?Ke:q}catch{}}const se=h.body||h.documentElement;return r&&y&&se.insertBefore(x.createTextNode(y),se.childNodes[0]||null),Ve===xe?ei.call(h,$e?"html":"body")[0]:$e?h.documentElement:se},Dn=function(r){return Jr.call(r.ownerDocument||r,r,le.SHOW_ELEMENT|le.SHOW_COMMENT|le.SHOW_TEXT|le.SHOW_PROCESSING_INSTRUCTION|le.SHOW_CDATA_SECTION,null)},In=function(r){return r instanceof B&&(typeof r.nodeName!="string"||typeof r.textContent!="string"||typeof r.removeChild!="function"||!(r.attributes instanceof Ae)||typeof r.removeAttribute!="function"||typeof r.setAttribute!="function"||typeof r.namespaceURI!="string"||typeof r.insertBefore!="function"||typeof r.hasChildNodes!="function")},Nn=function(r){return typeof N=="function"&&r instanceof N},Ce=function(r,h,y){ve[r]&&u(ve[r],q=>{q.call(A,h,y,qe)})},Mn=function(r){let h=null;if(Ce("beforeSanitizeElements",r,null),In(r))return Oe(r),!0;const y=ie(r.nodeName);if(Ce("uponSanitizeElement",r,{tagName:y,allowedTags:ne}),r.hasChildNodes()&&!Nn(r.firstElementChild)&&W(/<[/\w]/g,r.innerHTML)&&W(/<[/\w]/g,r.textContent)||r.nodeType===Fe.progressingInstruction||Rt&&r.nodeType===Fe.comment&&W(/<[/\w]/g,r.data))return Oe(r),!0;if(!ne[y]||Ze[y]){if(!Ze[y]&&Cn(y)&&(J.tagNameCheck instanceof RegExp&&W(J.tagNameCheck,y)||J.tagNameCheck instanceof Function&&J.tagNameCheck(y)))return!1;if(Nt&&!Ye[y]){const q=rt(r)||r.parentNode,se=Zr(r)||r.childNodes;if(se&&q){const oe=se.length;for(let he=oe-1;he>=0;--he){const Re=nt(se[he],!0);Re.__removalCount=(r.__removalCount||0)+1,q.insertBefore(Re,Kr(r))}}}return Oe(r),!0}return r instanceof j&&!di(r)||(y==="noscript"||y==="noembed"||y==="noframes")&&W(/<\/no(script|embed|frames)/i,r.innerHTML)?(Oe(r),!0):(We&&r.nodeType===Fe.text&&(h=r.textContent,u([At,Et,St],q=>{h=pe(h,q," ")}),r.textContent!==h&&(l(A.removed,{element:r.cloneNode()}),r.textContent=h)),Ce("afterSanitizeElements",r,null),!1)},xn=function(r,h,y){if(gn&&(h==="id"||h==="name")&&(y in x||y in ui))return!1;if(!(Ot&&!vt[h]&&W(ni,h))){if(!(mn&&W(ri,h))){if(!re[h]||vt[h]){if(!(Cn(r)&&(J.tagNameCheck instanceof RegExp&&W(J.tagNameCheck,r)||J.tagNameCheck instanceof Function&&J.tagNameCheck(r))&&(J.attributeNameCheck instanceof RegExp&&W(J.attributeNameCheck,h)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(h))||h==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&W(J.tagNameCheck,y)||J.tagNameCheck instanceof Function&&J.tagNameCheck(y))))return!1}else if(!Mt[h]){if(!W(un,pe(y,ln,""))){if(!((h==="src"||h==="xlink:href"||h==="href")&&r!=="script"&&C(y,"data:")===0&&_n[r])){if(!(hn&&!W(ii,pe(y,ln,"")))){if(y)return!1}}}}}}return!0},Cn=function(r){return r!=="annotation-xml"&&ae(r,oi)},Ln=function(r){Ce("beforeSanitizeAttributes",r,null);const{attributes:h}=r;if(!h)return;const y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re};let q=h.length;for(;q--;){const se=h[q],{name:oe,namespaceURI:he,value:Re}=se,et=ie(oe);let de=oe==="value"?Re:L(Re);if(y.attrName=et,y.attrValue=de,y.keepAttr=!0,y.forceKeepAttr=void 0,Ce("uponSanitizeAttribute",r,y),de=y.attrValue,y.forceKeepAttr||(ct(oe,r),!y.keepAttr))continue;if(!pn&&W(/\/>/i,de)){ct(oe,r);continue}We&&u([At,Et,St],kn=>{de=pe(de,kn," ")});const Pn=ie(r.nodeName);if(xn(Pn,et,de)){if(bn&&(et==="id"||et==="name")&&(ct(oe,r),de=ai+de),Rt&&W(/((--!?|])>)|<\/(style|title)/i,de)){ct(oe,r);continue}if(fe&&typeof ue=="object"&&typeof ue.getAttributeType=="function"&&!he)switch(ue.getAttributeType(Pn,et)){case"TrustedHTML":{de=fe.createHTML(de);break}case"TrustedScriptURL":{de=fe.createScriptURL(de);break}}try{he?r.setAttributeNS(he,oe,de):r.setAttribute(oe,de),In(r)?Oe(r):m(A.removed)}catch{}}}Ce("afterSanitizeAttributes",r,null)},mi=function E(r){let h=null;const y=Dn(r);for(Ce("beforeSanitizeShadowDOM",r,null);h=y.nextNode();)Ce("uponSanitizeShadowNode",h,null),!Mn(h)&&(h.content instanceof M&&E(h.content),Ln(h));Ce("afterSanitizeShadowDOM",r,null)};return A.sanitize=function(E){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=null,y=null,q=null,se=null;if(xt=!E,xt&&(E="<!-->"),typeof E!="string"&&!Nn(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw we("dirty is not a string, aborting")}else throw we("toString is not a function");if(!A.isSupported)return E;if(Dt||Lt(r),A.removed=[],typeof E=="string"&&(Je=!1),Je){if(E.nodeName){const Re=ie(E.nodeName);if(!ne[Re]||Ze[Re])throw we("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof N)h=Rn("<!---->"),y=h.ownerDocument.importNode(E,!0),y.nodeType===Fe.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?h=y:h.appendChild(y);else{if(!Ge&&!We&&!$e&&E.indexOf("<")===-1)return fe&&ot?fe.createHTML(E):E;if(h=Rn(E),!h)return Ge?null:ot?Ke:""}h&&It&&Oe(h.firstChild);const oe=Dn(Je?E:h);for(;q=oe.nextNode();)Mn(q)||(q.content instanceof M&&mi(q.content),Ln(q));if(Je)return E;if(Ge){if(it)for(se=Qr.call(h.ownerDocument);h.firstChild;)se.appendChild(h.firstChild);else se=h;return(re.shadowroot||re.shadowrootmode)&&(se=ti.call(P,se,!0)),se}let he=$e?h.outerHTML:h.innerHTML;return $e&&ne["!doctype"]&&h.ownerDocument&&h.ownerDocument.doctype&&h.ownerDocument.doctype.name&&W(ye,h.ownerDocument.doctype.name)&&(he="<!DOCTYPE "+h.ownerDocument.doctype.name+`>
|
|
3
|
+
`+he),We&&u([At,Et,St],Re=>{he=pe(he,Re," ")}),fe&&ot?fe.createHTML(he):he},A.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lt(E),Dt=!0},A.clearConfig=function(){qe=null,Dt=!1},A.isValidAttribute=function(E,r,h){qe||Lt({});const y=ie(E),q=ie(r);return xn(y,q,h)},A.addHook=function(E,r){typeof r=="function"&&(ve[E]=ve[E]||[],l(ve[E],r))},A.removeHook=function(E){if(ve[E])return m(ve[E])},A.removeHooks=function(E){ve[E]&&(ve[E]=[])},A.removeAllHooks=function(){ve={}},A}var Tt=He();return Tt})}(_t)),_t.exports}var Pr=window.DOMPurify||(window.DOMPurify=sn().default||sn());const kr=ze(Pr),Fr=e=>kr.sanitize(e,{ALLOWED_TAGS:[],KEEP_CONTENT:!0,USE_PROFILES:{html:!1}}).replace(/<\/?[^>]+(>|$)/g,""),Ur=(e,t)=>{e.removeAttribute(t)},Hr=e=>{ht.session.remove(e)},$r=e=>{document.documentElement.style.removeProperty(e)},Br=(e="--vh")=>{const t=window.innerHeight*.01;document.documentElement.style.setProperty(e,`${t}px`)},zr=(e="--vw")=>{const t=document.documentElement.clientWidth;document.documentElement.style.setProperty(e,`${t}px`)},Wr=(e,t,i)=>{e.setAttribute(t,i)},Gr=(e,t,i="smooth")=>{const n=e.getBoundingClientRect().width/2,a=t.getBoundingClientRect().width/2,s=t.offsetLeft+a-n;e.scrollTo({left:s,behavior:i})},jr=(e,t)=>{ht.session.set(e,t)},Yr=(e,t)=>{document.documentElement.style.setProperty(e,t)},cn=e=>{if(e){if(e.nodeType===Node.TEXT_NODE){const t=(e.textContent||"").trim(),i=document.createDocumentFragment();for(const n of t){const a=document.createElement("span");a.textContent=n,i.appendChild(a)}e.replaceWith(i)}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))cn(t)}},Vr=e=>new Promise(t=>setTimeout(t,e*1e3,"foo")),qr=async(e=!1)=>{if(!document.images||document.images.length===0)return Promise.resolve(!0);const t=Array.from(document.images).filter(a=>a.getAttribute("loading")!=="lazy"),i=Array.from(document.getElementsByTagName("video"));let n=[...t,...i];if(e){const a=window.innerHeight;n=n.filter(o=>{const s=o.getBoundingClientRect();return s.top<a&&s.bottom>0})}return n.length===0?Promise.resolve(!0):(await Promise.all(n.map(a=>a instanceof HTMLImageElement&&a.complete||a instanceof HTMLVideoElement&&a.readyState>=3?Promise.resolve():new Promise(o=>{const s=()=>o();a instanceof HTMLImageElement?(a.addEventListener("load",s,{once:!0}),a.addEventListener("error",s,{once:!0})):a instanceof HTMLVideoElement&&(a.addEventListener("loadeddata",s,{once:!0}),a.addEventListener("error",s,{once:!0}))}))),!0)};I.bgScrollStop=Fn,I.changeDateStringToSpecificFormat=zn,I.getAspectRatio=Gn,I.getClassNames=jn,I.getDocumentHeight=Yn,I.getEventPaths=Vn,I.getGcd=lt,I.getOrientation=Ut,I.getParentList=Ht,I.getQueryParams=ar,I.getRem=sr,I.getScrollbarWidth=Be,I.getSessionStorage=lr,I.getStringLength=yr,I.getStylePropertyValue=nn,I.getStylePropertyValueToNumber=Ar,I.getUaData=wt,I.isBetweenDateTime=Ir,I.isExistAllElements=Nr,I.isIpad=Mr,I.isKeyExists=xr,I.isSafari=Cr,I.isScrollable=Lr,I.isTouchSupport=rn,I.jsonStringToJsonObject=Wn,I.pd=Un,I.removeAllHtmlTags=Fr,I.removeAttribute=Ur,I.removeSessionStorage=Hr,I.removeStylePropertyValue=$r,I.scrollToHash=Hn,I.set100vh=Br,I.set100vw=zr,I.setAttribute=Wr,I.setScrollPositionToCenter=Gr,I.setSessionStorage=jr,I.setStylePropertyValue=Yr,I.sleep=Vr,I.videoPlayControl=$n,I.waitForAllMediaLoaded=qr,I.wrapTextWithSpans=cn,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stops or resumes background scrolling by manipulating the body's overflow and padding-right styles.
|
|
3
|
+
*
|
|
4
|
+
* @param {boolean} [isStop=true] - A boolean indicating whether to stop (true) or resume (false) background scrolling.
|
|
5
|
+
* Defaults to true.
|
|
6
|
+
*
|
|
7
|
+
* When `isStop` is true, the function:
|
|
8
|
+
* - Sets the body's `paddingRight` style to the width of the scrollbar to prevent layout shift.
|
|
9
|
+
* - Sets the body's `overflow` style to 'hidden' to stop background scrolling.
|
|
10
|
+
*
|
|
11
|
+
* When `isStop` is false, the function:
|
|
12
|
+
* - Resets the body's `paddingRight` style.
|
|
13
|
+
* - Resets the body's `overflow` style to allow background scrolling.
|
|
14
|
+
*/
|
|
15
|
+
export declare const bgScrollStop: (isStop?: boolean) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scrolls to a specific hash location on the page (Promise-based).
|
|
3
|
+
*
|
|
4
|
+
* @param hash - The hash string to scroll to. If the hash includes a '#', it will be removed.
|
|
5
|
+
* @param isSmooth - Determines if the scroll behavior should be smooth. Defaults to true.
|
|
6
|
+
* @param manualOffset - An optional manual offset to adjust the scroll position.
|
|
7
|
+
* @returns A Promise that resolves to true if the scroll was successful, or false if the target element was not found or the scroll did not complete within the timeout.
|
|
8
|
+
*/
|
|
9
|
+
export declare const scrollToHash: (hash: string, isSmooth?: boolean, manualOffset?: number) => Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Controls the playback of a video element based on the provided state.
|
|
3
|
+
*
|
|
4
|
+
* @param videoElement - The HTMLVideoElement to control.
|
|
5
|
+
* @param state - A boolean indicating whether to play (true) or pause (false) the video.
|
|
6
|
+
* @returns A Promise that resolves when the playback state change is complete.
|
|
7
|
+
*
|
|
8
|
+
* The function checks the current playback state of the video element and updates it
|
|
9
|
+
* according to the provided state. If the state is true and the video is paused, it will
|
|
10
|
+
* attempt to play the video. If the state is false and the video is playing, it will pause
|
|
11
|
+
* the video. The function also manages a custom `data-playing` attribute on the video element
|
|
12
|
+
* to track the playback state.
|
|
13
|
+
*/
|
|
14
|
+
export declare const videoPlayControl: (videoElement: HTMLVideoElement, state: boolean) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a date string to a specific format using the dayjs library.
|
|
3
|
+
*
|
|
4
|
+
* @param date - The date string to be converted.
|
|
5
|
+
* @param format - The format to convert the date string to. Defaults to 'YYYY年MM月DD日'.
|
|
6
|
+
* @returns The formatted date string.
|
|
7
|
+
*/
|
|
8
|
+
export declare const changeDateStringToSpecificFormat: (date: string, format?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the aspect ratio of the given width and height.
|
|
3
|
+
*
|
|
4
|
+
* @param w - The width value.
|
|
5
|
+
* @param h - The height value.
|
|
6
|
+
* @returns An object containing the width and height of the aspect ratio.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getAspectRatio: (w: number, h: number) => {
|
|
9
|
+
w: number;
|
|
10
|
+
h: number;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the class names of a given HTML element as an array of strings.
|
|
3
|
+
*
|
|
4
|
+
* @param target - The target HTML element from which to extract class names.
|
|
5
|
+
* @returns An array of class names.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getClassNames: (target: HTMLElement) => string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculates and returns the greatest common divisor (GCD) of two numbers.
|
|
3
|
+
*
|
|
4
|
+
* This function uses the Euclidean algorithm to find the GCD. It first converts
|
|
5
|
+
* both numbers to their positive equivalents using the `toPositiveNumber` function.
|
|
6
|
+
*
|
|
7
|
+
* @param a - The first number.
|
|
8
|
+
* @param b - The second number.
|
|
9
|
+
* @returns The greatest common divisor of the two numbers.
|
|
10
|
+
*/
|
|
11
|
+
export declare const getGcd: (a: number, b: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively retrieves the parent elements of a given HTMLElement and returns them in an array.
|
|
3
|
+
*
|
|
4
|
+
* @param element - The HTMLElement for which to retrieve the parent elements.
|
|
5
|
+
* @returns An array of HTMLElements representing the parent elements of the given element.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getParentList: (element: HTMLElement) => HTMLElement[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the specified path with `import.meta.env.BASE_URL` prepended to it.
|
|
3
|
+
*
|
|
4
|
+
* @param pathName - The path to be appended to the base URL.
|
|
5
|
+
* @returns The full path including the base URL.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getPath: (pathName: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the full path of a file located in the local public folder.
|
|
3
|
+
*
|
|
4
|
+
* @param fileName - The name of the file for which to get the path.
|
|
5
|
+
* @returns The full path to the specified file in the local public folder.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getPathFromLocalPublic: (fileName: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ParseOptions } from 'query-string';
|
|
2
|
+
export type GetQueryParamsReturnType = string | number | (string | number | null)[] | null;
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves the value of a specified query parameter from the URL.
|
|
5
|
+
*
|
|
6
|
+
* @param query - The name of the query parameter to retrieve.
|
|
7
|
+
* @param parseOptions - Optional. Custom parsing options to override the default settings.
|
|
8
|
+
* @returns The value of the query parameter, which can be a string, number, array of strings or numbers, or null if the parameter is not found.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getQueryParams: (query: string, parseOptions?: ParseOptions) => GetQueryParamsReturnType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the session storage value associated with the given key.
|
|
3
|
+
*
|
|
4
|
+
* @param key - The key of the session storage item to retrieve.
|
|
5
|
+
* @returns The value associated with the key, or null if the key does not exist.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getSessionStorage: (key: string) => unknown | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the length of the given string, accounting for Unicode characters.
|
|
3
|
+
*
|
|
4
|
+
* This function uses the `runes` library to correctly handle strings with
|
|
5
|
+
* Unicode characters, ensuring that each character is counted accurately.
|
|
6
|
+
*
|
|
7
|
+
* @param str - The string whose length is to be calculated.
|
|
8
|
+
* @returns The length of the string.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getStringLength: (str: string) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the value of a CSS custom property and converts it to a number.
|
|
3
|
+
*
|
|
4
|
+
* @param key - The name of the CSS custom property.
|
|
5
|
+
* @returns The numeric value of the CSS custom property, or 0 if the value cannot be parsed as a number.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getStylePropertyValueToNumber: (key: string) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type UaType = {
|
|
2
|
+
browserName?: string;
|
|
3
|
+
browserVersion?: string;
|
|
4
|
+
browserEngine?: string;
|
|
5
|
+
osName?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
touchSupport?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves user agent (UA) information.
|
|
11
|
+
*
|
|
12
|
+
* This function uses the `ua-parser-js` library to parse the user agent string
|
|
13
|
+
* and extract details about the browser, operating system, and device type.
|
|
14
|
+
* Additionally, it checks for touch support using the `isTouchSupport` function.
|
|
15
|
+
*
|
|
16
|
+
* @returns {UaType} An object containing the parsed UA information:
|
|
17
|
+
* - `browserName` (optional): The name of the browser, in lowercase and with spaces replaced by hyphens.
|
|
18
|
+
* - `browserVersion` (optional): The version of the browser.
|
|
19
|
+
* - `browserEngine` (optional): The name of the browser engine, in lowercase and with spaces replaced by hyphens.
|
|
20
|
+
* - `osName` (optional): The name of the operating system, in lowercase and with spaces replaced by hyphens.
|
|
21
|
+
* - `type` (optional): The type of device, in lowercase and with spaces replaced by hyphens. Defaults to 'laptop' if undefined.
|
|
22
|
+
* - `touchSupport` (optional): A boolean indicating whether touch support is available.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getUaData: () => UaType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get functions
|
|
3
|
+
*/
|
|
4
|
+
export { getAspectRatio } from './getAspectRatio';
|
|
5
|
+
export { getClassNames } from './getClassNames';
|
|
6
|
+
export { getDocumentHeight } from './getDocumentHeight';
|
|
7
|
+
export { getEventPaths } from './getEventPaths';
|
|
8
|
+
export { getGcd } from './getGcd';
|
|
9
|
+
export { getOrientation } from './getOrientation';
|
|
10
|
+
export { getParentList } from './getParentList';
|
|
11
|
+
export { getQueryParams } from './getQueryParams';
|
|
12
|
+
export { getRem } from './getRem';
|
|
13
|
+
export { getScrollbarWidth } from './getScrollbarWidth';
|
|
14
|
+
export { getSessionStorage } from './getSessionStorage';
|
|
15
|
+
export { getStringLength } from './getStringLength';
|
|
16
|
+
export { getStylePropertyValue } from './getStylePropertyValue';
|
|
17
|
+
export { getStylePropertyValueToNumber } from './getStylePropertyValueToNumber';
|
|
18
|
+
export { getUaData } from './getUaData';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Is functions
|
|
3
|
+
*/
|
|
4
|
+
export { isBetweenDateTime } from './isBetweenDateTime';
|
|
5
|
+
export { isExistAllElements } from './isExistAllElements';
|
|
6
|
+
export { isIpad } from './isIpad';
|
|
7
|
+
export { isKeyExists } from './isKeyExists';
|
|
8
|
+
export { isSafari } from './isSafari';
|
|
9
|
+
export { isScrollable } from './isScrollable';
|
|
10
|
+
export { isTouchSupport } from './isTouchSupport';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the current date is between dateA and dateB.
|
|
4
|
+
*
|
|
5
|
+
* @param dateA - The start date in string format.
|
|
6
|
+
* @param dateB - The end date in string format.
|
|
7
|
+
* @param now - The current date, defaults to the current date and time if not provided.
|
|
8
|
+
* @returns A boolean indicating whether the current date is between dateA and dateB.
|
|
9
|
+
* @throws Will throw an error if dateA or dateB is not a valid date.
|
|
10
|
+
*/
|
|
11
|
+
export declare const isBetweenDateTime: (dateA: string, dateB: string, now?: dayjs.Dayjs) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if all elements in the array are non-null.
|
|
3
|
+
*
|
|
4
|
+
* @param elements - An array of HTMLElements or null values.
|
|
5
|
+
* @returns True if all elements are non-null and the array is not empty, otherwise false.
|
|
6
|
+
*/
|
|
7
|
+
export declare const isExistAllElements: (elements: (HTMLElement | null)[]) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|