dynamic-html-helpers 1.4.3 → 1.4.5
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/Bundle/htmlhelpers.min.js +13 -13
- package/Bundle/htmlhelpers.script.js +466 -479
- package/Bundle/htmlhelpers.script.min.js +13 -13
- package/README.md +7 -1
- package/Resource/Externals/ticktock.min.js +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var HTMLHelpers=(()=>{var me=Object.defineProperty;var Gt=Object.getOwnPropertyDescriptor;var Kt=Object.getOwnPropertyNames;var en=Object.prototype.hasOwnProperty;var tn=(e,t)=>{for(var n in t)me(e,n,{get:t[n],enumerable:!0})},nn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Kt(t))!en.call(e,o)&&o!==n&&me(e,o,{get:()=>t[o],enumerable:!(r=Gt(t,o))||r.enumerable});return e};var rn=e=>nn(me({},"__esModule",{value:!0}),e);var Ho={};tn(Ho,{$:()=>A,$D:()=>w,logFactory:()=>Zo,regexhelper:()=>Vt,splatModule:()=>Mo});var{IS:g,maybe:U,$Wrap:Jo,isNothing:on,xProxy:an,addSymbolicExtensions:Bo}=ln({useSymbolicExtensions:!1});function ln(e={}){let{useSymbolicExtensions:t}=e,{shouldbeIsSingleObject:n,ISOneOf:r,isExcept:o,verifyNothingness:i,xProxy:u,determineType:c,addSymbolicExtensions:p,maybe:x,$Wrap:S}=un(f,t);return t&&p(),{IS:f,maybe:x,$Wrap:S,isNothing:i,xProxy:u,addSymbolicExtensions:p};function f(m,...b){let h=typeof m=="symbol"?Symbol.isSymbol:m;switch(!0){case!!x({trial:d=>"isTypes"in(b?.[0]??{})}):return n(m,b[0]);default:return b.length>1?r(h,...b):c(m,...b)}}}function un(e,t){let{SymbolAndCustomProxyFactory:n,maybeFactory:r,WrapAnyFactory:o,verifyNothingness:i,determineType:u}=sn(e,f),{xProxy:c,addSymbolicExtensions:p}=n(e,f,t),[x,S]=[r(),o(e,f)];return Object.freeze({shouldbeIsSingleObject:m,ISOneOf:b,isExcept:d,verifyNothingness:i,xProxy:c,determineType:u,addSymbolicExtensions:p,maybe:x,$Wrap:S});function f(a){return a?.[Symbol.proxy]??e(a)}function m(a,l){switch(!0){case"defaultValue"in l:return h(a,l);case"notTypes"in l:return d(a,l);default:return e(a,...[l.isTypes].flat())}}function b(a,...l){return l.some(s=>e(a,s))}function h(a,{defaultValue:l,isTypes:s=[void 0],notTypes:y}={}){return s=s?.constructor!==Array?[s]:s,y=y&&y?.constructor!==Array?[y]:[],y.length<1?e(a,...s)?a:l:d(a,{isTypes:s,notTypes:y})?a:l}function d(a,{isTypes:l=[void 0],notTypes:s=[void 0]}={}){return l=l?.constructor!==Array?[l]:l,s=s?.constructor!==Array?[s]:s,e(a,...l)&&!e(a,...s)}}function sn(){let e={IS:"toa.is",TYPE:"toa.type",IS_SYMBOL:"toa.isASymbol",PROXY:"toa.proxy"},t={NAN:"NaN",INFINITY:"Infinity",BOOLEAN:"Boolean",OBJECT:"Object",PROXY_PREFIX:"Proxy ("};return Object.freeze({SymbolAndCustomProxyFactory:r,maybeFactory:h,WrapAnyFactory:b,verifyNothingness:d,determineType:p});function n(a,l){Symbol.is||(Symbol.is=Symbol.for(e.IS),Symbol.type=Symbol.for(e.TYPE),Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return l(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...s){return a(this,...s)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(s){return l(s)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(s,...y){return a(s,...y)},enumerable:!1,configurable:!1}}))}function r(a,l,s){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for(e.IS_SYMBOL)),{xProxy:u(),addSymbolicExtensions:()=>n(a,l)}}function o(a){return(on(a,!0)?{name:"unknown"}:Object.getPrototypeOf(a)?.constructor).name}function i(a,l){return Proxy=new a(a,{construct(s,y){let v=new s(...y);return Object.defineProperty(v,l,{value:`${t.PROXY_PREFIX}${o(y[0])})`}),v}}),Proxy}function u(){Symbol.proxy||(Symbol.proxy=Symbol.for(e.PROXY));let a=Proxy;return{native(){Proxy=a},custom(){Proxy=i(a,Symbol.proxy)}}}function c(a,...l){let s=l.length<1,y=a==null;return{noInput:y,noShouldbe:s,compareTo:!s&&l[0],inputCTOR:!y&&(a?.constructor||Object.getPrototypeOf(a)?.constructor),isNaN:Number.isNaN(a)||U({trial:v=>String(a)===t.NAN}),isInfinity:U({trial:v=>String(a)})===t.INFINITY,shouldBeFirstElementIsNothing:!s&&d(l[0])}}function p(a,...l){let{noInput:s,noShouldbe:y,compareTo:v,inputCTOR:E,isNaN:B,isInfinity:Q,shouldBeFirstElementIsNothing:Y}=c(a,...l);switch(l=l.length&&l[0],!0){case Y:return String(a)===String(v);case(a?.[Symbol.proxy]&&y):return a[Symbol.proxy];case B:return y?t.NAN:String(v)===String(a);case Q:return y?t.INFINITY:String(v)===String(a);case s:return y?String(a):String(v)===String(a);case E===Boolean:return y?t.BOOLEAN:E===l;default:return S(a,l,y,x(a,E))}}function x(a,l){switch(!0){case a===0:return Number;case a==="":return String;case!a:return{name:String(a)};default:return l}}function S(a,l,s,y){switch(!0){case(!s&&l===a||a?.[Symbol.proxy]&&l===Proxy):return!0;case String(l)===t.NAN:return String(a)===t.NAN;case(a?.[Symbol.toStringTag]&&typeof l=="string"):return String(l)===a[Symbol.toStringTag];default:return l?m(a,l,y):f(a,y)}}function f(a,l){return(a?.[Symbol.toStringTag]??a?.prototype?.[Symbol.toStringTag])||l?.name||String(l)}function m(a,l,s){return U({trial:y=>a instanceof l})||l===s||l===Object.getPrototypeOf(s)||`${l?.name}`===s?.name}function b(a,l){return function(s){let y={get value(){return s},is(...v){return a(s,...v)},get type(){return l(s)}};return Object[Symbol.type]&&Object.defineProperties(y,{[Symbol.type]:{get(){return l(s)}},[Symbol.is]:{value(...v){return a(s,...v)}}}),Object.freeze(y)}}function h(){let a=l=>{};return function({trial:l,whenError:s=a}={}){try{return l()}catch(y){return s(y)}}}function d(a,l=!1){let s=a==null;return s=l?s||g(a,1/0)||g(a,NaN):s,s}}var cn=fn(),ge=mn(),X=dn();function mn(){return{html:Object.freeze("accept,action,align,alt,autocapitalize,autocomplete,autopictureinpicture,autoplay,background,bgcolor,border,capture,cellpadding,cellspacing,checked,cite,class,clear,contenteditable,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,is,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,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,target,title,translate,type,usemap,valign,value,width,xmlns,slot".split(",")),svg:Object.freeze("accent-height,accumulate,additive,alignment-baseline,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,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,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,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,targetx,targety,transform,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".split(","))}}function dn(){return{a:!0,area:!0,audio:!1,br:!0,base:!0,body:!0,button:!0,canvas:!0,comment:!0,dl:!0,data:!0,datalist:!0,div:!0,em:!0,embed:!1,fieldset:!0,font:!0,footer:!0,form:!1,hr:!0,head:!0,header:!0,output:!0,iframe:!1,frameset:!1,img:!0,input:!0,li:!0,label:!0,legend:!0,link:!0,map:!0,mark:!0,menu:!0,media:!0,meta:!0,nav:!0,meter:!0,ol:!0,object:!1,optgroup:!0,option:!0,p:!0,param:!0,picture:!0,pre:!0,progress:!1,quote:!0,script:!1,select:!0,source:!0,span:!0,style:!0,caption:!0,td:!0,col:!0,table:!0,tr:!0,template:!1,textarea:!0,time:!0,title:!0,track:!0,details:!0,ul:!0,video:!0,del:!0,ins:!0,slot:!0,blockquote:!0,svg:!0,dialog:!0,summary:!0,main:!0,address:!0,colgroup:!0,tbody:!0,tfoot:!0,thead:!0,th:!0,dd:!0,dt:!0,figcaption:!0,figure:!0,i:!0,b:!0,code:!0,h1:!0,h2:!0,h3:!0,h4:!0,abbr:!0,bdo:!0,dfn:!0,kbd:!0,q:!0,rb:!0,rp:!0,rt:!0,ruby:!0,s:!0,strike:!0,samp:!0,small:!0,strong:!0,sup:!0,sub:!0,u:!0,var:!0,wbr:!0,nobr:!0,tt:!0,noscript:!0}}function fn(){return["::backdrop{background-color:grey;opacity:0.2;}",`#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`,"@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}","@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}","@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}","@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"]}var Be={html:"innerHTML",text:"textContent",class:"className"},yn=pn();function pn(){let e={get(t,n){let r=String(n)?.toLowerCase();switch(!0){case r in t:return t[r];case On(r):return Qe(t,r,n);default:return Qe(t,r,n,!0)}},enumerable:!1,configurable:!1};return new Proxy({},e)}function Qe(e,t,n,r=!1){return Object.defineProperty(e,t,{get(){return r?o=>Tn(n):$n(t)}}),e[t]}function gn(e,t,n){return t=t?.isJQx&&t.first()||t,U({trial:r=>wn(t)?e.append(t):nt(t)?e.insertAdjacentHTML("beforeend",t):e.append(t),whenError:r=>console.info(`${n} (for root ${e}) not created, reason
|
|
3
|
-
`,r)})}function
|
|
4
|
-
=> @charset, @namespace and @import are not supported here`),{done:!0}}function
|
|
2
|
+
var HTMLHelpers=(()=>{var le=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Bt=Object.getOwnPropertyNames;var Yt=Object.prototype.hasOwnProperty;var Qt=(e,t)=>{for(var n in t)le(e,n,{get:t[n],enumerable:!0})},Ut=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bt(t))!Yt.call(e,i)&&i!==n&&le(e,i,{get:()=>t[i],enumerable:!(r=Jt(t,i))||r.enumerable});return e};var qt=e=>Ut(le({},"__esModule",{value:!0}),e);var Eo={};Qt(Eo,{$:()=>A,$D:()=>w,logFactory:()=>$o,regexhelper:()=>Rt,splatModule:()=>wo});var{IS:b,maybe:B,$Wrap:Io,isNothing:Vt,xProxy:_t,addSymbolicExtensions:Co}=Xt({useSymbolicExtensions:!1});function Xt(e={}){let{useSymbolicExtensions:t}=e,{shouldbeIsSingleObject:n,ISOneOf:r,isExcept:i,verifyNothingness:a,xProxy:s,determineType:m,addSymbolicExtensions:g,maybe:x,$Wrap:S}=Gt(y,t);return t&&g(),{IS:y,maybe:x,$Wrap:S,isNothing:a,xProxy:s,addSymbolicExtensions:g};function y(c,...h){let p=typeof c=="symbol"?Symbol.isSymbol:c;switch(!0){case!!x({trial:d=>"isTypes"in(h?.[0]??{})}):return n(c,h[0]);default:return h.length>1?r(p,...h):m(c,...h)}}}function Gt(e,t){let{SymbolAndCustomProxyFactory:n,maybeFactory:r,WrapAnyFactory:i,verifyNothingness:a,determineType:s}=Kt(e,y),{xProxy:m,addSymbolicExtensions:g}=n(e,y,t),[x,S]=[r(),i(e,y)];return Object.freeze({shouldbeIsSingleObject:c,ISOneOf:h,isExcept:d,verifyNothingness:a,xProxy:m,determineType:s,addSymbolicExtensions:g,maybe:x,$Wrap:S});function y(o){return o?.[Symbol.proxy]??e(o)}function c(o,l){switch(!0){case"defaultValue"in l:return p(o,l);case"notTypes"in l:return d(o,l);default:return e(o,...[l.isTypes].flat())}}function h(o,...l){return l.some(u=>e(o,u))}function p(o,{defaultValue:l,isTypes:u=[void 0],notTypes:f}={}){return u=u?.constructor!==Array?[u]:u,f=f&&f?.constructor!==Array?[f]:[],f.length<1?e(o,...u)?o:l:d(o,{isTypes:u,notTypes:f})?o:l}function d(o,{isTypes:l=[void 0],notTypes:u=[void 0]}={}){return l=l?.constructor!==Array?[l]:l,u=u?.constructor!==Array?[u]:u,e(o,...l)&&!e(o,...u)}}function Kt(){let e={IS:"toa.is",TYPE:"toa.type",IS_SYMBOL:"toa.isASymbol",PROXY:"toa.proxy"},t={NAN:"NaN",INFINITY:"Infinity",BOOLEAN:"Boolean",OBJECT:"Object",PROXY_PREFIX:"Proxy ("};return Object.freeze({SymbolAndCustomProxyFactory:r,maybeFactory:p,WrapAnyFactory:h,verifyNothingness:d,determineType:g});function n(o,l){Symbol.is||(Symbol.is=Symbol.for(e.IS),Symbol.type=Symbol.for(e.TYPE),Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return l(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...u){return o(this,...u)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(u){return l(u)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(u,...f){return o(u,...f)},enumerable:!1,configurable:!1}}))}function r(o,l,u){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for(e.IS_SYMBOL)),{xProxy:s(),addSymbolicExtensions:()=>n(o,l)}}function i(o){return(Vt(o,!0)?{name:"unknown"}:Object.getPrototypeOf(o)?.constructor).name}function a(o,l){return Proxy=new o(o,{construct(u,f){let v=new u(...f);return Object.defineProperty(v,l,{value:`${t.PROXY_PREFIX}${i(f[0])})`}),v}}),Proxy}function s(){Symbol.proxy||(Symbol.proxy=Symbol.for(e.PROXY));let o=Proxy;return{native(){Proxy=o},custom(){Proxy=a(o,Symbol.proxy)}}}function m(o,...l){let u=l.length<1,f=o==null;return{noInput:f,noShouldbe:u,compareTo:!u&&l[0],inputCTOR:!f&&(o?.constructor||Object.getPrototypeOf(o)?.constructor),isNaN:Number.isNaN(o)||B({trial:v=>String(o)===t.NAN}),isInfinity:B({trial:v=>String(o)})===t.INFINITY,shouldBeFirstElementIsNothing:!u&&d(l[0])}}function g(o,...l){let{noInput:u,noShouldbe:f,compareTo:v,inputCTOR:N,isNaN:H,isInfinity:W,shouldBeFirstElementIsNothing:J}=m(o,...l);switch(l=l.length&&l[0],!0){case J:return String(o)===String(v);case(o?.[Symbol.proxy]&&f):return o[Symbol.proxy];case H:return f?t.NAN:String(v)===String(o);case W:return f?t.INFINITY:String(v)===String(o);case u:return f?String(o):String(v)===String(o);case N===Boolean:return f?t.BOOLEAN:N===l;default:return S(o,l,f,x(o,N))}}function x(o,l){switch(!0){case o===0:return Number;case o==="":return String;case!o:return{name:String(o)};default:return l}}function S(o,l,u,f){switch(!0){case(!u&&l===o||o?.[Symbol.proxy]&&l===Proxy):return!0;case String(l)===t.NAN:return String(o)===t.NAN;case(o?.[Symbol.toStringTag]&&typeof l=="string"):return String(l)===o[Symbol.toStringTag];default:return l?c(o,l,f):y(o,f)}}function y(o,l){return(o?.[Symbol.toStringTag]??o?.prototype?.[Symbol.toStringTag])||l?.name||String(l)}function c(o,l,u){return B({trial:f=>o instanceof l})||l===u||l===Object.getPrototypeOf(u)||`${l?.name}`===u?.name}function h(o,l){return function(u){let f={get value(){return u},is(...v){return o(u,...v)},get type(){return l(u)}};return Object[Symbol.type]&&Object.defineProperties(f,{[Symbol.type]:{get(){return l(u)}},[Symbol.is]:{value(...v){return o(u,...v)}}}),Object.freeze(f)}}function p(){let o=l=>{};return function({trial:l,whenError:u=o}={}){try{return l()}catch(f){return u(f)}}}function d(o,l=!1){let u=o==null;return u=l?u||b(o,1/0)||b(o,NaN):u,u}}var en=rn(),de=tn(),q=nn();function tn(){return{html:Object.freeze("accept,action,align,alt,autocapitalize,autocomplete,autopictureinpicture,autoplay,background,bgcolor,border,capture,cellpadding,cellspacing,checked,cite,class,clear,contenteditable,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,is,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,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,target,title,translate,type,usemap,valign,value,width,xmlns,slot".split(",")),svg:Object.freeze("accent-height,accumulate,additive,alignment-baseline,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,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,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,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,targetx,targety,transform,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".split(","))}}function nn(){return{a:!0,area:!0,audio:!1,br:!0,base:!0,body:!0,button:!0,canvas:!0,comment:!0,dl:!0,data:!0,datalist:!0,div:!0,em:!0,embed:!1,fieldset:!0,font:!0,footer:!0,form:!1,hr:!0,head:!0,header:!0,output:!0,iframe:!1,frameset:!1,img:!0,input:!0,li:!0,label:!0,legend:!0,link:!0,map:!0,mark:!0,menu:!0,media:!0,meta:!0,nav:!0,meter:!0,ol:!0,object:!1,optgroup:!0,option:!0,p:!0,param:!0,picture:!0,pre:!0,progress:!1,quote:!0,script:!1,select:!0,source:!0,span:!0,style:!0,caption:!0,td:!0,col:!0,table:!0,tr:!0,template:!1,textarea:!0,time:!0,title:!0,track:!0,details:!0,ul:!0,video:!0,del:!0,ins:!0,slot:!0,blockquote:!0,svg:!0,dialog:!0,summary:!0,main:!0,address:!0,colgroup:!0,tbody:!0,tfoot:!0,thead:!0,th:!0,dd:!0,dt:!0,figcaption:!0,figure:!0,i:!0,b:!0,code:!0,h1:!0,h2:!0,h3:!0,h4:!0,abbr:!0,bdo:!0,dfn:!0,kbd:!0,q:!0,rb:!0,rp:!0,rt:!0,ruby:!0,s:!0,strike:!0,samp:!0,small:!0,strong:!0,sup:!0,sub:!0,u:!0,var:!0,wbr:!0,nobr:!0,tt:!0,noscript:!0}}function rn(){return["::backdrop{background-color:grey;opacity:0.2;}",`#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`,"@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}","@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}","@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}","@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"]}var Ze={html:"innerHTML",text:"textContent",class:"className"},on=an();function an(){let e={get(t,n){let r=String(n)?.toLowerCase();switch(!0){case r in t:return t[r];case pn(r):return ze(t,r,n);default:return ze(t,r,n,!0)}},enumerable:!1,configurable:!1};return new Proxy({},e)}function ze(e,t,n,r=!1){return Object.defineProperty(e,t,{get(){return r?i=>fn(n):gn(t)}}),e[t]}function ln(e,t,n){return t=t?.isJQx&&t.first()||t,B({trial:r=>yn(t)?e.append(t):_e(t)?e.insertAdjacentHTML("beforeend",t):e.append(t),whenError:r=>console.info(`${n} (for root ${e}) not created, reason
|
|
3
|
+
`,r)})}function sn(e,t,...n){let r=un(t,e);return n?.forEach(i=>ln(r,i,e)),r}function un(e,t){switch(e=ve(t)?dn(e):e?.isJQx?e.first():e,!0){case b(e,String):return Y(t,_e(e,t)?{html:e}:{text:e});case b(e,Node):return mn(t,e);default:return Y(t,e)}}function cn(e){return delete e.data,Object.keys(e).length<1||Object.keys(e).forEach(t=>{let n=t.toLowerCase();n in Ze&&(e[Ze[n]]=e[t],delete e[t])}),e}function mn(e,t){let n=Y(e);return n.append(t),n}function Y(e,t={}){t=Ve(t,{});let n=Object.entries(t.data??{}),r=Object.assign(ve(e)?new Comment(t?.text):document.createElement(e),cn(t));return n.length&&n.forEach(([i,a])=>r.dataset[i]=String(a)),r}function Ve(e,t){return t?b(e,{isTypes:Object,notTypes:[Array,null,NaN,Proxy],defaultValue:t}):b(e,{isTypes:Object,notTypes:[Array,null,NaN,Proxy]})}function dn(e){return Ve(e)?e?.text??e?.textContent??"":String(e)}function fn(e){return Y("b",{style:"color:red",text:`'${e}' is not a valid HTML-tag`})}function _e(e,t){return!ve(t)&&b(e,String)&&/<.*>|&[#|0-9a-z]+[^;];/i.test(e)}function yn(e){return e?.constructor===Comment||e?.constructor===CharacterData}function ve(e){return e?.constructor===Comment||/comment/i.test(e)}function pn(e){return!b(Y(e),HTMLUnknownElement)}function gn(e){return(t,...n)=>sn(e,t,...n)}var{IS:F,maybe:se,$Wrap:Ao,isNothing:hn,xProxy:Po,addSymbolicExtensions:Lo}=bn({useSymbolicExtensions:!1});function bn(e={}){let{useSymbolicExtensions:t}=e,{shouldbeIsSingleObject:n,ISOneOf:r,isExcept:i,verifyNothingness:a,xProxy:s,determineType:m,addSymbolicExtensions:g,maybe:x,$Wrap:S}=Sn(y,t);return t&&g(),{IS:y,maybe:x,$Wrap:S,isNothing:a,xProxy:s,addSymbolicExtensions:g};function y(c,...h){let p=typeof c=="symbol"?Symbol.isSymbol:c;switch(!0){case!!x({trial:d=>"isTypes"in(h?.[0]??{})}):return n(c,h[0]);default:return h.length>1?r(p,...h):m(c,...h)}}}function Sn(e,t){let{SymbolAndCustomProxyFactory:n,maybeFactory:r,WrapAnyFactory:i,verifyNothingness:a,determineType:s}=xn(e,y),{xProxy:m,addSymbolicExtensions:g}=n(e,y,t),[x,S]=[r(),i(e,y)];return Object.freeze({shouldbeIsSingleObject:c,ISOneOf:h,isExcept:d,verifyNothingness:a,xProxy:m,determineType:s,addSymbolicExtensions:g,maybe:x,$Wrap:S});function y(o){return o?.[Symbol.proxy]??e(o)}function c(o,l){switch(!0){case"defaultValue"in l:return p(o,l);case"notTypes"in l:return d(o,l);default:return e(o,...[l.isTypes].flat())}}function h(o,...l){return l.some(u=>e(o,u))}function p(o,{defaultValue:l,isTypes:u=[void 0],notTypes:f}={}){return u=u?.constructor!==Array?[u]:u,f=f&&f?.constructor!==Array?[f]:[],f.length<1?e(o,...u)?o:l:d(o,{isTypes:u,notTypes:f})?o:l}function d(o,{isTypes:l=[void 0],notTypes:u=[void 0]}={}){return l=l?.constructor!==Array?[l]:l,u=u?.constructor!==Array?[u]:u,e(o,...l)&&!e(o,...u)}}function xn(){let e={IS:"toa.is",TYPE:"toa.type",IS_SYMBOL:"toa.isASymbol",PROXY:"toa.proxy"},t={NAN:"NaN",INFINITY:"Infinity",BOOLEAN:"Boolean",OBJECT:"Object",PROXY_PREFIX:"Proxy ("};return Object.freeze({SymbolAndCustomProxyFactory:r,maybeFactory:p,WrapAnyFactory:h,verifyNothingness:d,determineType:g});function n(o,l){Symbol.is||(Symbol.is=Symbol.for(e.IS),Symbol.type=Symbol.for(e.TYPE),Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return l(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...u){return o(this,...u)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(u){return l(u)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(u,...f){return o(u,...f)},enumerable:!1,configurable:!1}}))}function r(o,l,u){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for(e.IS_SYMBOL)),{xProxy:s(),addSymbolicExtensions:()=>n(o,l)}}function i(o){return(hn(o,!0)?{name:"unknown"}:Object.getPrototypeOf(o)?.constructor).name}function a(o,l){return Proxy=new o(o,{construct(u,f){let v=new u(...f);return Object.defineProperty(v,l,{value:`${t.PROXY_PREFIX}${i(f[0])})`}),v}}),Proxy}function s(){Symbol.proxy||(Symbol.proxy=Symbol.for(e.PROXY));let o=Proxy;return{native(){Proxy=o},custom(){Proxy=a(o,Symbol.proxy)}}}function m(o,...l){let u=l.length<1,f=o==null;return{noInput:f,noShouldbe:u,compareTo:!u&&l[0],inputCTOR:!f&&(o?.constructor||Object.getPrototypeOf(o)?.constructor),isNaN:Number.isNaN(o)||se({trial:v=>String(o)===t.NAN}),isInfinity:se({trial:v=>String(o)})===t.INFINITY,shouldBeFirstElementIsNothing:!u&&d(l[0])}}function g(o,...l){let{noInput:u,noShouldbe:f,compareTo:v,inputCTOR:N,isNaN:H,isInfinity:W,shouldBeFirstElementIsNothing:J}=m(o,...l);switch(l=l.length&&l[0],!0){case J:return String(o)===String(v);case(o?.[Symbol.proxy]&&f):return o[Symbol.proxy];case H:return f?t.NAN:String(v)===String(o);case W:return f?t.INFINITY:String(v)===String(o);case u:return f?String(o):String(v)===String(o);case N===Boolean:return f?t.BOOLEAN:N===l;default:return S(o,l,f,x(o,N))}}function x(o,l){switch(!0){case o===0:return Number;case o==="":return String;case!o:return{name:String(o)};default:return l}}function S(o,l,u,f){switch(!0){case(!u&&l===o||o?.[Symbol.proxy]&&l===Proxy):return!0;case String(l)===t.NAN:return String(o)===t.NAN;case(o?.[Symbol.toStringTag]&&typeof l=="string"):return String(l)===o[Symbol.toStringTag];default:return l?c(o,l,f):y(o,f)}}function y(o,l){return(o?.[Symbol.toStringTag]??o?.prototype?.[Symbol.toStringTag])||l?.name||String(l)}function c(o,l,u){return se({trial:f=>o instanceof l})||l===u||l===Object.getPrototypeOf(u)||`${l?.name}`===u?.name}function h(o,l){return function(u){let f={get value(){return u},is(...v){return o(u,...v)},get type(){return l(u)}};return Object[Symbol.type]&&Object.defineProperties(f,{[Symbol.type]:{get(){return l(u)}},[Symbol.is]:{value(...v){return o(u,...v)}}}),Object.freeze(f)}}function p(){let o=l=>{};return function({trial:l,whenError:u=o}={}){try{return l()}catch(f){return u(f)}}}function d(o,l=!1){let u=o==null;return u=l?u||F(o,1/0)||F(o,NaN):u,u}}var Xe=vn;function vn({styleSheet:e,createWithId:t}={}){let{tryParseAtOrNestedRules:n,ruleExists:r,checkParams:i,sheet:a,removeRules:s,consider:m,currentSheetID:g}=Tn({styleSheet:e,createWithId:t});function x(p,d){if(p&&d.removeProperties){Object.keys(d.removeProperties).forEach(o=>p.style.removeProperty(Re(o)));return}Object.entries(d).forEach(([o,l])=>{o=Re(o.trim()),l=l.trim();let u;if(/!important/.test(l)&&(l=l.slice(0,l.indexOf("!important")).trim(),u="important"),!CSS.supports(o,l))return console.error(`StylingFactory ${g} error: '${o}' with value '${l}' not supported (yet)`);He(()=>p.style.setProperty(o,l,u),`StylingFactory ${g} (setRule4Selector) failed`)})}function S(p,d,o=a){if(p=p?.trim?.(),!F(p,String)||!p.length||/[;,]$/g.test(p))return console.error(`StylingFactory ${g} (setRules): [${p||"[no selector given]"}] is not a valid selector`);if(d.removeRule)return s(p);let l=r(p,!0),u=l||o.cssRules[o.insertRule(`${p} {}`,o.cssRules.length||0)];return m(()=>x(u,d),p,l)}function y(p){let d=p.trim().split(/{/,2),o=d.shift().trim();if(!F(o,String)||!o?.trim()?.length)return console.error(`StylingFactory ${g} (doParse): no (valid) selector could be extracted from rule ${fe(p)}`);let l=jn(d.shift());return He(()=>S(o,l),`StylingFactory ${g} (setRules) failed`)}function c(p){let d=n(p);return d.done?d.existing:y(p)}function h(p,d){return p.trim().startsWith("@media")?c(wn(p,d)):S(p,d)}return function(p,d={}){return i(p,d)&&(Object.keys(d).length?h(p,d):c(p))}}function Tn({styleSheet:e,createWithId:t}){let n="Note: The rule or some of its properties may not be supported by your browser (yet)",r=`for style#${t}`;e=t?i(t):e;function i(c){let h=document.querySelector(`#${c}`)?.sheet;if(h)return h;let p=Object.assign(document.createElement("style"),{id:c});return document.head.insertAdjacentElement("beforeend",p),p.sheet}function a(c){return console.error(`StylingFactory ${r} [rule: ${c}]
|
|
4
|
+
=> @charset, @namespace and @import are not supported here`),{done:!0}}function s(c,h){return[...e.rules].find(p=>h?We(p.selectorText||"",c):Nn`${$n(c)}${[..."gim"]}`.test(p.cssText))}function m(c){return/^@charset|@import|namespace/i.test(c.trim())?a(c):c.match(/}/g)?.length>1?{existing:S(c,1),done:!0}:{done:!1}}function g(c){let h=[...e.cssRules].reduce((d,o,l)=>We(o.selectorText||"",c)&&d.concat(l)||d,[]),p=h.length;return h.forEach(d=>e.deleteRule(d)),p>0?console.info(`\u2714 Removed ${p} instance${p>1?"s":""} of selector ${c} from ${r.slice(4)}`):console.info(`\u2714 Remove rule: selector ${c} does not exist in ${r.slice(4)}`)}function x(c,h){return c&&F(c,String)&&c.trim().length>0&&F(h,Object)||(console.error(`StylingFactory ${r} called with invalid parameters`),!1)}function S(c){c=c.trim();let h=c.slice(0,c.indexOf("{")).trim(),p=!!s(h);try{return e.insertRule(`${c}`,e.cssRules.length),p}catch(d){return console.error(`StylingFactory ${r} (tryParse) ${d.name} Error:
|
|
5
5
|
${d.message}
|
|
6
|
-
Rule: ${
|
|
7
|
-
${n}`),
|
|
6
|
+
Rule: ${fe(c)}
|
|
7
|
+
${n}`),p}}function y(c,h,p){try{return c(),p}catch(d){return console.error(`StylingFactory ${r} (tryAddOrModify) ${d.name} Error:
|
|
8
8
|
${d.message}
|
|
9
|
-
Rule: ${
|
|
10
|
-
${n}`),
|
|
11
|
-
`)}function
|
|
12
|
-
`).map(r=>r.replace(/\s|\/\/.*$/g,"").trim().replace(/(@s!)/g," ")).join(""),n)}function
|
|
9
|
+
Rule: ${fe(h)}
|
|
10
|
+
${n}`),p}}return{sheet:e,removeRules:g,tryParseAtOrNestedRules:m,ruleExists:s,checkParams:x,tryParse:S,consider:y,currentSheetID:r}}function wn(e,t){return`${e.trim()} ${Object.entries(t).map(([n,r])=>`${n}: { ${On(r)}`)}`}function fe(e){let t=(e||"NO RULE").trim().slice(0,50).replace(/\n/g,"\\n").replace(/\s{2,}/g," ");return e.length>t.length?`${t.trim()}...truncated`:t}function On(e){return Object.entries(e).map(([t,n])=>`${t}: ${n.trim()}`).join(`;
|
|
11
|
+
`)}function $n(e){return e.replace(/([*\[\]()-+{}.$?\\])/g,t=>`\\${t}`)}function Nn(e,...t){let n=t.length&&Array.isArray(t.slice(-1))?t.pop().join(""):"";return new RegExp((t.length&&e.raw.reduce((r,i,a)=>r.concat(t[a-1]||"").concat(i),"")||e.raw.join("")).split(`
|
|
12
|
+
`).map(r=>r.replace(/\s|\/\/.*$/g,"").trim().replace(/(@s!)/g," ")).join(""),n)}function Re(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace(/[^--]^-|-$/,"")}function He(e,t){try{return e()}catch(n){console.error(`${t||"an error occured"}: ${n.message}`)}}function Dn(e){return e.replace(/\/\*.+?\*\//gm,"").replace(/[}{\r\n]/g,"").replace(/(data:.+?);/g,(t,n)=>`${n}\\3b`).split(";").map(t=>t.trim()).join(`;
|
|
13
13
|
`).replaceAll("\\3b",";").split(`
|
|
14
|
-
`)}function
|
|
15
|
-
`)),r}function
|
|
16
|
-
`)),r}function
|
|
17
|
-
`));default:return r}}return Object.defineProperties(r,{log:{value:p,enumerable:!1},error:{value:u,enumerable:!1},warn:{value:c,enumerable:!1}}),Object.freeze(r)}function ye(){return(e=>`[${K(e.getHours())}:${K(e.getMinutes())}:${K(e.getSeconds())}.${K(e.getMilliseconds(),3)}]`)(new Date)}function nr(e,t){if(e)for(let[n,r]of Object.entries(t)){if(n=P(n),n.startsWith("data"))return lt(e,r);g(r,String)&&it(n)&&e.setAttribute(n,r.split(/[, ]/)?.join(" "))}}function lt(e,t){if(e&&g(t,Object))for(let[n,r]of Object.entries(t))e.setAttribute(`data-${P(n)}`,r)}function ut(e){return e?g(e,Proxy)?[e.EL]:g(e,NodeList)?[...e]:Z(e)?[e]:Ie(e)?e:e.isJQx?e.collection:void 0:[]}function Xe(e,t){return e.andThen(t)}function rr(e,t){return e.andThen(t,!0)}function Z(e){return g(e,Text,HTMLElement,Comment)}function pe(e,t){if(g(t,Object))for(let[n,r]of Object.entries(t)){let o;/!important/i.test(r)&&(r=r.slice(0,r.indexOf("!")).trim(),o="important"),e.style.setProperty(P(n),r,o)}}function M(e){let t=e.cloneNode(!0);return t.removeAttribute&&t.removeAttribute("id"),e.isConnected?e.remove():e=null,t}function or(e){if(!g(e,HTMLElement))return;let t=e.style,n=getComputedStyle(e),r=!![t.visibility,n.visibility].includes("hidden"),o=!![t.display,n.display].includes("none"),i=!!e.hidden,u=parseInt(n.height)<1||parseInt(n.width)<1,c=e.offsetTop<0||e.offsetLeft+e.offsetWidth<0||e.offsetLeft>document.body.offsetWidth,p=+n.opacity==0||+(t.opacity||1)==0;return!(i||c||p||o||r||u)}function ir(e){return e?.isConnected?!![...document.querySelectorAll(":is(:read-write)")].find(t=>t===e):!1}function ar(e){return e?.filter(t=>t).reduce((t,n)=>t.concat(ct(n)?`<!--${n.data}-->`:De(n)?n.textContent:n.outerHTML),"")}function K(e,t=2){return`${e}`.padStart(t,"0")}function lr(e,t=0){return[e,t]=[Math.floor(e),Math.ceil(t)],Math.floor([...crypto.getRandomValues(new Uint32Array(1))].shift()/2**32*(e-t+1)+t)}function st(){return`_${mr(Vn).slice(0,8).join("")}`}function ur(e){return e=g(e,String)&&/,/.test(e)?e.split(",").map(t=>t.trim().toLowerCase()).filter(t=>t.length>0):e,g(e,Array)?e:g(e,String)&&e?.trim().toLowerCase()||""}function sr(e){return e?.isConnected?!![...document.querySelectorAll(":is(:modal)")].find(t=>t===e):!1}function cr(e,t){switch(e=String(e).trim(),!0){case/^(0|false|f)$/i.test(e):return!1;case/^(1|true|t)$/i.test(e):return!0;default:return t}}function mr(e){let t=e.length;for(;t--;){let n=lr(t);[e[t],e[n]]=[e[n],e[t]]}return e}function Ee(e){return g(e,String)?e.toLowerCase().split("-").map((t,n)=>n&&`${dr(t)}`||t).join(""):e}function P(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace(/^-|-$/,"")}function dr([e,...t]){return`${e.toUpperCase()}${t.join("")}`}function De(e){return g(e,Comment,Text)}function ct(e){g(e,Comment)}function fr(e){return g(e,Text)}function je(e){return g(e,String)&&/^<|>$/.test(`${e}`.trim())}function Ie(e){return g(e,Array)&&!e?.find(t=>!Z(t))}function mt(e){return g(e,Array)&&!e?.find(t=>!je(t))}function T(e,t){let n=e.collection.filter(r=>!De(r));for(let r=0;r<n.length;r+=1)t(n[r],r);return e}function yr(e){return e.node?g(e.node,Comment)?`<!--${e.node.textContent}-->`:e.HTML.get(1).split(">")[0]+">...":""}function dt(e,t,n){let r=t!==document.body&&g(e,String)&&e.toLowerCase()!=="body"?t:document;try{n.collection=[...r.querySelectorAll(e)]}catch{N.warn(`JQx: Invalid CSS querySelector. [${g(e,String)?e:"Not a string!"}]`)}}function pr(){return{isCommentOrTextNode:De,isNode:Z,isComment:ct,isText:fr,isHtmlString:je,isArrayOfHtmlElements:Ie,isArrayOfHtmlStrings:mt,ElemArray2HtmlString:ar,input2Collection:ut,setCollectionFromCssSelector:dt,cssRuleEdit:rt({createWithId:"JQxStylesheet"})}}function gr(){let e=Object.freeze({notInDOM:"n/a",writable:"n/a",modal:"n/a",empty:!0,open:"n/a",visible:"n/a"});return t=>{let n=t.node;return g(n,Node)?Object.freeze({get writable(){return ir(n)},get modal(){return sr(n)},get inDOM(){return n.isConnected},get open(){return n.open??!1},get visible(){return or(n)},get disabled(){return n.hasAttribute("readonly")||n.hasAttribute("disabled")},get empty(){return t.collection.length<1},get virtual(){return t.isVirtual}}):e}}function hr(e,t,n,r){n&&g(t,String)&&(t={[t]:n==="-"?"":n});let o;t.className&&(o=t.className,delete t.className),o=[...e.classList].find(i=>i.startsWith("JQxClass-")||o&&i===o)||o||`JQxClass-${st().slice(1)}`,r.editCssRule(`.${o}`,t),e.classList.add(o)}var br=gr();function Sr(e){return{factoryExtensions:xr(e),instanceExtensions:vr(e)}}function xr(e){return{data(t){return{get all(){return new Proxy(t[0]?.dataset??{},_n)},set(n={}){if(!t.is.empty&&g(n,Object))for(let[r,o]of Object.entries(n))t.setData({[r]:o});return t},get(n,r){return t.data.all[n]??r},add(n={}){if(!t.is.empty&&g(n,Object))for(let[r,o]of Object.entries(n))t.setData({[r]:o});return t},remove(n){return t[0]?.removeAttribute(`data-${P(n)}`),t}}},dimensions(t){if(t.is.empty)return N.error("[JQx instance].dimensions called on empty instance"),{error:"[JQx instance].dimensions: NO ELEMENTS"};let{node:n}=t,r=n.getBoundingClientRect().toJSON();return r.scrollTopDistance=ve(n,0),r.scrollLeftDistance=ve(n,0,!1),r},node(t){return t[0]},HTML(t){return{get(n,r){if(t.is.empty)return"NO ELEMENTS IN COLLECTION";let o=n?t.outerHtml:t.html();return r?te(o):o},set(n,r=!1,o=!1){n=n.isJQx?n.HTML.get(1):n;let i=g(n,String);return n=i&&o?te(n):n,i&&(n||"").trim().length&&t.html(n,r),t},replace(n,r=!1){return t.HTML.set(n,!1,r)},append(n,r=!1){return n=g(n,HTMLElement)?e(n).HTML.get(1):n.isJQx?n.HTML.get(1):n,t.HTML.set(n,!0,r)},insert(n,r=!1){return n=g(n,HTMLElement)?e(n).HTML.get(1):n.isJQx?n.HTML.get(1):n,t.HTML.set(n+t.HTML.get(),!1,r)}}},is(t){return br(t)},length(t){return t.collection.length},outerHtml(t){return(t.first()||{outerHTML:void 0}).outerHTML},parent(t){let n=e(t[0]?.parentNode);return n.is.empty?t:n},render(t){switch(!0){case!t.is.empty:return t.toDOM();default:return e.logger.warn("[JQx.render]: empty collection"),t}},Style(t){return{get computed(){return t.is.empty?{}:getComputedStyle(t[0])},inline(n){return t.style(n)},inSheet(n){return t.css(n)},valueOf(n){return t.is.empty?void 0:getComputedStyle(t[0])[P(n)]},nwRule(n){return t.Style.byRule({rules:n})},byRule({classes2Apply:n=[],rules:r=[]}={}){let o=g(r,String)&&!n.length?r.split("{")[0].trim():"";if(r=r&&g(r,String)?[r]:r,n=n&&g(n,String)?[n]:n,(r?.length||n?.length)&&(r?.length&&e.editCssRules(...r),n))for(let i of n)t.addClass(i);return o?.startsWith(".")&&t.addClass(o.slice(1)),o?.startsWith("#")&&!t.attr("id")&&t.prop({id:o.slice(1)}),t}}}}}function vr(e){return{addClass(t,...n){return T(t,r=>r&&n.forEach(o=>r.classList.add(o)))},after(t,n){return Xe(t,n)},afterMe(t,n){return Xe(t,n)},andThen(t,n,r=!1){if(!n||!g(n,String,Node,Proxy))return N.log("[JQx instance].[before(Me) | after(Me) | andThen]: invalid/-sufficient input."),t;n=n?.isJQx?n:g(n,Node)?e.virtual(n):e.virtual(L(n));let[o,i,u]=r?[0,"before",n.collection.concat(t.collection)]:[t.collection.length-1,"after",t.collection.concat(n.collection)];return t[o][i](...n.collection),t.collection=u,t},append(t,...n){if(t.is.empty||n.length<1)return t;let r=t.length===1;for(let o of n){if(!o.isJQx&&$(o)){let i=o.trim(),u=/^<(.+)[^>]+>$/m.test(i)?L(o):e.text(o);T(t,c=>c.append(r?u:M(u)))}Z(o)&&T(t,i=>i.append(r?o:M(o))),o.isJQx&&!o.is.empty&&T(t,i=>o.collection.forEach(u=>i.append(r?u:M(u))))}return t},appendTo(t,n){switch(n=typeof n=="string"?e(n):n,!0){case(!n?.isJQx&&!g(n,HTMLElement)||n?.collection?.length<1):return e.warn("[JQx instance].appendTo: invalid input"),t;default:return(n.isJQx?n:e(n)).append(t),t}},attr(t,n,r){if(!t.node||g(t.node,Text,Comment))return t;if(!r&&$(n))return n=P(n),n==="class"?[...t.node.classList].join(" "):t.node.getAttribute(n);if($(n)&&r)switch(n=P(n),!0){case n.startsWith("data-"):n={data:{[n.replace("data-","")]:r}};break;default:n={[n]:r}}return g(n,Object)&&!t.is.empty&&nr(t.node,n),t},before(t,n){return t.andThen(n,!0)},beforeMe(t,n){return rr(t,n)},clear(t){return T(t,Ve)},closest(t,n){let r=$(n)?t.node?.closest(n):void 0;return r?e(r):t},computedStyle(t,n){let{node:r}=t;return r&&getComputedStyle(r)[n]},css(t,n,r){return T(t,o=>hr(o,n,r,e))},duplicate(t,n=!1,r=document.body){switch(!0){case t.is.empty:return N.error("Duplicating an empty JQx instance is not possible"),t;default:let o=t.collection[0].cloneNode(!0);return o.childNodes.forEach(i=>{i.removeAttribute&&i?.removeAttribute("id")}),n?e(o).toDOM(r):e.virtual(o)}},each(t,n){return T(t,n)},empty(t){return T(t,Ve)},find(t,n){return t.collection.length>0?[...t.first()?.querySelectorAll(n)]:[]},find$(t,n){return t.collection.length>0?e(n,t):t},first(t,n=!1){return t.collection.length>0?n?t.single():t.collection[0]:void 0},first$(t,n){return t.single(n)},getData(t,n,r){return t.node?.dataset?.[n]||r},hasClass(t,...n){return t.is.empty||!t.node.classList.length?!1:n.find(r=>t.node.classList.contains(r))&&!0||!1},hide(t){return T(t,n=>pe(n,{display:"none !important"}))},html(t,n,r){switch(!0){case(t.is.empty&&!$(n)):return"";case!$(n):return t.node?.getHTML()??"";default:let o=L(`<div>${n.isJQx?n.HTML.get(!0):n}</div>`);return T(t,i=>(i.textContent=r?i.textContent:"",i.insertAdjacentHTML(e.at.end,o.getHTML())))}},htmlFor(t,n,r="",o=!1){if(t.is.empty||!$(n)||!$(r))return t;let i=t.find$(n);if(i.length<1)return t;let u=L(`<span>${r}</span>`);return i.each(c=>{o||(c.textContent=""),c.insertAdjacentHTML(e.at.end,u?.getHTML())}),t},isEmpty(t){return!t.node},nth$(t,n){return t.single(n)},on(t,n,...r){switch(!0){case(t.is.empty||!g(n,String,Array)||!$(n)||r.length<1):return t;default:return e.handle({type:n,node:t.node,handler:r}),t}},once(t,n,...r){switch(!0){case(t.is.empty||!g(n,String,Array)||!$(n)||r.length<1):return t;default:return e.handle({type:n,once:!0,node:t.node,handler:r}),t}},prepend(t,...n){if(t.is.empty||!n)return;let r=t.length===1;for(let o of n){if($(o)){o=o.trim();let i=/^<(.+)[^>]+>$/m.test(o)?L(o):e.text(o);i=r?i:M(i),T(t,u=>u.prepend(i.cloneNode(!0)))}Z(o)&&T(t,i=>i.prepend(r?o:M(o))),o.isJQx&&!o.is.empty&&(o.collection.length>1&&o.collection.reverse(),T(t,i=>T(o,u=>i.prepend(r?u:M(u)))),o.collection.reverse())}return t},prependTo(t,n){switch(n=typeof n=="string"?e(n):n,!0){case(!n?.isJQx&&!g(n,HTMLElement)||n?.collection?.length<1):return e.warn("[JQx instance].appendTo: invalid input"),t;default:return(n.isJQx?n:e(n)).prepend(t),t}},prop(t,n,r){if(g(n,String)&&!r)return n.startsWith("data")?t[0]?.dataset[n.slice(n.indexOf("-")+1)]:t[0]?.[n];let o=g(n,Object)?n:{[n]:r};for(let[i,u]of Object.entries(o)){if(i=i.trim(),u&&!it(i)||!u)return!1;if(i.toLowerCase()==="id")return t[0].id=u;T(t,c=>{if(i.startsWith("data"))return c.dataset[i.slice(i.indexOf("-")+1)]=u;c[i]=u})}return t},remove(t,n){let r=i=>i.remove(),o=()=>t.collection=t.collection.filter(i=>document.documentElement.contains(i));if(n){let i=t.find$(n);return i.is.empty||(T(i,r),o()),t}return T(t,r),o(),t},rmAttr(t,...n){for(let r of n)t.node.removeAttribute(r);return t},removeClass(t,...n){return T(t,r=>{if(r)for(let o of n)r.classList.remove(o)})},renderTo(t,n,r){return n=g(n,HTMLElement)||n.isJQx?n:document.body,r=g(r,String)&&e.at[r]?r:e.at.end,t.first$().toDOM(n,r),t},replace(t,n,r){let o=t.node;return!n||!g(r,HTMLElement)&&!r?.isJQx?(e.logger.error("JQx replace: invalid replacement value"),t):((r.isJQx||g(r,NodeList))&&(r=r[0]),o&&n&&(n=g(n,String)?o.querySelectorAll(n):n.isJQx?n.collection:n,g(n,HTMLElement,NodeList,Array)&&g(r,HTMLElement)&&(g(n,HTMLElement)?[n]:[...n]).forEach(i=>i.replaceWith(r.cloneNode(!0)))),t)},replaceClass(t,n,...r){return T(t,o=>{o.classList.remove(n);for(let i of r)o.classList.add(i)})},replaceMe(t,n){return t.replaceWith(n)},replaceWith(t,n){return n=g(n,Element)?n:n.isJQx?n[0]:void 0,n&&(t[0].replaceWith(n),t=e.virtual(n)),t},setData(t,n){return T(t,r=>lt(r,n))},show(t){return T(t,n=>pe(n,{display:"revert-layer !important"}))},single(t,n){let r=t.collection.length>0;switch(n=n??0,!0){case(r&&g(n,String)):return t.find$(n);case(r&&g(n,Number)):return e(t.collection[n]);case r:return t.collection[0];default:return t}},style(t,n,r){return T(t,o=>{r&&g(n,String)&&(n={[n]:r||"none"}),pe(o,n)})},text(t,n,r=!1){switch(!0){case t.isEmpty():return t;case!g(n,String):return t.node.textContent;default:return T(t,o=>o.textContent=r?o.textContent+n:n)}},toDOM(t,n=document.body,r=I.BeforeEnd){return t.isVirtual=!1,Se(t.collection,n,r),t},toggleClass(t,n){return T(t,r=>r.classList.toggle(n))},toNodeList(t){return[...t.collection].map(n=>document.importNode(n,!0))},trigger(t,n,r,o){r=g(r,Function)?r:Event,o=g(o,Object)?{...o,bubbles:o.bubbles??!0}:{bubbles:!0};let i=new r(n,o);return t.is.empty||t.each(u=>u.dispatchEvent(i)),t},val(t,n){switch(!0){case(t.is.empty||!g(t.node,HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement)):return t;case!g(n,String):return t.node.value;default:return t.node.value=g(n,String)?n:"",t}}}}var Te,ne,{isComment:qo,isText:Vo,isHtmlString:_o,isArrayOfHtmlElements:Xo,isArrayOfHtmlStrings:Go,ElemArray2HtmlString:Ko,cssRuleEdit:we,addFn:Tr}=wr();function wr(){return{...pr(),addFn:Or}}function Or(e,t){return e=e?.trim(),!$(e)||!g(t,Function)?N.error("JQx.fn: method invalid parameter(s)"):(ne[e]=(n,...r)=>t(n,...r),N.log(`JQx: added extension function [${e}]`))}function $r(e){return function(t,n,r){if(t=t?.trim(),!$(t)||!g(n,Function))return e.error("JQx.staticFn: invalid parameter(s)");let o=r?{get(){return n()}}:{value(...i){return n(...i)}};try{Object.defineProperty(e,t,o)}catch{return e.warn(`JQx.staticFn: extension [${t}] already exists`)}return N.log(`JQx: added static extension function [${t}]`)}}function ee(e){return new Proxy(e,Object.freeze({get:(t,n)=>Nr(t,n,e)}))}function Ge(e,t){return(...n)=>g(e,Function)&&e(ee(t),...n)}function Nr(e,t,n){switch(!0){case g(t,Symbol):return U({trial:()=>e[t],whenError:()=>e});case g(+t,Number):return e.collection?.[t]||void 0;case t in Te:return Ge(Te[t],n)();case t in ne:return Ge(ne[t],n);default:return e[t]}}function Er(e){let t=Ar(e);for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(t)))Object.defineProperty(e,n,r);return e}function Dr(e){return{allow(t){let n=/-/.test(t),r=n&&t;t=n?Ee(t):t.toLowerCase(),V.allowTag(t),Object.defineProperties(e,Oe(t,!0,e,r))},prohibit(t){t=t.toLowerCase(),V.prohibitTag(t),Object.defineProperties(e,Oe(t,!1,e))}}}function Ke(...e){if(e.length===1){let t=String(e.shift().trim());e=t.startsWith("!")?[t.slice(1,-1)]:t.split(",").map(n=>n.trim())}for(let t of e.map(n=>n.startsWith("!")?n.slice(1,-1):n))we(t,{removeRule:1})}function jr(e){return function(t,n,r){n=n?.isJQx?n?.[0]:n,r=r&&Object.values(I).find(i=>r===i);let o=e(t,document.createElement("br"));if(n&&!g(n,HTMLBRElement))for(let i of o.collection)r?n.insertAdjacentElement(r,i):n.append(i);return o}}function Ir(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);for(let[o,i]of Object.entries(r))!(o in t)&&Object.defineProperty(t,o,{...i,enumerable:!1})}return t}function Cr(e,t,n,r){return e=P(r||e.toLowerCase()),{get(){return(...o)=>{let i=t&&n.virtual(Ne(yn[e](...o)))||void 0,u=g(i?.node,Comment,Text,void 0)?"":Kn(i);return N.log(t?`JQx: created (virtual) instance from [JQx].${e} ${u}`:`JQx: ${e.toUpperCase()} is prohibited. Use [JQx].allowTag if necessary.`),i}},enumerable:!1,configurable:!0}}function Oe(e,t,n,r){e=e.toLowerCase();let o=Cr(e,t,n,r);return r?{[r]:o,[Ee(r)]:o}:{[e]:o,[e.toUpperCase()]:o}}function Ar(e){return Ir(Object.entries(V.tagsRaw).reduce(Pr(e),{}),zr(e))}function Pr(e){return function(t,[n,r]){return Object.defineProperties(t,Oe(n,r,e)),t}}function Lr(e){return function(t,n,...r){g(n,Function)&&(r.push(n),n=void 0),e({type:t,selector:n,handlers:r})}}function kr(e){return function(t){let{type:n,types:r,origin:o,selector:i,handler:u,handlers:c,node:p,name:x,capture:S,once:f,about:m}=t;u=c||u,n=r||n,i=o||i;let b=ur(n),h=x;u=g(u,Function)?[u]:u;let d={type:b,selector:i||o,capture:S,name:h,once:f,node:p,about:m};switch(!0){case(g(b,Array)&&b.length>0):for(let a of b)d.type=a,et(u,d,e);break;default:return et(u,d,e)}}}function et(e,t,n){for(let r of e)n.listen({...t,handler:r})}function Mr(e){return function(t,n){return n=$(n)&&n,t=$(t)&&t,n&&t&&e.listenerStore[t][n]}}function Fr(e){return e.activePopup||Object.defineProperty(e,"activePopup",{value:Yn(e),enumerable:!1}),e.activePopup}function Zr(e){let t=(c,p)=>we(c,p),n=function(c){return rt({createWithId:c||`jqx${st()}`})},r=function(...c){for(let p of c)we(p)},o=Dr(e),i=Un(e),u=kr(i);return{editCssRule:t,createStyle:n,editCssRules:r,allowProhibit:o,handle:u,capturedHandling:u,log:(...c)=>N.on.log(...c).off,warn:(...c)=>N.on.warn(...c).off,error:(...c)=>N.on.error(...c).off,handlerWrapper:i}}function zr(e){let{factoryExtensions:t,instanceExtensions:n}=Sr(e);Te=t,ne=n;let{editCssRule:r,createStyle:o,editCssRules:i,allowProhibit:u,handle:c,capturedHandling:p,log:x,warn:S,error:f,handlerWrapper:m}=Zr(e),b=Mr(e),h=$r(e);return{log:x,warn:S,error:f,editCssRules:i,createStyle:o,editStylesheet:o,editCssRule:r,escHtml:te,logger:N,text(d,a=!1){return a?e.comment(d):document.createTextNode(d)},node(d,a=document){return a.querySelector(d,a)},nodes(d,a=document){return[...a.querySelectorAll(d,a)]},clearAllTimers:Xn,get staticFn(){return function(d,a,l){return h(d,a,l)}},get toBool(){return cr},get getNamedListener(){return b},get virtual(){return jr(e)},get allowTag(){return u.allow},get prohibitTag(){return u.prohibit},get removeCssRule(){return Ke},get removeCssRules(){return Ke},get delegate(){return Lr(p)},get delegateCaptured(){return p},get handle(){return p},get listen(){return m.listen},get at(){return I},get setStyle(){return r},get fn(){return Tr},get lenient(){return V.allowUnknownHtmlTags},get IS(){return g},get Popup(){return Fr(e)},get listenerStore(){return m.ListenerStore}}}var Rr=Er(Hr());function Hr(){return function(e,t,n=I.BeforeEnd){if(e?.isJQx)return e;let r=g(t,HTMLBRElement);t=(!r&&t&&t.isJQx?t[0]:t)||document.body,n=n&&Object.values(I).find(p=>n===p)?n:void 0;let o=je(e),i=!o&&mt(e)||o,u={collection:ut(e)??[],isVirtual:r,isJQx:!0},c=Ie(u.collection);if(u.collection.length&&c)return r||u.collection.forEach(p=>{t.contains(p)||Se([p],t,n)}),ee(u);if(i){if([e].flat().forEach(p=>u.collection.push(L(p))),u.collection.length>0){let p=u.collection.filter(f=>f?.dataset?.jqxcreationerror);u.collection=u.collection.filter(f=>!f?.dataset?.jqxcreationerror);let x=u.collection.map(f=>`${String(f.constructor).split(/function|\(/)[1].trim()}`).length>1;u=ee(u);let S=u.collection.length>0?yr(u):"sanitized: no elements remaining";N.log(`JQx: created ${u.isVirtual?"(virtual)":""} instance from ${x?"array of ":""}HTML string${x?"s":""} ${S}`),u.isVirtual||Se(u.collection,t,n)}return u}return dt(e,t,u),ee(u)}}var A=Rr;var[z,R,Ae,Pe]=["2-digit","numeric","long","short"],re={fixed:{MM:{month:Ae},M:{month:Pe},m:{month:R},mm:{month:z},yyyy:{year:R},yy:{year:z},WD:{weekday:Ae},wd:{weekday:Pe},d:{day:R},dd:{day:z},h:{hour:R},hh:{hour:z},mi:{minute:R},mmi:{minute:z},s:{second:R},ss:{second:z},ms:{fractionalSecondDigits:3},tz:{timeZoneName:"shortOffset"},dl:{locale:"default"},h12:{hour12:!1},yn:{yearName:""},ry:{relatedYear:!0},msp:{fractionalSecond:!0}},dynamic:{tzn:e=>({timeZoneName:e.slice(4)}),hrc:e=>({hourCycle:`h${e.slice(4)}`}),ds:e=>({dateStyle:e.slice(3)}),ts:e=>({timeStyle:e.slice(3)}),tz:e=>({timeZone:e.slice(3)}),e:e=>({era:e.slice(2)}),l:e=>({locale:e.slice(2)})}},W={...re,retrieveDynamic(e){let t=e?.slice(0,e?.indexOf(":"));return re.dynamic[t]&&re.dynamic[t](e)},get re(){return new RegExp(`\\b(${Object.keys(re.fixed).join("|")})\\b`,"g")}},ue=Wr;function Wr(e,t,n="l:default"){return/ds:|ts:/.test(n)?Jr(e,ft(void 0),n):Qr(e,ft(t||void 0),n)}function ft(e="dtf"){let t=` ${e.replace(/[{}]/g,"").trim()} `,n=e.match(/(?<=\{)(.+?)(?=})/g)||[];return{set formatStr(r){t=r},get formatStr(){return t},get units(){return t.match(W.re)||[]},finalize(r="",o="",i="",u=""){return t.replace(/~([\d+]?)/g,"$1").replace(/dtf/,r).replace(/era/,i).replace(/dp\b|~dp\b/,o).replace(/yn\b/,u).replace(/\[(\d+?)]/g,(c,p)=>n[p].trim()).trim()}}}function jt(...e){return e?.reduce((t,n)=>({...t,...W.retrieveDynamic(n)||W.fixed[n]}),W.fixed.dl)}function Jr(e,t,n){let r=jt(...It(n).split(",")),o=Intl.DateTimeFormat(r.locale,r).format(e);return t.finalize(o)}function Br(e,t){return e==="numeric"&&t.startsWith("0")?t.slice(1):t}function Qr(e,t,n){let r=jt(...t.units.concat(It(n).split(",")).flat()),o={...W.fixed},i=Intl.DateTimeFormat(r.locale,r).formatToParts(e).reduce((u,c)=>c.type==="literal"&&/[ ,/-]/.test(c.value)?u:{...u,[c.type]:Br(r[c.type],c.value)},{});return o.ms=r.fractionalSecondDigits?o.msp:o.ms,o.yyyy=i.relatedYear?o.ry:o.yyyy,t.formatStr=t.formatStr.replace(W.re,u=>/^(M|MM)$/.test(u)?Yr(e,r.locale,r.timeZone,/^M$/.test(u)):i[Object.keys(o[u]).shift()]||u),t.finalize(void 0,i.dayPeriod,i.era,i.yearName)}function Yr(e,t,n,r){return e.toLocaleString(t,{timeZone:n,month:r?Pe:Ae})}function It(e){return e.replace(/\s+/g,"")}var Ur=qr;function qr(){let e=(r,o)=>{let i=isNaN(new Date(r)),u=isNaN(new Date(o));if(u){let[c,p,x]=Array(3).fill("end date not valid");return{error:!0,message:c,full:p,clean:x}}if(i){let[c,p,x]=Array(3).fill("start date not valid");return{error:!0,message:c,full:p,clean:x}}if(i&&!u){let[c,p,x]=Array(3).fill("start- and/or end date are not valid");return{error:!0,message:c,full:p,clean:x}}return{error:!1}},t=n();return function({start:r,end:o,diffs:i={}}={}){let u=e(r,o),c=o>r?"+":"-";if(u.error)return u;let p=Math.abs(r-o),x=new Date(p),S=x.getUTCFullYear()-1970,f=x.getUTCMonth(),m=x.getUTCDate()-1,b=m%7,h=Math.floor(m/7),d=x.getUTCHours(),a=x.getUTCMinutes(),l=x.getUTCSeconds(),s=x.getUTCMilliseconds(),y=Math.floor(p/864e5);i={...i,fromUTC:r,toUTC:o,sign:"",years:S,months:f,days:m,hours:d,minutes:a,seconds:l,milliseconds:s,diffInDays:y},i.full=t({values:i,full:!0}),i.clean=t({values:i}),i.equalDates=i.clean==="Dates are equal";let v=d+a+l>0?"T":"";return i.clean!=="Dates are equal"&&(i.sign=c,i.jsPeriod=`${c}P${S>0?`${S}Y`:""}${f>0?`${f}M`:""}${h>0?`${h}W`:""}${b>0?`${b}D`:""}${v}${d>0?`${d}H`:""}${a>0?`${a}M`:""}${l>0?`${l}S`:""}`,i.ISOPeriod=`P${S>0?`${S}Y`:""}${f>0?`${f}M`:""}${m>0?`${m}D`:""}${v}${d>0?`${d}H`:""}${a>0?`${a}M`:""}${l>0?`${l}S`:""}`),i};function n(){let r=(...i)=>u=>i.reduce((c,p)=>p(c),u),o=(i,u)=>i===1?u.slice(0,-1):u;return r(({values:i,full:u})=>[Object.entries(i).filter(([c])=>/^(years|month|days|hours|minutes|seconds)/i.test(c)),u],([i,u])=>u?i:i.filter(([,c])=>u?+c:c>0),i=>i.reduce((u,[c,p])=>[...u,`${p} ${o(p,c)}`],[]),i=>i.length<1?"Dates are equal":`${i.slice(0,-1).join(", ")}${i.length>1?" and ":""}${i.slice(-1).shift()}`)}}var Vr=_r;function _r(){let e=Object.entries({year:"FullYear",month:"Month",date:"Date",day:"Date",hour:"Hours",minute:"Minutes",second:"Seconds",millisecond:"Milliseconds"}).reduce((r,[o,i])=>({...r,[o]:i,[`${o}s`]:i}),{}),t=!1,n=function(...r){let o=r.length===1;return t=r[0].trim().startsWith("subtract,"),t&&(r=o?r[0].trim().replace(/^subtract,/i,"").split(",").map(i=>i.trim()):r.filter(i=>!i.startsWith("subtract"))),o&&!t&&(r=r[0].split(",").map(i=>i.trim())),r.map(function(i){if(!i)return!1;let u=i.toLowerCase().split(/ {1,}/);return u.length<2?!1:u.map(c=>{c=`${c}`.trim().replace(/[^a-z0-9-+]/g,"");let p=parseInt(c,10);return Number.isNaN(p)?c:t?-p:+p})}).filter(i=>i)};return function(r,...o){if(o.length<1)return r;let i=n(...o);return i.length&&i.forEach(([u,c])=>{c=c,c=e[c],u&&c&&r[`set${c}`](r[`get${c}`]()+u)}),r}}var Ct=Ur(),At=lo(),C=Vr(),Xr=["sun","mon","tue","wed","thu","fri","sat"],Pt=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];function yt(e,...t){return C(e,...t),e}function Gr(e,t=!1){let n=Lt(e.clone,{sunday:t}),r=[n];return{weekStart:n.format("WD","l:en-GB"),inputDate:e,dates:r.concat([...Array(6)].map((o,i)=>n.clone.addDays(i+1)))}}function Ce(e,{start:t,end:n,future:r,past:o,include:i={start:!1,end:!1}}={}){let u=e.clone.UTC;return t=t?.value||t?.constructor===Date?w(t?.value||t).UTC:w.now.UTC,n=n&&n?.value||n?.constructor===Date?w(n?.value||n).UTC:w.now.UTC,u.milliseconds=0,t.milliseconds=0,n.milliseconds=0,r?t>n:o?t<n:(i.start?+u>=+t:+u>+t)&&(i.end?+u<=+n:+u<+n)}function pt(e,{zoneTime:t=!1,formatStr:n,moreOptions:r}={}){return r=t?e.localeInfo.formatOptions+(r?`,${r}`:""):O.formatOptions+(r?`,${r}`:""),t?(e.localeInfo||(e.localeInfo=O),ue(e,n,r)):Kr(e,n,r)}function Kr(e,t,n){let r=e.clone.relocate(O);return n=(n||"").startsWith("+")?`${r.localeInfo.formatOptions},${n.slice(1)}`:n||r.localeInfo.formatOptions,ue(r,t,n)}function eo(e,t){let n=Ct({start:e,end:t||e});return parseInt(`${n.sign}${n.diffInDays}`)}function gt(e,t=!1){let{locale:n,timeZone:r}=t?e.localeInfo:O,o=Yt(n,r),i=e.format("MM|WD",o).split("|");return{locale:n,timeZone:r,monthName:i[0],dayName:i[1],dayNames:Bt(n),monthNames:Ze(n)}}function ht(e,t=!1){let[n,r,o,i]=Le(e,t),u={values4Timezone:t?O.timeZone:e.timeZone,hours:n,minutes:r,seconds:o,milliseconds:i};return Object.freeze(u)}function Le(e,t=!1){let n=`l:en-CA,${t?`tz:${O.timeZone}`:`tz:${e.timeZone}`},hrc:23,ts:medium`;return e.format("",n).split(/:/).map(Number).concat(e.getMilliseconds())}function bt(e,t){let n=t?`tz:${O.timeZone}`:`,tz:${e.timeZone}`,[r,o,i]=e.format("yyyy-mm-dd",n).split(/-/).map(Number);o-=1;let u=t?O.timeZone:e.timeZone;return Object.freeze({values4Timezone:u,year:r,month:o,date:i})}function St(e,t=!0){if(t)return[e.getFullYear(),e.getMonth(),e.getDate()];let n=e.format("yyyy-m-d",e.localeInfo.formatOptions).split(/-/).map(Number);return n[1]-=1,n}function to(e){let t=new Intl.Locale(e.localeInfo.locale),n=t.getWeekInfo&&t.getWeekInfo().firstDay||1;return n=n===7?0:n,Pt[n]}function Lt(e,{sunday:t=!1}={}){let n=t?"sunday":to(e);return ke(e,{day:n,preserveTodayWhenEqual:!0})}function no(e,t){let n=e.toString().match(/GMT([+-])\d+/)?.[0]?.slice(3)??"+0000",r=t.toString().match(/GMT([+-])\d+/)?.[0]?.slice(3)??"+0000";return n=Me(n.slice(0,3)+":"+n.slice(-2),!0),r=Me(r.slice(0,3)+":"+r.slice(-2),!0),[-n[0]+r[0],-n[1]+r[1]].map(o=>n[0]<0?-o:o)}function kt({start:e,end:t}={}){t||(t=e.clone),t?.clone||(t=w(t,{timeZone:e.timeZone})),e=w(wt(e,e.timeZone),{timeZone:e.timeZone}),t=w(wt(t,t.timeZone),{timeZone:t.timeZone});let n=Ct({start:e,end:t,diffs:{timeZoneStart:e.timeZone,timeZoneEnd:t.timeZone}}),r=no(t,e),o=n.sign.startsWith("-")?"ahead of":"behind",[i,u]=r.map(x=>Math.abs(x)),[c,p]=[`${i} ${se(i,"hour")}`,`${u} ${se(u,"minute")}`];return n.timeZonesOffsetDifference=n.sign.length<1||i+u===0?`Offsets of ${e.timeZone} and ${t.timeZone} are equal`:`${e.timeZone} is ${c}${u>0?` and ${p}`:""} ${o} ${t.timeZone}`,n}function xt(e,t){t=String(t).toLowerCase()==="utc"||t.timeZone==="UTC"?e.clone.relocate({timeZone:"UTC"}):w(e.value,{timeZone:t.timeZone||O.timeZone});let n=kt({start:e.clone,end:t}),r=`${n.sign}${vt(n.hours)}:${vt(n.minutes)}`;return{fromTZ:e.timeZone,toTZ:t.timeZone,offset:r,offsetText:`${t.timeZone} ${ro(r)} ${e.timeZone}`}}function vt(e,t=2){return`${e}`.padStart(t,"0")}function se(e,t){return`${t}${e>1||e===0?"s":""}`}function ro(e){if(/00:00/.test(e))return"no time diffence to";let t=e.slice(1).split(":").map(Number),[n,r]=t,o=se(n,"hour"),i=se(r,"minute"),u=e.startsWith("+");return r>0?`${n} ${o} and ${r} ${i} ${u?"ahead of":"behind"}`:`${n} ${o} ${u?"ahead of":"behind"}`}function Tt(e,t,n){return e.clone.format(t,n||e.localeInfo.formatOptions)}function oo(e,{withFormat:t,withFormatOptions:n,local:r=!1}={}){if(t)return r?Tt(e,t,$D.localeInformation.formatOptions):Tt(e,t,n);let o=e.clone.relocate({locale:"en"}),i=r?O.formatOptions:o.localeInfo.formatOptions,u=`wd M dd yyyy hh:mmi:ss ${o.format("tz",i+",tzn:longOffset").replace(":","")} (tz)`;return o.format(u,i+",tzn:long, hrc:23")}function Mt(e,t=!1){let n=Intl.DateTimeFormat("en",{timeZone:t?e.timeZone:O.timeZone,weekday:"short"});return At(n.format(e))}function io(e){let t=O,n=e.localeInfo,r=e.clone.relocate({locale:t.locale,timeZone:t.timeZone}),o=e.offsetFrom(r),i=r.offsetFrom(e),u=t,c=n,p=e.format("hh:mmi:ss dp",`hrc:12,tz:${e.timeZone}`),x=r.format("hh:mmi:ss dp",`hrc:12,tz:${r.timeZone}`),S={note:"'user' are values for your locale/timeZone, 'remote' (if applicable) idem for the instance",locales:{user:{locale:u.locale,timeZone:u.timeZone}},dateTime:{user:{...e.dateTime,monthName:r.monthName,weekdayNr:r.day,weekdayName:r.dayName,dayPeriodTime:x,hasDST:r.hasDST,DSTActive:r.DSTActive,offsetFromRemote:o.offset,string:r.toString()}},offset:{fromUTC:e.UTC.offsetFrom(e).offsetText}};return n.timeZone!==t.timeZone&&(S.locales.remote={locale:c.locale,timeZone:c.timeZone},S.dateTime.remote={...e.zoneDateTime,monthName:e.zoneNames.monthName,weekdayNr:Mt(e,!0),weekdayName:e.zoneNames.dayName,dayPeriodTime:p,hasDST:e.hasDST,DSTActive:e.DSTActive,offsetFromUser:i.offset,string:e.toString()},S.offset.fromUserTime=i.offsetText),S}function oe(e,t=!0){if(t)return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()];let n=e.format("yyyy-m-d-hh-mmi-ss",`${e.localeInfo.formatOptions},hrc23:true`).split(/-/).map(Number).concat(e.getMilliseconds());return n[1]-=1,n}function Ft(e){return new Date(e.year,e.month+1,0,0,0,0).getDate()}function Zt(e,t){t=D({locale:t||e.localeInfo.locale}).locale;let n=e.clone.relocate({locale:t});return n.date={date:1},[n].concat([...Array(Ft(n)-1)].map((r,o)=>n.clone.add(`${o+1} days`)))}function ke(e,{day:t,next:n=!1,preserveTodayWhenEqual:r=!1}={}){t=t?.toLowerCase()||"-";let o=At(t);if(o<0)return console.error(`[TickTock instance].next/previous invalid day value ${t}`),e.clone;let i=n?1:-1,u=w(new Date(...e.dateTimeValues),e.localeInfo);return r&&o===u.day?u:ao(u.addDays(n?1:-1),o,i)}function ao(e,t,n){function r(o){switch(!0){case o.day===t:return o;default:return r(o.add(`${n} days`))}}return r(e)}function ie(e,{dateOnly:t=!1,timeOnly:n=!1}={}){let{locale:r,timeZone:o}=e.localeInfo;return t?new Date(e).toLocaleDateString(r,{timeZone:o}):n?new Date(e).toLocaleTimeString(r,{timeZone:o}):new Date(e).toLocaleString(r,{timeZone:o})}function wt(e,t){let n={timeZone:t,hourCycle:"h23"};return new Date(new Date(e).toLocaleString("en",n))}function _(e,{year:t,month:n,date:r}={}){return j(t)&&e.setFullYear(parseInt(t)),j(r)&&e.setDate(parseInt(r)),j(n)&&e.setMonth(parseInt(n)),e}function H(e,{hours:t,minutes:n,seconds:r,milliseconds:o}={}){return j(t)&&e.setHours(parseInt(t)),j(n)&&e.setMinutes(parseInt(n)),j(r)&&e.setSeconds(parseInt(r)),j(o)&&e.setMilliseconds(parseInt(o)),e}function zt(e){return e?.constructor===Date||e?.value}function Ot(e,t){return zt(t)?w(t?.value||t,e.localeInfo):w.from(...e.dateTimeValues).relocate(e.localeInfo)}function lo(){return function(e){e=`${e}`.toLowerCase();let t=Xr.indexOf(e);return t<0?Pt.indexOf(e):t}}function Me(e){let t=e.slice(1).split(/[-:]/).map(Number),n=e.startsWith("-");return t=t.map(r=>n?-r:r),t}function uo(e){return e.time={hours:0,minutes:0,seconds:0,milliseconds:0},e}function $t(e,t){return Intl.DateTimeFormat("en-CA",{timeZone:t,timeZoneName:"long"}).format(e).split(/,/)[1].trim()}function Rt(e,t){t=t||e?.timeZone||O.timeZone,e=e?.value?e:e?.constructor===Date?w(e,{timeZone:t}):w({timeZone:t});let n=e.year||e.getFullYear(),r=$t(new Date(n,0,1),t),o=$t(new Date(n,5,1),t);return r!==o}function Ht(e,t){return t=t||e?.timeZone||O.timeZone,e=e?.hasDST?e:e?.constructor===Date?w(e,{timeZone:t}):w({timeZone:t}),e.hasDST?!/standard/i.test(e.toString()):!1}function so(e,{locale:t,timeZone:n,l:r,tz:o}={}){return e.localeInfo=D({locale:r||t||e.l||e.locale,timeZone:o||n||e.tz||e.timeZone}),e}function co(e,t){return zt(t)&&(e=w(t.value||t,t.localeInfo||e.localeInfo)),e}function Fe(e,t){let n=Wt(new Date(e,11,t||31));return n===1?Fe(e,(t||31)-1):n}function Nt(e,t){let n=e.month;switch(!0){case n<3:return t?1:"First";case n<6:return t?2:"Second";case n<9:return t?3:"Third";case n<12:return t?4:"Fourth";default:return"unknown"}}function Wt(e){let t=new Date(e),n=(t.getDay()+6)%7;t.setDate(t.getDate()-n+3);let r=t.valueOf();return t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((r-t)/6048e5)}var Jt=mo;function mo({localeInfo:e,customMethods:t,dateValue:n}={}){let r,o={add(...i){return yt(r,...i)},between({start:i,end:u,include:c}={}){return Ce(r,{start:i,end:u,include:c})},cloneWith(i){return Ot(r,i)},daysUntil(i){return eo(r,i)},differenceTo(i){return kt({start:r,end:i})},differenceUntil(i){return r.differenceTo(i).clean},firstWeekday({sunday:i=!1,midnight:u=!1}={}){return Lt(r,{sunday:i,midnight:u})},format(i,u){return pt(r,{formatStr:i,moreOptions:u})},fullMonth(i){return Zt(r,i)},fullWeek(i=!1){return Gr(r,!!i)},isFuture(i){return Ce(r,{start:r,end:i,future:!0})},isPast(i){return Ce(r,{start:r,end:i,past:!0})},next(i,u){return ke(r,{day:i,next:!0,preserveTodayWhenEqual:!!u})},offsetFrom(i){return xt(r,i)},previous(i,u){return ke(r,{day:i,next:!1,preserveTodayWhenEqual:!!u})},relocate({locale:i,timeZone:u,l:c,tz:p}={}){return so(r,{locale:i,timeZone:u,l:c,tz:p})},revalue(i){return r=co(r,i),r},setDateValues({year:i,month:u,date:c}={}){return _(r,{year:i,month:u,date:c})},setTimeValues({hours:i,minutes:u,seconds:c,milliseconds:p}={}){return H(r,{hours:i,minutes:u,seconds:c,milliseconds:p})},subtract(...i){return yt(r,"subtract,"+i.join(","))},toArray(i=!1){return oe(r,i)},toString({template:i,formatOptions:u,local:c}={}){return oo(r,{withFormat:i,withFormatOptions:u,local:c})},values(i=!1){return i?r.dateTime:r.zoneDateTime},zoneFormat(i,u){return pt(r,{zoneTime:!0,formatStr:i,moreOptions:u})},set date({year:i,month:u,date:c}){_(r,{year:i,month:u,date:c})},set dateNr(i){_(r,{date:i})},set hours(i){H(r,{hours:i})},set localeInfo({locale:i,timeZone:u,l:c,tz:p}){e=ae({locale:i,timeZone:u,l:c,tz:p})},set milliseconds(i){H(r,{milliseconds:`${i}`})},set minutes(i){H(r,{minutes:i})},set month(i){_(r,{month:i})},set seconds(i){H(r,{seconds:i})},set time({hours:i,minutes:u,seconds:c,milliseconds:p}){H(r,{hours:i,minutes:u,seconds:c,milliseconds:p})},set year(i){_(r,{year:i})},get age(){return r.differenceTo(new Date).years},get ageFull(){return r.differenceTo(new Date).clean},get clone(){return Ot(r)},get date(){return bt(r,!0)},get dateNr(){return r.date.date},get dateTime(){return{...r.date,...r.time}},get dateTimeValues(){return oe(r,!0)},get dateValues(){return St(r,!0)},get day(){return r.getDay()},get dayName(){return r.names.dayName},get daysThisMonth(){return Ft(r)},get DSTActive(){return Ht(r)},get hasDST(){return Rt(r)},get hours(){return r.time.hours},get info(){return io(r)},get isLeapYear(){return new Date(r.getFullYear(),2,0).getDate()===29},get ISO(){return r.toISOString()},get local(){return ie(r)},get localDate(){return ie(r,{dateOnly:!0})},get locale(){return(e||ae()).locale},get localeInfo(){return e},get localeString(){return ie(r)},get localTime(){return ie(r,{timeOnly:!0})},get milliseconds(){return r.getMilliseconds()},get minutes(){return r.time.minutes},get month(){return r.date.month},get monthName(){return r.names.monthName},get names(){return gt(r)},get quarter(){return Nt(r)},get quarterNr(){return Nt(r,!0)},get removeTime(){return uo(r)},get seconds(){return r.time.seconds},get time(){return ht(r,!0)},get timeValues(){return Le(r,!0)},get timeZone(){return(e||ae()).timeZone},get unixEpochTimestamp(){return Math.floor(+r/1e3)},get userLocaleInfo(){return O},get UTC(){return r.clone.relocate({locale:r.locale,timeZone:"UTC"})},get UTCOffset(){return xt(r,"UTC")},get value(){return new Date(r)},get weeknr(){return Wt(r)},get weeksInYear(){return Fe(r.year,31)},get year(){return r.date.year},get zoneDate(){return bt(r,!1)},get zoneDateNr(){return r.zoneDate.date},get zoneDateTime(){return{...r.zoneDate,...r.zoneTime}},get zoneDateTimeValues(){return oe(r,!1)},get zoneDateValues(){return St(r,!1)},get zoneDay(){return Mt(r,!0)},get zoneDayname(){return r.zoneNames.dayName},get zoneHours(){return r.zoneTime.hours},get zoneMinutes(){return r.zoneTime.minutes},get zoneMonth(){return r.zoneDate.month},get zoneMonthname(){return r.zoneNames.monthName},get zoneNames(){return gt(r,!0)},get zoneSeconds(){return r.zoneTime.seconds},get zoneTime(){return ht(r)},get zoneTimeValues(){return Le(r)},get zoneYear(){return r.zoneDate.year},get zoneValues(){return r.zoneDateTime},get zoneArray(){return oe(r,!1)}};return!e&&!n?o:(o.localeInfo=e||ae(),r=new Proxy(n,fo(o)),Object.entries(Object.getOwnPropertyDescriptors(Ut(r,t))).forEach(([i,u])=>Object.defineProperty(o,i,u)),Object.freeze(r))}function fo(e){return{get(t,n){return n!=="toString"&&n in t?t[n].bind(t):Reflect.get(e,n)},set(t,n,r){return n in e&&Reflect.set(e,n,r)}}}var O=Qt(Intl.DateTimeFormat().resolvedOptions()),yo=Object.getOwnPropertyNames(Date.prototype).filter(e=>e.startsWith("set")).reduce((e,t)=>[...e,{native:t,syn:"change"+t.slice(3)}],[]);function Bt(e="en-GB"){return e=D({locale:e}).locale,{long:[...Array(7).keys()].map(t=>new Date(Date.UTC(1970,0,4+t)).toLocaleDateString(e,{timeZone:"Etc/UTC",weekday:"long"})),short:[...Array(7).keys()].map(t=>new Date(Date.UTC(1970,0,4+t)).toLocaleDateString(e,{timeZone:"Etc/UTC",weekday:"short"}))}}function Ze(e="en"){return e=D({locale:e}).locale,{long:[...Array(12).keys()].map(t=>new Date(Date.UTC(1970,t,1)).toLocaleDateString(e,{timeZone:"Etc/UTC",month:"long"})),short:[...Array(12).keys()].map(t=>new Date(Date.UTC(1970,t,1)).toLocaleDateString(e,{timeZone:"Etc/UTC",month:"short"}))}}function po({year:e,locale:t}={}){e=j(e)?parseInt(e):new Date().getFullYear();let n={year:e,calendar:{}},r=Ze().long.map(o=>o.toLowerCase());for(let o=0;o<12;o+=1){let i=w.from(e,o,1);n.calendar[r[o]]=Zt(i,t)}return n}function go({year:e,monthNr:t,locale:n="en-CA"}={}){e=j(t)&&parseInt(e)||-1,t=j(t)&&parseInt(t)||new Date().getFullYear();let r=t>=1&&t<=12;return n=D({locale:n}).locale,t=r?t-1:void 0,r?w.from(e,t,1).relocate({locale:n}).fullMonth(n):"MonthNr should be a specific number (1 = january - 12 = december)"}function Qt(e){let t=Yt(e.locale,e.timeZone),n=new Intl.Locale(e.locale);return e.weekInfo=n.getWeekInfo?n.getWeekInfo():null,Object.defineProperty(e,"formatOptions",{value:t,enumerable:!1})}function Yt(e,t){return[`${e&&!(Array.isArray(e)&&e.length<1)?`l:${e}`:""}`,`${t?`tz:${t}`:""}`].filter(n=>n).join(",")}function D({locale:e,timeZone:t,l:n,tz:r}={}){return t=t||r,e=e||n,e=Dt({trial:function(){return Intl.DateTimeFormat(e,{timeZone:O.timeZone}).resolvedOptions().locale},onError:function(){return console.warn(`Intl locale "${e}" best fit impossible, using "${O.locale}"`),O.locale}}),t=Dt({trial:function(){return Intl.DateTimeFormat(e,{timeZone:t}).resolvedOptions().timeZone},onError:function(){return console.warn(`timeZone "${t}" not valid. Using "${O.timeZone}"`),O.timeZone}}),Qt(Intl.DateTimeFormat(e,{timeZone:t}).resolvedOptions())}function ae({locale:e,timeZone:t,l:n,tz:r}={}){return D({locale:e,timeZone:t,l:n,tz:r},!0)}function Et(e){return!Number.isNaN(+e)&&e?.constructor===Date&&!e?.toISOString?.().startsWith("1970-01-01T00:00:00")?e:new Date}function ho(e){let t=new Date;switch(!0){case e?.constructor===String:return Et(new Date(e));case(Array.isArray(e)&&e.map(Number).length===e.length):return e.length===1?new Date(e[0],0,1):new Date(...e);case e?.constructor===Date:return Et(e);default:return t}}function Dt({trial:e,onError:t=()=>{}}={}){if(e?.constructor===Function)try{return e()}catch(n){return t?.constructor===Function?t(n):void 0}}function bo({timeZoneDate:e,timeZoneID:t,userTimeZoneID:n}={}){let r={timeZone:D({timeZone:t}).timeZone},o={timeZone:D({timeZone:n||""}).timeZone},i=w(e,r),u=w(e,o),c=u.differenceTo(i),p=i.offsetFrom(u).offset,[x,S]=Me(p,!0),f=u.clone.add(`${x} hours, ${S} minutes`),m=c.equalDates?"No difference":`Time offset ${p}: ${o.timeZone} is ${c.clean} ${x<0?"behind":"ahead of"} ${r.timeZone}`;return{remoteTimezone:r.timeZone,userTimezone:o.timeZone,timeDifference:m,result:{[r.timeZone.replace(/\//,"_")]:w(e).toString({template:"yyyy/mm/dd hh:mmi:ss",formatOptions:"hrc:23"}),[o.timeZone.replace(/\//,"_")]:f.toString({template:"yyyy/mm/dd hh:mmi:ss",formatOptions:"hrc:23"})}}}function j(e){return!Number.isNaN(parseInt(e))}function le(e,t,n){return e?.constructor===Number?C(t,`${e} ${n}`):t}function So(e){let t={addYears(n=1){return le(n,e,"years")},addMonths(n=1){return le(n,e,"months")},addWeeks(n=1){return n=n?.constructor===Number?n*7:1,le(n,e,"days")},addDays(n=1){return le(n,e,"days")},get nextYear(){return C(e,"1 year")},get nextWeek(){return C(e,"7 days")},get previousWeek(){return C(e,"-7 days")},get previousYear(){return C(e,"-1 year")},get nextMonth(){return C(e,"1 month")},get previousMonth(){return C(e,"-1 month")},get tomorrow(){return C(e,"1 day")},get yesterday(){return C(e,"-1 day")}};for(let n of yo)t[n.syn]=function(...r){return e[n.native](...r),e};return t}function Ut(e,t){let n=So(e);for(let[r,o]of Object.entries(t||{})){let i=o.enumerable,u=o.isGetter?{get(){return o.method(e)},enumerable:i}:{value(...c){return o.method(e,...c)},enumerable:i};Object.defineProperty(n,r,u)}return n}function xo(e,t){return Object.defineProperties(e,{now:{get(){return e(new Date)}},localeInformation:{get(){return D()}},localWeekdaynames:{value(n){return Bt(n)}},localMonthnames:{value(n){return Ze(n)}},daysInMonth:{value(n,r=!1){return n=j(n)?parseInt(n):0,n>=1&&n<=12?new Date(r?2e3:2005,n,0).getDate():`${n} should be a Number between (1 (january) - 12 (december))`}},yearCalendar:{value:po},monthCalendar:{value:go},from:{value(...n){return e(n)}},fromUxTS:{value(n,r){n=j(n)?parseInt(n)*1e3:void 0;let o=n?new Date(n):new Date;return w(o,r||O)}},hasDST:{value({date:n,timeZone:r}={}){return Rt(n,r)}},DSTActive:{value({date:n,timeZone:r}={}){return Ht(n,r)}},values:{value({date:n,timeZone:r}={}){n=n||n?.value||new Date;let o=ue(n,"yyyy-m-d-h-mi-s",D({timeZone:r}).formatOptions.concat(",hrc:23")).split("-").map(Number).concat(n.getMilliseconds());return o[1]-=1,o}},format:{value({date:n,template:r,timeZone:o,locale:i,opts:u}={}){n=n||n?.value||new Date,r=r?.constructor===String?r:"yyyy/mm/dd hh:mmi:ss dp";let c=D({timeZone:o,locale:i}).formatOptions;return c+=u?`,${u}`:"",ue(n,r,c)}},addCustom:{value({name:n,method:r,enumerable:o=!1,isGetter:i=!1}={}){n?.constructor===String&&r?.constructor===Function&&r.length>0&&(t[n]={method:r,enumerable:o,isGetter:i})}},validateLocaleInformation:{value:D},timeAcrossZones:{value:bo},weeksInYear:{value(n){return Fe(n,31)}},keys:{get(){let n=Object.fromEntries(Object.entries(t).filter(([r,o])=>o.enumerable===!0));return[...Object.keys(Jt()),...Object.keys(Ut()),...Object.keys(n)].sort((r,o)=>r.localeCompare(o))}}}),e}var qt={},w=xo(vo,qt);function vo(e,t){if(e?.localeInfo)return e.clone;let n=e?.locale||e?.timeZone||e?.tz||e?.l;return Jt({localeInfo:D(n?e:t),dateValue:new Date(n?Date.now():ho(e)),customMethods:qt})}var Vt=Object.defineProperties(_t,{escape:{value:Io,enumerable:!0}});function _t(e,...t){let{flags:n,cleanedArgs:r}=wo(...t);return $o(new RegExp(Co(To(e,...r)),n))}function To(e,...t){return J(t)?e.raw.reduce((n,r,o)=>n.concat(t[o-1]||"").concat(r),""):e.raw.join("")}function wo(...e){let t=ze(Oo(e.at(-1)));return{flags:t,cleanedArgs:J(t)?e.slice(0,-1):e}}function Oo(e){return ce(e,Array)?e.join(""):""}function $o(e){let t=new Proxy(Object.defineProperties({},{re:{get(){return e},enumerable:!1},toString:{value:()=>e.toString(),enumerable:!1},valueOf:{value:()=>e,enumerable:!1},flags:{value(n){return e=jo(n,e),t},enumerable:!1},clone:{get(){return Do(t)},enumerable:!1}}),Eo(e));return t}function J(e){return e?.length>0}function ce(e,t){return e?.constructor===t}function No(e,t,n){let r=Reflect.get(n,t);return{fromInstance:Reflect.get(e,t),fromRegExpMethod:ce(r,Function)?r.bind(e.re):e.re[t]}}function Eo(e){return{get(t,n){let{fromInstance:r,fromRegExpMethod:o}=No(t,n,e);switch(!0){case!!r:return r;default:return o}}}}function Do(e){let t=e.re.source,n=J(e.re.flags)?[...e.re.flags]:[];return _t`${t} ${n}`}function ze(e,t){return t=(t??"").replace(/^-r\|/,""),e=t.concat(ce(e,String)&&J(e)?e:""),[...new Set([...e])].join("").replace(/[^dgimsuvy]/g,"")}function jo(e,t){switch(!0){case(!ce(e,String)||!J(e)):return t;case e==="-r":return t=new RegExp(t.source);case e.startsWith("-r|"):return t=new RegExp(t.source,ze(e));default:return t=new RegExp(t.source,ze(t.flags,e))}}function Io(e){switch(!0){case(e?.constructor!==String||!J(e)):return"";case!!RegExp.escape:return RegExp.escape(e);default:return(`\\x${e.at(0)}`+e.slice(1).replace(/\p{S}|\p{P}/gu,t=>`\\${t}`)).replace(/ |\\x /g,"\\x20")}}function Co(e){return e.replace(/\/\*(?:[^*]|\*+[^*\/])*\*+\/|(?<!:|\\\|')\/\/.*/gm,"").replace(/\s/g,"").trim().replace(/<!([^>]\d+)>/g,(t,n)=>String.fromCharCode(+n)??t)}var{IS:k,maybe:Re,$Wrap:ri,isNothing:Ao,xProxy:oi,addSymbolicExtensions:ii}=Po({useSymbolicExtensions:!1});function Po(e={}){let{useSymbolicExtensions:t}=e,{shouldbeIsSingleObject:n,ISOneOf:r,isExcept:o,verifyNothingness:i,xProxy:u,determineType:c,addSymbolicExtensions:p,maybe:x,$Wrap:S}=Lo(f,t);return t&&p(),{IS:f,maybe:x,$Wrap:S,isNothing:i,xProxy:u,addSymbolicExtensions:p};function f(m,...b){let h=typeof m=="symbol"?Symbol.isSymbol:m;switch(!0){case!!x({trial:d=>"isTypes"in(b?.[0]??{})}):return n(m,b[0]);default:return b.length>1?r(h,...b):c(m,...b)}}}function Lo(e,t){let{SymbolAndCustomProxyFactory:n,maybeFactory:r,WrapAnyFactory:o,verifyNothingness:i,determineType:u}=ko(e,f),{xProxy:c,addSymbolicExtensions:p}=n(e,f,t),[x,S]=[r(),o(e,f)];return Object.freeze({shouldbeIsSingleObject:m,ISOneOf:b,isExcept:d,verifyNothingness:i,xProxy:c,determineType:u,addSymbolicExtensions:p,maybe:x,$Wrap:S});function f(a){return a?.[Symbol.proxy]??e(a)}function m(a,l){switch(!0){case"defaultValue"in l:return h(a,l);case"notTypes"in l:return d(a,l);default:return e(a,...[l.isTypes].flat())}}function b(a,...l){return l.some(s=>e(a,s))}function h(a,{defaultValue:l,isTypes:s=[void 0],notTypes:y}={}){return s=s?.constructor!==Array?[s]:s,y=y&&y?.constructor!==Array?[y]:[],y.length<1?e(a,...s)?a:l:d(a,{isTypes:s,notTypes:y})?a:l}function d(a,{isTypes:l=[void 0],notTypes:s=[void 0]}={}){return l=l?.constructor!==Array?[l]:l,s=s?.constructor!==Array?[s]:s,e(a,...l)&&!e(a,...s)}}function ko(){let e={IS:"toa.is",TYPE:"toa.type",IS_SYMBOL:"toa.isASymbol",PROXY:"toa.proxy"},t={NAN:"NaN",INFINITY:"Infinity",BOOLEAN:"Boolean",OBJECT:"Object",PROXY_PREFIX:"Proxy ("};return Object.freeze({SymbolAndCustomProxyFactory:r,maybeFactory:h,WrapAnyFactory:b,verifyNothingness:d,determineType:p});function n(a,l){Symbol.is||(Symbol.is=Symbol.for(e.IS),Symbol.type=Symbol.for(e.TYPE),Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return l(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...s){return a(this,...s)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(s){return l(s)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(s,...y){return a(s,...y)},enumerable:!1,configurable:!1}}))}function r(a,l,s){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for(e.IS_SYMBOL)),{xProxy:u(),addSymbolicExtensions:()=>n(a,l)}}function o(a){return(Ao(a,!0)?{name:"unknown"}:Object.getPrototypeOf(a)?.constructor).name}function i(a,l){return Proxy=new a(a,{construct(s,y){let v=new s(...y);return Object.defineProperty(v,l,{value:`${t.PROXY_PREFIX}${o(y[0])})`}),v}}),Proxy}function u(){Symbol.proxy||(Symbol.proxy=Symbol.for(e.PROXY));let a=Proxy;return{native(){Proxy=a},custom(){Proxy=i(a,Symbol.proxy)}}}function c(a,...l){let s=l.length<1,y=a==null;return{noInput:y,noShouldbe:s,compareTo:!s&&l[0],inputCTOR:!y&&(a?.constructor||Object.getPrototypeOf(a)?.constructor),isNaN:Number.isNaN(a)||Re({trial:v=>String(a)===t.NAN}),isInfinity:Re({trial:v=>String(a)})===t.INFINITY,shouldBeFirstElementIsNothing:!s&&d(l[0])}}function p(a,...l){let{noInput:s,noShouldbe:y,compareTo:v,inputCTOR:E,isNaN:B,isInfinity:Q,shouldBeFirstElementIsNothing:Y}=c(a,...l);switch(l=l.length&&l[0],!0){case Y:return String(a)===String(v);case(a?.[Symbol.proxy]&&y):return a[Symbol.proxy];case B:return y?t.NAN:String(v)===String(a);case Q:return y?t.INFINITY:String(v)===String(a);case s:return y?String(a):String(v)===String(a);case E===Boolean:return y?t.BOOLEAN:E===l;default:return S(a,l,y,x(a,E))}}function x(a,l){switch(!0){case a===0:return Number;case a==="":return String;case!a:return{name:String(a)};default:return l}}function S(a,l,s,y){switch(!0){case(!s&&l===a||a?.[Symbol.proxy]&&l===Proxy):return!0;case String(l)===t.NAN:return String(a)===t.NAN;case(a?.[Symbol.toStringTag]&&typeof l=="string"):return String(l)===a[Symbol.toStringTag];default:return l?m(a,l,y):f(a,y)}}function f(a,l){return(a?.[Symbol.toStringTag]??a?.prototype?.[Symbol.toStringTag])||l?.name||String(l)}function m(a,l,s){return Re({trial:y=>a instanceof l})||l===s||l===Object.getPrototypeOf(s)||`${l?.name}`===s?.name}function b(a,l){return function(s){let y={get value(){return s},is(...v){return a(s,...v)},get type(){return l(s)}};return Object[Symbol.type]&&Object.defineProperties(y,{[Symbol.type]:{get(){return l(s)}},[Symbol.is]:{value(...v){return a(s,...v)}}}),Object.freeze(y)}}function h(){let a=l=>{};return function({trial:l,whenError:s=a}={}){try{return l()}catch(y){return s(y)}}}function d(a,l=!1){let s=a==null;return s=l?s||k(a,1/0)||k(a,NaN):s,s}}var He=Xt(),We=Xt("");function Xt(e,t={}){let{useSymbolicExtensions:n}=t;return e=k(e,String,Number)?String(e):void 0,n&&Je(),function(f,...m){return S(f,x(m))};function r(f,m){return m&&k(e,String,Number)?String(e):`{${f}}`}function o(f,m){let b=f in m;return b&&k(m[f],String,Number)?String(m[f]):r(f,b)}function i(f){return(...m)=>{let b=m.find(h=>h.key);return o(b?b.key:"_",f)}}function u(f,m){return f.replace(/\{(?<key>[a-z_\d]+)}/gim,i(m))}function c(f){let m=[];return Object.entries(f).forEach(([b,h])=>{h.forEach((d,a)=>(m[a]??={},m[a][b]=d))}),m}function p(f){return f.length===1&&Object.values(f[0]).every(Array.isArray)}function x(f){return p(f)?c(f[0]):f}function S(f,m){let b=m?.length?m.filter(h=>k(h,Object)).map((h,d)=>u(f,{...h,index:d+1})).join(""):f;return k(e,void 0)?b:b.replace(/\{[a-z_\d].+\}/gim,String(e))}}function Je(){return String.prototype[Symbol.for("interpolate")]||Object.defineProperties(String.prototype,{[Symbol.for("interpolate")]:{value(...e){return He(this,...e)}},[Symbol.for("interpolate$")]:{value(...e){return We(this,...e)}}}),[Symbol.for("interpolate"),Symbol.for("interpolate$")]}Ro();Fo();var Mo={interpolate:He,interpolateClear:We,addSymbolicStringExtensions:Je};function Fo(){/stackblitz/i.test(location.href)&&console.info("\u2714 Stackblitz rewrites links to _top. The 'stackblitzhelpers' module fixed it."),document.addEventListener("click",e=>{if(e.target.href){let t=e.target;if(t.dataset.top||t.classList.contains("internalLink")||t.target==="_top")return top.location.href=t.href}return!0})}function Zo(e=!0){let t=A('<ul id="log2screen">').first();function n(i=!1){let u=i?A.at.start:A.at.end;return c=>{if(c?.isJQx)return A.li(c.data.get("header")?{class:"head"}:"",c).renderTo(t,u);c=A.IS(c,String,Number,Symbol)?String(c):zo(c,e);let p=c.startsWith("!!");c=p?c.slice(2):c,A.li(p?{class:"head"}:"",c).renderTo(t,u)}}let[r,o]=[n(),n(!0)];return{log:(...i)=>i.forEach(r),logTop:(...i)=>i.forEach(o)}}function zo(e,t){try{return t?`<pre>${JSON.stringify(e,null,2)}</pre>`:JSON.stringify(e)}catch{return"Some [Object object] can not be converted to JSON"}}function Ro(){A.editCssRules("body{font:normal 14px/17px system-ui,sans-serif;margin:1rem;}","li::marker{vertical-align:top;}","code{color:green;background-color:#eee;padding:2px;font-family:monospace;}","code.codeblock{display:block;padding:6px;border:1px solid #999;margin:0.5rem 0;background-color:#eee;white-space:pre-wrap;}","h3{marginTop:1.5rem;}",".thickBorder{border:5px solid green;borderWidth:5px;padding:0.5rem;display:inline-block;}","a.ExternalLink{text-decoration:none;color:rgb(0,0,238);background-color:#EEE;padding:3px;font-weight:bold;}",".cmmt{color:#888;}",".hidden{display:none;}",".attention{color:red; font-size:1.2em; font-weight:bold;}","#log2screen li{listStyle:'\\2713';paddingLeft:6px;margin:0.5rem 0 0 -1.2rem;font-family:monospace}","#log2screen li.head{list-style-type:none;font-weight:bold;margin-top:0.8rem;margin-bottom:-0.2rem;font-family:revert;}",".err{fontStyle:italic; color:red; }","a{text-decoration:none; font-weight:bold;}","a:hover{text-decoration:underline;}","a[target]:before,a.internalLink:before,a.externalLink:before{color:rgba(0,0,238,0.7);font-size:1.1rem;padding-right:2px;vertical-align:baseline;}",`a[target="_blank"]:before,a.externalLink:before{content:'\\2197';}`,`a[data-top]:before,a.internalLink:before,a[target="_top"]:before{content:'\\21BA';}`)}return rn(Ho);})();
|
|
14
|
+
`)}function En(e){return e.reduce((t,n)=>{let[r,i]=[n.slice(0,n.indexOf(":")).trim(),n.slice(n.indexOf(":")+1).trim().replace(/;$|;.+(?=\/*).+\/$/,"")];return r&&i?{...t,[r]:i}:t},{})}function jn(e){return En(Dn(e))}function We(e,t){return e?.replace("::",":")===t?.replace("::",":")}var ye=!1,In={on:()=>ye=!0,off:()=>ye=!1},Q={tagsRaw:q,allowUnknownHtmlTags:In,isAllowed(e){if(ye)return!0;let t=b(e,String)?e.toLowerCase():e?.nodeName.toLowerCase()||"none";return t==="#text"||!!q[t]},allowTag:e=>q[e.toLowerCase()]=!0,prohibitTag:e=>q[e.toLowerCase()]=!1},Cn=!0,V={data:/data-[\-\w.\p{L}]/ui,validURL:/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,whiteSpace:/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g,notAllowedValues:/^javascript|injected|noreferrer|alert|DataURL/gi};function An(e){if(Cn&&Object.keys(e.removed).length){let t=Object.entries(e.removed).reduce((n,[r,i])=>[...n,`${G(r)} => ${i}`],[]).join("\\000A");D.error(`JQx: HTML creation error(s): ${t}`)}}function Pn(e){let t=e.nodeName.toLowerCase(),n=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];return/-/.test(t)&&!n.find(r=>r===t)||Q.isAllowed(t)}function Te(e){let t={rawHTML:e?.parentElement?.getHTML()??"no html",removed:{}};return b(e,HTMLElement)&&[...e.childNodes].forEach(n=>{if(n?.children?.length&&Te(n),n?.attributes){let r=b(n,SVGElement)?de.svg:de.html;[...(n??{attributes:[]}).attributes].forEach(i=>{let a=i.name.trim().toLowerCase(),s=i.value.trim().toLowerCase().replace(V.whiteSpace,""),m=a==="href"?!V.validURL.test(s):V.notAllowedValues.test(s),g=a.startsWith("data")?!V.data.test(a):!!r[a];if(m||g){let x=Be(i.value||"none",60);x+=x.length===60?"...":"",t.removed[`${i.name}`]=`attribute/property/value not allowed, removed. Value: ${x}`,n.removeAttribute(i.name)}})}if(!(Pn(n)||n.constructor===CharacterData||n.constructor===Comment)){let r=(n?.outerHTML||n?.textContent).trim(),i=Be(r,60)??"EMPTY";i+=i.length===60?"...":"",t.removed[`<${n.nodeName?.toLowerCase()}>`]=`not allowed, not rendered. Value: ${i}`,n.remove()}}),An(t),e}function Ln(e){let t=document.createElement("div");return t.insertAdjacentHTML(I.end,e),t.childNodes.length?Te(t):void 0}function kn(e,t,n){switch(!0){case b(e,Comment):return t.insertAdjacentHTML(n,`<!--${e.data}-->`);case b(e,Text):return t.insertAdjacentText(n,e.data||e.textContent);default:return}}function pe(e=[],t=document.body,n=I.BeforeEnd){return n=n||I.BeforeEnd,t=t?.isJQx?t.node:t||document.body,e.reduce((r,i)=>{let a=Z(i)&&Mn(i,t,n);return a?[...r,a]:r},[])}function Mn(e,t=document.body,n=I.BeforeEnd){return n=n||I.BeforeEnd,t=t?.isJQx?t?.[0]:t,b(e,Comment,Text)?kn(e,t,n):b(e,HTMLElement)?t.insertAdjacentElement(n,e):void 0}function L(e){if(b(e,Text,Comment))return e;let t=e?.trim(),n=t?.split(/<text>|<\/text>/i)??[];if(n?.length&&(n=n.length>1?n.filter(i=>i.length).shift():void 0),t.startsWith("<!--")&&t.endsWith("-->"))return document.createComment(e.replace(/<!--|-->$/g,""));if(n||b(t,String)&&!/^<(.+)[^>]+>/m.test(t))return document.createTextNode(n??t);let r=Ln(e);return r.childNodes.length<1?L(`<span data-jqxcreationerror="1">${et(e,60)}</span>`):r.children[0]}function Fn(e){if(e.node("#jqxPopup"))return;e.logger.log("JQx: [JQx].Popup first call. Dialog element created."),e.dialog({id:"jqxPopup"},e.div({id:"jqxPopupContent"})).render,e.editCssRules(...en);let t=[],[n,r]=[e("#jqxPopupContent"),e.node("#jqxPopup")],i={};return e.handle({type:"click, cancel",handlers:c,name:"genericPopupCloseHandler",capture:!0,about:"A generic handler for JQx popups"}),Object.freeze({show:a,remove:s,removeModal:y});function a(d){if(r.open)switch(!0){case m(d):return;default:return s(),setTimeout(()=>a(d),200)}i={...d};let{content:o}=i;return e.IS(o,String,HTMLElement)||o?.isJQx?g():!0}function s(){return i.modal?p(i.warnMessage):x()}function m(d){for(let[o,l]of Object.entries(i))if(l!==d[o])return!1;return!0}function g(){n.clear();let{content:d,modal:o,closeAfter:l}=i;o=e.IS(o,Boolean)?o:!1;let u=o?"":e.div({id:"closeHandleIcon"});n.append(u,e.IS(d,String)?e.div(d):d),r.showModal(),!o&&e.IS(l,Number)&&h(s,l)}function x(){if(r.close(i.returnValue),S(),e.IS(i.callback,Function))return t.push(setTimeout(()=>i.callback(i.returnValue),200));i={}}function S(){t.forEach(d=>clearTimeout(d)),t=[]}function y({callback:d,value:o}={}){i.returnValue=o,i.modal=!1,i.callback=d||i.callback,s()}function c({evt:d}){if(!(Object.keys(i).length<1||!r.open)&&(d.type==="cancel"&&i.modal&&d.preventDefault(),d.target.closest("#closeHandleIcon")||!d.target.closest("#jqxPopupContent")))return i.activeTimer&&clearTimeout(i.activeTimer),s()}function h(d,o){e.IS(d,Function)&&e.IS(o,Number)&&o>0&&(S(),t.push(setTimeout(d,o*1e3)))}function p(d){if(!e.IS(d,String,HTMLElement,Proxy))return;let o=n.find$(".warn");switch(!0){case o.is.empty:o=e.div({class:"warn"},d);default:n.append(o.addClass("active")),h(()=>n.find$(".warn").removeClass("active"),2)}}}function Zn(e){let t={},n="anonymous_";function r(S){if(S){let{handler:y,capture:c,type:h}=S;document.addEventListener(h,y,{capture:c})}}function i(S){if(S){let{type:y,handler:c,capture:h}=S;document.removeEventListener(y,c,{capture:h})}}function a(S,y,c,h){return function(p){if(!$(y))return S({evt:p});let d=p.target.closest(y);if(d){let o=e(d);S({self:o,me:o,evt:p}),c&&g(p.type,h)}return!0}}function s(S){return t[S]=t[S]||{},t[S]}function m(S,y){return Object.entries(s(S)).find(([c])=>c===y)}function g(S,y){let c=m(S,y);c&&(i(c[1]),delete t[S][y],delete ge[y],D.warn(`Removed listener [${y}] for event type [${S}].`))}function x(S){let{type:y,handler:c,name:h,capture:p,once:d,selector:o,node:l,about:u}=S;t[y]=t[y]||{};let f=Jn(h||c.name),v=c;if(l instanceof HTMLElement){let N=l.dataset.hid||f;l.dataset.hid=N,o=`[data-hid=${N}]`}switch(!0){case!t[y][f]:return D.log(`JQx: created listener for event type ${y}, with handler name ${f}`),t[y][f]={name:f,handler:a(c,o,d,f),capture:Yn(y,p),once:!!d,type:y,initialHandler:v,selector:!!o&&o||!1,about:!!u&&u||!1,unListen(){g(y,f)}},t[y][f];default:return console.warn(`The listener [${f}] for [${y}] exists, it is not re-assigned.`)}}return{remove(...S){return g(...S)},listen:function(S){let{type:y,handler:c}=S;if(!$(y)||!b(c,Function))return;let h=x(S);if(h)return r(h),{type:y,name:h.name,unListen(){g(y,h.name)}}},get ListenerStore(){return Object.freeze({...t})}}}var D=Qn(),zn=["load","unload","scroll","focus","blur","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument","loadstart","progress","error","abort","load","loadend","pointerenter","pointerleave","readystatechange"],I=Object.freeze(new Proxy({start:"afterbegin",afterbegin:"afterbegin",end:"beforeend",beforeend:"beforeend",before:"beforebegin",beforebegin:"beforebegin",after:"afterend",afterend:"afterend"},{get(e,t){return e[String(t).toLowerCase()]??e[t]}})),Rn=[...Array(26)].map((e,t)=>String.fromCharCode(t+65)).concat([...Array(26)].map((e,t)=>String.fromCharCode(t+97))).concat([...Array(10)].map((e,t)=>`${t}`)),Hn=Object.freeze({get(e,t){return e[we(t)]||e[t]},enumerable:!1,configurable:!1}),ge={};_t.custom();function Wn(){let e=setTimeout(()=>{});for(;e>=0;)clearTimeout(e--)}function Jn(e){return $(e)&&!/^handler|handlers$/gi.test(e.trim())?e.trim():Ge()}function Bn(e){let t=!!e.node&&!b(e,Text,Comment);switch(!0){case t:let n=e.node.dataset?Object.keys(e.node.dataset).map(i=>`[data-${i}]`):[],r=[e.attr("id")&&`#${e?.attr("id")}`||void 0,e.attr("class")&&e?.attr("class").split(" ").map(i=>`.${i}`).join(", ")||void 0,n.length>0&&n.join(", ")||void 0].filter(i=>!!i).join(", ")||[];return r.length?`(${r})`:"";default:return""}}function Ge(e){let t=`anonymous_${Math.random().toString(36).slice(2)}`;return ge[t]?Ge():(ge[t]=t,t)}function Yn(e,t){return!!zn.find(n=>n===e)||!!t}function Ke(e){return e.startsWith("data")||de.html.find(t=>e.toLowerCase()===t)}function Je(e){return e&&(e.textContent="")}function he(e,t=0,n=!0){return e=e?.parentElement,t+=e?e[n?"scrollTop":"scrollLeft"]:0,e?he(e,t,n):t}function $(e,t=1){return t=b(t,Number)&&t||1,b(e,String)&&e.length>=t}function Be(e,t=120){return et(e,t).replace(/</g,"<")}function et(e,t=120){return`${e}`.trim().slice(0,t).replace(/>\s+</g,"><").replace(/</g,"<").replace(/\s{2,}/g," ").replace(/\n/g,"\\n")+(e.length>t?" …":"").trim()}function G(e){switch(!0){case b(e,String):let t=document.createElement("div");return t.append(e),t.innerHTML;default:return e}}function ue(e){return b(e,String)&&Object.assign(document.createElement("textarea"),{innerHTML:e}).textContent||e}function Qn(){let[e,t]=[!1,!0],n=[],r={get on(){return e=!0,r},get off(){return e=!1,r},get disable(){return t=!0,r},get enable(){return t=!1,r},get backLog(){return n}};function i(){t=!0}function a(){t=!1}function s(...x){return n.unshift(...x.map(S=>`${ce()} \u2A3B ${ue(S)}`)),console.error(n.slice(0,x.length).join(`
|
|
15
|
+
`)),r}function m(...x){return n.unshift(...x.map(S=>`${ce()} \u26A0 ${ue(S)}`)),console.warn(n.slice(0,x.length).join(`
|
|
16
|
+
`)),r}function g(...x){let S=x.map(y=>`${ce()} \u2714 ${ue(y)}`);switch(!t&&n.unshift(...S),e){case!0:console.log(S.join(`
|
|
17
|
+
`));default:return r}}return Object.defineProperties(r,{log:{value:g,enumerable:!1},error:{value:s,enumerable:!1},warn:{value:m,enumerable:!1}}),Object.freeze(r)}function ce(){return(e=>`[${_(e.getHours())}:${_(e.getMinutes())}:${_(e.getSeconds())}.${_(e.getMilliseconds(),3)}]`)(new Date)}function Un(e,t){if(e)for(let[n,r]of Object.entries(t)){if(n=P(n),n.startsWith("data"))return tt(e,r);b(r,String)&&Ke(n)&&e.setAttribute(n,r.split(/[, ]/)?.join(" "))}}function tt(e,t){if(e&&b(t,Object))for(let[n,r]of Object.entries(t))e.setAttribute(`data-${P(n)}`,r)}function nt(e){return e?b(e,Proxy)?[e.EL]:b(e,NodeList)?[...e]:Z(e)?[e]:Ne(e)?e:e.isJQx?e.collection:void 0:[]}function Ye(e,t){return e.andThen(t)}function qn(e,t){return e.andThen(t,!0)}function Z(e){return b(e,Text,HTMLElement,Comment)}function me(e,t){if(b(t,Object))for(let[n,r]of Object.entries(t)){let i;/!important/i.test(r)&&(r=r.slice(0,r.indexOf("!")).trim(),i="important"),e.style.setProperty(P(n),r,i)}}function M(e){let t=e.cloneNode(!0);return t.removeAttribute&&t.removeAttribute("id"),e.isConnected?e.remove():e=null,t}function Vn(e){if(!b(e,HTMLElement))return;let t=e.style,n=getComputedStyle(e),r=!![t.visibility,n.visibility].includes("hidden"),i=!![t.display,n.display].includes("none"),a=!!e.hidden,s=parseInt(n.height)<1||parseInt(n.width)<1,m=e.offsetTop<0||e.offsetLeft+e.offsetWidth<0||e.offsetLeft>document.body.offsetWidth,g=+n.opacity==0||+(t.opacity||1)==0;return!(a||m||g||i||r||s)}function _n(e){return e?.isConnected?!![...document.querySelectorAll(":is(:read-write)")].find(t=>t===e):!1}function Xn(e){return e?.filter(t=>t).reduce((t,n)=>t.concat(ot(n)?`<!--${n.data}-->`:Oe(n)?n.textContent:n.outerHTML),"")}function _(e,t=2){return`${e}`.padStart(t,"0")}function Gn(e,t=0){return[e,t]=[Math.floor(e),Math.ceil(t)],Math.floor([...crypto.getRandomValues(new Uint32Array(1))].shift()/2**32*(e-t+1)+t)}function rt(){return`_${nr(Rn).slice(0,8).join("")}`}function Kn(e){return e=b(e,String)&&/,/.test(e)?e.split(",").map(t=>t.trim().toLowerCase()).filter(t=>t.length>0):e,b(e,Array)?e:b(e,String)&&e?.trim().toLowerCase()||""}function er(e){return e?.isConnected?!![...document.querySelectorAll(":is(:modal)")].find(t=>t===e):!1}function tr(e,t){switch(e=String(e).trim(),!0){case/^(0|false|f)$/i.test(e):return!1;case/^(1|true|t)$/i.test(e):return!0;default:return t}}function nr(e){let t=e.length;for(;t--;){let n=Gn(t);[e[t],e[n]]=[e[n],e[t]]}return e}function we(e){return b(e,String)?e.toLowerCase().split("-").map((t,n)=>n&&`${rr(t)}`||t).join(""):e}function P(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace(/^-|-$/,"")}function rr([e,...t]){return`${e.toUpperCase()}${t.join("")}`}function Oe(e){return b(e,Comment,Text)}function ot(e){b(e,Comment)}function or(e){return b(e,Text)}function $e(e){return b(e,String)&&/^<|>$/.test(`${e}`.trim())}function Ne(e){return b(e,Array)&&!e?.find(t=>!Z(t))}function it(e){return b(e,Array)&&!e?.find(t=>!$e(t))}function T(e,t){let n=e.collection.filter(r=>!Oe(r));for(let r=0;r<n.length;r+=1)t(n[r],r);return e}function ir(e){return e.node?b(e.node,Comment)?`<!--${e.node.textContent}-->`:e.HTML.get(1).split(">")[0]+">...":""}function at(e,t,n){let r=t!==document.body&&b(e,String)&&e.toLowerCase()!=="body"?t:document;try{n.collection=[...r.querySelectorAll(e)]}catch{D.warn(`JQx: Invalid CSS querySelector. [${b(e,String)?e:"Not a string!"}]`)}}function ar(){return{isCommentOrTextNode:Oe,isNode:Z,isComment:ot,isText:or,isHtmlString:$e,isArrayOfHtmlElements:Ne,isArrayOfHtmlStrings:it,ElemArray2HtmlString:Xn,input2Collection:nt,setCollectionFromCssSelector:at,cssRuleEdit:Xe({createWithId:"JQxStylesheet"})}}function lr(){let e=Object.freeze({notInDOM:"n/a",writable:"n/a",modal:"n/a",empty:!0,open:"n/a",visible:"n/a"});return t=>{let n=t.node;return b(n,Node)?Object.freeze({get writable(){return _n(n)},get modal(){return er(n)},get inDOM(){return n.isConnected},get open(){return n.open??!1},get visible(){return Vn(n)},get disabled(){return n.hasAttribute("readonly")||n.hasAttribute("disabled")},get empty(){return t.collection.length<1},get virtual(){return t.isVirtual}}):e}}function sr(e,t,n,r){n&&b(t,String)&&(t={[t]:n==="-"?"":n});let i;t.className&&(i=t.className,delete t.className),i=[...e.classList].find(a=>a.startsWith("JQxClass-")||i&&a===i)||i||`JQxClass-${rt().slice(1)}`,r.editCssRule(`.${i}`,t),e.classList.add(i)}var ur=lr();function cr(e){return{factoryExtensions:mr(e),instanceExtensions:dr(e)}}function mr(e){return{data(t){return{get all(){return new Proxy(t[0]?.dataset??{},Hn)},set(n={}){if(!t.is.empty&&b(n,Object))for(let[r,i]of Object.entries(n))t.setData({[r]:i});return t},get(n,r){return t.data.all[n]??r},add(n={}){if(!t.is.empty&&b(n,Object))for(let[r,i]of Object.entries(n))t.setData({[r]:i});return t},remove(n){return t[0]?.removeAttribute(`data-${P(n)}`),t}}},dimensions(t){if(t.is.empty)return D.error("[JQx instance].dimensions called on empty instance"),{error:"[JQx instance].dimensions: NO ELEMENTS"};let{node:n}=t,r=n.getBoundingClientRect().toJSON();return r.scrollTopDistance=he(n,0),r.scrollLeftDistance=he(n,0,!1),r},node(t){return t[0]},HTML(t){return{get(n,r){if(t.is.empty)return"NO ELEMENTS IN COLLECTION";let i=n?t.outerHtml:t.html();return r?G(i):i},set(n,r=!1,i=!1){n=n.isJQx?n.HTML.get(1):n;let a=b(n,String);return n=a&&i?G(n):n,a&&(n||"").trim().length&&t.html(n,r),t},replace(n,r=!1){return t.HTML.set(n,!1,r)},append(n,r=!1){return n=b(n,HTMLElement)?e(n).HTML.get(1):n.isJQx?n.HTML.get(1):n,t.HTML.set(n,!0,r)},insert(n,r=!1){return n=b(n,HTMLElement)?e(n).HTML.get(1):n.isJQx?n.HTML.get(1):n,t.HTML.set(n+t.HTML.get(),!1,r)}}},is(t){return ur(t)},length(t){return t.collection.length},outerHtml(t){return(t.first()||{outerHTML:void 0}).outerHTML},parent(t){let n=e(t[0]?.parentNode);return n.is.empty?t:n},render(t){switch(!0){case!t.is.empty:return t.toDOM();default:return e.logger.warn("[JQx.render]: empty collection"),t}},Style(t){return{get computed(){return t.is.empty?{}:getComputedStyle(t[0])},inline(n){return t.style(n)},inSheet(n){return t.css(n)},valueOf(n){return t.is.empty?void 0:getComputedStyle(t[0])[P(n)]},nwRule(n){return t.Style.byRule({rules:n})},byRule({classes2Apply:n=[],rules:r=[]}={}){let i=b(r,String)&&!n.length?r.split("{")[0].trim():"";if(r=r&&b(r,String)?[r]:r,n=n&&b(n,String)?[n]:n,(r?.length||n?.length)&&(r?.length&&e.editCssRules(...r),n))for(let a of n)t.addClass(a);return i?.startsWith(".")&&t.addClass(i.slice(1)),i?.startsWith("#")&&!t.attr("id")&&t.prop({id:i.slice(1)}),t}}}}}function dr(e){return{addClass(t,...n){return T(t,r=>r&&n.forEach(i=>r.classList.add(i)))},after(t,n){return Ye(t,n)},afterMe(t,n){return Ye(t,n)},andThen(t,n,r=!1){if(!n||!b(n,String,Node,Proxy))return D.log("[JQx instance].[before(Me) | after(Me) | andThen]: invalid/-sufficient input."),t;n=n?.isJQx?n:b(n,Node)?e.virtual(n):e.virtual(L(n));let[i,a,s]=r?[0,"before",n.collection.concat(t.collection)]:[t.collection.length-1,"after",t.collection.concat(n.collection)];return t[i][a](...n.collection),t.collection=s,t},append(t,...n){if(t.is.empty||n.length<1)return t;let r=t.length===1;for(let i of n){if(!i.isJQx&&$(i)){let a=i.trim(),s=/^<(.+)[^>]+>$/m.test(a)?L(i):e.text(i);T(t,m=>m.append(r?s:M(s)))}Z(i)&&T(t,a=>a.append(r?i:M(i))),i.isJQx&&!i.is.empty&&T(t,a=>i.collection.forEach(s=>a.append(r?s:M(s))))}return t},appendTo(t,n){switch(n=typeof n=="string"?e(n):n,!0){case(!n?.isJQx&&!b(n,HTMLElement)||n?.collection?.length<1):return e.warn("[JQx instance].appendTo: invalid input"),t;default:return(n.isJQx?n:e(n)).append(t),t}},attr(t,n,r){if(!t.node||b(t.node,Text,Comment))return t;if(!r&&$(n))return n=P(n),n==="class"?[...t.node.classList].join(" "):t.node.getAttribute(n);if($(n)&&r)switch(n=P(n),!0){case n.startsWith("data-"):n={data:{[n.replace("data-","")]:r}};break;default:n={[n]:r}}return b(n,Object)&&!t.is.empty&&Un(t.node,n),t},before(t,n){return t.andThen(n,!0)},beforeMe(t,n){return qn(t,n)},clear(t){return T(t,Je)},closest(t,n){let r=$(n)?t.node?.closest(n):void 0;return r?e(r):t},computedStyle(t,n){let{node:r}=t;return r&&getComputedStyle(r)[n]},css(t,n,r){return T(t,i=>sr(i,n,r,e))},duplicate(t,n=!1,r=document.body){switch(!0){case t.is.empty:return D.error("Duplicating an empty JQx instance is not possible"),t;default:let i=t.collection[0].cloneNode(!0);return i.childNodes.forEach(a=>{a.removeAttribute&&a?.removeAttribute("id")}),n?e(i).toDOM(r):e.virtual(i)}},each(t,n){return T(t,n)},empty(t){return T(t,Je)},find(t,n){return t.collection.length>0?[...t.first()?.querySelectorAll(n)]:[]},find$(t,n){return t.collection.length>0?e(n,t):t},first(t,n=!1){return t.collection.length>0?n?t.single():t.collection[0]:void 0},first$(t,n){return t.single(n)},getData(t,n,r){return t.node?.dataset?.[n]||r},hasClass(t,...n){return t.is.empty||!t.node.classList.length?!1:n.find(r=>t.node.classList.contains(r))&&!0||!1},hide(t){return T(t,n=>me(n,{display:"none !important"}))},html(t,n,r){switch(!0){case(t.is.empty&&!$(n)):return"";case!$(n):return t.node?.getHTML()??"";default:let i=L(`<div>${n.isJQx?n.HTML.get(!0):n}</div>`);return T(t,a=>(a.textContent=r?a.textContent:"",a.insertAdjacentHTML(e.at.end,i.getHTML())))}},htmlFor(t,n,r="",i=!1){if(t.is.empty||!$(n)||!$(r))return t;let a=t.find$(n);if(a.length<1)return t;let s=L(`<span>${r}</span>`);return a.each(m=>{i||(m.textContent=""),m.insertAdjacentHTML(e.at.end,s?.getHTML())}),t},isEmpty(t){return!t.node},nth$(t,n){return t.single(n)},on(t,n,...r){switch(!0){case(t.is.empty||!b(n,String,Array)||!$(n)||r.length<1):return t;default:return e.handle({type:n,node:t.node,handler:r}),t}},once(t,n,...r){switch(!0){case(t.is.empty||!b(n,String,Array)||!$(n)||r.length<1):return t;default:return e.handle({type:n,once:!0,node:t.node,handler:r}),t}},prepend(t,...n){if(t.is.empty||!n)return;let r=t.length===1;for(let i of n){if($(i)){i=i.trim();let a=/^<(.+)[^>]+>$/m.test(i)?L(i):e.text(i);a=r?a:M(a),T(t,s=>s.prepend(a.cloneNode(!0)))}Z(i)&&T(t,a=>a.prepend(r?i:M(i))),i.isJQx&&!i.is.empty&&(i.collection.length>1&&i.collection.reverse(),T(t,a=>T(i,s=>a.prepend(r?s:M(s)))),i.collection.reverse())}return t},prependTo(t,n){switch(n=typeof n=="string"?e(n):n,!0){case(!n?.isJQx&&!b(n,HTMLElement)||n?.collection?.length<1):return e.warn("[JQx instance].appendTo: invalid input"),t;default:return(n.isJQx?n:e(n)).prepend(t),t}},prop(t,n,r){if(b(n,String)&&!r)return n.startsWith("data")?t[0]?.dataset[n.slice(n.indexOf("-")+1)]:t[0]?.[n];let i=b(n,Object)?n:{[n]:r};for(let[a,s]of Object.entries(i)){if(a=a.trim(),s&&!Ke(a)||!s)return!1;if(a.toLowerCase()==="id")return t[0].id=s;T(t,m=>{if(a.startsWith("data"))return m.dataset[a.slice(a.indexOf("-")+1)]=s;m[a]=s})}return t},remove(t,n){let r=a=>a.remove(),i=()=>t.collection=t.collection.filter(a=>document.documentElement.contains(a));if(n){let a=t.find$(n);return a.is.empty||(T(a,r),i()),t}return T(t,r),i(),t},rmAttr(t,...n){for(let r of n)t.node.removeAttribute(r);return t},removeClass(t,...n){return T(t,r=>{if(r)for(let i of n)r.classList.remove(i)})},renderTo(t,n,r){return n=b(n,HTMLElement)||n.isJQx?n:document.body,r=b(r,String)&&e.at[r]?r:e.at.end,t.first$().toDOM(n,r),t},replace(t,n,r){let i=t.node;return!n||!b(r,HTMLElement)&&!r?.isJQx?(e.logger.error("JQx replace: invalid replacement value"),t):((r.isJQx||b(r,NodeList))&&(r=r[0]),i&&n&&(n=b(n,String)?i.querySelectorAll(n):n.isJQx?n.collection:n,b(n,HTMLElement,NodeList,Array)&&b(r,HTMLElement)&&(b(n,HTMLElement)?[n]:[...n]).forEach(a=>a.replaceWith(r.cloneNode(!0)))),t)},replaceClass(t,n,...r){return T(t,i=>{i.classList.remove(n);for(let a of r)i.classList.add(a)})},replaceMe(t,n){return t.replaceWith(n)},replaceWith(t,n){return n=b(n,Element)?n:n.isJQx?n[0]:void 0,n&&(t[0].replaceWith(n),t=e.virtual(n)),t},setData(t,n){return T(t,r=>tt(r,n))},show(t){return T(t,n=>me(n,{display:"revert-layer !important"}))},single(t,n){let r=t.collection.length>0;switch(n=n??0,!0){case(r&&b(n,String)):return t.find$(n);case(r&&b(n,Number)):return e(t.collection[n]);case r:return t.collection[0];default:return t}},style(t,n,r){return T(t,i=>{r&&b(n,String)&&(n={[n]:r||"none"}),me(i,n)})},text(t,n,r=!1){switch(!0){case t.isEmpty():return t;case!b(n,String):return t.node.textContent;default:return T(t,i=>i.textContent=r?i.textContent+n:n)}},toDOM(t,n=document.body,r=I.BeforeEnd){return t.isVirtual=!1,pe(t.collection,n,r),t},toggleClass(t,n){return T(t,r=>r.classList.toggle(n))},toNodeList(t){return[...t.collection].map(n=>document.importNode(n,!0))},trigger(t,n,r,i){r=b(r,Function)?r:Event,i=b(i,Object)?{...i,bubbles:i.bubbles??!0}:{bubbles:!0};let a=new r(n,i);return t.is.empty||t.each(s=>s.dispatchEvent(a)),t},val(t,n){switch(!0){case(t.is.empty||!b(t.node,HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement)):return t;case!b(n,String):return t.node.value;default:return t.node.value=b(n,String)?n:"",t}}}}var be,K,{isComment:ko,isText:Mo,isHtmlString:Fo,isArrayOfHtmlElements:Zo,isArrayOfHtmlStrings:zo,ElemArray2HtmlString:Ro,cssRuleEdit:Se,addFn:fr}=yr();function yr(){return{...ar(),addFn:pr}}function pr(e,t){return e=e?.trim(),!$(e)||!b(t,Function)?D.error("JQx.fn: method invalid parameter(s)"):(K[e]=(n,...r)=>t(n,...r),D.log(`JQx: added extension function [${e}]`))}function gr(e){return function(t,n,r){if(t=t?.trim(),!$(t)||!b(n,Function))return e.error("JQx.staticFn: invalid parameter(s)");let i=r?{get(){return n()}}:{value(...a){return n(...a)}};try{Object.defineProperty(e,t,i)}catch{return e.warn(`JQx.staticFn: extension [${t}] already exists`)}return D.log(`JQx: added static extension function [${t}]`)}}function X(e){return new Proxy(e,Object.freeze({get:(t,n)=>hr(t,n,e)}))}function Qe(e,t){return(...n)=>b(e,Function)&&e(X(t),...n)}function hr(e,t,n){switch(!0){case b(t,Symbol):return B({trial:()=>e[t],whenError:()=>e});case b(+t,Number):return e.collection?.[t]||void 0;case t in be:return Qe(be[t],n)();case t in K:return Qe(K[t],n);default:return e[t]}}function br(e){let t=wr(e);for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(t)))Object.defineProperty(e,n,r);return e}function Sr(e){return{allow(t){let n=/-/.test(t),r=n&&t;t=n?we(t):t.toLowerCase(),Q.allowTag(t),Object.defineProperties(e,xe(t,!0,e,r))},prohibit(t){t=t.toLowerCase(),Q.prohibitTag(t),Object.defineProperties(e,xe(t,!1,e))}}}function Ue(...e){if(e.length===1){let t=String(e.shift().trim());e=t.startsWith("!")?[t.slice(1,-1)]:t.split(",").map(n=>n.trim())}for(let t of e.map(n=>n.startsWith("!")?n.slice(1,-1):n))Se(t,{removeRule:1})}function xr(e){return function(t,n,r){n=n?.isJQx?n?.[0]:n,r=r&&Object.values(I).find(a=>r===a);let i=e(t,document.createElement("br"));if(n&&!b(n,HTMLBRElement))for(let a of i.collection)r?n.insertAdjacentElement(r,a):n.append(a);return i}}function vr(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);for(let[i,a]of Object.entries(r))!(i in t)&&Object.defineProperty(t,i,{...a,enumerable:!1})}return t}function Tr(e,t,n,r){return e=P(r||e.toLowerCase()),{get(){return(...i)=>{let a=t&&n.virtual(Te(on[e](...i)))||void 0,s=b(a?.node,Comment,Text,void 0)?"":Bn(a);return D.log(t?`JQx: created (virtual) instance from [JQx].${e} ${s}`:`JQx: ${e.toUpperCase()} is prohibited. Use [JQx].allowTag if necessary.`),a}},enumerable:!1,configurable:!0}}function xe(e,t,n,r){e=e.toLowerCase();let i=Tr(e,t,n,r);return r?{[r]:i,[we(r)]:i}:{[e]:i,[e.toUpperCase()]:i}}function wr(e){return vr(Object.entries(Q.tagsRaw).reduce(Or(e),{}),Ir(e))}function Or(e){return function(t,[n,r]){return Object.defineProperties(t,xe(n,r,e)),t}}function $r(e){return function(t,n,...r){b(n,Function)&&(r.push(n),n=void 0),e({type:t,selector:n,handlers:r})}}function Nr(e){return function(t){let{type:n,types:r,origin:i,selector:a,handler:s,handlers:m,node:g,name:x,capture:S,once:y,about:c}=t;s=m||s,n=r||n,a=i||a;let h=Kn(n),p=x;s=b(s,Function)?[s]:s;let d={type:h,selector:a||i,capture:S,name:p,once:y,node:g,about:c};switch(!0){case(b(h,Array)&&h.length>0):for(let o of h)d.type=o,qe(s,d,e);break;default:return qe(s,d,e)}}}function qe(e,t,n){for(let r of e)n.listen({...t,handler:r})}function Dr(e){return function(t,n){return n=$(n)&&n,t=$(t)&&t,n&&t&&e.listenerStore[t][n]}}function Er(e){return e.activePopup||Object.defineProperty(e,"activePopup",{value:Fn(e),enumerable:!1}),e.activePopup}function jr(e){let t=(m,g)=>Se(m,g),n=function(m){return Xe({createWithId:m||`jqx${rt()}`})},r=function(...m){for(let g of m)Se(g)},i=Sr(e),a=Zn(e),s=Nr(a);return{editCssRule:t,createStyle:n,editCssRules:r,allowProhibit:i,handle:s,capturedHandling:s,log:(...m)=>D.on.log(...m).off,warn:(...m)=>D.on.warn(...m).off,error:(...m)=>D.on.error(...m).off,handlerWrapper:a}}function Ir(e){let{factoryExtensions:t,instanceExtensions:n}=cr(e);be=t,K=n;let{editCssRule:r,createStyle:i,editCssRules:a,allowProhibit:s,handle:m,capturedHandling:g,log:x,warn:S,error:y,handlerWrapper:c}=jr(e),h=Dr(e),p=gr(e);return{log:x,warn:S,error:y,editCssRules:a,createStyle:i,editStylesheet:i,editCssRule:r,escHtml:G,logger:D,text(d,o=!1){return o?e.comment(d):document.createTextNode(d)},node(d,o=document){return o.querySelector(d,o)},nodes(d,o=document){return[...o.querySelectorAll(d,o)]},clearAllTimers:Wn,get staticFn(){return function(d,o,l){return p(d,o,l)}},get toBool(){return tr},get getNamedListener(){return h},get virtual(){return xr(e)},get allowTag(){return s.allow},get prohibitTag(){return s.prohibit},get removeCssRule(){return Ue},get removeCssRules(){return Ue},get delegate(){return $r(g)},get delegateCaptured(){return g},get handle(){return g},get listen(){return c.listen},get at(){return I},get setStyle(){return r},get fn(){return fr},get lenient(){return Q.allowUnknownHtmlTags},get IS(){return b},get Popup(){return Er(e)},get listenerStore(){return c.ListenerStore}}}var Cr=br(Ar());function Ar(){return function(e,t,n=I.BeforeEnd){if(e?.isJQx)return e;let r=b(t,HTMLBRElement);t=(!r&&t&&t.isJQx?t[0]:t)||document.body,n=n&&Object.values(I).find(g=>n===g)?n:void 0;let i=$e(e),a=!i&&it(e)||i,s={collection:nt(e)??[],isVirtual:r,isJQx:!0},m=Ne(s.collection);if(s.collection.length&&m)return r||s.collection.forEach(g=>{t.contains(g)||pe([g],t,n)}),X(s);if(a){if([e].flat().forEach(g=>s.collection.push(L(g))),s.collection.length>0){let g=s.collection.filter(y=>y?.dataset?.jqxcreationerror);s.collection=s.collection.filter(y=>!y?.dataset?.jqxcreationerror);let x=s.collection.map(y=>`${String(y.constructor).split(/function|\(/)[1].trim()}`).length>1;s=X(s);let S=s.collection.length>0?ir(s):"sanitized: no elements remaining";D.log(`JQx: created ${s.isVirtual?"(virtual)":""} instance from ${x?"array of ":""}HTML string${x?"s":""} ${S}`),s.isVirtual||pe(s.collection,t,n)}return s}return at(e,t,s),X(s)}}var A=Cr;var oe=Pr();function Pr(){let[e,t,n,r]=["2-digit","numeric","long","short"],i={fixed:{MM:{month:n},M:{month:r},m:{month:t},mm:{month:e},yyyy:{year:t},yy:{year:e},WD:{weekday:n},wd:{weekday:r},d:{day:t},dd:{day:e},h:{hour:t},hh:{hour:e},mi:{minute:t},mmi:{minute:e},s:{second:t},ss:{second:e},ms:{fractionalSecondDigits:3},tz:{timeZoneName:"shortOffset"},dl:{locale:"default"},h12:{hour12:!1},yn:{yearName:""},ry:{relatedYear:!0},msp:{fractionalSecond:!0}},dynamic:{tzn:c=>({timeZoneName:c.slice(4)}),hrc:c=>({hourCycle:`h${c.slice(4)}`}),ds:c=>({dateStyle:c.slice(3)}),ts:c=>({timeStyle:c.slice(3)}),tz:c=>({timeZone:c.slice(3)}),e:c=>({era:c.slice(2)}),l:c=>({locale:c.slice(2)})}},a={...i,retrieveDyn(c){let h=c?.slice(0,c.indexOf(":"));return i.dynamic[h]&&i.dynamic[h](c)},get re(){return new RegExp(`\\b(${Object.keys(i.fixed).join("|")})\\b`,"g")}},s=(c="dtf",h=0)=>{let p=` ${c.replace(/(?<=\{)(.+?)(?=})/g,o=>`[${h++}]`).replace(/[{}]/g,"").trim()} `,d=c.match(/(?<=\{)(.+?)(?=})/g)||[];return{get texts(){return d},formatString(o){p=o},set formatStr(o){p=o},get formatStr(){return p},get units(){return p.match(a.re)||[]},finalize(o="",l="",u="",f=""){return p.replace(/~([\d+]?)/g,"$1").replace(/dtf/,o).replace(/era/,u).replace(/dp\b|~dp\b/,l).replace(/yn\b/,f).replace(/\[(\d+?)]/g,(v,N)=>d[N].trim()).trim()}}},m=c=>c.replace(/\s+/g,""),g=(...c)=>c?.reduce((h,p)=>({...h,...a.retrieveDyn(p)||a.fixed[p]}),a.fixed.dl),x=(c,h,p)=>{let d=g(...m(p).split(",")),o=Intl.DateTimeFormat(d.locale,d).format(c);return h.finalize(o)},S=(c,h,p,d)=>c.toLocaleString(h,{timeZone:p,month:d?r:n}),y=(c,h,p)=>{let d=g(...h.units.concat(m(p).split(",")).flat()),o={...a.fixed},l=(f,v)=>d[f]==="numeric"&&v.startsWith("0")?v.slice(1):v,u=Intl.DateTimeFormat(d.locale,d).formatToParts(c).reduce((f,v)=>v.type==="literal"&&/[ ,/-]/.test(v.value)?f:{...f,[v.type]:l(v.type,v.value)},{});return o.ms=d.fractionalSecondDigits?o.msp:o.ms,o.yyyy=u.relatedYear?o.ry:o.yyyy,h.formatStr=h.formatStr.replace(a.re,f=>/^(M|MM)$/.test(f)?S(c,d.locale,d.timeZone,/^M$/.test(f)):u[Object.keys(o[f]).shift()]||f),h.finalize(void 0,u.dayPeriod,u.era,u.yearName)};return(c,h,p="l:default")=>/ds:|ts:/.test(p)?x(c,s(void 0),p):y(c,s(h||void 0),p)}var Lr=kr;function kr(){let e=(r,i)=>{let a=isNaN(new Date(r)),s=isNaN(new Date(i));if(s){let[m,g,x]=Array(3).fill("end date not valid");return{error:!0,message:m,full:g,clean:x}}if(a){let[m,g,x]=Array(3).fill("start date not valid");return{error:!0,message:m,full:g,clean:x}}if(a&&!s){let[m,g,x]=Array(3).fill("start- and/or end date are not valid");return{error:!0,message:m,full:g,clean:x}}return{error:!1}},t=n();return function({start:r,end:i,diffs:a={}}={}){let s=e(r,i),m=i>r?"+":"-";if(s.error)return s;let g=Math.abs(r-i),x=new Date(g),S=x.getUTCFullYear()-1970,y=x.getUTCMonth(),c=x.getUTCDate()-1,h=c%7,p=Math.floor(c/7),d=x.getUTCHours(),o=x.getUTCMinutes(),l=x.getUTCSeconds(),u=x.getUTCMilliseconds(),f=Math.floor(g/864e5);a={...a,fromUTC:r,toUTC:i,sign:"",years:S,months:y,days:c,hours:d,minutes:o,seconds:l,milliseconds:u,diffInDays:f},a.full=t({values:a,full:!0}),a.clean=t({values:a}),a.equalDates=a.clean==="Dates are equal";let v=d+o+l>0?"T":"";return a.clean!=="Dates are equal"&&(a.sign=m,a.jsPeriod=`${m}P${S>0?`${S}Y`:""}${y>0?`${y}M`:""}${p>0?`${p}W`:""}${h>0?`${h}D`:""}${v}${d>0?`${d}H`:""}${o>0?`${o}M`:""}${l>0?`${l}S`:""}`,a.ISOPeriod=`P${S>0?`${S}Y`:""}${y>0?`${y}M`:""}${c>0?`${c}D`:""}${v}${d>0?`${d}H`:""}${o>0?`${o}M`:""}${l>0?`${l}S`:""}`),a};function n(){let r=(...a)=>s=>a.reduce((m,g)=>g(m),s),i=(a,s)=>a===1?s.slice(0,-1):s;return r(({values:a,full:s})=>[Object.entries(a).filter(([m])=>/^(years|month|days|hours|minutes|seconds)/i.test(m)),s],([a,s])=>s?a:a.filter(([,m])=>s?+m:m>0),a=>a.reduce((s,[m,g])=>[...s,`${g} ${i(g,m)}`],[]),a=>a.length<1?"Dates are equal":`${a.slice(0,-1).join(", ")}${a.length>1?" and ":""}${a.slice(-1).shift()}`)}}var Mr=Fr;function Fr(){let e=Object.entries({year:"FullYear",month:"Month",date:"Date",day:"Date",hour:"Hours",minute:"Minutes",second:"Seconds",millisecond:"Milliseconds"}).reduce((r,[i,a])=>({...r,[i]:a,[`${i}s`]:a}),{}),t=!1,n=function(...r){let i=r.length===1;return t=r[0].trim().startsWith("subtract,"),t&&(r=i?r[0].trim().replace(/^subtract,/i,"").split(",").map(a=>a.trim()):r.filter(a=>!a.startsWith("subtract"))),i&&!t&&(r=r[0].split(",").map(a=>a.trim())),r.map(function(a){if(!a)return!1;let s=a.toLowerCase().split(/ {1,}/);return s.length<2?!1:s.map(m=>{m=`${m}`.trim().replace(/[^a-z0-9-+]/g,"");let g=parseInt(m,10);return Number.isNaN(g)?m:t?-g:+g})}).filter(a=>a)};return function(r,...i){if(i.length<1)return r;let a=n(...i);return a.length&&a.forEach(([s,m])=>{m=m,m=e[m],s&&m&&r[`set${m}`](r[`get${m}`]()+s)}),r}}var Tt=Lr(),wt=qr(),C=Mr(),Zr=["sun","mon","tue","wed","thu","fri","sat"],Ot=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];function lt(e,...t){return C(e,...t),e}function zr(e,t=!1){let n=$t(e.clone,{sunday:t}),r=[n];return{weekStart:n.format("WD","l:en-GB"),inputDate:e,dates:r.concat([...Array(6)].map((i,a)=>n.clone.addDays(a+1)))}}function De(e,{start:t,end:n,future:r,past:i,include:a={start:!1,end:!1}}={}){let s=e.clone.UTC;return t=t?.value||t?.constructor===Date?w(t?.value||t).UTC:w.now.UTC,n=n&&n?.value||n?.constructor===Date?w(n?.value||n).UTC:w.now.UTC,s.milliseconds=0,t.milliseconds=0,n.milliseconds=0,r?t>n:i?t<n:(a.start?+s>=+t:+s>+t)&&(a.end?+s<=+n:+s<+n)}function st(e,{zoneTime:t=!1,formatStr:n,moreOptions:r}={}){return r=t?e.localeInfo.formatOptions+(r?`,${r}`:""):O.formatOptions+(r?`,${r}`:""),t?(e.localeInfo||(e.localeInfo=O),oe(e,n,r)):Rr(e,n,r)}function Rr(e,t,n){let r=e.clone.relocate(O);return n=(n||"").startsWith("+")?`${r.localeInfo.formatOptions},${n.slice(1)}`:n||r.localeInfo.formatOptions,oe(r,t,n)}function Hr(e,t){let n=Tt({start:e,end:t||e});return parseInt(`${n.sign}${n.diffInDays}`)}function ut(e,t=!1){let{locale:n,timeZone:r}=t?e.localeInfo:O,i=Ft(n,r),a=e.format("MM|WD",i).split("|");return{locale:n,timeZone:r,monthName:a[0],dayName:a[1],dayNames:kt(n),monthNames:Ae(n)}}function ct(e,t=!1){let[n,r,i,a]=Ee(e,t),s={values4Timezone:t?O.timeZone:e.timeZone,hours:n,minutes:r,seconds:i,milliseconds:a};return Object.freeze(s)}function Ee(e,t=!1){let n=`l:en-CA,${t?`tz:${O.timeZone}`:`tz:${e.timeZone}`},hrc:23,ts:medium`;return e.format("",n).split(/:/).map(Number).concat(e.getMilliseconds())}function mt(e,t){let n=t?`tz:${O.timeZone}`:`,tz:${e.timeZone}`,[r,i,a]=e.format("yyyy-mm-dd",n).split(/-/).map(Number);i-=1;let s=t?O.timeZone:e.timeZone;return Object.freeze({values4Timezone:s,year:r,month:i,date:a})}function dt(e,t=!0){if(t)return[e.getFullYear(),e.getMonth(),e.getDate()];let n=e.format("yyyy-m-d",e.localeInfo.formatOptions).split(/-/).map(Number);return n[1]-=1,n}function Wr(e){let t=new Intl.Locale(e.localeInfo.locale),n=t.getWeekInfo&&t.getWeekInfo().firstDay||1;return n=n===7?0:n,Ot[n]}function $t(e,{sunday:t=!1}={}){let n=t?"sunday":Wr(e);return je(e,{day:n,preserveTodayWhenEqual:!0})}function Jr(e,t){let n=e.toString().match(/GMT([+-])\d+/)?.[0]?.slice(3)??"+0000",r=t.toString().match(/GMT([+-])\d+/)?.[0]?.slice(3)??"+0000";return n=Ie(n.slice(0,3)+":"+n.slice(-2),!0),r=Ie(r.slice(0,3)+":"+r.slice(-2),!0),[-n[0]+r[0],-n[1]+r[1]].map(i=>n[0]<0?-i:i)}function Nt({start:e,end:t}={}){t||(t=e.clone),t?.clone||(t=w(t,{timeZone:e.timeZone})),e=w(gt(e,e.timeZone),{timeZone:e.timeZone}),t=w(gt(t,t.timeZone),{timeZone:t.timeZone});let n=Tt({start:e,end:t,diffs:{timeZoneStart:e.timeZone,timeZoneEnd:t.timeZone}}),r=Jr(t,e),i=n.sign.startsWith("-")?"ahead of":"behind",[a,s]=r.map(x=>Math.abs(x)),[m,g]=[`${a} ${ie(a,"hour")}`,`${s} ${ie(s,"minute")}`];return n.timeZonesOffsetDifference=n.sign.length<1||a+s===0?`Offsets of ${e.timeZone} and ${t.timeZone} are equal`:`${e.timeZone} is ${m}${s>0?` and ${g}`:""} ${i} ${t.timeZone}`,n}function ft(e,t){t=String(t).toLowerCase()==="utc"||t.timeZone==="UTC"?e.clone.relocate({timeZone:"UTC"}):w(e.value,{timeZone:t.timeZone||O.timeZone});let n=Nt({start:e.clone,end:t}),r=`${n.sign}${yt(n.hours)}:${yt(n.minutes)}`;return{fromTZ:e.timeZone,toTZ:t.timeZone,offset:r,offsetText:`${t.timeZone} ${Br(r)} ${e.timeZone}`}}function yt(e,t=2){return`${e}`.padStart(t,"0")}function ie(e,t){return`${t}${e>1||e===0?"s":""}`}function Br(e){if(/00:00/.test(e))return"no time diffence to";let t=e.slice(1).split(":").map(Number),[n,r]=t,i=ie(n,"hour"),a=ie(r,"minute"),s=e.startsWith("+");return r>0?`${n} ${i} and ${r} ${a} ${s?"ahead of":"behind"}`:`${n} ${i} ${s?"ahead of":"behind"}`}function pt(e,t,n){return e.clone.format(t,n||e.localeInfo.formatOptions)}function Yr(e,{withFormat:t,withFormatOptions:n,local:r=!1}={}){if(t)return r?pt(e,t,$D.localeInformation.formatOptions):pt(e,t,n);let i=e.clone.relocate({locale:"en"}),a=r?O.formatOptions:i.localeInfo.formatOptions,s=`wd M dd yyyy hh:mmi:ss ${i.format("tz",a+",tzn:longOffset").replace(":","")} (tz)`;return i.format(s,a+",tzn:long, hrc:23")}function Dt(e,t=!1){let n=Intl.DateTimeFormat("en",{timeZone:t?e.timeZone:O.timeZone,weekday:"short"});return wt(n.format(e))}function Qr(e){let t=O,n=e.localeInfo,r=e.clone.relocate({locale:t.locale,timeZone:t.timeZone}),i=e.offsetFrom(r),a=r.offsetFrom(e),s=t,m=n,g=e.format("hh:mmi:ss dp",`hrc:12,tz:${e.timeZone}`),x=r.format("hh:mmi:ss dp",`hrc:12,tz:${r.timeZone}`),S={note:"'user' are values for your locale/timeZone, 'remote' (if applicable) idem for the instance",locales:{user:{locale:s.locale,timeZone:s.timeZone}},dateTime:{user:{...e.dateTime,monthName:r.monthName,weekdayNr:r.day,weekdayName:r.dayName,dayPeriodTime:x,hasDST:r.hasDST,DSTActive:r.DSTActive,offsetFromRemote:i.offset,string:r.toString()}},offset:{fromUTC:e.UTC.offsetFrom(e).offsetText}};return n.timeZone!==t.timeZone&&(S.locales.remote={locale:m.locale,timeZone:m.timeZone},S.dateTime.remote={...e.zoneDateTime,monthName:e.zoneNames.monthName,weekdayNr:Dt(e,!0),weekdayName:e.zoneNames.dayName,dayPeriodTime:g,hasDST:e.hasDST,DSTActive:e.DSTActive,offsetFromUser:a.offset,string:e.toString()},S.offset.fromUserTime=a.offsetText),S}function ee(e,t=!0){if(t)return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()];let n=e.format("yyyy-m-d-hh-mmi-ss",`${e.localeInfo.formatOptions},hrc23:true`).split(/-/).map(Number).concat(e.getMilliseconds());return n[1]-=1,n}function Et(e){return new Date(e.year,e.month+1,0,0,0,0).getDate()}function jt(e,t){t=E({locale:t||e.localeInfo.locale}).locale;let n=e.clone.relocate({locale:t});return n.date={date:1},[n].concat([...Array(Et(n)-1)].map((r,i)=>n.clone.add(`${i+1} days`)))}function je(e,{day:t,next:n=!1,preserveTodayWhenEqual:r=!1}={}){t=t?.toLowerCase()||"-";let i=wt(t);if(i<0)return console.error(`[TickTock instance].next/previous invalid day value ${t}`),e.clone;let a=n?1:-1,s=w(new Date(...e.dateTimeValues),e.localeInfo);return r&&i===s.day?s:Ur(s.addDays(n?1:-1),i,a)}function Ur(e,t,n){function r(i){switch(!0){case i.day===t:return i;default:return r(i.add(`${n} days`))}}return r(e)}function te(e,{dateOnly:t=!1,timeOnly:n=!1}={}){let{locale:r,timeZone:i}=e.localeInfo;return t?new Date(e).toLocaleDateString(r,{timeZone:i}):n?new Date(e).toLocaleTimeString(r,{timeZone:i}):new Date(e).toLocaleString(r,{timeZone:i})}function gt(e,t){let n={timeZone:t,hourCycle:"h23"};return new Date(new Date(e).toLocaleString("en",n))}function U(e,{year:t,month:n,date:r}={}){return j(t)&&e.setFullYear(parseInt(t)),j(r)&&e.setDate(parseInt(r)),j(n)&&e.setMonth(parseInt(n)),e}function z(e,{hours:t,minutes:n,seconds:r,milliseconds:i}={}){return j(t)&&e.setHours(parseInt(t)),j(n)&&e.setMinutes(parseInt(n)),j(r)&&e.setSeconds(parseInt(r)),j(i)&&e.setMilliseconds(parseInt(i)),e}function It(e){return e?.constructor===Date||e?.value}function ht(e,t){return It(t)?w(t?.value||t,e.localeInfo):w.from(...e.dateTimeValues).relocate(e.localeInfo)}function qr(){return function(e){e=`${e}`.toLowerCase();let t=Zr.indexOf(e);return t<0?Ot.indexOf(e):t}}function Ie(e){let t=e.slice(1).split(/[-:]/).map(Number),n=e.startsWith("-");return t=t.map(r=>n?-r:r),t}function Vr(e){return e.time={hours:0,minutes:0,seconds:0,milliseconds:0},e}function bt(e,t){return Intl.DateTimeFormat("en-CA",{timeZone:t,timeZoneName:"long"}).format(e).split(/,/)[1].trim()}function Ct(e,t){t=t||e?.timeZone||O.timeZone,e=e?.value?e:e?.constructor===Date?w(e,{timeZone:t}):w({timeZone:t});let n=e.year||e.getFullYear(),r=bt(new Date(n,0,1),t),i=bt(new Date(n,5,1),t);return r!==i}function At(e,t){return t=t||e?.timeZone||O.timeZone,e=e?.hasDST?e:e?.constructor===Date?w(e,{timeZone:t}):w({timeZone:t}),e.hasDST?!/standard/i.test(e.toString()):!1}function _r(e,{locale:t,timeZone:n,l:r,tz:i}={}){return e.localeInfo=E({locale:r||t||e.l||e.locale,timeZone:i||n||e.tz||e.timeZone}),e}function Xr(e,t){return It(t)&&(e=w(t.value||t,t.localeInfo||e.localeInfo)),e}function Ce(e,t){let n=Pt(new Date(e,11,t||31));return n===1?Ce(e,(t||31)-1):n}function St(e,t){let n=e.month;switch(!0){case n<3:return t?1:"First";case n<6:return t?2:"Second";case n<9:return t?3:"Third";case n<12:return t?4:"Fourth";default:return"unknown"}}function Pt(e){let t=new Date(e),n=(t.getDay()+6)%7;t.setDate(t.getDate()-n+3);let r=t.valueOf();return t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((r-t)/6048e5)}var Lt=Gr;function Gr({localeInfo:e,customMethods:t,dateValue:n}={}){let r,i={add(...a){return lt(r,...a)},between({start:a,end:s,include:m}={}){return De(r,{start:a,end:s,include:m})},cloneWith(a){return ht(r,a)},daysUntil(a){return Hr(r,a)},differenceTo(a){return Nt({start:r,end:a})},differenceUntil(a){return r.differenceTo(a).clean},firstWeekday({sunday:a=!1,midnight:s=!1}={}){return $t(r,{sunday:a,midnight:s})},format(a,s){return st(r,{formatStr:a,moreOptions:s})},fullMonth(a){return jt(r,a)},fullWeek(a=!1){return zr(r,!!a)},isFuture(a){return De(r,{start:r,end:a,future:!0})},isPast(a){return De(r,{start:r,end:a,past:!0})},next(a,s){return je(r,{day:a,next:!0,preserveTodayWhenEqual:!!s})},offsetFrom(a){return ft(r,a)},previous(a,s){return je(r,{day:a,next:!1,preserveTodayWhenEqual:!!s})},relocate({locale:a,timeZone:s,l:m,tz:g}={}){return _r(r,{locale:a,timeZone:s,l:m,tz:g})},revalue(a){return r=Xr(r,a),r},setDateValues({year:a,month:s,date:m}={}){return U(r,{year:a,month:s,date:m})},setTimeValues({hours:a,minutes:s,seconds:m,milliseconds:g}={}){return z(r,{hours:a,minutes:s,seconds:m,milliseconds:g})},subtract(...a){return lt(r,"subtract,"+a.join(","))},toArray(a=!1){return ee(r,a)},toString({template:a,formatOptions:s,local:m}={}){return Yr(r,{withFormat:a,withFormatOptions:s,local:m})},values(a=!1){return a?r.dateTime:r.zoneDateTime},zoneFormat(a,s){return st(r,{zoneTime:!0,formatStr:a,moreOptions:s})},set date({year:a,month:s,date:m}){U(r,{year:a,month:s,date:m})},set dateNr(a){U(r,{date:a})},set hours(a){z(r,{hours:a})},set localeInfo({locale:a,timeZone:s,l:m,tz:g}){e=ne({locale:a,timeZone:s,l:m,tz:g})},set milliseconds(a){z(r,{milliseconds:`${a}`})},set minutes(a){z(r,{minutes:a})},set month(a){U(r,{month:a})},set seconds(a){z(r,{seconds:a})},set time({hours:a,minutes:s,seconds:m,milliseconds:g}){z(r,{hours:a,minutes:s,seconds:m,milliseconds:g})},set year(a){U(r,{year:a})},get age(){return r.differenceTo(new Date).years},get ageFull(){return r.differenceTo(new Date).clean},get clone(){return ht(r)},get date(){return mt(r,!0)},get dateNr(){return r.date.date},get dateTime(){return{...r.date,...r.time}},get dateTimeValues(){return ee(r,!0)},get dateValues(){return dt(r,!0)},get day(){return r.getDay()},get dayName(){return r.names.dayName},get daysThisMonth(){return Et(r)},get DSTActive(){return At(r)},get hasDST(){return Ct(r)},get hours(){return r.time.hours},get info(){return Qr(r)},get isLeapYear(){return new Date(r.getFullYear(),2,0).getDate()===29},get ISO(){return r.toISOString()},get local(){return te(r)},get localDate(){return te(r,{dateOnly:!0})},get locale(){return(e||ne()).locale},get localeInfo(){return e},get localeString(){return te(r)},get localTime(){return te(r,{timeOnly:!0})},get milliseconds(){return r.getMilliseconds()},get minutes(){return r.time.minutes},get month(){return r.date.month},get monthName(){return r.names.monthName},get names(){return ut(r)},get quarter(){return St(r)},get quarterNr(){return St(r,!0)},get removeTime(){return Vr(r)},get seconds(){return r.time.seconds},get time(){return ct(r,!0)},get timeValues(){return Ee(r,!0)},get timeZone(){return(e||ne()).timeZone},get unixEpochTimestamp(){return Math.floor(+r/1e3)},get userLocaleInfo(){return O},get UTC(){return r.clone.relocate({locale:r.locale,timeZone:"UTC"})},get UTCOffset(){return ft(r,"UTC")},get value(){return new Date(r)},get weeknr(){return Pt(r)},get weeksInYear(){return Ce(r.year,31)},get year(){return r.date.year},get zoneDate(){return mt(r,!1)},get zoneDateNr(){return r.zoneDate.date},get zoneDateTime(){return{...r.zoneDate,...r.zoneTime}},get zoneDateTimeValues(){return ee(r,!1)},get zoneDateValues(){return dt(r,!1)},get zoneDay(){return Dt(r,!0)},get zoneDayname(){return r.zoneNames.dayName},get zoneHours(){return r.zoneTime.hours},get zoneMinutes(){return r.zoneTime.minutes},get zoneMonth(){return r.zoneDate.month},get zoneMonthname(){return r.zoneNames.monthName},get zoneNames(){return ut(r,!0)},get zoneSeconds(){return r.zoneTime.seconds},get zoneTime(){return ct(r)},get zoneTimeValues(){return Ee(r)},get zoneYear(){return r.zoneDate.year},get zoneValues(){return r.zoneDateTime},get zoneArray(){return ee(r,!1)}};return!e&&!n?i:(i.localeInfo=e||ne(),r=new Proxy(n,Kr(i)),Object.entries(Object.getOwnPropertyDescriptors(Zt(r,t))).forEach(([a,s])=>Object.defineProperty(i,a,s)),Object.freeze(r))}function Kr(e){return{get(t,n){return n!=="toString"&&n in t?t[n].bind(t):Reflect.get(e,n)},set(t,n,r){return n in e&&Reflect.set(e,n,r)}}}var O=Mt(Intl.DateTimeFormat().resolvedOptions()),eo=Object.getOwnPropertyNames(Date.prototype).filter(e=>e.startsWith("set")).reduce((e,t)=>[...e,{native:t,syn:"change"+t.slice(3)}],[]);function kt(e="en-GB"){return e=E({locale:e}).locale,{long:[...Array(7).keys()].map(t=>new Date(Date.UTC(1970,0,4+t)).toLocaleDateString(e,{timeZone:"Etc/UTC",weekday:"long"})),short:[...Array(7).keys()].map(t=>new Date(Date.UTC(1970,0,4+t)).toLocaleDateString(e,{timeZone:"Etc/UTC",weekday:"short"}))}}function Ae(e="en"){return e=E({locale:e}).locale,{long:[...Array(12).keys()].map(t=>new Date(Date.UTC(1970,t,1)).toLocaleDateString(e,{timeZone:"Etc/UTC",month:"long"})),short:[...Array(12).keys()].map(t=>new Date(Date.UTC(1970,t,1)).toLocaleDateString(e,{timeZone:"Etc/UTC",month:"short"}))}}function to({year:e,locale:t}={}){e=j(e)?parseInt(e):new Date().getFullYear();let n={year:e,calendar:{}},r=Ae().long.map(i=>i.toLowerCase());for(let i=0;i<12;i+=1){let a=w.from(e,i,1);n.calendar[r[i]]=jt(a,t)}return n}function no({year:e,monthNr:t,locale:n="en-CA"}={}){e=j(t)&&parseInt(e)||-1,t=j(t)&&parseInt(t)||new Date().getFullYear();let r=t>=1&&t<=12;return n=E({locale:n}).locale,t=r?t-1:void 0,r?w.from(e,t,1).relocate({locale:n}).fullMonth(n):"MonthNr should be a specific number (1 = january - 12 = december)"}function Mt(e){let t=Ft(e.locale,e.timeZone),n=new Intl.Locale(e.locale);return e.weekInfo=n.getWeekInfo?n.getWeekInfo():null,Object.defineProperty(e,"formatOptions",{value:t,enumerable:!1})}function Ft(e,t){return[`${e&&!(Array.isArray(e)&&e.length<1)?`l:${e}`:""}`,`${t?`tz:${t}`:""}`].filter(n=>n).join(",")}function E({locale:e,timeZone:t,l:n,tz:r}={}){return t=t||r,e=e||n,e=vt({trial:function(){return Intl.DateTimeFormat(e,{timeZone:O.timeZone}).resolvedOptions().locale},onError:function(){return console.warn(`Intl locale "${e}" best fit impossible, using "${O.locale}"`),O.locale}}),t=vt({trial:function(){return Intl.DateTimeFormat(e,{timeZone:t}).resolvedOptions().timeZone},onError:function(){return console.warn(`timeZone "${t}" not valid. Using "${O.timeZone}"`),O.timeZone}}),Mt(Intl.DateTimeFormat(e,{timeZone:t}).resolvedOptions())}function ne({locale:e,timeZone:t,l:n,tz:r}={}){return E({locale:e,timeZone:t,l:n,tz:r},!0)}function xt(e){return!Number.isNaN(+e)&&e?.constructor===Date&&!e?.toISOString?.().startsWith("1970-01-01T00:00:00")?e:new Date}function ro(e){let t=new Date;switch(!0){case e?.constructor===String:return xt(new Date(e));case(Array.isArray(e)&&e.map(Number).length===e.length):return e.length===1?new Date(e[0],0,1):new Date(...e);case e?.constructor===Date:return xt(e);default:return t}}function vt({trial:e,onError:t=()=>{}}={}){if(e?.constructor===Function)try{return e()}catch(n){return t?.constructor===Function?t(n):void 0}}function oo({timeZoneDate:e,timeZoneID:t,userTimeZoneID:n}={}){let r={timeZone:E({timeZone:t}).timeZone},i={timeZone:E({timeZone:n||""}).timeZone},a=w(e,r),s=w(e,i),m=s.differenceTo(a),g=a.offsetFrom(s).offset,[x,S]=Ie(g,!0),y=s.clone.add(`${x} hours, ${S} minutes`),c=m.equalDates?"No difference":`Time offset ${g}: ${i.timeZone} is ${m.clean} ${x<0?"behind":"ahead of"} ${r.timeZone}`;return{remoteTimezone:r.timeZone,userTimezone:i.timeZone,timeDifference:c,result:{[r.timeZone.replace(/\//,"_")]:w(e).toString({template:"yyyy/mm/dd hh:mmi:ss",formatOptions:"hrc:23"}),[i.timeZone.replace(/\//,"_")]:y.toString({template:"yyyy/mm/dd hh:mmi:ss",formatOptions:"hrc:23"})}}}function j(e){return!Number.isNaN(parseInt(e))}function re(e,t,n){return e?.constructor===Number?C(t,`${e} ${n}`):t}function io(e){let t={addYears(n=1){return re(n,e,"years")},addMonths(n=1){return re(n,e,"months")},addWeeks(n=1){return n=n?.constructor===Number?n*7:1,re(n,e,"days")},addDays(n=1){return re(n,e,"days")},get nextYear(){return C(e,"1 year")},get nextWeek(){return C(e,"7 days")},get previousWeek(){return C(e,"-7 days")},get previousYear(){return C(e,"-1 year")},get nextMonth(){return C(e,"1 month")},get previousMonth(){return C(e,"-1 month")},get tomorrow(){return C(e,"1 day")},get yesterday(){return C(e,"-1 day")}};for(let n of eo)t[n.syn]=function(...r){return e[n.native](...r),e};return t}function Zt(e,t){let n=io(e);for(let[r,i]of Object.entries(t||{})){let a=i.enumerable,s=i.isGetter?{get(){return i.method(e)},enumerable:a}:{value(...m){return i.method(e,...m)},enumerable:a};Object.defineProperty(n,r,s)}return n}function ao(e,t){return Object.defineProperties(e,{now:{get(){return e(new Date)}},localeInformation:{get(){return E()}},localWeekdaynames:{value(n){return kt(n)}},localMonthnames:{value(n){return Ae(n)}},daysInMonth:{value(n,r=!1){return n=j(n)?parseInt(n):0,n>=1&&n<=12?new Date(r?2e3:2005,n,0).getDate():`${n} should be a Number between (1 (january) - 12 (december))`}},yearCalendar:{value:to},monthCalendar:{value:no},from:{value(...n){return e(n)}},fromUxTS:{value(n,r){n=j(n)?parseInt(n)*1e3:void 0;let i=n?new Date(n):new Date;return w(i,r||O)}},hasDST:{value({date:n,timeZone:r}={}){return Ct(n,r)}},DSTActive:{value({date:n,timeZone:r}={}){return At(n,r)}},values:{value({date:n,timeZone:r}={}){n=n||n?.value||new Date;let i=oe(n,"yyyy-m-d-h-mi-s",E({timeZone:r}).formatOptions.concat(",hrc:23")).split("-").map(Number).concat(n.getMilliseconds());return i[1]-=1,i}},format:{value({date:n,template:r,timeZone:i,locale:a,opts:s}={}){n=n||n?.value||new Date,r=r?.constructor===String?r:"yyyy/mm/dd hh:mmi:ss dp";let m=E({timeZone:i,locale:a}).formatOptions;return m+=s?`,${s}`:"",oe(n,r,m)}},addCustom:{value({name:n,method:r,enumerable:i=!1,isGetter:a=!1}={}){n?.constructor===String&&r?.constructor===Function&&r.length>0&&(t[n]={method:r,enumerable:i,isGetter:a})}},validateLocaleInformation:{value:E},timeAcrossZones:{value:oo},weeksInYear:{value(n){return Ce(n,31)}},keys:{get(){let n=Object.fromEntries(Object.entries(t).filter(([r,i])=>i.enumerable===!0));return[...Object.keys(Lt()),...Object.keys(Zt()),...Object.keys(n)].sort((r,i)=>r.localeCompare(i))}}}),e}var zt={},w=ao(lo,zt);function lo(e,t){if(e?.localeInfo)return e.clone;let n=e?.locale||e?.timeZone||e?.tz||e?.l;return Lt({localeInfo:E(n?e:t),dateValue:new Date(n?Date.now():ro(e)),customMethods:zt})}var Rt=Object.defineProperties(Ht,{escape:{value:ho,enumerable:!0}});function Ht(e,...t){let{flags:n,cleanedArgs:r}=uo(...t);return mo(new RegExp(bo(so(e,...r)),n))}function so(e,...t){return R(t)?e.raw.reduce((n,r,i)=>n.concat(t[i-1]||"").concat(r),""):e.raw.join("")}function uo(...e){let t=Pe(co(e.at(-1)));return{flags:t,cleanedArgs:R(t)?e.slice(0,-1):e}}function co(e){return ae(e,Array)?e.join(""):""}function mo(e){let t=new Proxy(Object.defineProperties({},{re:{get(){return e},enumerable:!1},toString:{value:()=>e.toString(),enumerable:!1},valueOf:{value:()=>e,enumerable:!1},flags:{value(n){return e=go(n,e),t},enumerable:!1},clone:{get(){return po(t)},enumerable:!1}}),yo(e));return t}function R(e){return e?.length>0}function ae(e,t){return e?.constructor===t}function fo(e,t,n){let r=Reflect.get(n,t);return{fromInstance:Reflect.get(e,t),fromRegExpMethod:ae(r,Function)?r.bind(e.re):e.re[t]}}function yo(e){return{get(t,n){let{fromInstance:r,fromRegExpMethod:i}=fo(t,n,e);switch(!0){case!!r:return r;default:return i}}}}function po(e){let t=e.re.source,n=R(e.re.flags)?[...e.re.flags]:[];return Ht`${t} ${n}`}function Pe(e,t){return t=(t??"").replace(/^-r\|/,""),e=t.concat(ae(e,String)&&R(e)?e:""),[...new Set([...e])].join("").replace(/[^dgimsuvy]/g,"")}function go(e,t){switch(!0){case(!ae(e,String)||!R(e)):return t;case e==="-r":return t=new RegExp(t.source);case e.startsWith("-r|"):return t=new RegExp(t.source,Pe(e));default:return t=new RegExp(t.source,Pe(t.flags,e))}}function ho(e){switch(!0){case(e?.constructor!==String||!R(e)):return"";case!!RegExp.escape:return RegExp.escape(e);default:return(`\\x${e.at(0)}`+e.slice(1).replace(/\p{S}|\p{P}/gu,t=>`\\${t}`)).replace(/ |\\x /g,"\\x20")}}function bo(e){return e.replace(/\/\*(?:[^*]|\*+[^*\/])*\*+\/|(?<!:|\\\|')\/\/.*/gm,"").replace(/\s/g,"").trim().replace(/<!([^>]\d+)>/g,(t,n)=>String.fromCharCode(+n)??t)}var{IS:k,maybe:Le,$Wrap:Bo,isNothing:So,xProxy:Yo,addSymbolicExtensions:Qo}=xo({useSymbolicExtensions:!1});function xo(e={}){let{useSymbolicExtensions:t}=e,{shouldbeIsSingleObject:n,ISOneOf:r,isExcept:i,verifyNothingness:a,xProxy:s,determineType:m,addSymbolicExtensions:g,maybe:x,$Wrap:S}=vo(y,t);return t&&g(),{IS:y,maybe:x,$Wrap:S,isNothing:a,xProxy:s,addSymbolicExtensions:g};function y(c,...h){let p=typeof c=="symbol"?Symbol.isSymbol:c;switch(!0){case!!x({trial:d=>"isTypes"in(h?.[0]??{})}):return n(c,h[0]);default:return h.length>1?r(p,...h):m(c,...h)}}}function vo(e,t){let{SymbolAndCustomProxyFactory:n,maybeFactory:r,WrapAnyFactory:i,verifyNothingness:a,determineType:s}=To(e,y),{xProxy:m,addSymbolicExtensions:g}=n(e,y,t),[x,S]=[r(),i(e,y)];return Object.freeze({shouldbeIsSingleObject:c,ISOneOf:h,isExcept:d,verifyNothingness:a,xProxy:m,determineType:s,addSymbolicExtensions:g,maybe:x,$Wrap:S});function y(o){return o?.[Symbol.proxy]??e(o)}function c(o,l){switch(!0){case"defaultValue"in l:return p(o,l);case"notTypes"in l:return d(o,l);default:return e(o,...[l.isTypes].flat())}}function h(o,...l){return l.some(u=>e(o,u))}function p(o,{defaultValue:l,isTypes:u=[void 0],notTypes:f}={}){return u=u?.constructor!==Array?[u]:u,f=f&&f?.constructor!==Array?[f]:[],f.length<1?e(o,...u)?o:l:d(o,{isTypes:u,notTypes:f})?o:l}function d(o,{isTypes:l=[void 0],notTypes:u=[void 0]}={}){return l=l?.constructor!==Array?[l]:l,u=u?.constructor!==Array?[u]:u,e(o,...l)&&!e(o,...u)}}function To(){let e={IS:"toa.is",TYPE:"toa.type",IS_SYMBOL:"toa.isASymbol",PROXY:"toa.proxy"},t={NAN:"NaN",INFINITY:"Infinity",BOOLEAN:"Boolean",OBJECT:"Object",PROXY_PREFIX:"Proxy ("};return Object.freeze({SymbolAndCustomProxyFactory:r,maybeFactory:p,WrapAnyFactory:h,verifyNothingness:d,determineType:g});function n(o,l){Symbol.is||(Symbol.is=Symbol.for(e.IS),Symbol.type=Symbol.for(e.TYPE),Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return l(this)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(...u){return o(this,...u)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(u){return l(u)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(u,...f){return o(u,...f)},enumerable:!1,configurable:!1}}))}function r(o,l,u){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for(e.IS_SYMBOL)),{xProxy:s(),addSymbolicExtensions:()=>n(o,l)}}function i(o){return(So(o,!0)?{name:"unknown"}:Object.getPrototypeOf(o)?.constructor).name}function a(o,l){return Proxy=new o(o,{construct(u,f){let v=new u(...f);return Object.defineProperty(v,l,{value:`${t.PROXY_PREFIX}${i(f[0])})`}),v}}),Proxy}function s(){Symbol.proxy||(Symbol.proxy=Symbol.for(e.PROXY));let o=Proxy;return{native(){Proxy=o},custom(){Proxy=a(o,Symbol.proxy)}}}function m(o,...l){let u=l.length<1,f=o==null;return{noInput:f,noShouldbe:u,compareTo:!u&&l[0],inputCTOR:!f&&(o?.constructor||Object.getPrototypeOf(o)?.constructor),isNaN:Number.isNaN(o)||Le({trial:v=>String(o)===t.NAN}),isInfinity:Le({trial:v=>String(o)})===t.INFINITY,shouldBeFirstElementIsNothing:!u&&d(l[0])}}function g(o,...l){let{noInput:u,noShouldbe:f,compareTo:v,inputCTOR:N,isNaN:H,isInfinity:W,shouldBeFirstElementIsNothing:J}=m(o,...l);switch(l=l.length&&l[0],!0){case J:return String(o)===String(v);case(o?.[Symbol.proxy]&&f):return o[Symbol.proxy];case H:return f?t.NAN:String(v)===String(o);case W:return f?t.INFINITY:String(v)===String(o);case u:return f?String(o):String(v)===String(o);case N===Boolean:return f?t.BOOLEAN:N===l;default:return S(o,l,f,x(o,N))}}function x(o,l){switch(!0){case o===0:return Number;case o==="":return String;case!o:return{name:String(o)};default:return l}}function S(o,l,u,f){switch(!0){case(!u&&l===o||o?.[Symbol.proxy]&&l===Proxy):return!0;case String(l)===t.NAN:return String(o)===t.NAN;case(o?.[Symbol.toStringTag]&&typeof l=="string"):return String(l)===o[Symbol.toStringTag];default:return l?c(o,l,f):y(o,f)}}function y(o,l){return(o?.[Symbol.toStringTag]??o?.prototype?.[Symbol.toStringTag])||l?.name||String(l)}function c(o,l,u){return Le({trial:f=>o instanceof l})||l===u||l===Object.getPrototypeOf(u)||`${l?.name}`===u?.name}function h(o,l){return function(u){let f={get value(){return u},is(...v){return o(u,...v)},get type(){return l(u)}};return Object[Symbol.type]&&Object.defineProperties(f,{[Symbol.type]:{get(){return l(u)}},[Symbol.is]:{value(...v){return o(u,...v)}}}),Object.freeze(f)}}function p(){let o=l=>{};return function({trial:l,whenError:u=o}={}){try{return l()}catch(f){return u(f)}}}function d(o,l=!1){let u=o==null;return u=l?u||k(o,1/0)||k(o,NaN):u,u}}var ke=Wt(),Me=Wt("");function Wt(e,t={}){let{useSymbolicExtensions:n}=t;return e=k(e,String,Number)?String(e):void 0,n&&Fe(),function(y,...c){return S(y,x(c))};function r(y,c){return c&&k(e,String,Number)?String(e):`{${y}}`}function i(y,c){let h=y in c;return h&&k(c[y],String,Number)?String(c[y]):r(y,h)}function a(y){return(...c)=>{let h=c.find(p=>p.key);return i(h?h.key:"_",y)}}function s(y,c){return y.replace(/\{(?<key>[a-z_\d]+)}/gim,a(c))}function m(y){let c=[];return Object.entries(y).forEach(([h,p])=>{p.forEach((d,o)=>(c[o]??={},c[o][h]=d))}),c}function g(y){return y.length===1&&Object.values(y[0]).every(Array.isArray)}function x(y){return g(y)?m(y[0]):y}function S(y,c){let h=c?.length?c.filter(p=>k(p,Object)).map((p,d)=>s(y,{...p,index:d+1})).join(""):y;return k(e,void 0)?h:h.replace(/\{[a-z_\d].+\}/gim,String(e))}}function Fe(){return String.prototype[Symbol.for("interpolate")]||Object.defineProperties(String.prototype,{[Symbol.for("interpolate")]:{value(...e){return ke(this,...e)}},[Symbol.for("interpolate$")]:{value(...e){return Me(this,...e)}}}),[Symbol.for("interpolate"),Symbol.for("interpolate$")]}Do();Oo();var wo={interpolate:ke,interpolateClear:Me,addSymbolicStringExtensions:Fe};function Oo(){/stackblitz/i.test(location.href)&&console.info("\u2714 Stackblitz rewrites links to _top. The 'stackblitzhelpers' module fixed it."),document.addEventListener("click",e=>{if(e.target.href){let t=e.target;if(t.dataset.top||t.classList.contains("internalLink")||t.target==="_top")return top.location.href=t.href}return!0})}function $o(e=!0){let t=A('<ul id="log2screen">').first();function n(a=!1){let s=a?A.at.start:A.at.end;return m=>{if(m?.isJQx)return A.li(m.data.get("header")?{class:"head"}:"",m).renderTo(t,s);m=A.IS(m,String,Number,Symbol)?String(m):No(m,e);let g=m.startsWith("!!");m=g?m.slice(2):m,A.li(g?{class:"head"}:"",m).renderTo(t,s)}}let[r,i]=[n(),n(!0)];return{log:(...a)=>a.forEach(r),logTop:(...a)=>a.forEach(i)}}function No(e,t){try{return t?`<pre>${JSON.stringify(e,null,2)}</pre>`:JSON.stringify(e)}catch{return"Some [Object object] can not be converted to JSON"}}function Do(){A.editCssRules("body{font:normal 14px/17px system-ui,sans-serif;margin:1rem;}","li::marker{vertical-align:top;}","code{color:green;background-color:#eee;padding:2px;font-family:monospace;}","code.codeblock{display:block;padding:6px;border:1px solid #999;margin:0.5rem 0;background-color:#eee;white-space:pre-wrap;}","h3{marginTop:1.5rem;}",".thickBorder{border:5px solid green;borderWidth:5px;padding:0.5rem;display:inline-block;}","a.ExternalLink{text-decoration:none;color:rgb(0,0,238);background-color:#EEE;padding:3px;font-weight:bold;}",".cmmt{color:#888;}",".hidden{display:none;}",".attention{color:red; font-size:1.2em; font-weight:bold;}","#log2screen li{listStyle:'\\2713';paddingLeft:6px;margin:0.5rem 0 0 -1.2rem;font-family:monospace}","#log2screen li.head{list-style-type:none;font-weight:bold;margin-top:0.8rem;margin-bottom:-0.2rem;font-family:revert;}",".err{fontStyle:italic; color:red; }","a{text-decoration:none; font-weight:bold;}","a:hover{text-decoration:underline;}","a[target]:before,a.internalLink:before,a.externalLink:before{color:rgba(0,0,238,0.7);font-size:1.1rem;padding-right:2px;vertical-align:baseline;}",`a[target="_blank"]:before,a.externalLink:before{content:'\\2197';}`,`a[data-top]:before,a.internalLink:before,a[target="_top"]:before{content:'\\21BA';}`)}return qt(Eo);})();
|
package/README.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
<!--
|
|
2
|
+
bundlephobia is a lost case
|
|
3
|
+
[](https://bundlephobia.com/package/dynamic-html-helpers@latest)
|
|
4
|
+
maybe ...
|
|
5
|
+
[
|
|
6
|
+
-->
|
|
7
|
+
[](https://bundlejs.com/?q=dynamic-html-helpers)
|
|
2
8
|
[](https://www.npmjs.com/package/dynamic-html-helpers)
|
|
3
9
|
[](https://depx.co/pkg/dynamic-html-helpers)
|
|
4
10
|
|