table.js
58.8 KB
(()=>{var e={3114:e=>{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,r){t(e!=n,r)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,r){t(e==n,r)},t.ok=t,e.exports=t},9403:(e,t,n)=>{var r=n(7415),s=n(1511),i=n(3114);function o(e){if(!(this instanceof o))return new o(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=o,o.prototype.emit=function(e){i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,r=arguments.length;n<r;n++)t.push(arguments[n]);var o=s(this._name+"('"+e.toString()+"')"),a=this._listeners[e];return a&&a.length>0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,o.uuid),o(),this},o.prototype.on=o.prototype.addListener=function(e,t){return i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},o.prototype.prependListener=function(e,t){return i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},o.prototype.once=function(e,t){i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},o.prototype.prependOnceListener=function(e,t){i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},o.prototype.removeListener=function(e,t){return i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(r(e,n,1),!0):void 0}}},o.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},o.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var r=t.length,s=0;s<r;s++)n.push(t[s]);return n},o.prototype._emit=function(e,t,n,r){if(void 0!==e&&0!==e.length){void 0===n&&(n=t,t=null),t&&(n=void 0!==r?[t].concat(n,r):[t].concat(n));for(var s=e.length,i=0;i<s;i++){var o=e[i];o.apply(o,n)}}}},792:(e,t,n)=>{var r=n(3114),s="undefined"!=typeof window;function i(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}i.prototype.push=function(e){r.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},i.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},i.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return s?(window._nanoScheduler||(window._nanoScheduler=new i(!0)),e=window._nanoScheduler):e=new i,e}},1511:(e,t,n)=>{var r,s=n(792)(),i=n(3114);o.disabled=!0;try{r=window.performance,o.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(e){}function o(e){if(i.equal(typeof e,"string","nanotiming: name should be type string"),o.disabled)return a;var t=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function l(i){var o="end-"+t+"-"+e;r.mark(o),s.push((function(){var s=null;try{var a=e+" ["+t+"]";r.measure(a,n,o),r.clearMarks(n),r.clearMarks(o)}catch(e){s=e}i&&i(s,e)}))}return r.mark(n),l.uuid=t,l}function a(e){e&&s.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=o},7415:e=>{"use strict";e.exports=function(e,t,n){var r,s=e.length;if(!(t>=s||0===n)){var i=s-(n=t+n>s?s-t:n);for(r=t;r<i;++r)e[r]=e[r+n];e.length=i}}},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),s=n(6026),i=n(4372),o=n(5327),a=n(4097),l=n(4109),c=n(7985),u=n(7874),d=n(2648),h=n(644),f=n(205);e.exports=function(e){return new Promise((function(t,n){var p,m=e.data,g=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+_)}var E=a(e.baseURL,e.url);function C(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};s((function(e){t(e),y()}),(function(e){n(e),y()}),i),b=null}}if(b.open(e.method.toUpperCase(),o(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;x&&(g[e.xsrfHeaderName]=x)}"setRequestHeader"in b&&r.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new h:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var L=f(E);L&&-1===["http","https","file"].indexOf(L)?n(new d("Unsupported protocol "+L+":",d.ERR_BAD_REQUEST,e)):b.send(m)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),s=n(1849),i=n(321),o=n(7185),a=function e(t){var n=new i(t),a=s(i.prototype.request,n);return r.extend(a,i.prototype,n),r.extend(a,n),a.create=function(n){return e(o(t,n))},a}(n(5546));a.Axios=i,a.CanceledError=n(644),a.CancelToken=n(4972),a.isCancel=n(6502),a.VERSION=n(7288).version,a.toFormData=n(7675),a.AxiosError=n(2648),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(8713),a.isAxiosError=n(6268),e.exports=a,e.exports.default=a},4972:(e,t,n)=>{"use strict";var r=n(644);function s(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},s.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},644:(e,t,n)=>{"use strict";var r=n(2648);function s(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(4867).inherits(s,r,{__CANCEL__:!0}),e.exports=s},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),s=n(5327),i=n(782),o=n(3572),a=n(7185),l=n(4097),c=n(4875),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!s){var d=[o,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(l),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var h=t;r.length;){var f=r.shift(),p=r.shift();try{h=f(h)}catch(e){p(e);break}}try{i=o(h)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},d.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return s(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,s){return this.request(a(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},2648:(e,t,n)=>{"use strict";var r=n(4867);function s(e,t,n,r,s){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}r.inherits(s,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=s.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(s,o),Object.defineProperty(i,"isAxiosError",{value:!0}),s.from=function(e,t,n,o,a,l){var c=Object.create(i);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),s.call(c,e.message,t,n,o,a),c.name=e.name,l&&Object.assign(c,l),c},e.exports=s},782:(e,t,n)=>{"use strict";var r=n(4867);function s(){this.handlers=[]}s.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},s.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},s.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=s},4097:(e,t,n)=>{"use strict";var r=n(1793),s=n(7303);e.exports=function(e,t){return e&&!r(t)?s(e,t):t}},3572:(e,t,n)=>{"use strict";var r=n(4867),s=n(8527),i=n(6502),o=n(5546),a=n(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=s.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=s.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=s.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:s(void 0,e[n]):s(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return s(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:s(void 0,e[n]):s(void 0,t[n])}function l(n){return n in t?s(e[n],t[n]):n in e?s(void 0,e[n]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,s=t(e);r.isUndefined(s)&&t!==l||(n[e]=s)})),n}},6026:(e,t,n)=>{"use strict";var r=n(2648);e.exports=function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),s=n(5546);e.exports=function(e,t,n){var i=this||s;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5546:(e,t,n)=>{"use strict";var r=n(4867),s=n(6016),i=n(2648),o=n(7874),a=n(7675),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(5448)),u),transformRequest:[function(e,t){if(s(t,"Accept"),s(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=r.isObject(e),o=t&&t["Content-Type"];if((n=r.isFileList(e))||i&&"multipart/form-data"===o){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return i||"application/json"===o?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,s=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||s&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(l)})),e.exports=d},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(s(t)+"="+s(e))})))})),i=o.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,s,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(s)&&a.push("path="+s),r.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function s(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=s(window.location.href),function(t){var n=r.isString(t)?s(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},1623:e=>{e.exports=null},4109:(e,t,n)=>{"use strict";var r=n(4867),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(o[t]&&s.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||new FormData;var n=[];function s(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,o){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+o);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var a,l=o?o+"."+i:i;if(n&&!o&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(a=r.toArray(n)))return void a.forEach((function(e){!r.isUndefined(e)&&t.append(l,s(e))}));e(n,l)}})),n.pop()}else t.append(o,s(i))}(e),t}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,s=n(2648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new s(i(r," has been removed"+(t?" in "+t:"")),s.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new s("options must be an object",s.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var l=e[o],c=void 0===l||a(l,o,e);if(!0!==c)throw new s("option "+o+" must be "+c,s.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new s("Unknown option "+o,s.ERR_BAD_OPTION)}},validators:i}},4867:(e,t,n)=>{"use strict";var r,s=n(1849),i=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=a("Date"),p=a("File"),m=a("Blob"),g=a("FileList");function v(e){return"[object Function]"===i.call(e)}var y=a("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}var w,_=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:h,isUndefined:c,isDate:f,isFile:p,isBlob:m,isFunction:v,isStream:function(e){return d(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function e(){var t={};function n(n,r){h(t[r])&&h(n)?t[r]=e(t[r],n):h(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,s=arguments.length;r<s;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?s(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,s,i,o={};t=t||{};do{for(s=(r=Object.getOwnPropertyNames(e)).length;s-- >0;)o[i=r[s]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:g}},9204:e=>{function t(e,t){if(!e)throw new Error(t||"AssertionError")}t.notEqual=function(e,n,r){t(e!=n,r)},t.notOk=function(e,n){t(!e,n)},t.equal=function(e,n,r){t(e==n,r)},t.ok=t,e.exports=t},6559:(e,t,n)=>{var r=n(7069),s=n(7999),i=n(9204);function o(e){if(!(this instanceof o))return new o(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=o,o.prototype.emit=function(e){i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.emit: eventName should be type string or symbol");for(var t=[],n=1,r=arguments.length;n<r;n++)t.push(arguments[n]);var o=s(this._name+"('"+e.toString()+"')"),a=this._listeners[e];return a&&a.length>0&&this._emit(this._listeners[e],t),this._starListeners.length>0&&this._emit(this._starListeners,e,t,o.uuid),o(),this},o.prototype.on=o.prototype.addListener=function(e,t){return i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.on: listener should be type function"),"*"===e?this._starListeners.push(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)),this},o.prototype.prependListener=function(e,t){return i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.prependListener: listener should be type function"),"*"===e?this._starListeners.unshift(t):(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].unshift(t)),this},o.prototype.once=function(e,t){i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.once: listener should be type function");var n=this;return this.on(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},o.prototype.prependOnceListener=function(e,t){i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(e,(function r(){t.apply(n,arguments),n.removeListener(e,r)})),this},o.prototype.removeListener=function(e,t){return i.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),i.equal(typeof t,"function","nanobus.removeListener: listener should be type function"),"*"===e?(this._starListeners=this._starListeners.slice(),n(this._starListeners,t)):(void 0!==this._listeners[e]&&(this._listeners[e]=this._listeners[e].slice()),n(this._listeners[e],t));function n(e,t){if(e){var n=e.indexOf(t);return-1!==n?(r(e,n,1),!0):void 0}}},o.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},o.prototype.listeners=function(e){var t="*"!==e?this._listeners[e]:this._starListeners,n=[];if(t)for(var r=t.length,s=0;s<r;s++)n.push(t[s]);return n},o.prototype._emit=function(e,t,n,r){if(void 0!==e&&0!==e.length){void 0===n&&(n=t,t=null),t&&(n=void 0!==r?[t].concat(n,r):[t].concat(n));for(var s=e.length,i=0;i<s;i++){var o=e[i];o.apply(o,n)}}}},8061:(e,t,n)=>{var r=n(9204),s="undefined"!=typeof window;function i(e){this.hasWindow=e,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}i.prototype.push=function(e){r.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},i.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var e=this;this.method((function(t){for(;e.queue.length&&t.timeRemaining()>0;)e.queue.shift()(t);e.scheduled=!1,e.queue.length&&e.schedule()}))}},i.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return s?(window._nanoScheduler||(window._nanoScheduler=new i(!0)),e=window._nanoScheduler):e=new i,e}},7999:(e,t,n)=>{var r,s=n(8061)(),i=n(9204);o.disabled=!0;try{r=window.performance,o.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(e){}function o(e){if(i.equal(typeof e,"string","nanotiming: name should be type string"),o.disabled)return a;var t=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function l(i){var o="end-"+t+"-"+e;r.mark(o),s.push((function(){var s=null;try{var a=e+" ["+t+"]";r.measure(a,n,o),r.clearMarks(n),r.clearMarks(o)}catch(e){s=e}i&&i(s,e)}))}return r.mark(n),l.uuid=t,l}function a(e){e&&s.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=o},7069:e=>{"use strict";e.exports=function(e,t,n){var r,s=e.length;if(!(t>=s||0===n)){var i=s-(n=t+n>s?s-t:n);for(r=t;r<i;++r)e[r]=e[r+n];e.length=i}}},5825:(e,t,n)=>{"use strict";n.d(t,{x:()=>s});var r=n(3128);const s=()=>(window.AC_SERVICES||(window.AC_SERVICES=new r.Z),window.AC_SERVICES)},4825:(e,t,n)=>{"use strict";n.d(t,{e2:()=>r});const r=(e,t=null)=>{let n=null!=t?t:new FormData;return Object.keys(e).forEach((t=>{s(n,e[t],t)})),n},s=(e,t,n="")=>{if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const r=null==t?"":t;e.append(n,r)}else Object.keys(t).forEach((r=>{s(e,t[r],n?`${n}[${r}]`:r)}))}},3937:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e){this.element=e}static find(e){let t=document.querySelector(e);return null===t?null:new r(t)}static create(e){return new r(document.createElement(e))}getElement(){return this.element}addId(e){return this.element.id=e,this}toggleClass(e,t=null){return null===t?this.element.classList.contains(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClasses(e)}addClass(e){return this.element.classList.add(e),this}addClasses(...e){return e.forEach((e=>this.addClass(e))),this}removeClasses(...e){return e.forEach((e=>this.removeClass(e))),this}removeClass(e){return this.element.classList.remove(e),this}setAttribute(e,t){return this.element.setAttribute(e,t),this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}addHtml(e){return this.element.innerHTML=e,this}append(e){return this.element.appendChild(e),this}appendSelfTo(e){return e.append(this.element),this}prepend(e){return this.element.prepend(e),this}prependSelfTo(e){return e.prepend(this.element),this}css(e,t){return this.element.style[e]=t,this}insertAfter(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element.nextElementSibling)}catch(e){console.error("Not able to insert element after current node",this.element)}}insertSelfBefore(e){var t;try{null===(t=e.parentElement)||void 0===t||t.insertBefore(this.element,e)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}insertBefore(e){var t;try{null===(t=this.element.parentElement)||void 0===t||t.insertBefore(e,this.element)}catch(e){console.error("Not able to insert element before current node",this.element)}return this}addEventListener(e,t){return this.element.addEventListener(e,t),this}addEventListeners(e,t){return e.forEach((e=>this.addEventListener(e,t))),this}}},6968:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(){this.filters={}}addFilter(e,t,n=10){this.filters.hasOwnProperty(e)||(this.filters[e]={}),this.filters[e].hasOwnProperty(n)||(this.filters[e][n]=[]),this.filters[e][n].push(t)}applyFilters(e,t,n={}){return this.filters.hasOwnProperty(e)?(Object.keys(this.filters[e]).forEach((r=>{this.filters[e][parseInt(r)].forEach((e=>{t=e(t,n)}))})),t):t}}},3128:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9403),s=n.n(r),i=n(3937),o=n(6968);class a{constructor(){this.services={},this.events=new(s()),this.filters=new o.Z,this.$=i.Z}registerService(e,t){return this.services[e]=t,this.events.emit(`Service.Registered.${e}`,t),this}getService(e){return this.hasService(e)?this.services[e]:null}hasService(e){return this.services.hasOwnProperty(e)}addListener(e,t){this.events.addListener(e,t)}emitEvent(e,t){this.events.emit(e,t)}}},8974:(e,t,n)=>{"use strict";n.r(t);var r=n(3937);class s{constructor(e){var t;this.table=e,this.reflected=e.getElement().querySelector("thead tr"),this.element=r.Z.create("table").addClasses("wp-list-table","fixed","widefat").getElement(),this.element.innerHTML=`<thead>${null===(t=this.reflected)||void 0===t?void 0:t.innerHTML}</thead>`,this.initEvents()}initEvents(){let e=this.element.querySelector(".check-column input"),t=this.table.getElement().querySelector(".check-column input");e&&(e.addEventListener("change",(()=>t.click())),t.addEventListener("change",(()=>e.checked=t.checked)))}getReflectedRow(){return this.reflected}getElement(){return this.element}reposition(){this.getElement().scrollLeft=this.table.getElement().scrollLeft}}class i{constructor(e){this.element=r.Z.create("div").addClass("acp-sh-container").getElement(),this.stickyRow=new s(e),this.table=e,this.element.append(this.stickyRow.getElement()),this.ensureColumnWidths()}enable(){return this.element.classList.add("-sticky"),this}disable(){return this.element.classList.remove("-sticky"),this}reposition(){let e=this.table.getElement().getBoundingClientRect();return this.element.style.left=e.left+"px",this.element.style.width=e.width+"px",this.stickyRow.reposition(),this}getElement(){return this.element}getStickyRow(){return this.stickyRow}ensureColumnWidths(){var e;return null===(e=this.stickyRow.getReflectedRow())||void 0===e||e.querySelectorAll("td, th ").forEach((e=>{let t=this.stickyRow.getElement().querySelector(`[id="${e.id}"]`),n=getComputedStyle(e),r=e.clientWidth-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight);t&&(t.style.setProperty("min-width",`${r}px`,"important"),t.style.setProperty("width",`${r}px`,"important"))})),this}}class o{constructor(e){this.table=e,this.stickyHeader=new i(e),this.handlers=[],this.placeStickyHeader(),this.initEvents()}enable(){this.initEvents()}disable(){this.handlers.forEach((e=>e.destroy())),this.stickyHeader.disable()}checkVisibility(){this.table.getElement().getBoundingClientRect().top<33?(this.stickyHeader.enable(),this.stickyHeader.reposition()):this.stickyHeader.disable()}placeStickyHeader(){let e=document.querySelector(".acp-hts-wrapper")||this.table.getElement();new r.Z(e).insertBefore(this.stickyHeader.getElement())}initEvents(){this.handlers.push(new a(document,(()=>{this.checkVisibility()}))),window.addEventListener("resize",(()=>{this.stickyHeader.reposition().ensureColumnWidths()})),this.handlers.push(new a(this.table.getElement(),(()=>this.stickyHeader.getStickyRow().reposition()),50))}}class a{constructor(e,t,n=300){this.scrolling=!1,this.element=e,this.cb=t,this.delay=n,this.scrollEventHandler=this.onScrollEvent.bind(this),this.setInterval(),e.addEventListener("scroll",this.scrollEventHandler)}onScrollEvent(){this.scrolling=!0}destroy(){null!==this.interval&&clearInterval(this.interval),this.element.removeEventListener("scroll",this.scrollEventHandler)}setInterval(){this.interval=setInterval((()=>{this.scrolling&&(this.scrolling=!1,this.cb())}),this.delay)}}var l=n(5825),c=n(4825),u=n(6559),d=n.n(u);const h=n(9669);class f extends class{constructor(e){this.element=e,this.events=new(d()),this.input=e.querySelector("input"),this.init()}onChange(e){this.events.addListener("changed",e)}onEnabled(e){this.events.addListener("enabled",e)}onDisabled(e){this.events.addListener("disabled",e)}init(){this.input.addEventListener("click",(()=>{this.isEnabled()?this.enable():this.disable()}))}enable(){this.input.checked=!0,this.events.emit("enabled"),this.events.emit("changed")}disable(){this.input.checked=!1,this.events.emit("disabled"),this.events.emit("changed")}isEnabled(){return this.input.checked}startLoading(){this.element.append(r.Z.create("span").addClass("spinner").css("visibility","visible").getElement())}stopLoading(){this.element.querySelectorAll(".spinner").forEach((e=>e.remove()))}}{exist(){return null!==this.element}init(){super.init(),this.onChange((()=>{this.startLoading(),this.persist().finally((()=>this.stopLoading()))}))}persist(){return h.post(ajaxurl,(0,c.e2)({action:"acp_update_sticky_row_option",value:this.isEnabled(),layout:AC.layout,list_screen:AC.list_screen,_ajax_nonce:AC.ajax_nonce}))}}const p=(0,l.x)();p.addListener("Table.Ready",(e=>{var t;const n=document.querySelector("#acp_sticky_table_row");if(n){let r=new f(n);r.isEnabled()&&(null===(t=m(e.table))||void 0===t||t.enable()),r.onChange((()=>{var t,n;r.isEnabled()?null===(t=m(e.table))||void 0===t||t.enable():null===(n=m(e.table))||void 0===n||n.disable()}))}let r=new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{"TR"!==e.tagName||!e.classList.contains("inline-editor")&&"bulk-edit"!==e.id||e.querySelectorAll("td").forEach((e=>(e=>{var t,n;if("0"===e.getAttribute("colspan")){const r=null===(t=e.closest("table"))||void 0===t?void 0:t.querySelector("thead");if(r){let t=null===(n=r.firstElementChild)||void 0===n?void 0:n.querySelectorAll("td:not(.hidden), th:not(.hidden)").length;t&&e.setAttribute("colspan",t.toString())}}})(e)))}))}))}));r.observe(e.table.getElement(),{childList:!0,subtree:!0}),e.table.getElement().querySelectorAll("thead th[scope=col]").forEach((e=>{new ResizeObserver((()=>{var e;p.hasService("StickyHeader")&&(null===(e=p.getService("StickyHeader"))||void 0===e||e.stickyHeader.ensureColumnWidths())})).observe(e)}))}));const m=e=>(p.hasService("StickyHeader")||p.registerService("StickyHeader",new o(e)),p.getService("StickyHeader"))}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";class e{constructor(e){this.table=e}getRows(e){return jQuery.ajax({url:window.location.href,method:"post",data:{ac_action:"get_table_rows",ac_ids:e,_ajax_nonce:AC.ajax_nonce}})}updateRow(e){this.getRows([e]).done((t=>{t.success&&this.populateRow(e,t.data.table_rows[e])}))}populateRow(e,t){let n=document.createElement("table");n.insertAdjacentHTML("beforeend",t),this.table.Cells.getByID(e).forEach((e=>{var t;let r=n.querySelector(`td.column-${e.getName()}`);e.setValue(null!==(t=null==r?void 0:r.innerHTML)&&void 0!==t?t:"")}))}}class t{constructor(e){this.element=e}place(){[".wrap > a.page-title-action",".wrap h1",".wrap h2",".wrap div"].some((e=>this.tryPlacement(e)))}tryPlacement(e){var t;let n=document.querySelector(e);return!!n&&(null===(t=n.parentNode)||void 0===t||t.insertBefore(this.element,n.nextSibling),this.element.classList.add("-moved"),!0)}}var r=n(5825),s=n(9669),i=n.n(s),o=n(4825),a=n(6559),l=n.n(a);class c{constructor(e,t){this.table=e,this.defaultOrder=t,this.events=new(l()),this.initDraggableHeaders()}toggleDraggableClass(e){if(!this.draggableTarget)return;const t="acp-co-is-being-dragged";e?this.draggableTarget.classList.add(t):this.draggableTarget.classList.remove(t)}isDifferentFromDefault(){return this.defaultOrder.join()!==this.getCurrentColumnOrder().join()}initDraggableHeaders(){this.table.classList.add("acp-co-enabled"),this.table.querySelectorAll("thead th").forEach((e=>{let t=document.createElement("div");t.classList.add("acp-co-drag-handle"),e.querySelectorAll("a").forEach((e=>e.draggable=!1)),e.appendChild(t),e.setAttribute("draggable","true"),e.append(u()),e.addEventListener("dragstart",(e=>{var t;this.draggableTarget=e.target,"TH"!==this.draggableTarget.nodeName&&(this.draggableTarget=this.draggableTarget.closest("th")),e.dataTransfer&&this.draggableTarget&&e.dataTransfer.setData("text/plain",null===(t=this.draggableTarget)||void 0===t?void 0:t.id),this.table.classList.add("acp-co-is-dragging"),setTimeout((()=>this.toggleDraggableClass(!0)),10)})),e.addEventListener("drop",(t=>{let n=t.dataTransfer?t.dataTransfer.getData("text/plain"):"";if(this.table.classList.remove("acp-co-is-dragging"),this.toggleDraggableClass(!1),!n)return;let r=this.table.querySelector(`[id="${n}"]`);if(!r)return null;let s=this.getCurrentIndexForId(r.id);if(!s)return null;e.classList.remove("acp-co-dragover"),this.moveIndex(s,this.getCurrentIndexForId(e.id),this.isOnLeftSideOfElement(t,e)),this.persistUserOrder()})),e.addEventListener("dragenter",(()=>{e.classList.add("acp-co-dragover")})),e.addEventListener("dragleave",(()=>{e.classList.remove("acp-co-dragover")})),e.addEventListener("dragend",(()=>{e.classList.remove("acp-co-dragover"),this.toggleDraggableClass(!1)})),e.addEventListener("dragover",(t=>(t.preventDefault&&t.preventDefault(),e.dataset.dropLocation=this.isOnLeftSideOfElement(t,e)?"left":"right",!1)))}))}isOnLeftSideOfElement(e,t){const n=t.getBoundingClientRect().left,r=Math.round(t.clientWidth/2);return e.clientX-n<r}getCurrentIndexForId(e){let t=this.table.querySelector("thead tr");return t?Array.from(t.children).findIndex((t=>t.id===e)):0}moveIndex(e,t,n=!0){this.table.querySelectorAll("tr").forEach((r=>{let s=r.children[e],i=r.children[t];if(void 0!==s&&void 0!==i&&null!==s&&null!==i&&i.parentNode){let e=n?i:i.nextSibling;i.parentNode.insertBefore(s,e)}})),this.events.emit("changed")}getCurrentColumnOrder(){let e=this.table.querySelector("thead tr");return e?Array.from(e.querySelectorAll("th")).map((e=>e.id)):[]}persistUserOrder(){return i().post(ajaxurl,(0,o.e2)({action:"acp-user-column-order",list_id:AC.layout,_ajax_nonce:AC.ajax_nonce,column_names:this.getCurrentColumnOrder()}))}resetUserOrder(){return i().post(ajaxurl,(0,o.e2)({action:"acp-user-column-order-reset",list_id:AC.layout,_ajax_nonce:AC.ajax_nonce}))}persistListTableOrder(){return i().post(ajaxurl,(0,o.e2)({action:"acp-list-column-order",list_id:AC.layout,_ajax_nonce:AC.ajax_nonce,column_names:this.getCurrentColumnOrder()}))}}const u=()=>{let e=document.createElement("span");return e.classList.add("acp-co-move-indicator"),e};function d(){}function h(e){return e()}function f(){return Object.create(null)}function p(e){e.forEach(h)}function m(e){return"function"==typeof e}function g(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function v(e){return 0===Object.keys(e).length}new Set;let y,b=!1;function w(e,t){e.appendChild(t)}function _(e,t,n){e.insertBefore(t,n||null)}function E(e){e.parentNode&&e.parentNode.removeChild(e)}function C(e){return document.createElement(e)}function x(e){return document.createTextNode(e)}function L(){return x(" ")}function S(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function O(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function A(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function R(e,t,n){e.classList[n?"add":"remove"](t)}function k(e){y=e}function $(){if(!y)throw new Error("Function called outside component initialization");return y}function T(e){$().$$.on_mount.push(e)}new Map;const j=[],N=[],q=[],P=[],D=Promise.resolve();let B=!1;function I(e){q.push(e)}const U=new Set;let F=0;function H(){if(0!==F)return;const e=y;do{try{for(;F<j.length;){const e=j[F];F++,k(e),M(e.$$)}}catch(e){throw j.length=0,F=0,e}for(k(null),j.length=0,F=0;N.length;)N.pop()();for(let e=0;e<q.length;e+=1){const t=q[e];U.has(t)||(U.add(t),t())}q.length=0}while(j.length);for(;P.length;)P.pop()();B=!1,U.clear(),k(e)}function M(e){if(null!==e.fragment){e.update(),p(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(I)}}const W=new Set;let z;function Z(e,t){const n=e.$$;null!==n.fragment&&(p(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function V(e,t,n,r,s,i,o,a=[-1]){const l=y;k(e);const c=e.$$={fragment:null,ctx:[],props:i,update:d,not_equal:s,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:f(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},((t,n,...r)=>{const i=r.length?r[0]:n;return c.ctx&&s(c.ctx[t],c.ctx[t]=i)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](i),u&&function(e,t){-1===e.$$.dirty[0]&&(j.push(e),B||(B=!0,D.then(H)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n})):[],c.update(),u=!0,p(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){b=!0;const e=(w=t.target,Array.from(w.childNodes));c.fragment&&c.fragment.l(e),e.forEach(E)}else c.fragment&&c.fragment.c();t.intro&&((g=e.$$.fragment)&&g.i&&(W.delete(g),g.i(v))),function(e,t,n,r){const{fragment:s,after_update:i}=e.$$;s&&s.m(t,n),r||I((()=>{const t=e.$$.on_mount.map(h).filter(m);e.$$.on_destroy?e.$$.on_destroy.push(...t):p(t),e.$$.on_mount=[]})),i.forEach(I)}(e,t.target,t.anchor,t.customElement),b=!1,H()}var g,v,w;k(l)}"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){p(this.$$.on_disconnect)}$destroy(){Z(this,1),this.$destroy=d}$on(e,t){if(!m(t))return d;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!v(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class J{$destroy(){Z(this,1),this.$destroy=d}$on(e,t){if(!m(t))return d;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!v(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const X=[];const G=function(e){const{subscribe:t,update:n}=function(e,t=d){let n;const r=new Set;function s(t){if(g(e,t)&&(e=t,n)){const t=!X.length;for(const t of r)t[1](),X.push(t,e);if(t){for(let e=0;e<X.length;e+=2)X[e][0](X[e+1]);X.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,o=d){const a=[i,o];return r.add(a),1===r.size&&(n=t(s)||d),i(e),()=>{r.delete(a),0===r.size&&(n(),n=null)}}}}(e);return{subscribe:t,changeWidth:(e,t)=>{let r={};r[e]=t,n((e=>Object.assign({},e,r)))},remove:e=>{n((t=>(delete t[e],t)))},get:()=>e}}({}),K=()=>ACP_TABLE_I18N;function Q(e){let t;return{c(){t=C("span"),t.textContent=`${e[5].column_screen_option.button_reset}`,O(t,"class","acp-width-conf__reset")},m(e,n){_(e,t,n)},p:d,d(e){e&&E(t)}}}function Y(e){let t,n;return{c(){t=C("span"),n=x(e[0]),O(t,"class","acp-width-conf__width")},m(e,r){_(e,t,r),w(t,n)},p(e,t){1&t&&A(n,e[0])},d(e){e&&E(t)}}}function ee(e){let t;return{c(){t=C("style")},m(n,r){_(n,t,r),e[14](t)},p:d,d(n){n&&E(t),e[14](null)}}}function te(e){let t,n,r,s,i,o,a,l=e[4]&&Q(e),c=e[3]&&e[0]&&!e[4]&&Y(e),u=e[0]&&ee(e);return{c(){l&&l.c(),t=L(),n=C("div"),c&&c.c(),r=L(),s=C("span"),i=L(),u&&u.c(),O(s,"class","acp-width-conf-handle"),O(n,"class","acp-width-conf-dragger"),R(n,"active",e[3]),R(n,"-reset",e[4])},m(d,h){l&&l.m(d,h),_(d,t,h),_(d,n,h),c&&c.m(n,null),w(n,r),w(n,s),w(n,i),u&&u.m(n,null),e[15](n),o||(a=S(s,"mousedown",e[6]),o=!0)},p(e,[s]){e[4]?l?l.p(e,s):(l=Q(e),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null),e[3]&&e[0]&&!e[4]?c?c.p(e,s):(c=Y(e),c.c(),c.m(n,r)):c&&(c.d(1),c=null),e[0]?u?u.p(e,s):(u=ee(e),u.c(),u.m(n,null)):u&&(u.d(1),u=null),8&s&&R(n,"active",e[3]),16&s&&R(n,"-reset",e[4])},i:d,o:d,d(r){l&&l.d(r),r&&E(t),r&&E(n),c&&c.d(),u&&u.d(),e[15](null),o=!1,a()}}}function ne(e,t,n){let r,s,i,o,a,{width:l}=t,{columnName:c}=t,{table:u}=t,{tableCell:d}=t,{onChange:h}=t,{onReset:f}=t,{canReset:p}=t,{minWidth:m=40}=t,g=!1,v=!1,y=K();const b=()=>{let e=`@media screen and (min-width: 784px){\n \t\tbody.ac-${AC.list_screen} .wrap table th.column-${c} { width: ${a} !important; }\n\t\t\t\tbody.acp-overflow-table.ac-${AC.list_screen} .wrap th.column-${c} { min-width: ${a}!important; }\n \t}`;n(2,s.innerText=e.trim(),s),n(1,r.style.width="100%",r)},w=e=>{if(e.preventDefault(),e.stopPropagation(),!g)return;let t=Math.round(e.pageX+i-(r.getBoundingClientRect().left+Math.abs(document.documentElement.getBoundingClientRect().left)));n(4,v=t<0),t<m&&(t=m);let s=window.innerWidth;t>s&&(t=s),n(0,l=t.toString()+"px"),n(1,r.style.width=l,r),o=t,n(7,d.dataset.alteredWidth=t.toString(),d)};return e.$$set=e=>{"width"in e&&n(0,l=e.width),"columnName"in e&&n(8,c=e.columnName),"table"in e&&n(9,u=e.table),"tableCell"in e&&n(7,d=e.tableCell),"onChange"in e&&n(10,h=e.onChange),"onReset"in e&&n(11,f=e.onReset),"canReset"in e&&n(12,p=e.canReset),"minWidth"in e&&n(13,m=e.minWidth)},[l,r,s,g,v,y,e=>{n(7,d.style.zIndex="1000",d),n(3,g=!0),i=e.pageX-(e.target.getBoundingClientRect().left-document.documentElement.getBoundingClientRect().left),u.classList.add("acp-width-conf-dragging"),window.addEventListener("mousemove",w),window.addEventListener("mouseup",(()=>(()=>{if(window.removeEventListener("mousemove",w),n(3,g=!1),u.classList.remove("acp-width-conf-dragging"),n(7,d.style.zIndex="1",d),p(),l)return v?(G.remove(c),void 0!==f&&f(),void n(4,v=!1)):(a=r.style.width,G.changeWidth(c,o),b(),void setTimeout((()=>{h&&h()})))})()),{once:!0}),l&&n(1,r.style.width=l,r)},d,c,u,h,f,p,m,function(e){N[e?"unshift":"push"]((()=>{s=e,n(2,s)}))},function(e){N[e?"unshift":"push"]((()=>{r=e,n(1,r)}))}]}const re=class extends J{constructor(e){super(),V(this,e,ne,te,g,{width:0,columnName:8,table:9,tableCell:7,onChange:10,onReset:11,canReset:12,minWidth:13})}};var se=n(3937);const ie=()=>null!==ACP_TABLE&&void 0!==ACP_TABLE?ACP_TABLE:{};class oe{constructor(e,t,n){this.events=new(l()),this.active=t,this.handles={},this.table=e,this.changes=n,this.setHeaderCells(),t&&this.enable()}setHasChanges(e){this.changes=e,this.events.emit("changes",e)}hasChanges(){return this.changes}resetCell(e){this.handles.hasOwnProperty(e.id)&&(e.querySelectorAll(".acp-cr-container").forEach((e=>e.remove())),delete this.handles[e.id],this.initCell(e))}reset(){this.headerCells.forEach((e=>this.resetCell(e))),this.initCells()}enable(){this.initCells(),this.table.getElement().classList.add("-acp-cr-active")}disable(){this.table.getElement().classList.remove("-acp-cr-active"),this.headerCells.forEach((e=>e.classList.remove("-acp-cr-active")))}restoreUserPreferences(){return i().post(ajaxurl,(0,o.e2)({action:"acp-user-column-width-reset-all",list_id:AC.layout,_ajax_nonce:AC.ajax_nonce}))}storeListScreenSetting(){return i().post(ajaxurl,(0,o.e2)({action:"acp-list-column-width",list_id:AC.layout,_ajax_nonce:AC.ajax_nonce}))}storeUserPreference(e){var t,n,r;n=e.id,r=parseInt(null!==(t=e.dataset.alteredWidth)&&void 0!==t?t:""),i().post(ajaxurl,(0,o.e2)({action:"acp-user-column-width",list_id:AC.layout,column_name:n,width:r,_ajax_nonce:AC.ajax_nonce}))}handleSingleColumnReset(e){var t;this.resetCell(e),((e,t)=>{let n=document.querySelector(((e,t)=>`#ac-column-size-${t}-${e}`)(e,"user"));n&&n.remove()})(e.id),t=e.id,i().post(ajaxurl,(0,o.e2)({action:"acp-user-column-width-reset",list_id:AC.layout,column_name:t,_ajax_nonce:AC.ajax_nonce}))}setHeaderCells(){this.headerCells=[],this.table.Columns.getColumnNames().forEach((e=>{let t=this.table.getElement().querySelector(`thead [id="${e}"]`);t&&this.headerCells.push(t)}))}initCell(e){this.handles[e.id]=new re({target:se.Z.create("div").addClass("acp-cr-container").appendSelfTo(e).getElement(),props:{minWidth:ie().column_width.minimal_pixel_width,columnName:e.id,tableCell:e,table:this.table.getElement(),onChange:()=>this.storeUserPreference(e),onReset:()=>this.handleSingleColumnReset(e),canReset:()=>this.setHasChanges(!0)}})}initCells(){this.headerCells.forEach((e=>{this.handles.hasOwnProperty(e.id)||this.initCell(e)}))}}function ae(e){let t,n,r,s,i,o;return{c(){t=C("fieldset"),n=C("legend"),n.textContent=`${e[2].column_screen_option.label}`,r=L(),s=C("div"),i=C("div"),o=C("div"),O(o,"class","acp-so-tool__actions"),O(i,"class","acp-so-tool-container acp-so-tool"),O(s,"class","acp-tools-container"),O(t,"class","acp-screen-option-column"),R(t,"hidden",e[1])},m(a,l){_(a,t,l),w(t,n),w(t,r),w(t,s),w(s,i),w(i,o),e[7](o)},p(e,[n]){2&n&&R(t,"hidden",e[1])},i:d,o:d,d(n){n&&E(t),e[7](null)}}}function le(e,t,n){$();let r,{actions:s}=t,i=!1,o=!0;const a=K();return T((()=>{s.forEach((e=>r.appendChild(e)))})),e.$$set=e=>{"actions"in e&&n(3,s=e.actions)},[r,o,a,s,e=>{n(1,o=!e)},()=>{i=!1},e=>{r.appendChild(e)},function(e){N[e?"unshift":"push"]((()=>{r=e,n(0,r)}))}]}const ce=class extends J{constructor(e){super(),V(this,e,le,ae,g,{actions:3,toggle:4,stopLoading:5,addAction:6})}get toggle(){return this.$$.ctx[4]}get stopLoading(){return this.$$.ctx[5]}get addAction(){return this.$$.ctx[6]}};class ue{constructor(e){this.target=e,this.events=new(l()),this.actions={},this.initComponent()}initComponent(){this.component=new ce({target:this.target,props:{actions:[]}})}toggle(e){return this.component.toggle(e),!0}getAction(e){return this.actions.hasOwnProperty(e)?this.actions[e]:null}addAction(e,t){return this.component.addAction(t),this.actions[e]=t,this}}function de(e){let t,n,r,s,i,o,a,l,c,u,h,f,m;return{c(){t=C("div"),n=C("div"),r=C("div"),s=x(e[0]),i=L(),o=C("div"),a=C("button"),l=x(e[2]),c=L(),u=C("button"),h=x(e[1]),O(r,"class","ac-confirmation__modal__content"),O(a,"class","button"),O(u,"class","button button-primary"),O(o,"class","ac-confirmation__modal__footer"),O(n,"class","ac-confirmation__modal"),O(t,"class","ac-confirmation acu-mb-")},m(d,p){_(d,t,p),w(t,n),w(n,r),w(r,s),w(n,i),w(n,o),w(o,a),w(a,l),w(o,c),w(o,u),w(u,h),e[9](u),f||(m=[S(a,"click",e[5]),S(u,"click",e[4])],f=!0)},p(e,[t]){1&t&&A(s,e[0]),4&t&&A(l,e[2]),2&t&&A(h,e[1])},i:d,o:d,d(n){n&&E(t),e[9](null),f=!1,p(m)}}}function he(e,t,n){let r,{message:s}=t,{onConfirm:i}=t,{onClose:o}=t,{lastFocusElement:a}=t,{ok:l}=t,{cancel:c}=t;const u=()=>{a&&a.focus(),o()},d=e=>{"Escape"===e.key&&u()};var h;return T((()=>{document.addEventListener("keydown",d),r.focus()})),h=()=>{document.removeEventListener("keydown",d)},$().$$.on_destroy.push(h),e.$$set=e=>{"message"in e&&n(0,s=e.message),"onConfirm"in e&&n(6,i=e.onConfirm),"onClose"in e&&n(7,o=e.onClose),"lastFocusElement"in e&&n(8,a=e.lastFocusElement),"ok"in e&&n(1,l=e.ok),"cancel"in e&&n(2,c=e.cancel)},[s,l,c,r,()=>{i(),u()},u,i,o,a,function(e){N[e?"unshift":"push"]((()=>{r=e,n(3,r)}))}]}const fe=class extends J{constructor(e){super(),V(this,e,he,de,g,{message:0,onConfirm:6,onClose:7,lastFocusElement:8,ok:1,cancel:2})}},pe=()=>ac_global_translations;class me{constructor(e){this.config=e}create(){var e,t,n,r,s,i;let o=document.createElement("div");document.body.appendChild(o),this.component=new fe({target:o,props:{ok:null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.translation)||void 0===t?void 0:t.ok)&&void 0!==n?n:pe().confirmation.ok,cancel:null!==(i=null===(s=null===(r=this.config)||void 0===r?void 0:r.translation)||void 0===s?void 0:s.cancel)&&void 0!==i?i:pe().confirmation.cancel,message:this.config.message,onConfirm:this.config.confirm,lastFocusElement:this.config.lastFocus,onClose:()=>{this.component.$destroy(),o.remove()}}})}}class ge{constructor(){this.processes=[]}addProcess(e){this.processes.push(e)}start(){return new Promise((e=>{return t=this,n=void 0,s=function*(){for(let e of this.processes)yield e();e(!0)},new((r=void 0)||(r=Promise))((function(e,i){function o(e){try{l(s.next(e))}catch(e){i(e)}}function a(e){try{l(s.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(o,a)}l((s=s.apply(t,n||[])).next())}));var t,n,r,s}))}}const ve=(0,r.x)();ve.addListener("Table.Ready",(n=>{var r;let s=n.table,i=ie();s.Refresher=new e(s);let o=document.querySelector(".layout-switcher");o&&new t(o).place();let a=s.getElement().closest("form");a&&a.insertAdjacentHTML("afterbegin",'<input type="hidden" name="ac-actions-form" value="1" />');let l=null!==(r=document.querySelector("#acp-screen-option-tools"))&&void 0!==r?r:document.createElement("div"),u=new ue(l);ve.registerService("ColumnScreenOptions",u),i.column_order.active&&ve.registerService("ColumnOrder",new c(n.table.getElement(),i.column_order.current_order)),ve.registerService("WidthConfigurator",new oe(n.table,!0,i.column_width.can_reset))}));const ye=new class{constructor(){this.changes=[],this.events=new(l())}clearChanges(){this.changes=[],this.events.emit("change")}addChange(e){this.changes.includes(e)||(this.changes.push(e),this.events.emit("change"))}deleteChange(e){this.changes=this.changes.filter((t=>t!==e)),this.events.emit("change")}onChange(e){this.events.addListener("change",e)}hasChanges(){return this.changes.length>0}};(e=>{const t=(0,r.x)(),n=K(),s=(e=>{let t=se.Z.create("span").addClass("spinner");return se.Z.create("span").addClass("acp-so-tool__actions__action").addHtml(e).append(t.getElement())})(n.column_screen_option.button_reset).setAttribute("data-ac-tip",n.column_screen_option.tip_reset).css("display","none");s.addEventListener("click",(()=>{new me({message:n.column_screen_option.reset_confirmation,translation:n.confirmation,confirm:()=>{i().post(ajaxurl,(0,o.e2)({action:"acp-user-column-reset",list_id:AC.layout,_ajax_nonce:AC.ajax_nonce})).then((()=>window.location.reload()))}}).create()})),e.onChange((()=>{var n;s.css("display",e.hasChanges()?"block":"none"),null===(n=t.getService("ColumnScreenOptions"))||void 0===n||n.toggle(!0)})),t.addListener("Service.Registered.ColumnScreenOptions",(e=>{e.addAction("reset_width",s.getElement())})),t.addListener("Service.Registered.WidthConfigurator",(n=>{t.getService("ColumnScreenOptions"),n.hasChanges()&&e.addChange("width"),s.addEventListener("click",(()=>{n.reset()})),n.events.addListener("changes",(t=>{t&&e.addChange("width")}))})),t.addListener("Service.Registered.ColumnOrder",(t=>{t.isDifferentFromDefault()&&e.addChange("order"),t.events.addListener("changed",(()=>{t.isDifferentFromDefault()?e.addChange("order"):e.deleteChange("order")}))}))})(ye),(e=>{if(!ie().column_screen_option.has_manage_admin_cap)return;const t=new ge,n=(0,r.x)(),s=K(),i=(e=>{let t=se.Z.create("span").addClass("spinner");return se.Z.create("span").addClass("acp-so-tool__actions__action").addHtml(e).append(t.getElement())})(s.column_screen_option.save_changes).setAttribute("data-ac-tip",s.column_screen_option.tip_save_changes).addClass("-disabled");e.onChange((()=>{i.toggleClass("-disabled",!e.hasChanges())})),n.addListener("Service.Registered.ColumnScreenOptions",(e=>{e.addAction("default",i.getElement()).toggle(!0)})),i.addEventListener("click",(()=>{i.getElement().classList.contains("-disabled")||new me({translation:s.confirmation,message:s.column_screen_option.save_changes_confirmation,confirm:()=>{i.addClass("loading"),t.start().then((()=>{i.removeClass("loading")})),e.clearChanges()}}).create()})),n.addListener("Service.Registered.WidthConfigurator",(e=>{t.addProcess((()=>new Promise((t=>{e.storeListScreenSetting().then((()=>t(!0)))})))),e.hasChanges()&&i.removeClass("-disabled")})),n.addListener("Service.Registered.ColumnOrder",(e=>{t.addProcess((()=>new Promise((t=>{e.persistListTableOrder().then((()=>t(!0)))})))),e.isDifferentFromDefault()&&i.removeClass("-disabled")}))})(ye),n(8974)})()})();