import"./hoisted.C20fJmPj.js";function Zn(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V;(function(e){e[e.Init=0]="Init",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded",e[e.Rendered=3]="Rendered",e[e.Error=4]="Error"})(V||(V={}));var Ve,k,dn,pn,be,Bt,hn,Ue={},mn=[],Jn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ae(e,t){for(var n in t)e[n]=t[n];return e}function yn(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Ve.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Oe(e,a,r,o,null)}function Oe(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++dn};return o==null&&k.vnode!=null&&k.vnode(i),i}function ee(e){return e.children}function Le(e,t){this.props=e,this.context=t}function xe(e,t){if(t==null)return e.__?xe(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Oe(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(p=y[c])===null||p&&d.key==p.key&&d.type===p.type)y[c]=void 0;else for(f=0;f0&&(this.callbacks[o].forEach(function(i){return i.apply(void 0,[].slice.call(r,1))}),!0)},e}();function Re(e,t){if(typeof e!=typeof t)return!1;if(e===null&&t===null)return!0;if(typeof e!="object")return e===t;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n=n.__.length&&n.__.push({__V:Me}),n.__[e]}function ce(e){return ke=1,function(t,n,r){var o=Ke(Ee++,2);if(o.t=t,!o.__c&&(o.__=[Ft(void 0,n),function(a){var s=o.__N?o.__N[0]:o.__[0],l=o.t(s,a);s!==l&&(o.__N=[l,o.__[1]],o.__c.setState({}))}],o.__c=O,!O.u)){O.u=!0;var i=O.shouldComponentUpdate;O.shouldComponentUpdate=function(a,s,l){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(f){return f.__c});if(u.every(function(f){return!f.__N}))return!i||i.call(this,a,s,l);var c=!1;return u.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(c=!0)}}),!(!c&&o.__c.props===a)&&(!i||i.call(this,a,s,l))}}return o.__N||o.__}(Ft,e)}function G(e,t){var n=Ke(Ee++,3);!k.__s&&Bn(n.__H,t)&&(n.__=e,n.i=t,O.__H.__h.push(n))}function Ie(e){return ke=5,In(function(){return{current:e}},[])}function In(e,t){var n=Ke(Ee++,7);return Bn(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function rr(){for(var e;e=En.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(He),e.__H.__h.forEach(lt),e.__H.__h=[]}catch(t){e.__H.__h=[],k.__e(t,e.__v)}}k.__b=function(e){O=null,Lt&&Lt(e)},k.__r=function(e){Rt&&Rt(e),Ee=0;var t=(O=e.__c).__H;t&&(nt===O?(t.__h=[],O.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Me,n.__N=n.i=void 0})):(t.__h.forEach(He),t.__h.forEach(lt),t.__h=[])),nt=O},k.diffed=function(e){Mt&&Mt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(En.push(t)!==1&&At===k.requestAnimationFrame||((At=k.requestAnimationFrame)||or)(rr)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Me&&(n.__=n.__V),n.i=void 0,n.__V=Me})),nt=O=null},k.__c=function(e,t){t.some(function(n){try{n.__h.forEach(He),n.__h=n.__h.filter(function(r){return!r.__||lt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],k.__e(r,n.__v)}}),Ht&&Ht(e,t)},k.unmount=function(e){jt&&jt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{He(r)}catch(o){t=o}}),n.__H=void 0,t&&k.__e(t,n.__v))};var Dt=typeof requestAnimationFrame=="function";function or(e){var t,n=function(){clearTimeout(r),Dt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Dt&&(t=requestAnimationFrame(n))}function He(e){var t=O,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),O=t}function lt(e){var t=O;e.__c=e.__(),O=t}function Bn(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ft(e,t){return typeof t=="function"?t(e):t}function z(){return function(e){var t=O.context[e.__c],n=Ke(Ee++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(O)),t.props.value):e.__}(Tn)}var ir={search:{placeholder:"Type a keyword..."},sort:{sortAsc:"Sort column ascending",sortDesc:"Sort column descending"},pagination:{previous:"Previous",next:"Next",navigate:function(e,t){return"Page "+e+" of "+t},page:function(e){return"Page "+e},showing:"Showing",of:"of",to:"to",results:"results"},loading:"Loading...",noRecordsFound:"No matching records found",error:"An error happened while fetching the data"},ar=function(){function e(n){this._language=void 0,this._defaultLanguage=void 0,this._language=n,this._defaultLanguage=ir}var t=e.prototype;return t.getString=function(n,r){if(!r||!n)return null;var o=n.split("."),i=o[0];if(r[i]){var a=r[i];return typeof a=="string"?function(){return a}:typeof a=="function"?a:this.getString(o.slice(1).join("."),a)}return null},t.translate=function(n){var r,o=this.getString(n,this._language);return(r=o||this.getString(n,this._defaultLanguage))?r.apply(void 0,[].slice.call(arguments,1)):n},e}();function Ye(){var e=z();return function(t){var n;return(n=e.translator).translate.apply(n,[t].concat([].slice.call(arguments,1)))}}var Ut=function(e){return function(t){return E({},t,{search:{keyword:e}})}};function ge(){return z().store}function te(e){var t=ge(),n=ce(e(t.getState())),r=n[0],o=n[1];return G(function(){return t.subscribe(function(){var i=e(t.getState());r!==i&&o(i)})},[]),r}function sr(){var e,t=ce(void 0),n=t[0],r=t[1],o=z(),i=o.search,a=Ye(),s=ge().dispatch,l=te(function(d){return d.search});G(function(){n&&n.setProps({keyword:l?.keyword})},[l,n]),G(function(){r(i.server?new Ot({keyword:i.keyword,url:i.server.url,body:i.server.body}):new nr({keyword:i.keyword,columns:o.header&&o.header.columns,ignoreHiddenColumns:i.ignoreHiddenColumns||i.ignoreHiddenColumns===void 0,selector:i.selector})),i.keyword&&s(Ut(i.keyword))},[i]),G(function(){if(n)return o.pipeline.register(n),function(){return o.pipeline.unregister(n)}},[o,n]);var u,c,f,p=function(d,h){return ke=8,In(function(){return d},h)}((u=function(d){d.target instanceof HTMLInputElement&&s(Ut(d.target.value))},c=n instanceof Ot?i.debounceTimeout||250:0,function(){var d=arguments;return new Promise(function(h){f&&clearTimeout(f),f=setTimeout(function(){return h(u.apply(void 0,[].slice.call(d)))},c)})}),[i,n]);return g("div",{className:C(N("search",(e=o.className)==null?void 0:e.search))},g("input",{type:"search",placeholder:a("search.placeholder"),"aria-label":a("search.placeholder"),onInput:p,className:N(C("input"),C("search","input")),defaultValue:l?.keyword||""}))}var Wt=function(e){function t(){return e.apply(this,arguments)||this}R(t,e);var n=t.prototype;return n.validateProps=function(){if(isNaN(Number(this.props.limit))||isNaN(Number(this.props.page)))throw Error("Invalid parameters passed")},n._process=function(r){var o=this.props.page;return new qe(r.rows.slice(o*this.props.limit,(o+1)*this.props.limit))},U(t,[{key:"type",get:function(){return F.Limit}}]),t}(re),$t=function(e){function t(){return e.apply(this,arguments)||this}return R(t,e),t.prototype._process=function(n){var r={};return this.props.url&&(r.url=this.props.url(n.url,this.props.page,this.props.limit)),this.props.body&&(r.body=this.props.body(n.body,this.props.page,this.props.limit)),E({},n,r)},U(t,[{key:"type",get:function(){return F.ServerLimit}}]),t}(re);function cr(){var e=z(),t=e.pagination,n=t.server,r=t.summary,o=r===void 0||r,i=t.nextButton,a=i===void 0||i,s=t.prevButton,l=s===void 0||s,u=t.buttonsCount,c=u===void 0?3:u,f=t.limit,p=f===void 0?10:f,d=t.page,h=d===void 0?0:d,v=t.resetPageOnUpdate,m=v===void 0||v,y=Ie(null),w=ce(h),_=w[0],S=w[1],M=ce(0),P=M[0],x=M[1],b=Ye();G(function(){return n?(y.current=new $t({limit:p,page:_,url:n.url,body:n.body}),e.pipeline.register(y.current)):(y.current=new Wt({limit:p,page:_}),e.pipeline.register(y.current)),y.current instanceof $t?e.pipeline.on("afterProcess",function(A){return x(A.length)}):y.current instanceof Wt&&y.current.on("beforeProcess",function(A){return x(A.length)}),e.pipeline.on("updated",J),e.pipeline.on("error",function(){x(0),S(0)}),function(){e.pipeline.unregister(y.current),e.pipeline.off("updated",J)}},[]);var J=function(A){m&&A!==y.current&&(S(0),y.current.props.page!==0&&y.current.setProps({page:0}))},T=function(){return Math.ceil(P/p)},ie=function(A){if(A>=T()||A<0||A===_)return null;S(A),y.current.setProps({page:A})};return g("div",{className:N(C("pagination"),e.className.pagination)},g(ee,null,o&&P>0&&g("div",{role:"status","aria-live":"polite",className:N(C("summary"),e.className.paginationSummary),title:b("pagination.navigate",_+1,T())},b("pagination.showing")," ",g("b",null,b(""+(_*p+1)))," ",b("pagination.to")," ",g("b",null,b(""+Math.min((_+1)*p,P)))," ",b("pagination.of")," ",g("b",null,b(""+P))," ",b("pagination.results"))),g("div",{className:C("pages")},l&&g("button",{tabIndex:0,role:"button",disabled:_===0,onClick:function(){return ie(_-1)},title:b("pagination.previous"),"aria-label":b("pagination.previous"),className:N(e.className.paginationButton,e.className.paginationButtonPrev)},b("pagination.previous")),function(){if(c<=0)return null;var A=Math.min(T(),c),fe=Math.min(_,Math.floor(A/2));return _+Math.floor(A/2)>=T()&&(fe=A-(T()-_)),g(ee,null,T()>A&&_-fe>0&&g(ee,null,g("button",{tabIndex:0,role:"button",onClick:function(){return ie(0)},title:b("pagination.firstPage"),"aria-label":b("pagination.firstPage"),className:e.className.paginationButton},b("1")),g("button",{tabIndex:-1,className:N(C("spread"),e.className.paginationButton)},"...")),Array.from(Array(A).keys()).map(function(j){return _+(j-fe)}).map(function(j){return g("button",{tabIndex:0,role:"button",onClick:function(){return ie(j)},className:N(_===j?N(C("currentPage"),e.className.paginationButtonCurrent):null,e.className.paginationButton),title:b("pagination.page",j+1),"aria-label":b("pagination.page",j+1)},b(""+(j+1)))}),T()>A&&T()>_+fe+1&&g(ee,null,g("button",{tabIndex:-1,className:N(C("spread"),e.className.paginationButton)},"..."),g("button",{tabIndex:0,role:"button",onClick:function(){return ie(T()-1)},title:b("pagination.page",T()),"aria-label":b("pagination.page",T()),className:e.className.paginationButton},b(""+T()))))}(),a&&g("button",{tabIndex:0,role:"button",disabled:T()===_+1||T()===0,onClick:function(){return ie(_+1)},title:b("pagination.next"),"aria-label":b("pagination.next"),className:N(e.className.paginationButton,e.className.paginationButtonNext)},b("pagination.next"))))}function lr(e,t){return typeof e=="string"?e.indexOf("%")>-1?t/100*parseInt(e,10):parseInt(e,10):e}function rt(e){return e?Math.floor(e)+"px":""}function ur(e){var t=e.tableRef.cloneNode(!0);return t.style.position="absolute",t.style.width="100%",t.style.zIndex="-2147483640",t.style.visibility="hidden",g("div",{ref:function(n){n&&n.appendChild(t)}})}function fr(e){if(!e)return"";var t=e.split(" ");return t.length===1&&/([a-z][A-Z])+/g.test(e)?e:t.map(function(n,r){return r==0?n.toLowerCase():n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()}).join("")}var ue,X=new(function(){function e(){}var t=e.prototype;return t.format=function(n,r){return"[Grid.js] ["+r.toUpperCase()+"]: "+n},t.error=function(n,r){r===void 0&&(r=!1);var o=this.format(n,"error");if(r)throw Error(o);console.error(o)},t.warn=function(n){console.warn(this.format(n,"warn"))},t.info=function(n){console.info(this.format(n,"info"))},e}());(function(e){e[e.Header=0]="Header",e[e.Footer=1]="Footer",e[e.Cell=2]="Cell"})(ue||(ue={}));var zt=function(){function e(){this.plugins=void 0,this.plugins=[]}var t=e.prototype;return t.get=function(n){return this.plugins.find(function(r){return r.id===n})},t.add=function(n){return n.id?this.get(n.id)?(X.error("Duplicate plugin ID: "+n.id),this):(this.plugins.push(n),this):(X.error("Plugin ID cannot be empty"),this)},t.remove=function(n){var r=this.get(n);return r&&this.plugins.splice(this.plugins.indexOf(r),1),this},t.list=function(n){var r;return r=n!=null||n!=null?this.plugins.filter(function(o){return o.position===n}):this.plugins,r.sort(function(o,i){return o.order&&i.order?o.order-i.order:1})},e}();function Xe(e){var t=this,n=z();if(e.pluginId){var r=n.plugin.get(e.pluginId);return r?g(ee,{},g(r.component,E({plugin:r},e.props))):null}return e.position!==void 0?g(ee,{},n.plugin.list(e.position).map(function(o){return g(o.component,E({plugin:o},t.props.props))})):null}var he=function(e){function t(){var r;return(r=e.call(this)||this)._columns=void 0,r._columns=[],r}R(t,e);var n=t.prototype;return n.adjustWidth=function(r,o,i){var a=r.container,s=r.autoWidth;if(!a)return this;var l=a.clientWidth,u={};o.current&&s&&(we(g(ur,{tableRef:o.current}),i.current),u=function(d){var h=d.querySelector("table");if(!h)return{};var v=h.className,m=h.style.cssText;h.className=v+" "+C("shadowTable"),h.style.tableLayout="auto",h.style.width="auto",h.style.padding="0",h.style.margin="0",h.style.border="none",h.style.outline="none";var y=Array.from(h.parentNode.querySelectorAll("thead th")).reduce(function(w,_){var S;return _.style.width=_.clientWidth+"px",E(((S={})[_.getAttribute("data-column-id")]={minWidth:_.clientWidth},S),w)},{});return h.className=v,h.style.cssText=m,h.style.tableLayout="auto",Array.from(h.parentNode.querySelectorAll("thead th")).reduce(function(w,_){return w[_.getAttribute("data-column-id")].width=_.clientWidth,w},y)}(i.current));for(var c,f=W(t.tabularFormat(this.columns).reduce(function(d,h){return d.concat(h)},[]));!(c=f()).done;){var p=c.value;p.columns&&p.columns.length>0||(!p.width&&s?p.id in u&&(p.width=rt(u[p.id].width),p.minWidth=rt(u[p.id].minWidth)):p.width=rt(lr(p.width,l)))}return o.current&&s&&we(null,i.current),this},n.setSort=function(r,o){for(var i,a=W(o||this.columns||[]);!(i=a()).done;){var s=i.value;s.columns&&s.columns.length>0?s.sort=void 0:s.sort===void 0&&r?s.sort={}:s.sort?typeof s.sort=="object"&&(s.sort=E({},s.sort)):s.sort=void 0,s.columns&&this.setSort(r,s.columns)}},n.setResizable=function(r,o){for(var i,a=W(o||this.columns||[]);!(i=a()).done;){var s=i.value;s.resizable===void 0&&(s.resizable=r),s.columns&&this.setResizable(r,s.columns)}},n.setID=function(r){for(var o,i=W(r||this.columns||[]);!(o=i()).done;){var a=o.value;a.id||typeof a.name!="string"||(a.id=fr(a.name)),a.id||X.error('Could not find a valid ID for one of the columns. Make sure a valid "id" is set for all columns.'),a.columns&&this.setID(a.columns)}},n.populatePlugins=function(r,o){for(var i,a=W(o);!(i=a()).done;){var s=i.value;s.plugin!==void 0&&r.add(E({id:s.id},s.plugin,{position:ue.Cell}))}},t.fromColumns=function(r){for(var o,i=new t,a=W(r);!(o=a()).done;){var s=o.value;if(typeof s=="string"||pn(s))i.columns.push({name:s});else if(typeof s=="object"){var l=s;l.columns&&(l.columns=t.fromColumns(l.columns).columns),typeof l.plugin=="object"&&l.data===void 0&&(l.data=null),i.columns.push(s)}}return i},t.createFromConfig=function(r){var o=new t;return r.from?o.columns=t.fromHTMLTable(r.from).columns:r.columns?o.columns=t.fromColumns(r.columns).columns:!r.data||typeof r.data[0]!="object"||r.data[0]instanceof Array||(o.columns=Object.keys(r.data[0]).map(function(i){return{name:i}})),o.columns.length?(o.setID(),o.setSort(r.sort),o.setResizable(r.resizable),o.populatePlugins(r.plugin,o.columns),o):null},t.fromHTMLTable=function(r){for(var o,i=new t,a=W(r.querySelector("thead").querySelectorAll("th"));!(o=a()).done;){var s=o.value;i.columns.push({name:s.innerHTML,width:s.width})}return i},t.tabularFormat=function(r){var o=[],i=r||[],a=[];if(i&&i.length){o.push(i);for(var s,l=W(i);!(s=l()).done;){var u=s.value;u.columns&&u.columns.length&&(a=a.concat(u.columns))}a.length&&(o=o.concat(this.tabularFormat(a)))}return o},t.leafColumns=function(r){var o=[],i=r||[];if(i&&i.length)for(var a,s=W(i);!(a=s()).done;){var l=a.value;l.columns&&l.columns.length!==0||o.push(l),l.columns&&(o=o.concat(this.leafColumns(l.columns)))}return o},t.maximumDepth=function(r){return this.tabularFormat([r]).length-1},U(t,[{key:"columns",get:function(){return this._columns},set:function(r){this._columns=r}},{key:"visibleColumns",get:function(){return this._columns.filter(function(r){return!r.hidden})}}]),t}(Ge),Nn=function(){},Vt=function(e){function t(r){var o;return(o=e.call(this)||this).data=void 0,o.set(r),o}R(t,e);var n=t.prototype;return n.get=function(){try{return Promise.resolve(this.data()).then(function(r){return{data:r,total:r.length}})}catch(r){return Promise.reject(r)}},n.set=function(r){return r instanceof Array?this.data=function(){return r}:r instanceof Function&&(this.data=r),this},t}(Nn),Pn=function(e){function t(r){var o;return(o=e.call(this)||this).options=void 0,o.options=r,o}R(t,e);var n=t.prototype;return n.handler=function(r){return typeof this.options.handle=="function"?this.options.handle(r):r.ok?r.json():(X.error("Could not fetch data: "+r.status+" - "+r.statusText,!0),null)},n.get=function(r){var o=E({},this.options,r);return typeof o.data=="function"?o.data(o):fetch(o.url,o).then(this.handler.bind(this)).then(function(i){return{data:o.then(i),total:typeof o.total=="function"?o.total(i):void 0}})},t}(Nn),dr=function(){function e(){}return e.createFromConfig=function(t){var n=null;return t.data&&(n=new Vt(t.data)),t.from&&(n=new Vt(this.tableElementToArray(t.from)),t.from.style.display="none"),t.server&&(n=new Pn(t.server)),n||X.error("Could not determine the storage type",!0),n},e.tableElementToArray=function(t){for(var n,r,o=[],i=W(t.querySelector("tbody").querySelectorAll("tr"));!(n=i()).done;){for(var a,s=[],l=W(n.value.querySelectorAll("td"));!(a=l()).done;){var u=a.value;u.childNodes.length===1&&u.childNodes[0].nodeType===Node.TEXT_NODE?s.push((r=u.innerHTML,new DOMParser().parseFromString(r,"text/html").documentElement.textContent)):s.push(Cn(u.innerHTML))}o.push(s)}return o},e}(),Gt=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function $(e,t,n){if(!e.s){if(n instanceof pe){if(!n.s)return void(n.o=$.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then($.bind(null,e,t),$.bind(null,e,2));e.s=t,e.v=n;var r=e.o;r&&r(e)}}var pe=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{$(r,1,i(this.v))}catch(a){$(r,2,a)}return r}return this}return this.o=function(a){try{var s=a.v;1&a.s?$(r,1,t?t(s):s):n?$(r,1,n(s)):$(r,2,s)}catch(l){$(r,2,l)}},r},e}();function qt(e){return e instanceof pe&&1&e.s}var pr=function(e){function t(r){var o;return(o=e.call(this)||this)._steps=new Map,o.cache=new Map,o.lastProcessorIndexUpdated=-1,r&&r.forEach(function(i){return o.register(i)}),o}R(t,e);var n=t.prototype;return n.clearCache=function(){this.cache=new Map,this.lastProcessorIndexUpdated=-1},n.register=function(r,o){if(o===void 0&&(o=null),!r)throw Error("Processor is not defined");if(r.type===null)throw Error("Processor type is not defined");if(this.findProcessorIndexByID(r.id)>-1)throw Error("Processor ID "+r.id+" is already defined");return r.on("propsUpdated",this.processorPropsUpdated.bind(this)),this.addProcessorByPriority(r,o),this.afterRegistered(r),r},n.tryRegister=function(r,o){o===void 0&&(o=null);try{return this.register(r,o)}catch{}},n.unregister=function(r){if(r&&this.findProcessorIndexByID(r.id)!==-1){var o=this._steps.get(r.type);o&&o.length&&(this._steps.set(r.type,o.filter(function(i){return i!=r})),this.emit("updated",r))}},n.addProcessorByPriority=function(r,o){var i=this._steps.get(r.type);if(!i){var a=[];this._steps.set(r.type,a),i=a}if(o===null||o<0)i.push(r);else if(i[o]){var s=i.slice(0,o-1),l=i.slice(o+1);this._steps.set(r.type,s.concat(r).concat(l))}else i[o]=r},n.getStepsByType=function(r){return this.steps.filter(function(o){return o.type===r})},n.getSortedProcessorTypes=function(){return Object.keys(F).filter(function(r){return!isNaN(Number(r))}).map(function(r){return Number(r)})},n.process=function(r){try{var o=function(c){return i.lastProcessorIndexUpdated=s.length,i.emit("afterProcess",l),l},i=this,a=i.lastProcessorIndexUpdated,s=i.steps,l=r,u=function(c,f){try{var p=function(d,h,v){if(typeof d[Gt]=="function"){var m,y,w,_=d[Gt]();if(function x(b){try{for(;!(m=_.next()).done;)if((b=h(m.value))&&b.then){if(!qt(b))return void b.then(x,w||(w=$.bind(null,y=new pe,2)));b=b.v}y?$(y,1,b):y=b}catch(J){$(y||(y=new pe),2,J)}}(),_.return){var S=function(x){try{m.done||_.return()}catch{}return x};if(y&&y.then)return y.then(S,function(x){throw S(x)});S()}return y}if(!("length"in d))throw new TypeError("Object is not iterable");for(var M=[],P=0;P=a)return Promise.resolve(d.process(l)).then(function(m){i.cache.set(d.id,l=m)});l=i.cache.get(d.id)}();if(v&&v.then)return v.then(function(){})})}catch(d){return f(d)}return p&&p.then?p.then(void 0,f):p}(0,function(c){throw X.error(c),i.emit("error",l),c});return Promise.resolve(u&&u.then?u.then(o):o())}catch(c){return Promise.reject(c)}},n.findProcessorIndexByID=function(r){return this.steps.findIndex(function(o){return o.id==r})},n.setLastProcessorIndex=function(r){var o=this.findProcessorIndexByID(r.id);this.lastProcessorIndexUpdated>o&&(this.lastProcessorIndexUpdated=o)},n.processorPropsUpdated=function(r){this.setLastProcessorIndex(r),this.emit("propsUpdated"),this.emit("updated",r)},n.afterRegistered=function(r){this.setLastProcessorIndex(r),this.emit("afterRegister"),this.emit("updated",r)},U(t,[{key:"steps",get:function(){for(var r,o=[],i=W(this.getSortedProcessorTypes());!(r=i()).done;){var a=this._steps.get(r.value);a&&a.length&&(o=o.concat(a))}return o.filter(function(s){return s})}}]),t}(yt),hr=function(e){function t(){return e.apply(this,arguments)||this}return R(t,e),t.prototype._process=function(n){try{return Promise.resolve(this.props.storage.get(n))}catch(r){return Promise.reject(r)}},U(t,[{key:"type",get:function(){return F.Extractor}}]),t}(re),mr=function(e){function t(){return e.apply(this,arguments)||this}return R(t,e),t.prototype._process=function(n){var r=qe.fromArray(n.data);return r.length=n.total,r},U(t,[{key:"type",get:function(){return F.Transformer}}]),t}(re),yr=function(e){function t(){return e.apply(this,arguments)||this}return R(t,e),t.prototype._process=function(){return Object.entries(this.props.serverStorageOptions).filter(function(n){return typeof n[1]!="function"}).reduce(function(n,r){var o;return E({},n,((o={})[r[0]]=r[1],o))},{})},U(t,[{key:"type",get:function(){return F.Initiator}}]),t}(re),gr=function(e){function t(){return e.apply(this,arguments)||this}R(t,e);var n=t.prototype;return n.castData=function(r){if(!r||!r.length)return[];if(!this.props.header||!this.props.header.columns)return r;var o=he.leafColumns(this.props.header.columns);return r[0]instanceof Array?r.map(function(i){var a=0;return o.map(function(s,l){return s.data!==void 0?(a++,typeof s.data=="function"?s.data(i):s.data):i[l-a]})}):typeof r[0]!="object"||r[0]instanceof Array?[]:r.map(function(i){return o.map(function(a,s){return a.data!==void 0?typeof a.data=="function"?a.data(i):a.data:a.id?i[a.id]:(X.error("Could not find the correct cell for column at position "+s+`. Make sure either 'id' or 'selector' is defined for all columns.`),null)})})},n._process=function(r){return{data:this.castData(r.data),total:r.total}},U(t,[{key:"type",get:function(){return F.Transformer}}]),t}(re),vr=function(){function e(){}return e.createFromConfig=function(t){var n=new pr;return t.storage instanceof Pn&&n.register(new yr({serverStorageOptions:t.server})),n.register(new hr({storage:t.storage})),n.register(new gr({header:t.header})),n.register(new mr),n},e}(),_r=function(e){var t=this;this.state=void 0,this.listeners=[],this.isDispatching=!1,this.getState=function(){return t.state},this.getListeners=function(){return t.listeners},this.dispatch=function(n){if(typeof n!="function")throw new Error("Reducer is not a function");if(t.isDispatching)throw new Error("Reducers may not dispatch actions");t.isDispatching=!0;var r=t.state;try{t.state=n(t.state)}finally{t.isDispatching=!1}for(var o,i=W(t.listeners);!(o=i()).done;)(0,o.value)(t.state,r);return t.state},this.subscribe=function(n){if(typeof n!="function")throw new Error("Listener is not a function");return t.listeners=[].concat(t.listeners,[n]),function(){return t.listeners=t.listeners.filter(function(r){return r!==n})}},this.state=e},Tn=function(e,t){var n={__c:t="__cC"+hn++,__:null,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(ct)},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}(),br=function(){function e(){Object.assign(this,e.defaultConfig())}var t=e.prototype;return t.assign=function(n){return Object.assign(this,n)},t.update=function(n){return n?(this.assign(e.fromPartialConfig(E({},this,n))),this):this},e.defaultConfig=function(){return{store:new _r({status:V.Init,header:void 0,data:null}),plugin:new zt,tableRef:{current:null},width:"100%",height:"auto",processingThrottleMs:100,autoWidth:!0,style:{},className:{}}},e.fromPartialConfig=function(n){var r=new e().assign(n);return typeof n.sort=="boolean"&&n.sort&&r.assign({sort:{multiColumn:!0}}),r.assign({header:he.createFromConfig(r)}),r.assign({storage:dr.createFromConfig(r)}),r.assign({pipeline:vr.createFromConfig(r)}),r.assign({translator:new ar(r.language)}),r.plugin=new zt,r.search&&r.plugin.add({id:"search",position:ue.Header,component:sr}),r.pagination&&r.plugin.add({id:"pagination",position:ue.Footer,component:cr}),r.plugins&&r.plugins.forEach(function(o){return r.plugin.add(o)}),r},e}();function An(e){var t,n=z();return g("td",E({role:e.role,colSpan:e.colSpan,"data-column-id":e.column&&e.column.id,className:N(C("td"),e.className,n.className.td),style:E({},e.style,n.style.td),onClick:function(r){e.messageCell||n.eventEmitter.emit("cellClick",r,e.cell,e.column,e.row)}},(t=e.column)?typeof t.attributes=="function"?t.attributes(e.cell.data,e.row,e.column):t.attributes:{}),e.column&&typeof e.column.formatter=="function"?e.column.formatter(e.cell.data,e.row,e.column):e.column&&e.column.plugin?g(Xe,{pluginId:e.column.id,props:{column:e.column,cell:e.cell,row:e.row}}):e.cell.data)}function gt(e){var t=z(),n=te(function(r){return r.header});return g("tr",{className:N(C("tr"),t.className.tr),onClick:function(r){e.messageRow||t.eventEmitter.emit("rowClick",r,e.row)}},e.children?e.children:e.row.cells.map(function(r,o){var i=function(a){if(n){var s=he.leafColumns(n.columns);if(s)return s[a]}return null}(o);return i&&i.hidden?null:g(An,{key:r.id,cell:r,row:e.row,column:i})}))}function ot(e){return g(gt,{messageRow:!0},g(An,{role:"alert",colSpan:e.colSpan,messageCell:!0,cell:new mt(e.message),className:N(C("message"),e.className?e.className:null)}))}function wr(){var e=z(),t=te(function(a){return a.data}),n=te(function(a){return a.status}),r=te(function(a){return a.header}),o=Ye(),i=function(){return r?r.visibleColumns.length:0};return g("tbody",{className:N(C("tbody"),e.className.tbody)},t&&t.rows.map(function(a){return g(gt,{key:a.id,row:a})}),n===V.Loading&&(!t||t.length===0)&&g(ot,{message:o("loading"),colSpan:i(),className:N(C("loading"),e.className.loading)}),n===V.Rendered&&t&&t.length===0&&g(ot,{message:o("noRecordsFound"),colSpan:i(),className:N(C("notfound"),e.className.notfound)}),n===V.Error&&g(ot,{message:o("error"),colSpan:i(),className:N(C("error"),e.className.error)}))}var xr=function(e){function t(){return e.apply(this,arguments)||this}R(t,e);var n=t.prototype;return n.validateProps=function(){for(var r,o=W(this.props.columns);!(r=o()).done;){var i=r.value;i.direction===void 0&&(i.direction=1),i.direction!==1&&i.direction!==-1&&X.error("Invalid sort direction "+i.direction)}},n.compare=function(r,o){return r>o?1:r1&&(c=!0,u=!0):s===0?u=!0:s>0&&!n?(u=!0,c=!0):s>0&&n&&(u=!0),c&&(a=[]),u)a.push({index:e,direction:t,compare:r});else if(p){var d=a.indexOf(l);a[d].direction=t}else if(f){var h=a.indexOf(l);a.splice(h,1)}return E({},o,{sort:{columns:a}})}},On=function(e,t,n){return function(r){var o=(r.sort?[].concat(r.sort.columns):[]).find(function(i){return i.index===e});return E({},r,o?Kt(e,o.direction===1?-1:1,t,n)(r):Kt(e,1,t,n)(r))}},kr=function(e){function t(){return e.apply(this,arguments)||this}return R(t,e),t.prototype._process=function(n){var r={};return this.props.url&&(r.url=this.props.url(n.url,this.props.columns)),this.props.body&&(r.body=this.props.body(n.body,this.props.columns)),E({},n,r)},U(t,[{key:"type",get:function(){return F.ServerSort}}]),t}(re);function Sr(e){var t=z(),n=ge().dispatch,r=Ye(),o=ce(0),i=o[0],a=o[1],s=t.sort,l=te(function(f){return f.sort}),u=typeof s?.server=="object"?F.ServerSort:F.Sort,c=function(){var f=t.pipeline.getStepsByType(u);if(f.length)return f[0]};return G(function(){var f=c()||(u===F.ServerSort?new kr(E({columns:l?l.columns:[]},s.server)):new xr({columns:l?l.columns:[]}));return t.pipeline.tryRegister(f),function(){return t.pipeline.unregister(f)}},[t]),G(function(){if(l){var f,p=l.columns.find(function(d){return d.index===e.index});p?(i===0&&(p.direction=(f=e.direction)!=null?f:1),a(p.direction)):a(0)}},[l]),G(function(){var f=c();f&&l&&f.setProps({columns:l.columns})},[l]),g("button",{tabIndex:-1,"aria-label":r("sort.sort"+(i===1?"Desc":"Asc")),title:r("sort.sort"+(i===1?"Desc":"Asc")),className:N(C("sort"),C("sort",function(f){return f===1?"asc":f===-1?"desc":"neutral"}(i)),t.className.sort),onClick:function(f){f.preventDefault(),f.stopPropagation(),n(On(e.index,f.shiftKey===!0&&s.multiColumn,e.compare))}})}var Ln=function(e,t){var n;t===void 0&&(t=100);var r=Date.now(),o=function(){r=Date.now(),e.apply(void 0,[].slice.call(arguments))};return function(){var i=[].slice.call(arguments),a=Date.now(),s=a-r;s>=t?o.apply(void 0,i):(n&&clearTimeout(n),n=setTimeout(function(){o.apply(void 0,i),n=null},t-s))}};function Cr(e){var t,n=function(a){return a instanceof MouseEvent?Math.floor(a.pageX):Math.floor(a.changedTouches[0].pageX)},r=function(a){a.stopPropagation();var s=parseInt(e.thRef.current.style.width,10)-n(a);t=Ln(function(l){return o(l,s)},10),document.addEventListener("mouseup",i),document.addEventListener("touchend",i),document.addEventListener("mousemove",t),document.addEventListener("touchmove",t)},o=function(a,s){a.stopPropagation();var l=e.thRef.current;s+n(a)>=parseInt(l.style.minWidth,10)&&(l.style.width=s+n(a)+"px")},i=function a(s){s.stopPropagation(),document.removeEventListener("mouseup",a),document.removeEventListener("mousemove",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",a)};return g("div",{className:N(C("th"),C("resizable")),onMouseDown:r,onTouchStart:r,onClick:function(a){return a.stopPropagation()}})}function Er(e){var t=z(),n=Ie(null),r=ce({}),o=r[0],i=r[1],a=ge().dispatch;G(function(){if(t.fixedHeader&&n.current){var c=n.current.offsetTop;typeof c=="number"&&i({top:c})}},[n]);var s,l=function(){return e.column.sort!=null},u=function(c){c.stopPropagation(),l()&&a(On(e.index,c.shiftKey===!0&&t.sort.multiColumn,e.column.sort.compare))};return g("th",E({ref:n,"data-column-id":e.column&&e.column.id,className:N(C("th"),l()?C("th","sort"):null,t.fixedHeader?C("th","fixed"):null,t.className.th),onClick:u,style:E({},t.style.th,{minWidth:e.column.minWidth,width:e.column.width},o,e.style),onKeyDown:function(c){l()&&c.which===13&&u(c)},rowSpan:e.rowSpan>1?e.rowSpan:void 0,colSpan:e.colSpan>1?e.colSpan:void 0},(s=e.column)?typeof s.attributes=="function"?s.attributes(null,null,e.column):s.attributes:{},l()?{tabIndex:0}:{}),g("div",{className:C("th","content")},e.column.name!==void 0?e.column.name:e.column.plugin!==void 0?g(Xe,{pluginId:e.column.plugin.id,props:{column:e.column}}):null),l()&&g(Sr,E({index:e.index},e.column.sort)),e.column.resizable&&e.index0?(X.error("The container element "+r+" is not empty. Make sure the container is empty and call render() again"),this):(this.config.container=r,we(this.createElement(),r),this)},t}(yt),Ar=!1;function Or(e){if(e.sheet)return e.sheet;for(var t=0;t0?H(ve,--q):0,ye--,L===10&&(ye=1,Je--),L}function K(){return L=q2||Ce(L)>3?"":" "}function Gr(e,t){for(;--t&&K()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return Be(e,je()+(t<6&&ne()==32&&K()==32))}function ft(e){for(;K();)switch(L){case e:return q;case 34:case 39:e!==34&&e!==39&&ft(L);break;case 40:e===41&&ft(e);break;case 92:K();break}return q}function qr(e,t){for(;K()&&e+L!==57;)if(e+L===84&&ne()===47)break;return"/*"+Be(t,q-1)+"*"+Ze(e===47?e:K())}function Kr(e){for(;!Ce(ne());)K();return Be(e,q)}function Yr(e){return Fn(Fe("",null,null,null,[""],e=Dn(e),0,[0],e))}function Fe(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,d=0,h=0,v=1,m=1,y=1,w=0,_="",S=o,M=i,P=r,x=_;m;)switch(h=w,w=K()){case 40:if(h!=108&&H(x,f-1)==58){ut(x+=B(De(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:x+=De(w);break;case 9:case 10:case 13:case 32:x+=Vr(h);break;case 92:x+=Gr(je()-1,7);continue;case 47:switch(ne()){case 42:case 47:Te(Xr(qr(K(),je()),t,n),l);break;default:x+="/"}break;case 123*v:s[u++]=Q(x)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+c:y==-1&&(x=B(x,/\f/g,"")),d>0&&Q(x)-f&&Te(d>32?Zt(x+";",r,n,f-1):Zt(B(x," ","")+";",r,n,f-2),l);break;case 59:x+=";";default:if(Te(P=Xt(x,t,n,u,c,o,s,_,S=[],M=[],f),i),w===123)if(c===0)Fe(x,t,P,P,S,i,f,s,M);else switch(p===99&&H(x,3)===110?100:p){case 100:case 108:case 109:case 115:Fe(e,P,P,r&&Te(Xt(e,P,P,0,0,o,s,_,o,S=[],f),M),o,M,f,s,r?S:M);break;default:Fe(x,P,P,P,[""],M,0,s,M)}}u=c=d=0,v=y=1,_=x="",f=a;break;case 58:f=1+Q(x),d=h;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&zr()==125)continue}switch(x+=Ze(w),w*v){case 38:y=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(Q(x)-1)*y,y=1;break;case 64:ne()===45&&(x+=De(K())),p=ne(),c=f=Q(_=x+=Kr(je())),w++;break;case 45:h===45&&Q(x)==2&&(v=0)}}return i}function Xt(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],d=wt(p),h=0,v=0,m=0;h0?p[y]+" "+w:B(w,/&\f/g,p[y])))&&(l[m++]=_);return Qe(e,t,n,o===0?_t:s,l,u,c)}function Xr(e,t,n){return Qe(e,t,n,Rn,Ze($r()),Se(e,2,-2),0)}function Zt(e,t,n,r){return Qe(e,t,n,bt,Se(e,0,r),Se(e,r+1,-1),r)}function me(e,t){for(var n="",r=wt(e),o=0;o6)switch(H(e,t+1)){case 109:if(H(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+$e+(H(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ut(e,"stretch")?Un(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(H(e,t+1)!==115)break;case 6444:switch(H(e,Q(e)-3-(~ut(e,"!important")&&10))){case 107:return B(e,":",":"+I)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(H(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(H(e,t+11)){case 114:return I+e+D+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+D+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+D+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return I+e+D+e+e}return e}var ao=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case bt:t.return=Un(t.value,t.length);break;case Mn:return me([_e(t,{value:B(t.value,"@","@"+I)})],o);case _t:if(t.length)return Wr(t.props,function(i){switch(Ur(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return me([_e(t,{props:[B(i,/:(read-\w+)/,":"+$e+"$1")]})],o);case"::placeholder":return me([_e(t,{props:[B(i,/:(plac\w+)/,":"+I+"input-$1")]}),_e(t,{props:[B(i,/:(plac\w+)/,":"+$e+"$1")]}),_e(t,{props:[B(i,/:(plac\w+)/,D+"input-$1")]})],o)}return""})}},so=[ao],co=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var m=v.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||so,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var m=v.getAttribute("data-emotion").split(" "),y=1;y=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var uo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fo=!1,po=/[A-Z]|^ms/g,ho=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wn=function(t){return t.charCodeAt(1)===45},Qt=function(t){return t!=null&&typeof t!="boolean"},it=eo(function(e){return Wn(e)?e:e.replace(po,"-$&").toLowerCase()}),en=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ho,function(r,o,i){return se={name:o,styles:i,next:se},o})}return uo[t]!==1&&!Wn(t)&&typeof n=="number"&&n!==0?n+"px":n},mo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ze(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return se={name:o.name,styles:o.styles,next:se},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)se={name:a.name,styles:a.styles,next:se},a=a.next;var s=i.styles+";";return s}return yo(e,t,n)}}var l=n;if(t==null)return l;var u=t[l];return u!==void 0?u:l}function yo(e,t,n){var r="";if(Array.isArray(n))for(var o=0;oNumber(e)>Number(t)?1:Number(e){const t=ln(cn());oe.length!==0?oe!==t&&(pt(),un(),kt(),St(),Ne(),Ct(),et(),oe="",le=""):(pt(),un()),oe=ln(cn()),console.log(oe)});let an=document.getElementsByClassName("radio-button");for(let e=0;e{le=Bo(Gn()),kt(),Ao(),Io(oe,le),Ne(),Ct(),et(),le=""});const xo=document.querySelector("#myInput");xo.addEventListener("keyup",()=>{No(dt)});const ko=document.getElementById("objectIdSelection");ko.addEventListener("change",e=>{Vn=e.target.value,Oo()});const So=document.getElementById("searchBtn");So.addEventListener("click",()=>{Ne(),Mo(),Po(Vn+".csv","scm-cl-"+oe).then(e=>{let t=e.split(` `),n=[];for(let i=0;i1&&n.push(t[i])}let o=[];for(let i=0;i{To(),pt(),qn(),kt(),St(),et(),Ne(),Ct(),oe="",le=""});const de=document.getElementById("pageHelperButton");de.addEventListener("click",()=>{const t=document.getElementById("centeredOverlay").style.display;t.length==0||t==="none"?(jo(),Z=Date.now(),Do()):(Kn(),Yn(),Y=!0)});const Eo=document.getElementById("pageHelperCloseButton");Eo.addEventListener("click",()=>{Kn(),Yn(),Y=!0});var sn=document.getElementsByClassName("collapsible"),Ae;for(Ae=0;Ae-1){var a=document.createElement("option");a.text=u.toUpperCase(),a.value=c,a.className="option-item",a.style.fontWeight="800",a.style.textWrap="wrap",a.style.paddingBottom="0.5rem",r.appendChild(a)}}}async function Po(e,t){const n=new URL("https://get-object-by-id.empty-night-9188.workers.dev/?objectid="+e+"&bucket="+t);try{const o=await(await fetch(n)).text();return await(await fetch(o)).text()}catch(r){console.error(r)}}function To(){const e=document.getElementById("baseball"),t=document.getElementById("basketball"),n=document.getElementById("football"),r=document.getElementById("hockey"),o=document.getElementById("soccer"),i=document.getElementById("wrestling"),a=document.getElementById("ufc");e.checked=!1,t.checked=!1,n.checked=!1,r.checked=!1,o.checked=!1,i.checked=!1,a.checked=!1,oe="",le=""}function pt(){const e=document.getElementById("set-name"),t=document.getElementById("player-name"),n=document.getElementById("variant"),r=document.getElementById("print-run");e.checked=!1,t.checked=!1,n.checked=!1,r.checked=!1,le=""}function kt(){const e=document.getElementById("myInput");e.value="";const t=document.getElementById("objectIdSelection");for(;t.firstChild;)t.firstChild.remove()}function un(){const e=document.getElementById("set-name"),t=document.getElementById("player-name"),n=document.getElementById("variant"),r=document.getElementById("print-run");e.disabled=!1,e.style.cursor="pointer",t.disabled=!1,t.style.cursor="pointer",n.disabled=!1,n.style.cursor="pointer",r.disabled=!1,r.style.cursor="pointer";const o=document.getElementsByClassName("input-container");for(let s=0;s.5-Math.random());for(let a=0;asetTimeout(m,2e3));const c=document.getElementById(s+"-preview");if(Y===!1||t!=Z)c.click();else{e=!1;break}await new Promise(m=>setTimeout(m,2e3)),document.getElementsByClassName("radio-button-preview");const f=document.getElementById(l);if(Y===!1||t!=Z)f.click();else{e=!1;break}await new Promise(m=>setTimeout(m,2e3));const d=u.split(""),h=document.getElementById("myInput-preview");if(Y===!1||t!=Z){var n="";for(let m=0;msetTimeout(y,250))}else{e=!1;break}const v=document.getElementById("objectIdSelection-preview");var r=document.createElement("option");if(Y===!1||t!=Z)r.text=u,r.value=u,r.className="option-item-preview",r.style.fontWeight="800",r.style.textWrap="nowrap",r.style.paddingBottom="0.5rem",v.appendChild(r);else{e=!1;break}if(await new Promise(m=>setTimeout(m,2e3)),Y===!1||t!=Z)r.selected=!0;else{e=!1;break}if(await new Promise(m=>setTimeout(m,2e3)),Y===!1||t!=Z)Fo();else{e=!1;break}if(await new Promise(m=>setTimeout(m,500)),Y===!1||t!=Z)Uo();else{e=!1;break}if(await new Promise(m=>setTimeout(m,2e3)),Y===!1||t!=Z)Wo();else{e=!1;break}if(fn(),await new Promise(m=>setTimeout(m,500)),Y===!1||t!=Z)$o();else{e=!1;break}await new Promise(m=>setTimeout(m,2e3))}}fn(),zo()}function Fo(){const e=document.getElementById("searchBtn-preview");e.style.boxShadow="rgba(0, 0, 0, 0.15) 0 3px 9px 0",e.style.transform="translateY(-2px)"}function Uo(){const e=document.getElementById("searchBtn-preview");e.style.boxShadow="none",e.style.transform="none"}function Wo(){const e=document.getElementById("clearBtn-preview");e.style.boxShadow="rgba(0, 0, 0, 0.15) 0 3px 9px 0",e.style.transform="translateY(-2px)"}function $o(){const e=document.getElementById("clearBtn-preview");e.style.boxShadow="none",e.style.transform="none"}function fn(){const e=document.getElementsByClassName("radio-button-category-preview");for(let o=0;o