layouts.js 55.1 KB
(()=>{var e={1719:(e,t,n)=>{e.exports=n(5707)},2886:(e,t,n)=>{"use strict";var r=n(7891),s=n(5527),o=n(9868),i=n(4204),a=n(5033),c=n(6773),l=n(6509),u=n(1382);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,h=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var g=a(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,o={data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};s(t,n,o),p=null}}if(p.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||l(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},5707:(e,t,n)=>{"use strict";var r=n(7891),s=n(2968),o=n(440),i=n(4989);function a(e){var t=new o(e),n=s(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=a(n(3091));c.Axios=o,c.create=function(e){return a(i(c.defaults,e))},c.Cancel=n(8019),c.CancelToken=n(889),c.isCancel=n(7983),c.all=function(e){return Promise.all(e)},c.spread=n(7654),c.isAxiosError=n(7041),e.exports=c,e.exports.default=c},8019:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},889:(e,t,n)=>{"use strict";var r=n(8019);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;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},7983:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},440:(e,t,n)=>{"use strict";var r=n(7891),s=n(4204),o=n(4871),i=n(9560),a=n(4989),c=n(2115),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var s,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var u=[i,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),s=Promise.resolve(e);u.length;)s=s.then(u.shift(),u.shift());return s}for(var f=e;n.length;){var d=n.shift(),h=n.shift();try{f=d(f)}catch(e){h(e);break}}try{s=i(f)}catch(e){return Promise.reject(e)}for(;o.length;)s=s.then(o.shift(),o.shift());return s},u.prototype.getUri=function(e){return e=a(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=u},4871:(e,t,n)=>{"use strict";var r=n(7891);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},5033:(e,t,n)=>{"use strict";var r=n(6314),s=n(374);e.exports=function(e,t){return e&&!r(t)?s(e,t):t}},1382:(e,t,n)=>{"use strict";var r=n(3656);e.exports=function(e,t,n,s,o){var i=new Error(e);return r(i,t,n,s,o)}},9560:(e,t,n)=>{"use strict";var r=n(7891),s=n(5721),o=n(7983),i=n(3091);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(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||i.adapter)(e).then((function(t){return a(e),t.data=s.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=s.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},3656:e=>{"use strict";e.exports=function(e,t,n,r,s){return e.config=t,n&&(e.code=n),e.request=r,e.response=s,e.isAxiosError=!0,e.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}},e}},4989:(e,t,n)=>{"use strict";var r=n(7891);e.exports=function(e,t){t=t||{};var n={},s=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(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 l(s){r.isUndefined(t[s])?r.isUndefined(e[s])||(n[s]=c(void 0,e[s])):n[s]=c(e[s],t[s])}r.forEach(s,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(o,l),r.forEach(i,(function(s){r.isUndefined(t[s])?r.isUndefined(e[s])||(n[s]=c(void 0,e[s])):n[s]=c(void 0,t[s])})),r.forEach(a,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=s.concat(o).concat(i).concat(a),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(f,l),n}},5527:(e,t,n)=>{"use strict";var r=n(1382);e.exports=function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},5721:(e,t,n)=>{"use strict";var r=n(7891),s=n(3091);e.exports=function(e,t,n){var o=this||s;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},3091:(e,t,n)=>{"use strict";var r=n(7891),s=n(7413),o=n(3656),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(2886)),c),transformRequest:[function(e,t){return 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)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(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,n=t&&t.silentJSONParsing,s=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||s&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l},2968: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)}}},4204:(e,t,n)=>{"use strict";var r=n(7891);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 o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var i=[];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)),i.push(s(t)+"="+s(e))})))})),o=i.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},374:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},9868:(e,t,n)=>{"use strict";var r=n(7891);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,s,o,i){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(o)&&a.push("domain="+o),!0===i&&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(){}}},6314:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},7041:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},6509:(e,t,n)=>{"use strict";var r=n(7891);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}},7413:(e,t,n)=>{"use strict";var r=n(7891);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},6773:(e,t,n)=>{"use strict";var r=n(7891),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,o,i={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(i[t]&&s.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},7654:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2115:(e,t,n)=>{"use strict";var r=n(80),s={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){s[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},i=r.version.split(".");function a(e,t){for(var n=t?t.split("."):i,r=e.split("."),s=0;s<3;s++){if(n[s]>r[s])return!0;if(n[s]<r[s])return!1}return!1}s.transitional=function(e,t,n){var s=t&&a(t);function i(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(i(r," has been removed in "+t));return s&&!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={isOlderVersion:a,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),s=r.length;s-- >0;){var o=r[s],i=t[o];if(i){var a=e[o],c=void 0===a||i(a,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:s}},7891:(e,t,n)=>{"use strict";var r=n(2968),s=Object.prototype.toString;function o(e){return"[object Array]"===s.call(e)}function i(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==s.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===s.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(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)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===s.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:c,isUndefined:i,isDate:function(e){return"[object Date]"===s.call(e)},isFile:function(e){return"[object File]"===s.call(e)},isBlob:function(e){return"[object Blob]"===s.call(e)},isFunction:l,isStream:function(e){return a(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,s=arguments.length;r<s;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,s){e[s]=n&&"function"==typeof t?r(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}}},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),o=n(3114);function i(e){if(!(this instanceof i))return new i(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=i,i.prototype.emit=function(e){o.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 i=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,i.uuid),i(),this},i.prototype.on=i.prototype.addListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),o.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},i.prototype.prependListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),o.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},i.prototype.once=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),o.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},i.prototype.prependOnceListener=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),o.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},i.prototype.removeListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),o.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}}},i.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},i.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},i.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,o=0;o<s;o++){var i=e[o];i.apply(i,n)}}}},792:(e,t,n)=>{var r=n(3114),s="undefined"!=typeof window;function o(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=[]}o.prototype.push=function(e){r.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},o.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()}))}},o.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return s?(window._nanoScheduler||(window._nanoScheduler=new o(!0)),e=window._nanoScheduler):e=new o,e}},1511:(e,t,n)=>{var r,s=n(792)(),o=n(3114);i.disabled=!0;try{r=window.performance,i.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(e){}function i(e){if(o.equal(typeof e,"string","nanotiming: name should be type string"),i.disabled)return a;var t=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function c(o){var i="end-"+t+"-"+e;r.mark(i),s.push((function(){var s=null;try{var a=e+" ["+t+"]";r.measure(a,n,i),r.clearMarks(n),r.clearMarks(i)}catch(e){s=e}o&&o(s,e)}))}return r.mark(n),c.uuid=t,c}function a(e){e&&s.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=i},7415:e=>{"use strict";e.exports=function(e,t,n){var r,s=e.length;if(!(t>=s||0===n)){var o=s-(n=t+n>s?s-t:n);for(r=t;r<o;++r)e[r]=e[r+n];e.length=o}}},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),o=n(9204);function i(e){if(!(this instanceof i))return new i(e);this._name=e||"nanobus",this._starListeners=[],this._listeners={}}e.exports=i,i.prototype.emit=function(e){o.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 i=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,i.uuid),i(),this},i.prototype.on=i.prototype.addListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.on: eventName should be type string or symbol"),o.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},i.prototype.prependListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependListener: eventName should be type string or symbol"),o.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},i.prototype.once=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.once: eventName should be type string or symbol"),o.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},i.prototype.prependOnceListener=function(e,t){o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.prependOnceListener: eventName should be type string or symbol"),o.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},i.prototype.removeListener=function(e,t){return o.ok("string"==typeof e||"symbol"==typeof e,"nanobus.removeListener: eventName should be type string or symbol"),o.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}}},i.prototype.removeAllListeners=function(e){return e?"*"===e?this._starListeners=[]:this._listeners[e]=[]:(this._starListeners=[],this._listeners={}),this},i.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},i.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,o=0;o<s;o++){var i=e[o];i.apply(i,n)}}}},8061:(e,t,n)=>{var r=n(9204),s="undefined"!=typeof window;function o(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=[]}o.prototype.push=function(e){r.equal(typeof e,"function","nanoscheduler.push: cb should be type function"),this.queue.push(e),this.schedule()},o.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()}))}},o.prototype.setTimeout=function(e){setTimeout(e,0,{timeRemaining:function(){return 1}})},e.exports=function(){var e;return s?(window._nanoScheduler||(window._nanoScheduler=new o(!0)),e=window._nanoScheduler):e=new o,e}},7999:(e,t,n)=>{var r,s=n(8061)(),o=n(9204);i.disabled=!0;try{r=window.performance,i.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(e){}function i(e){if(o.equal(typeof e,"string","nanotiming: name should be type string"),i.disabled)return a;var t=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+t+"-"+e;function c(o){var i="end-"+t+"-"+e;r.mark(i),s.push((function(){var s=null;try{var a=e+" ["+t+"]";r.measure(a,n,i),r.clearMarks(n),r.clearMarks(i)}catch(e){s=e}o&&o(s,e)}))}return r.mark(n),c.uuid=t,c}function a(e){e&&s.push((function(){e(new Error("nanotiming: performance API unavailable"))}))}e.exports=i},7069:e=>{"use strict";e.exports=function(e,t,n){var r,s=e.length;if(!(t>=s||0===n)){var o=s-(n=t+n>s?s-t:n);for(r=t;r<o;++r)e[r]=e[r+n];e.length=o}}},80:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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),(()=>{"use strict";var e=n(6559),t=n.n(e);class r{constructor(e){this.el=e,this.events=new(t()),this.Form=new s(e.querySelector(".new")),this.initEvents()}onOrdered(e){this.events.addListener("ordered",e)}getListScreen(){var e;return null!==(e=this.el.dataset.type)&&void 0!==e?e:""}initEvents(){const e=this.getButton();e&&e.addEventListener("click",(t=>{t.preventDefault(),e.classList.contains("open")?this.cancelNewLayout():this.addNewLayout()})),jQuery(this.el).find(".layouts__items").sortable({items:".layouts__item",axis:"y",containment:jQuery(this.el).find(".layouts__items"),handle:".cpacicon-move",stop:()=>{this.setNewOrder()}})}setNewOrder(){this.storeLayoutOrder(this.getOrder()).done((()=>{this.events.emit("ordered",this.getOrder())}))}getOrder(){let e=[];return this.el.querySelectorAll(".layouts__item").forEach((t=>{var n;e.push(null!==(n=t.dataset.screen)&&void 0!==n?n:"")})),e}storeLayoutOrder(e){return jQuery.ajax({url:ajaxurl,method:"POST",data:{_ajax_nonce:AC._ajax_nonce,action:"acp-update-layout-order",list_screen:this.getListScreen(),order:e}})}getButton(){return this.el.querySelector("a.add-new")}addNewLayout(){var e;null===(e=this.getButton())||void 0===e||e.classList.add("open"),this.Form.open()}cancelNewLayout(){var e;null===(e=this.getButton())||void 0===e||e.classList.remove("open"),this.Form.close()}}class s{constructor(e){this.el=e,this.initEvents()}open(){jQuery(this.el).slideDown()}close(){jQuery(this.el).slideUp()}initEvents(){var e;null===(e=this.el.querySelector(".new form"))||void 0===e||e.addEventListener("submit",(e=>{var t,n;(null===(t=this.el.querySelector(".row.name input"))||void 0===t?void 0:t.value.trim())||(e.preventDefault(),null===(n=this.el.querySelector(".row.name"))||void 0===n||n.classList.add("save-error"))}))}}class o{constructor(e){var t,n,r,s;this.form=e,this.columns=e.getColumns(),this.setting=e.getElement().querySelector('[data-setting="sorting-preference"]')||document.createElement("div"),this.selectElement=null!==(n=null===(t=this.setting)||void 0===t?void 0:t.querySelector('[name="sorting"]'))&&void 0!==n?n:document.createElement("select"),this.orderSelectElement=null!==(s=null===(r=this.setting)||void 0===r?void 0:r.querySelector('[name="sorting_order"]'))&&void 0!==s?s:document.createElement("select"),this.setting&&this.init()}getPreferences(e){var t,n,r,s;return e.sorting=null!==(n=null===(t=this.selectElement)||void 0===t?void 0:t.value)&&void 0!==n?n:"",e.sorting_order=null!==(s=null===(r=this.orderSelectElement)||void 0===r?void 0:r.value)&&void 0!==s?s:"",e}init(){this.columns.forEach((e=>{if(this.isSortable(e)){let n=document.createElement("option");if(n.value=e.getName(),n.text=(t=e.getJson().label)?t.replace(/(<([^>]+)>)/gi,""):"",!n.text){let t=e.getElement().querySelector(".ac-column__header__type > span");t&&(n.text=t.innerText)}this.selectElement.appendChild(n)}var t}));let e=this.selectElement.dataset.sorting;this.selectElement.querySelectorAll(`[value="${e}"]`).forEach((e=>e.selected=!0))}isSortable(e){return e.getElement().querySelectorAll('table[data-setting="sort"] input[value="on"]:checked').length>0}}const i=()=>acp_settings_i18n;class a{constructor(e){this.Form=e,this.init()}getPreferences(e){var t;let n=this.Form.querySelector("select.roles");return e.roles=[...null!==(t=null==n?void 0:n.selectedOptions)&&void 0!==t?t:[]].map((e=>e.value)),e}init(){jQuery(this.Form.querySelector("select.roles")).ac_select2({placeholder:i().roles,theme:"acs2"}).on("select2:select",(function(){jQuery(this).ac_select2("open")})).on("select2:open",(function(){setTimeout((function(){jQuery(".select2-container.select2-container--open .select2-dropdown li[role=group]").each((function(){jQuery(this).find("li[aria-selected=false]").length>0?jQuery(this).show():jQuery(this).hide()}))}),1)}))}}class c{constructor(e){this.Form=e,this.init()}getPreferences(e){var t;let n=this.Form.querySelector("select.users");return e.users=[...null!==(t=null==n?void 0:n.selectedOptions)&&void 0!==t?t:[]].map((e=>e.value)),e}init(){jQuery(this.Form.querySelector("select.users")).ac_select2({placeholder:i().users,multiple:!0,theme:"acs2",minimumInputLength:0,escapeMarkup:function(e){return jQuery("<div>"+e+"</div>").text()},ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:350,data:function(e){return{action:"acp-layout-get-users",_ajax_nonce:AC._ajax_nonce,search:e.term,page:e.page}},processResults:function(e){return e&&e.success&&e.data?e.data:{results:[]}},cache:!0}})}}class l{getPreferences(e){return e.horizontal_scrolling=document.querySelector("input[name=horizontal_scrolling][type=checkbox]").checked?"on":"off",e}}function u(){}function f(e){return e()}function d(){return Object.create(null)}function h(e){e.forEach(f)}function p(e){return"function"==typeof e}function m(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}function g(e,t,n,r){if(e){const s=y(e,t,n,r);return e[0](s)}}function y(e,t,n,r){return e[1]&&r?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](r(t))):n.ctx}function b(e,t,n,r){if(e[2]&&r){const s=e[2](r(n));if(void 0===t.dirty)return s;if("object"==typeof s){const e=[],n=Math.max(t.dirty.length,s.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|s[r];return e}return t.dirty|s}return t.dirty}function w(e,t,n,r,s,o){if(s){const i=y(t,n,r,o);e.p(i,s)}}function _(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}new Set;let x,k=!1;function $(e,t){e.appendChild(t)}function E(e,t,n){const r=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!r.getElementById(t)){const e=j("style");e.id=t,e.textContent=n,function(e,t){$(e.head||e,t),t.sheet}(r,e)}}function S(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function q(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function j(e){return document.createElement(e)}function O(e){return document.createTextNode(e)}function C(){return O(" ")}function N(){return O("")}function A(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function T(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function P(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function R(e,t,n){e.classList[n?"add":"remove"](t)}function B(e){x=e}function F(){if(!x)throw new Error("Function called outside component initialization");return x}function I(){const e=F();return(t,n,{cancelable:r=!1}={})=>{const s=e.$$.callbacks[t];if(s){const o=function(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(e,n,r,t),s}(t,n,{cancelable:r});return s.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}new Map;const M=[],U=[],V=[],D=[],H=Promise.resolve();let z=!1;function J(e){V.push(e)}function Q(e){D.push(e)}const W=new Set;let G=0;function X(){if(0!==G)return;const e=x;do{try{for(;G<M.length;){const e=M[G];G++,B(e),K(e.$$)}}catch(e){throw M.length=0,G=0,e}for(B(null),M.length=0,G=0;U.length;)U.pop()();for(let e=0;e<V.length;e+=1){const t=V[e];W.has(t)||(W.add(t),t())}V.length=0}while(M.length);for(;D.length;)D.pop()();z=!1,W.clear(),B(e)}function K(e){if(null!==e.fragment){e.update(),h(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(J)}}const Y=new Set;let Z,ee;function te(){Z={r:0,c:[],p:Z}}function ne(){Z.r||h(Z.c),Z=Z.p}function re(e,t){e&&e.i&&(Y.delete(e),e.i(t))}function se(e,t,n,r){if(e&&e.o){if(Y.has(e))return;Y.add(e),Z.c.push((()=>{Y.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function oe(e,t,n){const r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function ie(e){e&&e.c()}function ae(e,t,n,r){const{fragment:s,after_update:o}=e.$$;s&&s.m(t,n),r||J((()=>{const t=e.$$.on_mount.map(f).filter(p);e.$$.on_destroy?e.$$.on_destroy.push(...t):h(t),e.$$.on_mount=[]})),o.forEach(J)}function ce(e,t){const n=e.$$;null!==n.fragment&&(h(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function le(e,t,n,r,s,o,i,a=[-1]){const c=x;B(e);const l=e.$$={fragment:null,ctx:[],props:o,update:u,not_equal:s,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:d(),dirty:a,skip_bound:!1,root:t.target||c.$$.root};i&&i(l.root);let f=!1;if(l.ctx=n?n(e,t.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return l.ctx&&s(l.ctx[t],l.ctx[t]=o)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](o),f&&function(e,t){-1===e.$$.dirty[0]&&(M.push(e),z||(z=!0,H.then(X)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n})):[],l.update(),f=!0,h(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){k=!0;const e=(p=t.target,Array.from(p.childNodes));l.fragment&&l.fragment.l(e),e.forEach(L)}else l.fragment&&l.fragment.c();t.intro&&re(e.$$.fragment),ae(e,t.target,t.anchor,t.customElement),k=!1,X()}var p;B(c)}"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&&(ee=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(f).filter(p);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){h(this.$$.on_disconnect)}$destroy(){ce(this,1),this.$destroy=u}$on(e,t){if(!p(t))return u;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 ue{$destroy(){ce(this,1),this.$destroy=u}$on(e,t){if(!p(t))return u;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)}}function fe(e){E(e,"svelte-1qts9gw",".ac-toggle-v2__toggle__track.svelte-1qts9gw.svelte-1qts9gw.svelte-1qts9gw{background:var(--baseBackground, #d8d8d8)}.ac-toggle-v2__toggle.svelte-1qts9gw input[type=checkbox].svelte-1qts9gw:checked~.ac-toggle-v2__toggle__track.svelte-1qts9gw{background:var(--activeBackground, var(--ac-primary-color))}.ac-toggle-v2.svelte-1qts9gw input[type=checkbox].svelte-1qts9gw:focus+.ac-toggle-v2__toggle__track.svelte-1qts9gw{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ac-primary-color)}")}function de(e){let t;const n=e[9].default,r=g(n,e,e[8],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,s){r&&r.p&&(!t||256&s)&&w(r,n,e,e[8],t?b(n,e[8],s,null):_(e[8]),null)},i(e){t||(re(r,e),t=!0)},o(e){se(r,e),t=!1},d(e){r&&r.d(e)}}}function he(e){let t;return{c(){t=O(e[2])},m(e,n){S(e,t,n)},p(e,n){4&n&&P(t,e[2])},i:u,o:u,d(e){e&&L(t)}}}function pe(e){let t,n,r,s,o,i,a,c,l,u,f,d,p,m;const v=[he,de],g=[];function y(e,t){return e[2]?0:1}return u=y(e),f=g[u]=v[u](e),{c(){t=j("div"),n=j("span"),r=j("input"),s=C(),o=j("span"),i=C(),a=j("span"),c=C(),l=j("label"),f.c(),T(r,"class","ac-toggle-v2__toggle__input svelte-1qts9gw"),T(r,"type","checkbox"),r.__value="off",r.value=r.__value,T(r,"id",e[3]),T(o,"class","ac-toggle-v2__toggle__track svelte-1qts9gw"),T(a,"class","ac-toggle-v2__toggle__thumb"),T(n,"class","ac-toggle-v2__toggle svelte-1qts9gw"),T(l,"class","ac-toggle-v2__label"),T(l,"for",e[3]),T(t,"class","ac-toggle-v2 svelte-1qts9gw"),T(t,"style",e[1])},m(f,h){S(f,t,h),$(t,n),$(n,r),r.checked=e[0],$(n,s),$(n,o),$(n,i),$(n,a),$(t,c),$(t,l),g[u].m(l,null),d=!0,p||(m=[A(r,"change",e[10]),A(r,"input",e[11])],p=!0)},p(e,[n]){1&n&&(r.checked=e[0]);let s=u;u=y(e),u===s?g[u].p(e,n):(te(),se(g[s],1,1,(()=>{g[s]=null})),ne(),f=g[u],f?f.p(e,n):(f=g[u]=v[u](e),f.c()),re(f,1),f.m(l,null)),(!d||2&n)&&T(t,"style",e[1])},i(e){d||(re(f),d=!0)},o(e){se(f),d=!1},d(e){e&&L(t),g[u].d(),p=!1,h(m)}}}function me(e,t,n){let r,s,{$$slots:o={},$$scope:i}=t,{customStyles:a=""}=t,{checked:c}=t,{trueValue:l=""}=t,{falseValue:u=""}=t,f=(()=>{let e=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1);return"ac"+e()+e()+"-"+e()+"-"+e()+"-"+e()})(),d=I();const h=()=>{setTimeout((()=>d("input")))};return e.$$set=e=>{"customStyles"in e&&n(1,a=e.customStyles),"checked"in e&&n(0,c=e.checked),"trueValue"in e&&n(5,l=e.trueValue),"falseValue"in e&&n(6,u=e.falseValue),"$$scope"in e&&n(8,i=e.$$scope)},e.$$.update=()=>{96&e.$$.dirty&&n(7,r=null!=u?u:l),161&e.$$.dirty&&n(2,s=c?l:r)},[c,a,s,f,h,l,u,r,i,o,function(){c=this.checked,n(0,c)},()=>h()]}const ve=class extends ue{constructor(e){super(),le(this,e,me,pe,m,{customStyles:1,checked:0,trueValue:5,falseValue:6},fe)}};function ge(e){E(e,"svelte-1n9v6fk",".acui-checkbox.svelte-1n9v6fk.svelte-1n9v6fk.svelte-1n9v6fk{display:flex}.acui-checkbox.svelte-1n9v6fk input.svelte-1n9v6fk.svelte-1n9v6fk{position:absolute;left:0;opacity:0;outline:none;z-index:-1}.acui-checkbox__check.svelte-1n9v6fk.svelte-1n9v6fk.svelte-1n9v6fk{position:relative;display:inline-block;align-items:center;justify-content:center;border-radius:1px;width:20px;height:20px;background:#fff;border:1px solid #8c8f94;transform:scale(80%) translateY(-2px);margin-right:5px;text-align:center}.acui-checkbox__check.svelte-1n9v6fk svg.svelte-1n9v6fk.svelte-1n9v6fk{position:absolute;left:-2px;top:-2px;fill:white;display:none}.acui-checkbox.svelte-1n9v6fk input[type=checkbox].svelte-1n9v6fk:checked+.acui-checkbox__check.svelte-1n9v6fk{border-color:var(--ac-primary-color);background:var(--ac-primary-color)}.acui-checkbox.svelte-1n9v6fk input[type=checkbox]:checked+.acui-checkbox__check svg.svelte-1n9v6fk.svelte-1n9v6fk{display:block}.acui-checkbox.indeterminate.svelte-1n9v6fk input[type=checkbox].svelte-1n9v6fk+.acui-checkbox__check.svelte-1n9v6fk{border-color:var(--ac-primary-color);background:var(--ac-primary-color) url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath fill='%23fff' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E\") no-repeat 50%}.acui-checkbox.svelte-1n9v6fk input[type=checkbox].svelte-1n9v6fk:focus+.acui-checkbox__check.svelte-1n9v6fk{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ac-primary-color)}.acui-checkbox.svelte-1n9v6fk input[disabled].svelte-1n9v6fk+.acui-checkbox__check.svelte-1n9v6fk{cursor:not-allowed;opacity:.4}")}function ye(e){let t;const n=e[12].default,r=g(n,e,e[11],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,s){r&&r.p&&(!t||2048&s)&&w(r,n,e,e[11],t?b(n,e[11],s,null):_(e[11]),null)},i(e){t||(re(r,e),t=!0)},o(e){se(r,e),t=!1},d(e){r&&r.d(e)}}}function be(e){let t;return{c(){t=O(e[5])},m(e,n){S(e,t,n)},p(e,n){32&n&&P(t,e[5])},i:u,o:u,d(e){e&&L(t)}}}function we(e){let t,n,r,s,o,i,a,c,l,u,f;const d=[be,ye],p=[];function m(e,t){return e[5]?0:1}return a=m(e),c=p[a]=d[a](e),{c(){t=j("label"),n=j("input"),r=C(),s=j("span"),s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="presentation" class="components-checkbox-control__checked svelte-1n9v6fk" aria-hidden="true" focusable="false"><path d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path></svg>',o=C(),i=j("span"),c.c(),T(n,"type","checkbox"),n.__value=e[1],n.value=n.__value,n.disabled=e[2],T(n,"class","svelte-1n9v6fk"),T(s,"class","acui-checkbox__check svelte-1n9v6fk"),T(i,"class","acui-checkbox__label"),T(t,"class","acui-checkbox svelte-1n9v6fk"),R(t,"indeterminate",e[0]),R(t,"disabled",e[2])},m(c,d){S(c,t,d),$(t,n),n.checked=e[3],e[14](n),$(t,r),$(t,s),$(t,o),$(t,i),p[a].m(i,null),l=!0,u||(f=[A(n,"change",e[13]),A(n,"input",e[6])],u=!0)},p(e,[r]){(!l||2&r)&&(n.__value=e[1],n.value=n.__value),(!l||4&r)&&(n.disabled=e[2]),8&r&&(n.checked=e[3]);let s=a;a=m(e),a===s?p[a].p(e,r):(te(),se(p[s],1,1,(()=>{p[s]=null})),ne(),c=p[a],c?c.p(e,r):(c=p[a]=d[a](e),c.c()),re(c,1),c.m(i,null)),(!l||1&r)&&R(t,"indeterminate",e[0]),(!l||4&r)&&R(t,"disabled",e[2])},i(e){l||(re(c),l=!0)},o(e){se(c),l=!1},d(n){n&&L(t),e[14](null),p[a].d(),u=!1,h(f)}}}function _e(e,t,n){let r,s,o,{$$slots:i={},$$scope:a}=t,{value:c}=t,{trueValue:l=""}=t,{falseValue:u=""}=t,{nativeValue:f=null}=t,{indeterminate:d=!1}=t,{disabled:h=!1}=t,p=!1,m=I();const v=e=>{if(Array.isArray(e)){let t=e.find((e=>e===f));n(3,p=void 0!==t)}else n(3,p=e)};var g;return g=()=>{v(c)},F().$$.on_mount.push(g),e.$$set=e=>{"value"in e&&n(7,c=e.value),"trueValue"in e&&n(8,l=e.trueValue),"falseValue"in e&&n(9,u=e.falseValue),"nativeValue"in e&&n(1,f=e.nativeValue),"indeterminate"in e&&n(0,d=e.indeterminate),"disabled"in e&&n(2,h=e.disabled),"$$scope"in e&&n(11,a=e.$$scope)},e.$$.update=()=>{128&e.$$.dirty&&v(c),768&e.$$.dirty&&n(10,r=null!=u?u:l),1288&e.$$.dirty&&n(5,s=p?l:r)},[d,f,h,p,o,s,()=>{n(0,d=!1),o.checked?(f&&Array.isArray(c)?(c.push(f),n(7,c)):n(7,c=!0),m("input")):(f&&Array.isArray(c)?(n(7,c=c.filter((e=>e!==f))),n(7,c)):n(7,c=!1),m("input"))},c,l,u,r,a,i,function(){p=this.checked,n(3,p)},function(e){U[e?"unshift":"push"]((()=>{o=e,n(4,o)}))}]}const xe=class extends ue{constructor(e){super(),le(this,e,_e,we,m,{value:7,trueValue:8,falseValue:9,nativeValue:1,indeterminate:0,disabled:2},ge)}};function ke(e,t,n){const r=e.slice();return r[7]=t[n],r[8]=t,r[9]=n,r}function $e(e){let t,n=e[0].label+"";return{c(){t=O(n)},m(e,n){S(e,t,n)},p(e,r){1&r&&n!==(n=e[0].label+"")&&P(t,n)},d(e){e&&L(t)}}}function Ee(e){let t,n,r=e[1].elements,s=[];for(let t=0;t<r.length;t+=1)s[t]=qe(ke(e,r,t));const o=e=>se(s[e],1,1,(()=>{s[e]=null}));return{c(){t=j("div");for(let e=0;e<s.length;e+=1)s[e].c();T(t,"class","acu-mb-4")},m(e,r){S(e,t,r);for(let e=0;e<s.length;e+=1)s[e].m(t,null);n=!0},p(e,n){if(3&n){let i;for(r=e[1].elements,i=0;i<r.length;i+=1){const o=ke(e,r,i);s[i]?(s[i].p(o,n),re(s[i],1)):(s[i]=qe(o),s[i].c(),re(s[i],1),s[i].m(t,null))}for(te(),i=r.length;i<s.length;i+=1)o(i);ne()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)re(s[e]);n=!0}},o(e){s=s.filter(Boolean);for(let e=0;e<s.length;e+=1)se(s[e]);n=!1},d(e){e&&L(t),q(s,e)}}}function Se(e){let t,n,r,s,o;function i(t){e[5](t,e[7])}let a={disabled:!e[0].active,$$slots:{default:[Le]},$$scope:{ctx:e}};return void 0!==e[7].active&&(a.value=e[7].active),n=new xe({props:a}),U.push((()=>oe(n,"value",i))),{c(){t=j("div"),ie(n.$$.fragment),s=C(),T(t,"class","acu-pl-8.5 acu-mb-1")},m(e,r){S(e,t,r),ae(n,t,null),$(t,s),o=!0},p(t,s){e=t;const o={};1&s&&(o.disabled=!e[0].active),1026&s&&(o.$$scope={dirty:s,ctx:e}),!r&&2&s&&(r=!0,o.value=e[7].active,Q((()=>r=!1))),n.$set(o)},i(e){o||(re(n.$$.fragment,e),o=!0)},o(e){se(n.$$.fragment,e),o=!1},d(e){e&&L(t),ce(n)}}}function Le(e){let t,n=e[7].label+"";return{c(){t=O(n)},m(e,n){S(e,t,n)},p(e,r){2&r&&n!==(n=e[7].label+"")&&P(t,n)},d(e){e&&L(t)}}}function qe(e){let t,n,r=e[7].dependent_on===e[0].name&&Se(e);return{c(){r&&r.c(),t=N()},m(e,s){r&&r.m(e,s),S(e,t,s),n=!0},p(e,n){e[7].dependent_on===e[0].name?r?(r.p(e,n),3&n&&re(r,1)):(r=Se(e),r.c(),re(r,1),r.m(t.parentNode,t)):r&&(te(),se(r,1,1,(()=>{r=null})),ne())},i(e){n||(re(r),n=!0)},o(e){se(r),n=!1},d(e){r&&r.d(e),e&&L(t)}}}function je(e){let t,n,r,s,o,i,a=e[1].elements.filter(e[3]).length>0;function c(t){e[4](t)}let l={$$slots:{default:[$e]},$$scope:{ctx:e}};void 0!==e[0].active&&(l.checked=e[0].active),r=new ve({props:l}),U.push((()=>oe(r,"checked",c))),r.$on("input",e[2]);let u=a&&Ee(e);return{c(){t=j("div"),n=j("div"),ie(r.$$.fragment),o=C(),u&&u.c(),T(n,"class","acu-mb-4 acu-mb-1.5")},m(e,s){S(e,t,s),$(t,n),ae(r,n,null),$(t,o),u&&u.m(t,null),i=!0},p(e,[n]){const o={};1025&n&&(o.$$scope={dirty:n,ctx:e}),!s&&1&n&&(s=!0,o.checked=e[0].active,Q((()=>s=!1))),r.$set(o),3&n&&(a=e[1].elements.filter(e[3]).length>0),a?u?(u.p(e,n),3&n&&re(u,1)):(u=Ee(e),u.c(),re(u,1),u.m(t,null)):u&&(te(),se(u,1,1,(()=>{u=null})),ne())},i(e){i||(re(r.$$.fragment,e),re(u),i=!0)},o(e){se(r.$$.fragment,e),se(u),i=!1},d(e){e&&L(t),ce(r),u&&u.d()}}}function Oe(e,t,n){let{element:r}=t,{group:s}=t;return e.$$set=e=>{"element"in e&&n(0,r=e.element),"group"in e&&n(1,s=e.group)},[r,s,()=>{((e=!0)=>{s.elements.forEach((t=>{t.dependent_on===r.name&&(t.active=e)})),n(1,s)})(r.active)},e=>e.dependent_on===r.name,function(t){e.$$.not_equal(r.active,t)&&(r.active=t,n(0,r))},function(t,r){e.$$.not_equal(r.active,t)&&(r.active=t,n(1,s))}]}const Ce=class extends ue{constructor(e){super(),le(this,e,Oe,je,m,{element:0,group:1})}};class Ne{constructor(e){this.groups=e}getElements(){let e=[];return this.groups.forEach((t=>{t.elements.forEach((t=>e.push(t)))})),e}}jQuery;var Ae=n(9403),Te=n.n(Ae);function Pe(e,t,n){const r=e.slice();return r[4]=t[n],r[5]=t,r[6]=n,r}function Re(e,t,n){const r=e.slice();return r[7]=t[n],r[8]=t,r[9]=n,r}function Be(e){let t,n,r,s;function o(t){e[2](t,e[7],e[8],e[9])}function i(t){e[3](t,e[4],e[5],e[6])}let a={};return void 0!==e[7]&&(a.element=e[7]),void 0!==e[4]&&(a.group=e[4]),t=new Ce({props:a}),U.push((()=>oe(t,"element",o))),U.push((()=>oe(t,"group",i))),{c(){ie(t.$$.fragment)},m(e,n){ae(t,e,n),s=!0},p(s,o){e=s;const i={};!n&&1&o&&(n=!0,i.element=e[7],Q((()=>n=!1))),!r&&1&o&&(r=!0,i.group=e[4],Q((()=>r=!1))),t.$set(i)},i(e){s||(re(t.$$.fragment,e),s=!0)},o(e){se(t.$$.fragment,e),s=!1},d(e){ce(t,e)}}}function Fe(e){let t,n,r=null===e[7].dependent_on&&Be(e);return{c(){r&&r.c(),t=N()},m(e,s){r&&r.m(e,s),S(e,t,s),n=!0},p(e,n){null===e[7].dependent_on?r?(r.p(e,n),1&n&&re(r,1)):(r=Be(e),r.c(),re(r,1),r.m(t.parentNode,t)):r&&(te(),se(r,1,1,(()=>{r=null})),ne())},i(e){n||(re(r),n=!0)},o(e){se(r),n=!1},d(e){r&&r.d(e),e&&L(t)}}}function Ie(e){let t,n,r,s,o,i,a,c=e[4].group_label+"",l=e[4].elements,u=[];for(let t=0;t<l.length;t+=1)u[t]=Fe(Re(e,l,t));const f=e=>se(u[e],1,1,(()=>{u[e]=null}));return{c(){t=j("div"),n=j("strong"),r=O(c),s=C();for(let e=0;e<u.length;e+=1)u[e].c();var a,l;o=C(),T(n,"class","acu-mb-1 acu-block acu-uppercase"),a=n,l="color",null==="#8F8F8F"?a.style.removeProperty(l):a.style.setProperty(l,"#8F8F8F",""),T(t,"data-group-name",i=e[4].group_name),T(t,"class","acu-grow acu-pr-1")},m(e,i){S(e,t,i),$(t,n),$(n,r),$(t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);$(t,o),a=!0},p(e,n){if((!a||1&n)&&c!==(c=e[4].group_label+"")&&P(r,c),1&n){let r;for(l=e[4].elements,r=0;r<l.length;r+=1){const s=Re(e,l,r);u[r]?(u[r].p(s,n),re(u[r],1)):(u[r]=Fe(s),u[r].c(),re(u[r],1),u[r].m(t,o))}for(te(),r=l.length;r<u.length;r+=1)f(r);ne()}(!a||1&n&&i!==(i=e[4].group_name))&&T(t,"data-group-name",i)},i(e){if(!a){for(let e=0;e<l.length;e+=1)re(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)se(u[e]);a=!1},d(e){e&&L(t),q(u,e)}}}function Me(e){let t,n,r=e[0],s=[];for(let t=0;t<r.length;t+=1)s[t]=Ie(Pe(e,r,t));const o=e=>se(s[e],1,1,(()=>{s[e]=null}));return{c(){t=j("div");for(let e=0;e<s.length;e+=1)s[e].c();T(t,"class","lg:acu-flex acu-pb-6")},m(e,r){S(e,t,r);for(let e=0;e<s.length;e+=1)s[e].m(t,null);n=!0},p(e,[n]){if(1&n){let i;for(r=e[0],i=0;i<r.length;i+=1){const o=Pe(e,r,i);s[i]?(s[i].p(o,n),re(s[i],1)):(s[i]=Ie(o),s[i].c(),re(s[i],1),s[i].m(t,null))}for(te(),i=r.length;i<s.length;i+=1)o(i);ne()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)re(s[e]);n=!0}},o(e){s=s.filter(Boolean);for(let e=0;e<s.length;e+=1)se(s[e]);n=!1},d(e){e&&L(t),q(s,e)}}}function Ue(e,t,n){let{groups:r}=t;return e.$$set=e=>{"groups"in e&&n(0,r=e.groups)},[r,()=>{const e=new Ne(r).getElements();let t={};return e.forEach((e=>{t[e.name]=e.active?"off":"on"})),t},function(e,t,s,o){s[o]=e,n(0,r)},function(e,t,s,o){s[o]=e,n(0,r)}]}n(1719);const Ve=class extends ue{constructor(e){super(),le(this,e,Ue,Me,m,{groups:0,getPreferences:1})}get getPreferences(){return this.$$.ctx[1]}};class De{constructor(e){this.element=e;const t=e.querySelector('[data-component="acp-table-elements"]');this.component=new Ve({target:t,props:{groups:acp_settings.table_elements}})}getPreferences(e){return Object.assign(e,this.component.getPreferences())}}class He{constructor(e,t,n){this.key=e,this.element=t,this.defaultValue=n}getPreferences(e){var t,n;return e[this.key]=null!==(n=null===(t=this.element)||void 0===t?void 0:t.value)&&void 0!==n?n:this.defaultValue,e}}class ze{constructor(e,t){this.element=e,this.form=t,this.init()}init(){this.form.registerPreference(new a(this.element)),this.form.registerPreference(new c(this.element)),this.form.registerPreference(new o(this.form)),this.form.registerPreference(new De(this.element)),this.form.registerPreference(new l),this.form.registerPreference(new He("primary_column",this.element.querySelector('select[name="primary_column"]'),"")),this.form.registerPreference(new He("filter_segment",this.element.querySelector('select[name="filter_segment"]'),""))}}class Je{constructor(e){this.element=e}static find(e){let t=document.querySelector(e);return null===t?null:new Je(t)}static create(e){return new Je(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}}class Qe{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}}const We=(window.AC_SERVICES||(window.AC_SERVICES=new class{constructor(){this.services={},this.events=new(Te()),this.filters=new Qe,this.$=Je}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)}}),window.AC_SERVICES);We.addListener("Settings.Form.Ready",(e=>{const t=document.querySelector(".sidebox.layouts");if(t){const e=new r(t);We.registerService("OrderSidebox",e);const n=document.querySelector(".layout-selector ul");n&&e.onOrdered((e=>{const t=document.createElement("div");e.forEach((e=>{let r=n.querySelector(`[data-screen="${e}"]`);r&&t.appendChild(r)})),t.querySelectorAll("li").forEach((e=>{n.appendChild(e)}))}))}const n=document.querySelector(".ac-setbox");n&&We.registerService("ListScreenSettings",new ze(n,e));const s=document.querySelector('#listscreen_settings input[name="title"]');s&&s.addEventListener("keyup",(()=>{document.querySelectorAll(`.layout-selector [data-screen="${AC.layout}"] a`).forEach((e=>{e.innerHTML=s.value})),document.querySelectorAll(`.layouts__items [data-screen="${AC.layout}"] [data-label]`).forEach((e=>{e.innerHTML=s.value}))}))}))})()})();