@bbn/bbn 1.0.287 → 1.0.289
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/fn/type/isHex.d.ts +8 -0
- package/dist/fn/type/isHex.js +11 -0
- package/dist/fn.d.ts +2 -0
- package/dist/fn.js +2 -0
- package/package.json +1 -1
package/dist/bbn.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var bbn=function(e){"use strict";function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:r}=Object,o=(i=Object.create(null),e=>{const t=n.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>o(t)===e),s=e=>t=>typeof t===e,{isArray:u}=Array,c=s("undefined");const l=a("ArrayBuffer");const f=s("string"),d=s("function"),h=s("number"),p=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=a("Date"),v=a("File"),g=a("Blob"),y=a("FileList"),w=a("URLSearchParams"),[_,S,O,x]=["ReadableStream","Request","Response","Headers"].map(a);function E(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),u(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function M(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=e=>!c(e)&&e!==A;const R=(D="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>D&&e instanceof D);var D;const j=a("HTMLFormElement"),k=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$=a("RegExp"),L=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};E(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},C="abcdefghijklmnopqrstuvwxyz",N="0123456789",P={DIGIT:N,ALPHA:C,ALPHA_DIGIT:C+C.toUpperCase()+N};const F=a("AsyncFunction");var B={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&d(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||d(e.append)&&("formdata"===(t=o(e))||"object"===t&&d(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t},isString:f,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:p,isPlainObject:m,isReadableStream:_,isRequest:S,isResponse:O,isHeaders:x,isUndefined:c,isDate:b,isFile:v,isBlob:g,isRegExp:$,isFunction:d,isStream:e=>p(e)&&d(e.pipe),isURLSearchParams:w,isTypedArray:R,isFileList:y,forEach:E,merge:function e(){const{caseless:t}=T(this)&&this||{},n={},r=(r,o)=>{const i=t&&M(n,o)||o;m(n[i])&&m(r)?n[i]=e(n[i],r):m(r)?n[i]=e({},r):u(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],r);return n},extend:(e,n,r,{allOwnKeys:o}={})=>(E(n,((n,o)=>{r&&d(n)?e[o]=t(n,r):e[o]=n}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let i,a,s;const u={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],o&&!o(s,e,t)||u[s]||(t[s]=e[s],u[s]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!h(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:j,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,n)=>{if(d(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];d(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:M,global:A,isContextDefined:T,ALPHABET:P,generateString:(e=16,t=P.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&d(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(p(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=u(e)?[]:{};return E(e,((e,t)=>{const i=n(e,r+1);!c(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(p(e)||d(e))&&d(e.then)&&d(e.catch)};function Y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}B.inherits(Y,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I=Y.prototype,U={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{U[e]={value:e}})),Object.defineProperties(Y,U),Object.defineProperty(I,"isAxiosError",{value:!0}),Y.from=(e,t,n,r,o,i)=>{const a=Object.create(I);return B.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Y.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function H(e){return B.isPlainObject(e)||B.isArray(e)}function z(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function q(e,t,n){return e?e.concat(t).map((function(e,t){return e=z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const W=B.toFlatObject(B,{},null,(function(e){return/^is[A-Z]/.test(e)}));function V(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!B.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(B.isDate(e))return e.toISOString();if(!s&&B.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(e)||B.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(B.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(B.isArray(e)&&function(e){return B.isArray(e)&&!e.some(H)}(e)||(B.isFileList(e)||B.endsWith(n,"[]"))&&(s=B.toArray(e)))return n=z(n),s.forEach((function(e,r){!B.isUndefined(e)&&null!==e&&t.append(!0===a?q([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!H(e)||(t.append(q(o,n,i),u(e)),!1)}const l=[],f=Object.assign(W,{defaultVisitor:c,convertValue:u,isVisitable:H});if(!B.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!B.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),B.forEach(n,(function(n,i){!0===(!(B.isUndefined(n)||null===n)&&o.call(t,n,B.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t}function J(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Z(e,t){this._pairs=[],e&&V(e,this,t)}const K=Z.prototype;function G(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X(e,t,n){if(!t)return e;const r=n&&n.encode||G,o=n&&n.serialize;let i;if(i=o?o(t,n):B.isURLSearchParams(t)?t.toString():new Z(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}K.append=function(e,t){this._pairs.push([e,t])},K.toString=function(e){const t=e?function(t){return e.call(this,t,J)}:J;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Q{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Z,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ne="undefined"!=typeof window&&"undefined"!=typeof document,re=(oe="undefined"!=typeof navigator&&navigator.product,ne&&["ReactNative","NativeScript","NS"].indexOf(oe)<0);var oe;const ie="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ae=ne&&window.location.href||"http://localhost";var se={...Object.freeze({__proto__:null,hasBrowserEnv:ne,hasStandardBrowserEnv:re,hasStandardBrowserWebWorkerEnv:ie,origin:ae}),...te};function ue(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&B.isArray(r)?r.length:i,s)return B.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&B.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&B.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,((e,r)=>{t(function(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ce={transitional:ee,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=B.isObject(e);o&&B.isHTMLForm(e)&&(e=new FormData(e));if(B.isFormData(e))return r?JSON.stringify(ue(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new se.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return se.isNode&&B.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=B.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return V(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ce.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Y.from(e,Y.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:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],(e=>{ce.headers[e]={}}));const le=B.toObjectSet(["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"]);const fe=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function he(e){return!1===e||null==e?e:B.isArray(e)?e.map(he):String(e)}function pe(e,t,n,r,o){return B.isFunction(r)?r.call(this,t,n):(o&&(t=n),B.isString(t)?B.isString(r)?-1!==t.indexOf(r):B.isRegExp(r)?r.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=de(t);if(!o)throw new Error("header name must be a non-empty string");const i=B.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=he(e))}const i=(e,t)=>B.forEach(e,((e,n)=>o(e,n,t)));if(B.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(B.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&le[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(B.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=de(e)){const n=B.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(B.isFunction(t))return t.call(this,e,n);if(B.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=de(e)){const n=B.findKey(this,e);return!(!n||void 0===this[n]||t&&!pe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=de(e)){const o=B.findKey(n,e);!o||t&&!pe(0,n[o],o,t)||(delete n[o],r=!0)}}return B.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!pe(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return B.forEach(this,((r,o)=>{const i=B.findKey(n,o);if(i)return t[i]=he(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=he(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return B.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&B.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[fe]=this[fe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=de(e);t[r]||(!function(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return B.isArray(e)?e.forEach(r):r(e),this}}function be(e,t){const n=this||ce,r=t||n,o=me.from(r.headers);let i=r.data;return B.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ve(e){return!(!e||!e.__CANCEL__)}function ge(e,t,n){Y.call(this,null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError"}function ye(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(me.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),B.freezeMethods(me),B.inherits(ge,Y,{__CANCEL__:!0});var we=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=r[a];o||(o=u),n[i]=s,r[i]=u;let l=a,f=0;for(;l!==i;)f+=n[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=c&&u-c;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n=0;const r=1e3/t;let o=null;return function(){const t=!0===this,i=Date.now();if(t||i-n>r)return o&&(clearTimeout(o),o=null),n=i,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),r-(i-n)))}}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,u=o(s);r=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:n,lengthComputable:null!=a};c[t?"download":"upload"]=!0,e(c)}),n)},_e=se.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=B.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Se=se.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),B.isString(r)&&a.push("path="+r),B.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Oe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const xe=e=>e instanceof me?{...e}:e;function Ee(e,t){t=t||{};const n={};function r(e,t,n){return B.isPlainObject(e)&&B.isPlainObject(t)?B.merge.call({caseless:n},e,t):B.isPlainObject(t)?B.merge({},t):B.isArray(t)?t.slice():t}function o(e,t,n){return B.isUndefined(t)?B.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!B.isUndefined(t))return r(void 0,t)}function a(e,t){return B.isUndefined(t)?B.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken: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:s,headers:(e,t)=>o(xe(e),xe(t),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=u[r]||o,a=i(e[r],t[r],r);B.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Me=e=>{const t=Ee({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:u}=t;if(t.headers=s=me.from(s),t.url=X(Oe(t.baseURL,t.url),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),B.isFormData(r))if(se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(se.hasStandardBrowserEnv&&(o&&B.isFunction(o)&&(o=o(t)),o||!1!==o&&_e(t.url))){const e=i&&a&&Se.read(a);e&&s.set(i,e)}return t};var Ae="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Me(e);let o=r.data;const i=me.from(r.headers).normalize();let a,{responseType:s}=r;function u(){r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let c=new XMLHttpRequest;function l(){if(!c)return;const r=me.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());ye((function(e){t(e),u()}),(function(e){n(e),u()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new Y("Request aborted",Y.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||ee;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new Y(e,t.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,r,c)),c=null},void 0===o&&i.setContentType(null),"setRequestHeader"in c&&B.forEach(i.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),B.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),s&&"json"!==s&&(c.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&c.addEventListener("progress",we(r.onDownloadProgress,!0)),"function"==typeof r.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",we(r.onUploadProgress)),(r.cancelToken||r.signal)&&(a=t=>{c&&(n(!t||t.type?new ge(null,e,c):t),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);f&&-1===se.protocols.indexOf(f)?n(new Y("Unsupported protocol "+f+":",Y.ERR_BAD_REQUEST,e)):c.send(o||null)}))};const Te=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Y?t:new ge(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Y(`timeout ${t} of ms exceeded`,Y.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Re=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},De=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Re(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await i.next();if(t)return e.close(),void r();let s=o.byteLength;n&&n(a+=s),e.enqueue(new Uint8Array(o))},cancel:e=>(r(e),i.return())},{highWaterMark:2})},je=(e,t)=>{const n=null!=e;return r=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:r})))},ke="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,$e=ke&&"function"==typeof ReadableStream,Le=ke&&("function"==typeof TextEncoder?(Ce=new TextEncoder,e=>Ce.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ce;const Ne=$e&&(()=>{let e=!1;const t=new Request(se.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Pe=$e&&!!(()=>{try{return B.isReadableStream(new Response("").body)}catch(e){}})(),Fe={stream:Pe&&(e=>e.body)};var Be;ke&&(Be=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Fe[e]&&(Fe[e]=B.isFunction(Be[e])?t=>t[e]():(t,n)=>{throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})})));const Ye=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:B.isBlob(e)?e.size:B.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:B.isArrayBufferView(e)?e.byteLength:(B.isURLSearchParams(e)&&(e+=""),B.isString(e)?(await Le(e)).byteLength:void 0))(t):n};const Ie={http:null,xhr:Ae,fetch:ke&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Me(e);c=c?(c+"").toLowerCase():"text";let h,p,[m,b]=o||i||a?Te([o,i],a):[];const v=()=>{!h&&setTimeout((()=>{m&&m.unsubscribe()})),h=!0};let g;try{if(u&&Ne&&"get"!==n&&"head"!==n&&0!==(g=await Ye(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});B.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body&&(r=De(n.body,65536,je(g,we(u)),null,Le))}B.isString(f)||(f=f?"cors":"omit"),p=new Request(t,{...d,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let o=await fetch(p);const i=Pe&&("stream"===c||"response"===c);if(Pe&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=B.toFiniteNumber(o.headers.get("content-length"));o=new Response(De(o.body,65536,s&&je(t,we(s,!0)),i&&v,Le),e)}c=c||"text";let a=await Fe[B.findKey(Fe,c)||"text"](o,e);return!i&&v(),b&&b(),await new Promise(((t,n)=>{ye(t,n,{data:a,headers:me.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,p),{cause:t.cause||t});throw Y.from(t,t&&t.code,e,p)}})};B.forEach(Ie,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ue=e=>`- ${e}`,He=e=>B.isFunction(e)||null===e||!1===e;var ze=e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!He(n)&&(r=Ie[(t=String(n)).toLowerCase()],void 0===r))throw new Y(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Y("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ue).join("\n"):" "+Ue(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function qe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ge(null,e)}function We(e){qe(e),e.headers=me.from(e.headers),e.data=be.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ze(e.adapter||ce.adapter)(e).then((function(t){return qe(e),t.data=be.call(e,e.transformResponse,t),t.headers=me.from(t.headers),t}),(function(t){return ve(t)||(qe(e),t&&t.response&&(t.response.data=be.call(e,e.transformResponse,t.response),t.response.headers=me.from(t.response.headers))),Promise.reject(t)}))}const Ve="1.7.2",Je={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Je[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ze={};Je.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Y(r(o," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!Ze[o]&&(Ze[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Ke={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Y("option "+i+" must be "+n,Y.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}},validators:Je};const Ge=Ke.validators;class Xe{constructor(e){this.defaults=e,this.interceptors={request:new Q,response:new Q}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ee(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ke.assertOptions(n,{silentJSONParsing:Ge.transitional(Ge.boolean),forcedJSONParsing:Ge.transitional(Ge.boolean),clarifyTimeoutError:Ge.transitional(Ge.boolean)},!1),null!=r&&(B.isFunction(r)?t.paramsSerializer={serialize:r}:Ke.assertOptions(r,{encode:Ge.function,serialize:Ge.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&B.merge(o.common,o[t.method]);o&&B.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=me.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[We.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);f<l;)c=c.then(e[f++],e[f++]);return c}l=a.length;let d=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=We.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(e){return X(Oe((e=Ee(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}B.forEach(["delete","get","head","options"],(function(e){Xe.prototype[e]=function(t,n){return this.request(Ee(n||{},{method:e,url:t,data:(n||{}).data}))}})),B.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ee(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Xe.prototype[e]=t(),Xe.prototype[e+"Form"]=t(!0)}));class Qe{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new ge(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Qe((function(t){e=t}));return{token:t,cancel:e}}}const et={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(et).forEach((([e,t])=>{et[t]=e}));const tt=function e(n){const r=new Xe(n),o=t(Xe.prototype.request,r);return B.extend(o,Xe.prototype,r,{allOwnKeys:!0}),B.extend(o,r,null,{allOwnKeys:!0}),o.create=function(t){return e(Ee(n,t))},o}(ce);tt.Axios=Xe,tt.CanceledError=ge,tt.CancelToken=Qe,tt.isCancel=ve,tt.VERSION=Ve,tt.toFormData=V,tt.AxiosError=Y,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=function(e){return function(t){return e.apply(null,t)}},tt.isAxiosError=function(e){return B.isObject(e)&&!0===e.isAxiosError},tt.mergeConfig=Ee,tt.AxiosHeaders=me,tt.formToJSON=e=>ue(B.isHTMLForm(e)?new FormData(e):e),tt.getAdapter=ze,tt.HttpStatusCode=et,tt.default=tt;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rt={exports:{}};rt.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",u="week",c="month",l="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:f,w:u,d:s,D:d,h:a,m:i,s:o,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=b;var _="$isDayjsObject",S=function(e){return e instanceof M||!(!e||!e[_])},O=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},x=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},E=g;E.l=O,E.i=S,E.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function b(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=b.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return x(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<x(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,l=E.p(e),h=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},p=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,b=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case f:return r?h(1,0):h(31,11);case c:return r?h(1,b):h(0,b+1);case u:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(r?v-w:v+(6-w),b);case s:case d:return p(g+"Hours",0);case a:return p(g+"Minutes",1);case i:return p(g+"Seconds",2);case o:return p(g+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,u=E.p(e),l="set"+(this.$u?"UTC":""),h=(n={},n[s]=l+"Date",n[d]=l+"Date",n[c]=l+"Month",n[f]=l+"FullYear",n[a]=l+"Hours",n[i]=l+"Minutes",n[o]=l+"Seconds",n[r]=l+"Milliseconds",n)[u],p=u===s?this.$D+(t-this.$W):t;if(u===c||u===f){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,l){var d,h=this;r=Number(r);var p=E.p(l),m=function(e){var t=x(h);return E.w(t.date(t.date()+Math.round(e*r)),h)};if(p===c)return this.set(c,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===s)return m(1);if(p===u)return m(7);var b=(d={},d[i]=t,d[a]=n,d[o]=e,d)[p]||1,v=this.$d.getTime()+r*b;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return E.s(i%12||12,e,"0")},p=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,u,2);case"ddd":return f(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,a,!0);case"A":return p(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,d,h){var p,m=this,b=E.p(d),v=x(r),g=(v.utcOffset()-this.utcOffset())*t,y=this-v,w=function(){return E.m(m,v)};switch(b){case f:p=w()/12;break;case c:p=w();break;case l:p=w()/3;break;case u:p=(y-g)/6048e5;break;case s:p=(y-g)/864e5;break;case a:p=y/n;break;case i:p=y/t;break;case o:p=y/e;break;default:p=y}return h?p:E.a(p)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},b}(),A=M.prototype;return x.prototype=A,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",f],["$D",d]].forEach((function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||(e(t,M,x),e.$i=!0),x},x.locale=O,x.isDayjs=S,x.unix=function(e){return x(1e3*e)},x.en=w[y],x.Ls=w,x.p={},x}();var ot=rt.exports,it=nt(ot),at={exports:{}};!function(e,t){e.exports=function(e,t,n){var r="h:mm A",o={lastDay:"[Yesterday at] "+r,sameDay:"[Today at] "+r,nextDay:"[Tomorrow at] "+r,nextWeek:"dddd [at] "+r,lastWeek:"[Last] dddd [at] "+r,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var r=t||this.$locale().calendar||o,i=n(e||void 0).startOf("d"),a=this.diff(i,"d",!0),s="sameElse",u=a<-6?s:a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":s,c=r[u]||o[u];return"function"==typeof c?c.call(this,n()):this.format(c)}}}(at);var st=nt(at.exports),ut={exports:{}};!function(e,t){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[o,function(e){this.afternoon=l(e,!1)}],a:[o,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:u,ZZ:u};function d(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,u=0;u<s;u+=1){var c=a[u],l=f[c],d=l&&l[0],h=l&&l[1];a[u]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,u=o.parser,c=e.slice(r),l=i.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var u=!0===a[2],c=!0===a[3],l=u||c,f=a[2];c&&(f=a[2]),i=this.$locale(),!u&&f&&(i=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,u=r.minutes,c=r.seconds,l=r.milliseconds,f=r.zone,h=new Date,p=a||(o||i?1:h.getDate()),m=o||h.getFullYear(),b=0;o&&!i||(b=i>0?i-1:h.getMonth());var v=s||0,g=u||0,y=c||0,w=l||0;return f?new Date(Date.UTC(m,b,p,v,g,y,w+60*f.offset*1e3)):n?new Date(Date.UTC(m,b,p,v,g,y,w)):new Date(m,b,p,v,g,y,w)}catch(e){return new Date("")}}(t,s,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){a[1]=s[p-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===h&&(this.$d=new Date(""))}else o.call(this,e)}}}()}(ut);var ct=nt(ut.exports),lt={exports:{}};!function(e,t){e.exports=function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}(lt);var ft=nt(lt.exports),dt={exports:{}};!function(e,t){e.exports=function(){var e,t,n=1e3,r=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:u,days:i,hours:o,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof g},d=function(e,t,n){return new g(e,n,t.$l)},h=function(e){return t.p(e)+"s"},p=function(e){return e<0},m=function(e){return p(e)?Math.ceil(e):Math.floor(e)},b=function(e){return Math.abs(e)},v=function(e,t){return e?p(e)?{negative:!0,format:""+b(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},g=function(){function p(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*l[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(c);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var b=p.prototype;return b.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},b.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/u),e%=u,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/o),e%=o,this.$d.minutes=m(e/r),e%=r,this.$d.seconds=m(e/n),e%=n,this.$d.milliseconds=e},b.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,"D"),o=v(this.$d.hours,"H"),i=v(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=v(a,"S"),u=e.negative||t.negative||r.negative||o.negative||i.negative||s.negative,c=o.format||i.format||s.format?"T":"",l=(u?"-":"")+"P"+e.format+t.format+r.format+c+o.format+i.format+s.format;return"P"===l||"-P"===l?"P0D":l},b.toJSON=function(){return this.toISOString()},b.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(r[e])}))},b.as=function(e){return this.$ms/l[h(e)]},b.get=function(e){var t=this.$ms,n=h(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?m(t/l[n]):this.$d[n],t||0},b.add=function(e,t,n){var r;return r=t?e*l[h(t)]:f(e)?e.$ms:d(e,this).$ms,d(this.$ms+r*(n?-1:1),this)},b.subtract=function(e,t){return this.add(e,t,!0)},b.locale=function(e){var t=this.clone();return t.$l=e,t},b.clone=function(){return d(this.$ms,this)},b.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},p}(),y=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,o){e=o,t=o().$utils(),o.duration=function(e,t){var n=o.locale();return d(e,{$l:n},t)},o.isDuration=f;var i=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?y(this,e,1):i.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?y(this,e,-1):a.bind(this)(e,t)}}}()}(dt);var ht=nt(dt.exports),pt={exports:{}};!function(e,t){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],u=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(u?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(u?this.isAfter(a,r):!this.isBefore(a,r))}}}(pt);var mt=nt(pt.exports),bt={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}(bt);var vt=nt(bt.exports),gt={exports:{}};!function(e,t){var n;e.exports=(n="day",function(e,t,r){var o=function(e){return e.add(4-e.isoWeekday(),n)},i=t.prototype;i.isoWeekYear=function(){return o(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),n);var t,i,a,s=o(this),u=(t=this.isoWeekYear(),a=4-(i=(this.$u?r.utc:r)().year(t).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(a+=7),i.add(a,n));return s.diff(u,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}})}(gt);var yt=nt(gt.exports),wt={exports:{}};!function(e,t){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),u=o(a[n]),c=s||u.map((function(e){return e.slice(0,r)}));if(!i)return c;var l=a.weekStart;return c.map((function(e,t){return c[(t+(l||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},u=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}(wt);var _t=nt(wt.exports),St={exports:{}};!function(e,t){var n;e.exports=(n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,r){var o=t.prototype,i=o.format;r.en.formats=n,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,r=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,o){var i=o&&o.toUpperCase();return r||t[o]||n[o]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(e,void 0===t?{}:t);return i.call(this,r)}})}(St);var Ot=nt(St.exports),xt={exports:{}};!function(e,t){e.exports=function(e,t,n){var r=function(e,t){if(!t||!t.length||1===t.length&&!t[0]||1===t.length&&Array.isArray(t[0])&&!t[0].length)return null;var n;1===t.length&&t[0].length>0&&(t=t[0]),n=(t=t.filter((function(e){return e})))[0];for(var r=1;r<t.length;r+=1)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n};n.max=function(){var e=[].slice.call(arguments,0);return r("isAfter",e)},n.min=function(){var e=[].slice.call(arguments,0);return r("isBefore",e)}}}(xt);var Et=nt(xt.exports),Mt={exports:{}};!function(e,t){var n,r;e.exports=(n="month",r="quarter",function(e,t){var o=t.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(e,t){return e=Number(e),this.$utils().p(t)===r?this.add(3*e,n):i.bind(this)(e,t)};var a=o.startOf;o.startOf=function(e,t){var o=this.$utils(),i=!!o.u(t)||t;if(o.p(e)===r){var s=this.quarter()-1;return i?this.month(3*s).startOf(n).startOf("day"):this.month(3*s+2).endOf(n).endOf("day")}return a.bind(this)(e,t)}})}(Mt);var At=nt(Mt.exports),Tt={exports:{}};!function(e,t){e.exports=function(e,t,n){e=e||{};var r=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,o){return r.fromToBase(e,t,n,o)}n.en.relativeTime=o,r.fromToBase=function(t,r,i,a,s){for(var u,c,l,f=i.$locale().relativeTime||o,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(u=a?n(t).diff(i,m.d,!0):i.diff(t,m.d,!0));var b=(e.rounding||Math.round)(Math.abs(u));if(l=u>0,b<=m.r||!m.r){b<=1&&p>0&&(m=d[p-1]);var v=f[m.l];s&&(b=s(""+b)),c="string"==typeof v?v.replace("%d",b):v(b,r,m.l,l);break}}if(r)return c;var g=l?f.future:f.past;return"function"==typeof g?g(c):g.replace("%s",c)},r.to=function(e,t){return i(e,t,this,!0)},r.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}(Tt);var Rt=nt(Tt.exports),Dt={exports:{}};!function(e,t){var n,r;e.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(e,t,o){var i,a=function(e,t,n){void 0===n&&(n={});var o=new Date(e),i=function(e,t){void 0===t&&(t={});var n=t.timeZoneName||"short",o=e+"|"+n,i=r[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[o]=i),i}(t,n);return i.formatToParts(o)},s=function(e,t){for(var r=a(e,t),i=[],s=0;s<r.length;s+=1){var u=r[s],c=u.type,l=u.value,f=n[c];f>=0&&(i[f]=parseInt(l,10))}var d=i[3],h=24===d?0:d,p=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",m=+e;return(o.utc(p).valueOf()-(m-=m%1e3))/6e4},u=t.prototype;u.tz=function(e,t){void 0===e&&(e=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),s=Math.round((r-new Date(a))/1e3/60),u=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-s,!0);if(t){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,a=n||t||i,u=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,o=s(r,n);if(t===o)return[r,t];var i=s(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),u,a),l=c[0],f=c[1],d=o(l).utcOffset(f);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}})}(Dt);var jt=nt(Dt.exports),kt={exports:{}};!function(e,t){e.exports=function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}(kt);var $t=nt(kt.exports),Lt={exports:{}};!function(e,t){e.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),o=i(e).local();return d.call(r,o,t,n)}}}()}(Lt);var Ct=nt(Lt.exports),Nt={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}(Nt);var Pt=nt(Nt.exports),Ft={exports:{}};!function(e,t){var n,r;e.exports=(n="week",r="year",function(e,t,o){var i=t.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(r).add(1,r).date(t),a=o(this).endOf(n);if(i.isBefore(a))return 1}var s=o(this).startOf(r).date(t).startOf(n).subtract(1,"millisecond"),u=this.diff(s,n,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(Ft);var Bt=nt(Ft.exports);function Yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Array.isArray(o))return!1}return!0}function It(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(["boolean","object","symbol"].includes(typeof o)||""===o||isNaN(o))return!1}return!0}function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!o||"object"!=typeof o||!(Symbol.iterator in Object(o)))return!1}return!0}function Ht(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object String]"!=={}.toString.apply(o))return!1}return!0}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Number.isInteger(o))return!1}return!0}function qt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!(o&&o.constructor&&o.call&&o.apply))return!1}return!0}function Wt(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(void 0!==window.console){var o=void 0,i=5,a="log";n[0]&&"object"==typeof n[0]&&n[0]._bbn_console_style&&(n[0]._bbn_console_mode&&qt(console[n[0]._bbn_console_mode])?a=n[0]._bbn_console_mode:(o=n[0]._bbn_console_style,i=n[0]._bbn_console_level),n.shift());var s=window.console[a];if((null===(t=null===(e=window.bbn)||void 0===e?void 0:e.env)||void 0===t?void 0:t.loggingLevel)>=i)for(var u=0;u<n.length;){var c=typeof n[u],l=[n[u]];"string"!==c&&"number"!==c||l.unshift("%c %s ",o),s.apply(window.console,l),u++}}return this}function Vt(e,t,n){if(!Ht(e)||!zt(t))throw Wt(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return t<0&&(t=e.length+t),zt(n)?e.substring(t,(n<0?e.length:t)+n):e.substring(t)}function Jt(e,t){void 0===t&&(t=!1);var n=null;if("object"==typeof e)for(var r in n={},e)Vt(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(t&&"object"==typeof e[r]?n[r]=Jt(e[r],!0):n[r]=e[r]);return n||!1}function Zt(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),null!==e&&"object"==typeof e){var o=Object.keys(n?Jt(e):e);r&&o.reverse();for(var i=0,a=o;i<a.length;i++){var s=a[i];if(!1===t(e[s],s))break}}return e}function Kt(e,t){if(!(It(e)&&e>0)){if(Ut(e)){for(n=0;n<e.length;n++)if(!1===t(e[n],n))return;return e}return Zt(e,t)}for(var n=0;n<e;n++)if(!1===t(n,n))return}function Gt(e){return e.replace(/[A-z]{1}/,(function(e){return e.toUpperCase()}))}function Xt(e){if(arguments.length>1){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);t.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),Wt.apply(this,t)}throw new Error(e)}function Qt(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=!1;Yt(t)||(t=[t]);var a=[];if(Kt(t,(function(t){var n;if(t===String?t="string":t===Number?t="number":t===Array?t="array":t===Boolean?t="boolean":t===Object?t="object":t===Function&&(t="function"),qt(t)){if(a.push(t.name||(null===(n=t.constructor)||void 0===n?void 0:n.name)||t.toString()),e instanceof t)return i=!0,!1}else if(Ht(t)&&qt(bbn.fn["is"+Gt(t)])){if(bbn.fn["is"+Gt(t)](e))return i=!0,!1;a.push(t)}else Xt("The type ".concat(t," is not recognized"))})),!i)throw Wt(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),r.length&&Wt(r),new Error((n?n+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function en(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift(),r=bbn.lng[n]||n;if(e.length){var o=0;return r.replace(/\%([d|s])/g,(function(t,n){var r=e[o++];return r||(r="d"===n?0:""),Qt(r,"d"===n?"number":"string",bbn._("The value you gave did not correspond, check the loggg")),r}))}return r}var tn={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:[33,34,35,36,38,40],leftRight:[36,35,37,39],dels:[8,46,45],confirm:[13,9],alt:[20,16,17,18,144],numbers:[48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105],numsigns:[109,110,189,190]},comparators:[">=","<=",">","<","="],operators:["+","-","/","*"],tags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],colors:{darkgrey:"#5a6a62",black:"#000000",anthracite:"#454545",grey:"#d3d3d3",white:"#ffffff",beige:"#fdfdfd",lightgrey:"#dcdcdc",pastelblue:"#ddebf6",cyan:"#00c8f8",blue:"#6e9ecf",indigo:"#3f51b5",navy:"#354458",webblue:"#2196f3",teal:"#009688",turquoise:"#1fda9a",pastelgreen:"#e2efda",palegreen:"#ccffcc",green:"#00a03e",olive:"#92b06a",pastelorange:"#fff2cc",yellow:"#fdf200",orange:"#ff9900",pink:"#eb65a0",purple:"#a333c8",red:"#db3340",brown:"#8c6954"},reserved:["abstract","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","new","null","package","return","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","while","with"],mockText:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",regexp:{url:new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),ip:/^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,hostname:/^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i}},nn={siteTitle:window.document.title,logging:!1,cdn:"",lang:"en",host:window.location.protocol+"//"+window.location.hostname,url:window.location.href,old_path:null,loading:!1,width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:50,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax"},rn=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB,on=function(e){var t=this,n=an._connections[e],r=an._structures[e];this.insert=function(e,t){return Array.isArray(t)||(t=[t]),new Promise((function(r){var o=n.transaction(e,"readwrite"),i=o.objectStore(e),a=t.length;Kt(t,(function(e){var t=i.put(e);t.onerror=function(){Wt(t.error),a--}})),o.onabort=function(){throw new Error(o.error)},o.oncomplete=function(){r(a)}}))},this.update=function(e,t,o){return new Promise((function(i){var a=n.transaction(e,"readwrite"),s=a.objectStore(e),u=r[e],c=u.keys.PRIMARY.columns.length>1?u.keys.PRIMARY.columns:u.keys.PRIMARY.columns[0];if(!o[c])throw new Error(en("No "));var l=1,f=s.put(t,o[c]);f.onerror=function(){Wt(f.error),l--},a.onabort=function(){throw new Error(a.error)},a.oncomplete=function(){i(l)}}))},this.delete=function(e,t){return new Promise((function(o){var i=n.transaction(e,"readwrite"),a=i.objectStore(e),s=r[e],u=s.keys.PRIMARY.columns.length>1?s.keys.PRIMARY.columns:s.keys.PRIMARY.columns[0];if(!t[u])throw new Error(en("No "));var c=1,l=a.delete(t[u]);l.onerror=function(){Wt(l.error),c--},i.onabort=function(){throw new Error(i.error)},i.oncomplete=function(){o(c)}}))},this.selectOne=function(e,n,r,o,i,a){return new Promise((function(s){t.select(e,[n],r,o,i,a).then((function(e){var t;s(null!==(t=e[n])&&void 0!==t?t:void 0)}))}))},this.select=function(e,t,o,i,a,s){var u=n.transaction(e,"readonly").objectStore(e),c=r[e],l=c.keys.PRIMARY.columns.length>1?c.keys.PRIMARY.columns:c.keys.PRIMARY.columns[0];if(!o[l])throw new Error(en("No "));return new Promise((function(e){var n=u.get(o[l]);n.onsuccess=function(){var r=n.result;if(t.length){var o={};return Zt(r,(function(e,n){t.indexOf(n)>-1&&(o[n]=e)})),e(o)}e(r)}}))},this.selectAll=function(e,t,o,i,a,s){var u=n.transaction(e,"read").objectStore(e),c=r[e];if(!o[c.keys.PRIMARY.columns.length>1?c.keys.PRIMARY.columns:c.keys.PRIMARY.columns[0]])throw new Error(en("No "));return new Promise((function(e){u.get(r.keys.PRIMARY)}))},this.getColumnValues=function(e,t,r,o,i,a){return new Promise((function(t){n.transaction(e,"read").objectStore(e)}))}},an={_structures:{},_connections:{},_stores:{},ok:void 0!==rn,open:function(e){return new Promise((function(t){if(!an._connections[e]){if(!an._structures[e])throw new Error(en("Impossible to find a structure for the database %s",e));var n=rn.open(e);return n.onupgradeneeded=function(){Wt("UPGRADE NEEDED");var t=n.result;Zt(an._structures[e],(function(e,n){var r=e.keys.PRIMARY.columns.length>1?e.keys.PRIMARY.columns:e.keys.PRIMARY.columns[0],o=t.createObjectStore(n,{keyPath:r});Zt(e.keys,(function(e,t){"PRIMARY"!==t&&o.createIndex(t,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})}))}))},void(n.onsuccess=function(){an._connections[e]=n.result;var r=new on(e);t(r)})}t(new on(an._connections[e]))}))},add:function(e,t,n){var r;if(!(null===(r=null==n?void 0:n.keys)||void 0===r?void 0:r.PRIMARY)||!(null==n?void 0:n.fields))throw new Error(en("The database structure for %s is not valid (are there keys and field? Is there a primary?",t));an._structures[e]||(an._structures[e]={}),an._structures[e][t]=n}};function sn(e,t,n){var r=(new Date).getTime(),o={key:e,url:Vt(e,0,e.length-33),loader:t,aborter:n,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(o),bbn.env.loadersHistory.unshift(o);for(var i=bbn.env.loadersHistory.length;i&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)i--,bbn.env.loading||bbn.env.loadersHistory.splice(i,1);return r}function un(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if("object"==typeof e){var r=[];return 1===t.length&&"string"==typeof t[0]?r.push.apply(r,t[0].split(".")):r.push.apply(r,t),r.reduce((function(e,t){if(e)return e[e instanceof Array?parseInt(t):t]}),e)}}function cn(e){if(!Ht(e)){if(!e.toString)throw Wt(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Date]"!=={}.toString.apply(o))return!1}return!0}function fn(e,t,n,r){void 0===r&&(r="asc");var o=un(e,n),i=un(t,n),a=(typeof o).toLowerCase(),s=(typeof i).toLowerCase();if("asc"!==r&&Ht(r)&&"desc"===r.toLowerCase()&&(r="desc"),a!==s)o=a,i=s;else switch(a){case"string":o=cn(o).toLowerCase(),i=cn(i).toLowerCase();break;case"boolean":o=o?1:0,i=i?1:0;break;case"object":ln(o)&&(o=o.getTime(),i=ln(i)?i.getTime():0)}return o<i?"desc"===r?1:-1:o>i?"desc"===r?-1:1:0}function dn(e){return e&&"object"==typeof e?Object.keys(e).length:0}function hn(e){return!e||(Yt(e)?!e.length:"object"==typeof e&&!dn(e))}function pn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Null]"!=={}.toString.apply(o))return!1}return!0}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Object]"!=={}.toString.apply(o))return!1}return!0}function bn(e){for(var t=0,n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return Math.abs(t).toString(16)}function vn(e){for(var t=0,n=0;n<e.length;n++){t=e.charCodeAt(n)+(t<<6)+(t<<16)-t,t|=0}return Math.abs(t).toString(16)}function gn(e){return bn(e).padStart(8,"0")+vn(e).padStart(8,"0")}function yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof HTMLElement))return!1}return!0}function wn(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(var r=0,o=t;r<o.length;r++){var i=o[r];if(!bbn.cp.isComponent(i)||yn(i)||!(null===(e=i.$el)||void 0===e?void 0:e.bbnCid))return!1}return!0}function _n(e,t,n,r,o){if(void 0===t&&(t=null),void 0===n&&(n=0),void 0===r&&(r=null),void 0===o&&(o=null),n||r||(r=new WeakSet),void 0===e)e="__BBN_UNDEFINED__";else if(null===e)e="__BBN_NULL__";else if(null===e)e="__BBN_NULL__";else if("function"==typeof e)e="__BBN_FUNCTION__"+e.toString();else if("symbol"==typeof e)e="__BBN_SYMBOL__"+e.toString();else if("string"==typeof e)e="__BBN_STRING__"+e;else if("number"==typeof e)e="__BBN_NUMBER__"+e.toString();else if("boolean"==typeof e)e="__BBN_BOOLEAN__"+e.toString();else if([void 0,Object,Array,null].includes(null==e?void 0:e.constructor)){if(bbn.fn.isArray(e))if(r.has(e)||t&&t<n)e="__BBN_ARRAY__"+e.constructor.toString();else{r.add(e);for(var i="",a=0;a<e.length;a++)i+="__BBN_ITEM"+a.toString()+"__"+o(e[a],t,n+1,r,o);e="__BBN_ARRAY__"+i}else if("object"==typeof e)if(r.has(e)||t&&t<n)e="__BBN_OBJECT__"+(e.constructor?e.constructor.toString():"");else{r.add(e);i="";for(var s in e){var u=s;"string"!=typeof u&&(u=o(u,o,1,1)),i+="__BBN_PROP_"+u+"__"+o(e[s],t,n+1,r,o)}e="__BBN_OBJECT__"+i}}else e=yn(e)?e.bbnId?"__BBN_DOM__"+e.tagName+"/"+e.bbnId+e.bbnHash:"__BBN_DOM__"+e.tagName+"/"+e.className:wn(e)?"__BBN_CP__"+e.$options.name+"/"+e.$cid:"__BBN_OBJECT__"+e.constructor.toString();return e}function Sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="",r=null;for(var o in 2===e.length&&"number"==typeof e[1]&&(r=e[1],e=[e[0]]),e)n+=_n(e[o],r,0,null,_n);return gn(n)}function On(e){var t="0123456789abcdef";function n(e){var n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(o,a)),i),n)}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}var c,l,f,d,h,p=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<t%4*8;return r[t>>2]|=128<<t%4*8,r[16*n-2]=8*e.length,r}(e),m=1732584193,b=-271733879,v=-1732584194,g=271733878;for(c=0;c<p.length;c+=16)l=m,f=b,d=v,h=g,m=i(m,b,v,g,p[c+0],7,-680876936),g=i(g,m,b,v,p[c+1],12,-389564586),v=i(v,g,m,b,p[c+2],17,606105819),b=i(b,v,g,m,p[c+3],22,-1044525330),m=i(m,b,v,g,p[c+4],7,-176418897),g=i(g,m,b,v,p[c+5],12,1200080426),v=i(v,g,m,b,p[c+6],17,-1473231341),b=i(b,v,g,m,p[c+7],22,-45705983),m=i(m,b,v,g,p[c+8],7,1770035416),g=i(g,m,b,v,p[c+9],12,-1958414417),v=i(v,g,m,b,p[c+10],17,-42063),b=i(b,v,g,m,p[c+11],22,-1990404162),m=i(m,b,v,g,p[c+12],7,1804603682),g=i(g,m,b,v,p[c+13],12,-40341101),v=i(v,g,m,b,p[c+14],17,-1502002290),m=a(m,b=i(b,v,g,m,p[c+15],22,1236535329),v,g,p[c+1],5,-165796510),g=a(g,m,b,v,p[c+6],9,-1069501632),v=a(v,g,m,b,p[c+11],14,643717713),b=a(b,v,g,m,p[c+0],20,-373897302),m=a(m,b,v,g,p[c+5],5,-701558691),g=a(g,m,b,v,p[c+10],9,38016083),v=a(v,g,m,b,p[c+15],14,-660478335),b=a(b,v,g,m,p[c+4],20,-405537848),m=a(m,b,v,g,p[c+9],5,568446438),g=a(g,m,b,v,p[c+14],9,-1019803690),v=a(v,g,m,b,p[c+3],14,-187363961),b=a(b,v,g,m,p[c+8],20,1163531501),m=a(m,b,v,g,p[c+13],5,-1444681467),g=a(g,m,b,v,p[c+2],9,-51403784),v=a(v,g,m,b,p[c+7],14,1735328473),m=s(m,b=a(b,v,g,m,p[c+12],20,-1926607734),v,g,p[c+5],4,-378558),g=s(g,m,b,v,p[c+8],11,-2022574463),v=s(v,g,m,b,p[c+11],16,1839030562),b=s(b,v,g,m,p[c+14],23,-35309556),m=s(m,b,v,g,p[c+1],4,-1530992060),g=s(g,m,b,v,p[c+4],11,1272893353),v=s(v,g,m,b,p[c+7],16,-155497632),b=s(b,v,g,m,p[c+10],23,-1094730640),m=s(m,b,v,g,p[c+13],4,681279174),g=s(g,m,b,v,p[c+0],11,-358537222),v=s(v,g,m,b,p[c+3],16,-722521979),b=s(b,v,g,m,p[c+6],23,76029189),m=s(m,b,v,g,p[c+9],4,-640364487),g=s(g,m,b,v,p[c+12],11,-421815835),v=s(v,g,m,b,p[c+15],16,530742520),m=u(m,b=s(b,v,g,m,p[c+2],23,-995338651),v,g,p[c+0],6,-198630844),g=u(g,m,b,v,p[c+7],10,1126891415),v=u(v,g,m,b,p[c+14],15,-1416354905),b=u(b,v,g,m,p[c+5],21,-57434055),m=u(m,b,v,g,p[c+12],6,1700485571),g=u(g,m,b,v,p[c+3],10,-1894986606),v=u(v,g,m,b,p[c+10],15,-1051523),b=u(b,v,g,m,p[c+1],21,-2054922799),m=u(m,b,v,g,p[c+8],6,1873313359),g=u(g,m,b,v,p[c+15],10,-30611744),v=u(v,g,m,b,p[c+6],15,-1560198380),b=u(b,v,g,m,p[c+13],21,1309151649),m=u(m,b,v,g,p[c+4],6,-145523070),g=u(g,m,b,v,p[c+11],10,-1120210379),v=u(v,g,m,b,p[c+2],15,718787259),b=u(b,v,g,m,p[c+9],21,-343485551),m=r(m,l),b=r(b,f),v=r(v,d),g=r(g,h);return n(m)+n(b)+n(v)+n(g)}function xn(e){var t="function"==typeof e?e.toString():e;if("string"!=typeof t)throw Error("Unexpected type "+typeof e+" while parsing function");for(var n,r="",o=!1,i=!1,a=!1,s="",u=0,c=0,l=[],f={},d="",h=['"',"'","`"],p=!1,m=!1,b=!1,v=!1,g=!1,y=!1,w="",_=0;_<t.length;_++)if(b||"/"!==t[_]||"*"!==t[_+1])if("/"===t[_]&&"*"===t[_-1])b=!1;else if(v||"/"!==t[_]||"/"!==t[_+1])if("\n"===t[_])v=!1;else{if(b||v)continue;if(t[_]===d&&!p&&d)d="",r+=t[_];else if(d)p="\\"===t[_]&&!p,r+=t[_];else if(h.includes(t[_])&&!p)d=t[_],r+=t[_];else if("("===t[_]){if(u++,""!==r.trim()){if("function"===r.trim())a=!0;else if("async"!==r.trim()){var S=(s=r.trim()).match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);S&&(s=S[1])}r=""}}else if(")"===t[_])u===c+1&&(m?(f.default=r.trim(),m=!1):r&&(f.name=r.trim()),(f.name||f.default)&&(l.push(f),f={}),r=""),c++;else if(g&&"}"!==t[_])r+=t[_];else{if(u&&u===c&&":"===t[_]){var O=t.substring(_+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!O)throw Error("Unexpected ':' while parsing function");w=O[1],n=t.substring(_+O[0].length).trim();break}if(!(r||"="!==t[_]||">"!==t[_+1]||u!==c||c||o)){f.name=t.slice(0,_).trim(),l.push(f),f={},o=!0,n=bbn.fn.substr(t,_+2).trim();break}if(u===c&&"="===t[_]&&">"===t[_+1]){""!==r.trim()&&(f.name=r.trim(),l.push(f),f={},r=""),o=!0,_++;continue}if("="===t[_]&&u>c&&!m)f.name=r.trim(),r="",m=!0;else if(","===t[_])if(g)r+=t[_];else{if(!(u>c))throw Error("Unexpected ',' while parsing function");m?(f.default=r.trim(),m=!1):r&&(f.name=r.trim()),(f.name||f.default)&&(l.push(f),f={}),r=""}else if("{"===t[_]||"}"===t[_]){if(u===c){n=t.substring(_).trim();break}u>c?"{"!==t[_]||g?"}"===t[_]&&g&&(g=!1,r+=t[_]):(g=!0,r=t[_]):r=""}else{if(o){n=t.substring(t.indexOf("=>")+2).trim();break}" "===t[_]?""!==r.trim()&&("async"===r.trim()&&(i=!0),u>c?r+=t[_]:r=""):r+=t[_]}}}else v=!0,r="";else b=!0,r="";if(!n){if(!o)throw Error("Unexpected end of function while parsing function");n=r}"{ [native code] }"===n&&(y=!0);var x=l.map((function(e){return e.name+(e.default?" = "+e.default:"")})).join(", ");return{body:n,args:l,argString:x,isArrow:o,hasFunction:a,name:s,isAsync:i,isBinary:y,hash:On(n+(s?"-"+s:"")+(x?"-"+x:"")),returnType:w}}function En(e,t,n){if(n||(n=[]),e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r=Object.keys(e).sort(),o=Object.keys(t).sort();if(Sn(r)!==Sn(o))return!1;var i=!0;if(e&&"object"==typeof e){if(n.includes(e))return i;n.push(e)}return Kt(r,(function(n){if(!En(e[n],t[n]))return i=!1,!1})),i}if(e&&t&&"function"==typeof e&&"function"==typeof t){r=xn(e),o=xn(t);var a=r.hash===o.hash;return a&&r.isBinary&&(a=!1),a}return!1}function Mn(e,t,n){switch(n){case"===":case"=":case"equal":case"eq":case"is":return e===t;case"!==":case"notequal":case"neq":case"isnot":return e!==t;case"!=":case"different":return e!=t;case"contains":case"contain":case"icontains":case"icontain":return!hn(e)&&!hn(t)&&-1!==cn(e).toLowerCase().indexOf(cn(t).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!pn(e)&&!pn(t))||-1===cn(e.toLowerCase()).indexOf(cn(t.toLowerCase()));case"starts":case"start":return!pn(e)&&!pn(t)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof t&&(t=t.toString()||""),0===e.indexOf(t));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!pn(e)&&!pn(t)&&0===cn(e).toLowerCase().indexOf(cn(t).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!pn(e)&&!pn(t)&&e.lastIndexOf(t)===e.length-t.length;case"like":return!pn(e)&&!pn(t)&&cn(e).toLowerCase()===cn(t).toLowerCase();case"gt":case">":return e>t;case"gte":case">=":return e>=t;case"lt":case"<":return e<t;case"lte":case"<=":return e<=t;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(mn(e,t))return En(e,t);default:return e==t}}function An(e,t){if(!t.conditions||!t.logic||!Yt(t.conditions))throw new Error("Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects");var n="AND"===t.logic;return Kt(t.conditions,(function(r){var o;if(r.conditions&&Yt(r.conditions))o=An(e,r);else if(o=Mn(un(e,r.field),r.value,r.operator)){var i=r.field.split("."),a=i.pop();i.length&&Kt(i,(function(t){return e=e[t]})),void 0===un(e,a)&&void 0!==r.value&&(o=!1)}if(o){if("OR"===t.logic)return n=!0,!1}else if("AND"===t.logic)return n=!1,!1})),n}function Tn(e,t){if(void 0===t&&(t="="),!mn(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!Yt(e.conditions)){var n=[];Zt(e,(function(e,r){mn(e)&&"object"==typeof e.conditions?n.push(Tn(e)):n.push({field:r,operator:t,value:e})})),e={conditions:n}}return e.logic||(e.logic="AND"),e}function Rn(e,t,n,r,o){if(void 0===n&&(n=null),void 0===r&&(r="="),void 0===o&&(o=0),!Ut(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;var i,a=!1;if("string"==typeof t?i={conditions:[{field:t,value:n,operator:r||"="}]}:t?(o="number"==typeof r?r:0,r=n,mn(t)?i=t:"function"==typeof t&&(a=!0,i=t)):(a=!0,i=function(e){return An({value:e},Tn({logic:"AND",conditions:[{field:"value",operator:r||"=",value:n}]}))}),a||mn(i)&&dn(i))if(It(r)&&(o="number"==typeof r?r:0,r=void 0),It(o)||(o=0),"function"==typeof i){for(var s=o;s<e.length;s++)if(i(e[s]))return s}else{i=Tn(i);for(s=o;s<e.length;s++)if(An(e[s],i))return s}return-1}function Dn(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r="=");var o=Rn(e,t,n,r);return o>-1&&e[o]}function jn(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=Rn(bbn.env.loaders,{key:e});if(r>-1){var o=bbn.env.loaders.splice(r,1)[0],i=Dn(bbn.env.loadersHistory,{key:e,start:o.start});return i&&(i.loading=!1,i.duration=(new Date).getTime()-o.start,"string"==typeof t?(i.errorMessage=t,i.error=!n,i.abort=n):mn(t)&&(i.success=!0)),!0}return!1}function kn(e){var t=Rn(bbn.env.loaders,{key:e});return t>-1?bbn.env.loaders[t]:null}function $n(e,t,n,r){if(void 0===n&&(n=null),void 0===r&&(r="="),!Yt(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");var o={},i=[],a="function"==typeof t;if(!t||!e.length)return e;if(e.length){if("object"==typeof t)r=n,o=t;else if("string"==typeof t)o[t]=n;else if(!a)throw new Error("Search function error: The prop argument should be a string or an object");return"function"==typeof t?Kt(e,(function(e,n){t(e,n)&&i.push(e)})):(o=Tn(o,r)).conditions&&o.logic&&Kt(e,(function(e){An(e,o)&&i.push(e)})),i}}function Ln(e){if(dn(e)){bbn.var.colors||(bbn.var.colors={});var t=document.createElement("style");document.head.appendChild(t);var n=t.sheet;Zt(e,(function(e,t){bbn.var.colors[t]=e,n.insertRule(".bbn-"+t+", .bbn-color-text-"+t+" {color: "+e+" !important;}",0),n.insertRule("svg.bbn-"+t+", .bbn-"+t+" svg, svg.bbn-color-text-"+t+", .bbn-color-text-"+t+" svg {fill: "+e+";}",0),n.insertRule(".bbn-bg-"+t+", .bbn-color-bg-"+t+", .bbn-color-background-"+t+" {background-color: "+e+" !important;}",0),n.insertRule(".bbn-border-"+t+", .bbn-color-border-"+t+" {border-color: "+e+" !important;}",0),n.insertRule(".bbn-color-"+t+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",0)}))}}function Cn(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=""),e&&"FORM"===e.tagName){var r=function(t,n){var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)};t=JSON.parse(JSON.stringify(t||{})),n=n||"",t&&Zt(t,(function(t,o){var i=n?"".concat(n,"[").concat(o,"]"):o;t instanceof Date?r(i,t.toISOString()):t instanceof Array?t.forEach((function(t,n){var o="".concat(i,"[").concat(n,"]");"object"==typeof t?Cn(e,t,o):r(o,t.toString())})):"object"!=typeof t||t instanceof File?r(i,t.toString()):Cn(e,t,i)}))}}function Nn(e,t){var n=0;Kt(t,(function(t){t.style[e]="auto"})),Kt(t,(function(t,r){var o=t.getBoundingClientRect(),i=o[e]%1?o[e]-o[e]%1+1:o[e];i>n&&(n=i)})),Kt(t,(function(t,r){n&&(t.style[e]=n+"px")}))}function Pn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Fn(e,t,n,r){return void 0===r&&(r=""),n.toString().replace(mn(e)?e:new RegExp(Pn(e),"g"+r),t)}function Bn(e,t,n){var r={};return t&&Zt(t,(function(e,t){-1===t.indexOf("_bbn")&&(r[t]=e)})),e+":"+On((n||"json")+JSON.stringify(r))}function Yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=!1,r=[],o=0;o<e.length;o++)if(!0===e[o])n=!0;else{if(!e[o])continue;if("object"!=typeof e[o])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[o]);r.push(e[o])}if(!r.length)throw new Error("No argument given");var i=r[0];for(o=1;o<r.length;o++)Zt(r[o],(function(e,t){n?Yt(e)?(i[t]=Yt(i[t])?i[t]:[],Kt(e,(function(e,n){if(e&&"object"==typeof e){var r=i[t][n];Yt(e)?Yt(r)||(r=[]):mn(r)||(r={}),i[t][n]=Yn(!0,r,e)}else i[t][n]=e}))):mn(e)?i[t]=Yn(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:(i[t]!==e||void 0===e&&!Object.prototype.hasOwnProperty.apply(i,[t]))&&(i[t]=e)})),r[o].__bbnNoData&&Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1});return i}function In(e,t,n,r,o,i){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===i&&(i=null),1===arguments.length&&e&&"object"==typeof e&&e.url&&(e.abort&&(i=e.abort),e.failure&&(o=e.failure),e.success&&(r=e.success),e.data&&(n=e.data),e.datatype&&(t=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=Fn("//","/",e)),t||(t="json");var a=Bn(e,n,t),s=kn(a);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&Yn(n||{},{_bbn_token:bbn.env.token});var u=new AbortController,c={responseType:t,signal:u.signal};"text"===t&&(c.headers={accept:"text/javascript","Content-Type":"text/javascript"});var l=[e];mn(n)&&dn(n)>0&&l.push(n),l.push(c);var f=2===l.length?"get":"post",d=axios[f].apply(null,l).then((function(t){if(jn(a,t),bbn.fn.defaultEndLoadingFunction(e,h,n,t),200===t.status)qt(r)&&r(t.data,t.headers);else bbn.fn.defaultAjaxErrorFunction(d,t);return t})).catch((function(t){var r=axios.isCancel(t);if(jn(a,t.message||t.response.data,r),bbn.fn.defaultEndLoadingFunction(e,h,n,t),r){var s=1;qt(i)&&(s=i(t.message,e)),s&&bbn.fn.defaultAjaxAbortFunction(t.message,e)}else{s=1;qt(o)&&(s=o(t.request,t)),s&&bbn.fn.defaultAjaxErrorFunction(t.request,t.response?t.response.data:"",t.response?t.response.status:t)}})),h=sn(a,d,u);return bbn.fn.defaultStartLoadingFunction(e,h,n,a),d}}function Un(e,t){if(e&&Ht(e)){var n=e.split("/").pop();if(!t)return n;var r=t.length;if(n&&Vt(n,-r)===t)return Vt(n,0,n.length-r)}return""}function Hn(e){var t=typeof e;if(void 0===e)return new Date;if("number"===t||It(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===t){if(10===e.length)return new Date(parseInt(Vt(e,0,4)),parseInt(Vt(e,5,2))-1,parseInt(Vt(e,8,2)),12);if(19===e.length)return new Date(parseInt(Vt(e,0,4)),parseInt(Vt(e,5,2))-1,parseInt(Vt(e,8,2)),parseInt(Vt(e,11,2)),parseInt(Vt(e,14,2)),parseInt(Vt(e,17,2)))}else if(ln(e))return e;return!1}function zn(e,t){void 0===t&&(t=!1);var n=Hn(e);return ln(n)?void 0!==dayjs?dayjs(n).calendar(null,{sameDay:"["+bbn._("Today")+"] HH:mm",nextDay:"["+bbn._("Tomorrow")+"] HH:mm",nextWeek:"ddd D HH:mm",lastDay:"["+bbn._("Yesterday")+"] HH:mm",lastWeek:"ddd D HH:mm",sameElse:"DD/MM/YYYY HH:mm"}):n.toLocaleDateString():t&&Ht(t)?t:""}function qn(e,t){if(void 0===t&&(t=!1),!0===t)return zn(e);var n=Hn(e);return ln(n)?void 0!==dayjs?dayjs(n).format("L"):n.toLocaleDateString():t&&Ht(t)?t:""}var Wn=function(e){return e};function Vn(e,t,n,r,o){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null);var i=!1;if(t){i=!0;var a="object"===(typeof t).toLowerCase(),s=void 0;if(a&&t.prescript)try{new Function(t.prescript)()}catch(e){Xt(e.message||"")}if(a&&void 0===t.url&&(t.url=e),i=n&&qt(n)?n(t,o):bbn.fn.defaultLinkFunction(t,o),o&&a&&void 0!==t.content&&("value"in o?o.value=t.content:o.innerHTML=t.content),i&&a&&t.script&&(i="function"==typeof t.script?t.script(t.data?t.data:{},o||null):function(e,n){var r=null;try{qt(r=new Function(t.script)())&&(r=r(e,n))}catch(e){Wt(e,t),Xt(qt(e.getMessage)?e.getMessage():null)}return r}(t.data?t.data:{},o||!1)),i&&r&&qt(r)?r(t):a&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(t,o),i&&a&&t.postscript)new Function(t.postscript)(t.postscript);a&&t.error&&(s=t.errorTitle||bbn.lng.server_response,bbn.fn.defaultAlertFunction(t.error,s))}else bbn.fn.defaultAlertFunction(bbn.lng.errorText,bbn.lng.error);return i}function Jn(e,t,n){void 0===n&&(n=!1);var r,o={error:!1,result:!0};("string"==typeof t&&(t=[t]),Yt(t)||(o.error=bbn._("checkProps must receive a string or an array as props argument")),mn(e)||(o.error=bbn._("checkProps must receive an object as obj argument")),o.error)||Kt(t,(function(t){var i=(t=t.trim().split(":"))[1]||!1;if(t=t[0],void 0===e[t]?o.error=t+" "+bbn._("is not defined"):i?(r="is"+Vt(i,0,1).toUpperCase()+Vt(i,1).toLowerCase(),void 0===bbn.fn[r]?o.error=i+" "+bbn._("is not a valid type"):bbn.fn[r](e[t])||(o.error=t+" "+bbn._("is not a")+" "+i)):n&&!e[t]&&(o.error=t+" "+bbn._("is empty")),o.error)return!1}));return o.error&&(o.result=!1),o}function Zn(e){return Yt(e)?e.slice().map((function(e){return"object"==typeof e?Zn(e):e})):mn(e)?Yn(!0,Object.create(Object.getPrototypeOf(e)),e):e}it.extend(st),it.extend(vt);for(var Kn=[],Gn=0;Gn<256;Gn++){for(var Xn=Gn,Qn=0;Qn<8;Qn++)Xn=1&Xn?3988292384^Xn>>>1:Xn>>>1;Kn.push(Xn)}var er=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.length&&Yn.apply(void 0,er([n],e,!1)),n}function nr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("object"==typeof o&&!pn(o))return!1}return!0}var rr=[];function or(e){if(Ht(e)&&e){for(;"/"===Vt(e,e.length-1);)e=Vt(e,0,e.length-1);var t=e.lastIndexOf("/");if(t>0)return Vt(e,0,t);if(0===t)return"/"}return""}function ir(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Blob]"!=={}.toString.apply(o))return!1}return!0}function ar(e){if(e&&Ht(e)){var t=e.split(".");if(t[0]&&t.length>1)return t[t.length-1].toLowerCase()}return""}function sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof HTMLCanvasElement))return!1}return!0}function ur(e,t,n){if(void 0===n&&(n=null),sr(t))t.toBlob((function(t){var n=document.createElement("a");n.download=e,n.href=window.URL.createObjectURL(t),n.className="bbn-no",n.click(),window.URL.revokeObjectURL(n.href)}),n||"image/png");else{n?-1===n.indexOf("/")&&(n="text/"+n):n=mn(t)&&t.type?t.type:"octet/stream";var r=window.document.createElement("a");r.className="bbn-no";var o=null;if(Ht(t))o=new Blob([t],{type:n});else try{o=t}catch(e){Wt(e)}r.href=window.URL.createObjectURL(o),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}}function cr(e){var t;return"checkbox"===e.type?e.checked?(t=e.value)||(t=1):t=0:"radio"===e.type?e.checked&&(t=e.value):t=e.value,t}function lr(e){var t,n,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),o={};return Kt(r,(function(e,r){if(void 0!==(n=cr(e))&&!e.disabled){var i=e.name;if(-1===i.indexOf("[]")&&i.indexOf("[")>-1&&i.indexOf("]")>-1&&i.lastIndexOf("]")===i.length-1&&(i=Fn("][",".",i),i=Fn("[",".",i),i=Fn("]","",i)),i.length>2&&i.indexOf("[]")===i.length-2)t=Vt(i,0,i.length-2),void 0===o[t]&&(o[t]=[]),o[t].push(n);else if(i.indexOf(".")>-1){var a=void 0,s=i.split(".");a=o;for(var u=0;u<s.length;u++)void 0===o[s[u]]&&(u<s.length-1?a[s[u]]={}:a[s[u]]=n),a=a[s[u]]}else o[i]=n}})),o}function fr(e){return e.filter((function(e,t,n){return t===n.indexOf(e)}))}function dr(e,t){void 0===t&&(t=null);var n=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof t)for(;e=e.parentElement.closest(t);)n.push(e);else for(!0===t&&n.push(e);e=e.parentElement;)n.push(e);return n}function hr(e){return 0!==e.indexOf("--")&&(e="--"+e),getComputedStyle(document.documentElement).getPropertyValue(e)}function pr(){var e=navigator.userAgent.toLowerCase();return/iPhone|Android/i.test(navigator.userAgent)?"mobile":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?"tablet":"desktop"}function mr(){var e,t=window.getSelection();if(t.rangeCount>0){Wt("RANGE",e=t.getRangeAt(0));var n=e.cloneContents();Wt("clonedSelection",n);var r=document.createElement("div");return r.appendChild(n),r.innerHTML}return""}function br(e){return Ht(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function vr(e){var t=document.createElement("div");return t.innerHTML=e,e=t.innerText}function gr(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t}function yr(e){var t,n,r={};if(mn(e[0])&&1===e.length)return e[0];for(n=0;n<e.length;n++)t=(t=typeof e[n]).toLowerCase(),qt(e[n])?(r.errorFn&&!r.abortFn&&(r.abortFn=e[n]),r.successFn&&!r.errorFn?r.errorFn=e[n]:r.successFn||(r.successFn=e[n])):1===e[n]||!0===e[n]?r.force=!0:"string"===t?r.url?r.datatype=e[n]:0===e[n].indexOf("#")||0===e[n].indexOf(bbn.env.root+"#")?r.url=Vt(e[n],bbn.env.root.length):(r.url=e[n],0===r.url.indexOf(bbn.env.root)&&(r.url=Vt(r.url,bbn.env.root.length))):e[n]&&"object"===t&&(e[n]instanceof Event?r.e=e[n]:r.ele||1!==e[n].nodeType?"object"===t.toLowerCase()&&(r.obj=e[n]):r.ele=e[n]);return!r.url&&dn(r)&&(r.url=bbn.env.path),void 0===r.obj&&(r.obj={_bbn:"public"}),r.datatype||(r.datatype="json"),r}function wr(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=!1),bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(Vt(e,0,7))?e:bbn.env.root+e,bbn.env.path=Vt(bbn.env.url,bbn.env.root.length),bbn.env.params=$n(bbn.env.path.split("/"),(function(e){return""!==e}));var o=window.history;if(o){var i=o.state,a={url:bbn.env.path,old_path:bbn.env.old_path||null,data:n||{},reload:!1};i&&i.url===bbn.env.path&&(i.data&&Yn(a.data,i.data),i.title&&!t&&(t=i.title),r=!0),t=t?vr(t):bbn.env.siteTitle,r?(a.reload=!0,o.replaceState(a,t,bbn.env.url)):o.pushState(a,t,bbn.env.url)}}function _r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=yr(e),r=1;if(!0===n)return!0;if(!n)return _r(window.location.href);if(0===n.url.indexOf("javascript:"))return!0;if(0===n.url.indexOf("data:"))return!0;if(0===n.url.indexOf("#"))return location.href=bbn.env.url+n.url,!0;if(0===n.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=n.url,setTimeout((function(){bbn.env.ignoreUnload=!1}),0),!1;if(kn(n.url))return!1;if((0===n.url.indexOf("http://")||0===n.url.indexOf("https://"))&&0!==n.url.indexOf(bbn.env.host))return n.e&&n.e.preventDefault(),window.open(n.url),!1;if(n.url!==bbn.env.params.join("/")||1===n.force){if(n.successFn)r=n.successFn(n.url);else if(bbn.fn.defaultPreLinkFunction){var o=bbn.fn.defaultPreLinkFunction(n.url,n.force,n.ele);void 0!==o.data?(Yn(n.obj,o.data),r=1):r=o}if(r){1!==r&&"string"==typeof r&&(n.url=r);var i=bbn._("The Ajax call to")+" "+n.url+" ";return In(n.url,n.datatype,n.obj,(function(e){e||Wt(i+bbn._("returned no answer")),mn(e)&&(0===Object.keys(e).length&&Wt(i+bbn._("returned an empty object")),e.new_url?(e.old_path=n.url,n.url=e.new_url):e.url&&n.url!==e.url&&(e.old_path=n.url)),Vn(n.url,e,n.successFn,null,n.ele)&&void 0===e.noNav&&0!==bbn.env.path.indexOf(n.url)&&wr(n.url,(e.title?e.title+" - ":"")+bbn.env.siteTitle)}),n.errorFn||null)}}return!0}function Sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=yr(e);if(n.url)return In(n.url,n.datatype,n.obj,(function(e){Vn(n.url,e,n.successFn,null,n.ele)}),n.errorFn,n.abortFn)}function Or(e,t,n){var r,o=e.getAttribute("action")||bbn.env.path;if(""===o&&(o="."),"string"==typeof o&&(0!==o.indexOf("http")||-1!==o.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(t&&t.preventDefault(),r=lr(e))){e.setAttribute("action",null);var i=[o,r];!n&&e.getAttribute("data-script")&&(n=(n=new Function(e.getAttribute("data-script")))()),n&&i.push(n),Sr.apply(void 0,i)}}function xr(){var e=bbn.env.width!==window.innerWidth,t=bbn.env.height!==window.innerHeight;if(e||t){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),t&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));var n=parseInt(hr("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<n?"small":"regular"),o=(document.body.className||"").split(" "),i=!1;Kt(o,(function(e,t){if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return i=!0,e!==r&&o.splice(t,1,r),!1})),i||o.push(r),bbn.fn.defaultResizeFunction(),document.body.className=o.join(" ")}}function Er(){return"mobile"===pr()}function Mr(){return"tablet"===pr()}function Ar(){return Er()||Mr()}function Tr(e){void 0===e&&(e=!1);var t=(new Date).getTime();return e?Math.round(t/1e3):t}function Rr(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||It(Vt(e,0,1)))){var t=document.createElement("div");t.style.width=e;var n=!!t.style.width.length;return t.remove(),n}return!1}function Dr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Ht(o)||!bbn.var.regexp.ip.test(o))return!1}return!0}function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Symbol]"!=={}.toString.apply(o))return!1}return!0}function kr(e){var t=["BBN: "+e];t.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),Wt.apply(this,t)}function $r(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null);var r=new FormData,o=function(e,t){void 0===t&&(t=""),(!n||Yt(n)&&!n.includes(t))&&(e instanceof File?r.append(t,e):Yt(e)?Kt(e,(function(e,n){o(e,t+"["+n+"]")})):mn(e)&&Object.keys(e).length?Zt(e,(function(n,r){r in e&&o(n,t?t+"["+r+"]":r)})):pn(e)||void 0===e||r.append(t,e))};return o(e,t),r}function Lr(e){return"string"==typeof e?document.querySelector(e):e}function Cr(e,t,n,r){if("object"==typeof e&&"string"==typeof t){var o=e,i=t.split(".");Kt(i,(function(e,t){if(!o){if(!r)throw new Error(bbn._("The object is invalid"));o={}}i.length-1===t?o[e]=n:o=o[e]}))}}function Nr(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Pr(e,t){if(void 0===t&&(t=" ")," "===t)return e.trim();if(!t)return e;if(t===e)return"";for(;0===e.indexOf(t);)e=Vt(e,t.length);for(;e.lastIndexOf(t)===e.length-t.length;)e=Vt(e,0,e.length-t.length);return e}function Fr(e,t,n){return"string"==typeof e.toLowerCase()&&(t||(t=bbn.var.shortenLen),void 0!==n&&Ht(n)||(n="..."),e.length>t&&(e=Vt(e,0,t)+n)),e}var Br={_addLoader:sn,_compareValues:fn,_deleteLoader:jn,abort:function(e){var t=kn(e);(null==t?void 0:t.aborter)&&t.aborter.abort("Operation canceled by the user.")},abortURL:function(e){Kt($n(bbn.env.loaders,{url:e}),(function(t){if(!t||!t.source)throw new Error("Impossible to find the loader with URL "+e);t.source.cancel("Operation canceled by the user.")}))},addColors:Ln,addInputs:Cn,addStyle:function(e,t){mn(t)&&Zt(t,(function(t,n){e.style[n]=t}))},adjustHeight:function(){var e=arguments;return 1===e.length&&Ut(e[0])&&(e=e[0]),Nn("height",e)},adjustSize:Nn,adjustWidth:function(){var e=arguments;return 1===e.length&&Ut(e[0])&&(e=e[0]),Nn("width",e)},ajax:In,analyzeFunction:xn,animateCss:function(e,t,n){e.classList.add("animated"),e.classList.add(t),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function e(r){r.target.removeEventListener(r.type,e),"function"==typeof n&&n.call(this),r.target.classList.remove(t)}))},arrayBuffer2String:function(e){return String.fromCharCode.apply(null,new Uint16Array(e))},arrayFromProp:function(e,t){var n=[];return Kt(e,(function(e,r){n.push(un(e,t))})),n},autoExtend:function(e,t){bbn[e]||(bbn[e]={}),Yn(bbn[e],t)},baseName:Un,br2nl:function(e){return Fn("<br />","\n",Fn("<br/>","\n",Fn("<br>","\n",e)))},calendar:function(e,t){if(void 0===t&&(t=!1),void 0===it)return qn(e,t);var n=Hn(e);return ln(n)?it(n).calendar(null,{sameDay:"["+Wn("Today")+"]",nextDay:"["+Wn("Tomorrow")+"]",nextWeek:"ddd D",lastDay:"["+Wn("Yesterday")+"]",lastWeek:"ddd D",sameElse:"L"}):t&&Ht(t)?t:""},callback:Vn,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,(function(e,t,n,r){return n?n.toUpperCase():t.toLowerCase()}))},camelToCss:function(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})).replace("/^./",(function(e){return e.toLowerCase()}))},canvasToImage:function(e){var t=new Image;return t.src=e.toDataURL("image/png"),t},cast:function(e){var t;return e?"object"==typeof e?bbn.fn.isArray(e)?"Array ("+e.length+")":(null===(t=e.constructor)||void 0===t?void 0:t.name)||"{}":e.toString?e.toString():"string"==typeof e?e:"":""},center:function(e){for(var t=e.parentNode,n=t.clientWidth,r=t.clientHeight;t&&(!n||!r);)n=(t=e.parentNode).clientWidth,r=t.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+t.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+t.scrollLeft)+"px",e},checkProps:function(e,t,n){return void 0===n&&(n=!1),Jn(e,t,n).result},checkPropsDetails:Jn,checkPropsOrDie:function(e,t,n){void 0===n&&(n=!1);var r=Jn(e,t,n);if(r.error)throw new Error(r.error);return!0},checkType:Qt,circularReplacer:function(){var e=new WeakSet;return function(t,n){if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n),[void 0,Object,Array,null].includes(n.constructor)||(n=yn(n)?n.bbnId?"__BBN_DOM__"+n.tagName+"/"+n.bbnId+n.bbnHash:"__BBN_DOM__"+n.tagName+"/"+n.className:wn(n)?"__BBN_CP__"+n.$options.name+"/"+n.$cid:n.constructor.toString())}return n}},clone:Zn,colorToHex:function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle},compare:Mn,compareConditions:An,copy:function(e){return new Promise((function(t){var n;if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?navigator.clipboard.write([new ClipboardItem((n={},n[e.type.toString()]=e,n))]).then((function(){t(!0)})):mn(e)&&qt(e.toBlob)?e.toBlob((function(e){var n;navigator.clipboard.write([new ClipboardItem((n={},n[e.type.toString()]=e,n))]).then((function(){t(!0)}))})):(navigator.clipboard.writeText(e),t(!0)));var r=document.createElement("textarea");r.style.opacity="0",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),t(!0)}t(!1)}))},correctCase:Gt,count:function(e,t,n,r){return void 0===n&&(n=null),void 0===r&&(r="="),$n(e,t,n,r).length||0},crc32:function(e){for(var t=~0,n=0;n<e.length;n++){var r=e.charCodeAt(n);t=t>>>8^Kn[255&(t^r)]}return~t>>>0},createObject:tr,cssExists:function(e){for(var t,n,r=document.styleSheets,o=0;o<r.length;o++){t=1;try{n=r[o].rules||r[o].cssRules}catch(e){if(t=!1,"SecurityError"!==e.name)throw e}if(t)for(var i=0;i<n.length;i++)if(new RegExp("(^|\\s)"+Pn(e)+"(\\{|\\s)","g").test(n[i].selectorText))return!0}return!1},date:Hn,dateSQL:function(e,t){var n=Hn(e);if(n)return it(n).format("YYYY-MM-DD"+(t?"":" HH:mm:ss"))},daysInMonth:function(e){var t=Hn(e);return!!t&&dayjs(t).daysInMonth()},deepPath:function e(t,n,r,o){var i;return void 0===o&&(o=[]),(i=Rn(t,n,0))>-1?(o.push(i),o):(Kt(t,(function(t,i){if(Yt(t[r])){var a=o.slice();a.push(i);var s=e(t[r],n,r,a);if(!1!==s)return s}})),!1)},defaultAjaxAbortFunction:function(e,t){Wt(e)},defaultAjaxErrorFunction:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),Wt(t,n)},defaultAlertFunction:function(e,t){alert(e)},defaultConfirmFunction:function(e,t,n){void 0===n&&(n=null);var r=0;confirm(e)&&qt(t)&&(t(),r=1),!r&&qt(n)&&n()},defaultEndLoadingFunction:function(e,t,n,r){return!0},defaultErrorFunction:function(e){Wt(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,t){return!0},defaultPostLinkFunction:function(e,t){return!0},defaultPreLinkFunction:function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),Wt("defaultPreLinkFunction",e,t,n),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,t,n,r){return!0},deleteProp:function(e,t){Qt(e,"object",bbn._("The obj must be an object in setProp")),Qt(t,"string",bbn._("The prop must be a string in setProp")),delete e[t]},diffObj:function e(t,n,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1),o||(rr=[]);var i="unchanged";void 0===o&&(o=!1);var a=tr();if(!qt(t)&&!qt(n)){if(nr(t)||nr(n)){var s=function(e,t){return e===t||ln(e)&&ln(t)&&e.getTime()===t.getTime()?i:void 0===e?"created":void 0===t?"deleted":"updated"}(t,n);if(r||s!==i){var u=tr();return Object.defineProperty(u,"type",{value:s,enumerable:!1}),Object.defineProperty(u,"data",{value:void 0===t?n:t,enumerable:!1}),Object.defineProperty(u,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==t&&Object.defineProperty(u,"newData",{value:n,enumerable:!1}),u}return!1}if(yn(t)||yn(n))return!1;if(rr.includes(t)||rr.includes(n))return!1;for(var c in rr.push(t,n),t)if(!qt(t[c])){var l=void 0;void 0!==n[c]&&(l=n[c]),(s=e(t[c],l,r,!0))&&(a[c]=s)}for(var c in n){if(!qt(n[c])&&void 0===t[c])(s=e(void 0,n[c],r,!0))&&(a[c]=s)}}return!(o&&!r&&!dn(a))&&a},dirName:or,download:function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=null),t&&"object"==typeof t&&(n=t,t=""),In(e,"blob",n||{_bbn_download:1},(function(n,r){if(!t){var o="content-disposition",i="attachment; filename=";t=(null==r?void 0:r[o])&&0===r[o].indexOf(i)?Vt(r[o],22,r[o].length-21-2):Un(e)}if(ir(n)){var a=ar(t);if("string"==typeof t&&("type"in n&&"text/html"!==n.type||["php","html"].includes(a)))return void ur(t,n)}}),(function(e){bbn.fn.defaultAjaxErrorFunction(e)}))},downloadContent:ur,each:Kt,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:Xt,escapeDquotes:function(e){return Ht(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:Pn,escapeSquotes:function(e){return Ht(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return Ht(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,t){var n="";e.match("^(http|https)://")&&(n+="http","s"===(e=e.substring(4)).substr(0,1)&&(n+="s",e=e.substring(1)),n+="://",e=e.substring(3)),Kt(or(e).split("/"),(function(e){n+=encodeURIComponent(e)+"/"}));var r=Un(e),o="?",i="";if(r.indexOf(o)){var a=r.split("?");o="&",i="?"+a[1],r=a[0]}return t&&Ht(t)?(t.match("^(\\&|\\?)")&&(t=t.substring(1)),t=o+t):t="",n+encodeURIComponent(r)+i+t},extend:Yn,extendOut:function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=null,o=0,i=t;o<i.length;o++){var a=i[o];if(!mn(a))throw new Error("Each argument for extendOut must be an object, "+typeof a+" given");if(null===r)r=a;else for(var s in a)mn(r[s],a[s])?e(r[s],a[s]):void 0===r[s]&&(r[s]=a[s])}return r},fdate:qn,fdatetime:zn,fieldValue:cr,fileExt:ar,filter:$n,filterToConditions:Tn,findAll:function e(t,n,r,o){var i;void 0===o&&(o=[]);for(var a=0;(i=Rn(t,n,a))>-1;)o.push(t[i]),a=i+1;return Kt(t,(function(t){Yt(t[r])&&e(t[r],n,r,o)})),o},firstVarElement:function(e){var t=e.indexOf("["),n=e.indexOf(".");return-1===t&&-1===n?e:-1===t?e.substring(0,n):-1===n?e.substring(0,t):e.substring(0,Math.min(t,n))},fori:function(e,t,n,r){if(void 0===n&&(n=e.length-1),void 0===r&&(r=0),Yt(e)){var o=e.length-1;It(n)&&0<n&&n<=o||(n=o),(!It(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(var i=r;i<=n;i++)if(!1===t(e[i],i))return}},forir:function(e,t,n,r){if(void 0===n&&(n=e.length-1),void 0===r&&(r=0),Yt(e)){var o=e.length-1;It(n)&&0<n&&n<=o||(n=o),(!It(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(var i=n;i>=r;i--)if(!1===t(e[i],i))return}},format:function(e){var t=Array.prototype.slice.call(arguments,1);if(t.length){var n=0;return e.replace(/\%([d|s])/g,(function(e,r){var o=t[n++];return Qt(o,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),o}))}return e},formatBytes:function(e,t){if(void 0===t&&(t=2),!e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},formatDate:function(e,t){return dayjs(e).format(t)},formatSize:function(e,t){return It(e)?e+"px":Ht(e)?e:!t&&"auto"},formdata:lr,fromXml:function(e,t){var n=null;if(window.DOMParser)n=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if((n=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!n.loadXML(e))throw n.parseError.reason+" "+n.parseError.srcText}function r(e,n){if("#text"!=e.nodeName){var o={},i=n[e.nodeName];if(i?Array.isArray(i)?n[e.nodeName].push(o):n[e.nodeName]=[i,o]:t&&-1!=t.indexOf(e.nodeName)?n[e.nodeName]=[o]:n[e.nodeName]=o,e.attributes)for(var a=0,s=e.attributes;a<s.length;a++){var u=s[a];o[u.nodeName]=u.nodeValue}for(var c=0,l=e.childNodes;c<l.length;c++){r(l[c],o)}}else{var f=e.nodeValue;f.trim()&&(n["#text"]=f)}}for(var o={},i=0,a=n.childNodes;i<a.length;i++){r(a[i],o)}return o},ftime:function(e,t){var n=Hn(e);return ln(n)?void 0!==dayjs?dayjs(n).calendar():n.toLocaleDateString():t&&Ht(t)?t:""},getAllTags:function(){return fr(Array.prototype.map.apply(document.all,[function(e){return e.tagName.toLowerCase()}]))},getAncestors:dr,getAttributes:function(e){e.getAttributeNames||Xt("The element is not a proper HTML Element");var t=Object.create(null);return e.getAttributeNames().forEach((function(n){t[n]=e.getAttribute(n)})),t},getBrowserName:function(){var e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge"):case e.includes("edg/"):return"Edge";case e.includes("opr")&&!!window.opr:return"Opera";case e.includes("chrome")&&!!window.chrome:return"Chrome";case e.includes("trident"):return"Internet Explorer";case e.includes("firefox"):return"Firefox";case e.includes("safari"):return"Safari";default:return"Other"}},getBrowserVersion:function(){var e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge/"):return e.split("edge/")[1].split(" ")[0];case e.includes("edg/"):return e.split("edg/")[1].split(" ")[0];case e.includes("opr/")&&!!window.opr:return e.split("opr/")[1].split(" ")[0];case e.includes("chrome/")&&!!window.chrome:return e.split("chrome/")[1].split(" ")[0];case e.includes("trident/"):return e.split("trident/")[1].split(" ")[0];case e.includes("firefox/"):return e.split("firefox/")[1].split(" ")[0];case e.includes("safari/"):return e.split("version/")[1].split(" ")[0];default:return""}},getCookie:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t)){var i=o.substring(t.length,o.length);if(i)return JSON.parse(unescape(i)).value}}return null},getCssVar:hr,getDay:function(e){var t=Hn(e);if(t){var n=t.getTime(),r=t.getYear(),o=365*(r-1970);t.getMonth()<2&&r--;for(var i=1972;i<=r;i+=4)o++;return o+Math.floor(n/864e5)}return!1},getDeviceType:pr,getEventData:function(e){var t=e.dataTransfer||e.clipboardData,n=t.getData("Text"),r={raw:n,files:[],str:[]};return new Promise((function(o,i){var a=!(t instanceof DataTransfer);if(!n&&"copy"===e.type){var s=window.getSelection();r.raw=s.toString();var u=mr();r.str.push({type:"text/plain",data:r.raw}),u!==r.raw?r.str.push({type:"text/html",data:u}):0===r.raw.trim().indexOf("<")&&r.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+r.raw+"\n</code>"}),a=!0,o(r)}if(!a){var c=[],l=t.items.length;Kt(t.items,(function(e,n){var i=e.kind,s=e.type;if("file"===i){var u=t.files[n];if(!s&&u.name){var f=u.name.split(".");s=f[f.length-1]}var d=u?u.name:bbn._("untitled"),h=u?u.size:null,p=u?u.lastModified:null,m=e.getAsFile();m?(a=!0,l--,r.files.push({type:s,data:m,name:d,size:h,mdate:p}),c.push(d),l||(r.raw||(r.raw=c.join(", ")),o(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+d)}else a=!0,e.getAsString((function(e){l--,r.str.push({type:s,data:e}),"text/plain"===s&&c.push(name),l||(r.raw||(r.raw=c.join(", ")),o(r))}))}))}a||setTimeout((function(){o(r)}))}))},getField:function(e,t,n,r,o){var i;if(void 0===n&&(n=""),void 0===r&&(r=null),void 0===o&&(o="="),t&&(i=Dn(e,n,r,o)))return i[t]},getFieldValues:function(e,t,n,r,o){Qt(t,"string"),n&&(e=$n(e,n,r,o));var i=[];return Kt(e,(function(e){return-1===i.indexOf(e[t])?i.push(e[t]):null})),i},getHtml:function(e,t){void 0===t&&(t=!1);var n=e.innerHTML();return t&&(n=br(n)),n.trim()},getHTMLOfSelection:mr,getLoader:kn,getPath:function(e){for(var t,n=e,r=0,o=function(){var e=n,o=e.localName;if(!o)return"break";if(e===document.body)return"break";if(e.id)return{value:"#"+e.id};r||(e.className&&" "!==e.className&&(o+="."+Fn(" ",".",Fn(" "," ",e.className))),r=1);var i=n.parentNode;if(i.children.filter((function(e){return e.tagName===o})).length>1){var a=i.children.indexOf(e)+1;a>1&&(o+=":nth-child("+a+")")}t=o+(t?">"+t:""),n=i};n.length;){var i=o();if("object"==typeof i)return i.value;if("break"===i)break}return t},getProp:function(e,t){return Qt(e,"object",bbn._("The obj must be an object in setProp")),Qt(t,"string",bbn._("The prop must be a string in setProp")),e[t]},getProperty:un,getRequestId:Bn,getRow:Dn,getScrollBarSize:function(){if(void 0===bbn.env.scrollBarSize){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;e.parentNode.removeChild(e);var o=t-r;bbn.env.scrollBarSize=o?o+1:0}return bbn.env.scrollBarSize},getText:function(e){return e.innerText().trim()},getTimeoff:function(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)},happy:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),Wt.apply(this,e),this},hash:Sn,hex2rgb:function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},history:function(){return window.history||!1},html2text:vr,imageToCanvas:gr,imgToBase64:function(e,t){return void 0===t&&(t="image/png"),gr(e).toDataURL(t)},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),Wt.apply(this,e),this},init:function(e,t){bbn.env.isInit&&!t||(bbn.env.root=document.baseURI.length>0?document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==Vt(bbn.env.root,-1)&&(bbn.env.root+="/"),bbn.env.isInit||"undefined"==typeof dayjs||Kt(["advancedFormat","arraySupport","badMutable","buddhistEra","calendar","customParseFormat","dayOfYear","devHelper","duration","isBetween","isLeapYear","isSameOrAfter","isSameOrBefore","isToday","isTomorrow","isYesterday","isoWeek","isoWeeksInYear","localeData","localizedFormat","minMax","objectSupport","pluralGetSet","quarterOfYear","relativeTime","timezone","toArray","toObject","updateLocale","utc","weekOfYear","weekYear","weekday"],(function(e){window["dayjs_plugin_"+e]&&dayjs.extend(window["dayjs_plugin_"+e])})),"object"==typeof e&&Yn(!0,bbn,e),bbn.env.path=Vt(bbn.env.url,bbn.env.root.length),Kt(bbn.env.path.split("/"),(function(e,t){""!==(e=decodeURI(e.trim()))&&bbn.env.params.push(e)})),bbn.var.colors&&Ln(bbn.var.colors),bbn.env.lang&&void 0!==dayjs&&Promise.resolve().then((function(){return Ir})).then((function(){dayjs.locale(bbn.env.lang)})),document.addEventListener("focusin",(function(e){e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.last_focus=Tr()})),document.addEventListener("click",(function(e){if(bbn.env.last_focus=Tr(),"ajax"===bbn.env.nav){var t=e.target;if(t instanceof HTMLElement&&"A"!==t.tagName){for(var n=t;n&&"A"!==n.tagName&&"BODY"!==n.tagName;)n=n.parentElement;t=n&&"A"===n.tagName?n:null}return t instanceof HTMLElement&&t.hasAttribute("href")&&!t.hasAttribute("target")&&!t.classList.contains("bbn-no")?(e.preventDefault(),e.stopPropagation(),_r(t.getAttribute("href")),!1):void 0}})),Kt(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"),(function(e){e.addEventListener("submit",(function(t){Or(e,t)}))})),window.addEventListener("hashchange",(function(){bbn.env.hashChanged=(new Date).getTime()}),!1),window.addEventListener("resize",(function(){xr()})),window.addEventListener("orientationchange",(function(){xr()})),xr(),Ar()&&(document.body.classList.add("bbn-mobile"),Mr()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){var t=window.history;if(!bbn.env.historyDisabled&&t&&bbn.fn.defaultHistoryFunction(t.state)){var n=t.state;n?_r(n.url,Yn({title:n.title||bbn.env.siteTitle},n.data||{})):n&&n.data&&qt(n.data.script)&&n.data.script()}}),bbn.env.isInit=!0,document.dispatchEvent(new Event("bbninit")),bbn.env.logging&&Wt("Logging in bbn is enabled"))},isActiveInterface:function(e){return void 0===e&&(e=600),!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:Yt,isBlob:ir,isBoolean:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(![!0,!1].includes(o))return!1}return!0},isCanvas:sr,isColor:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=new RegExp("^(#[a-f0-9]{6}|#[a-f0-9]{3}|rgb *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|rgba *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|black|green|silver|gray|olive|white|yellow|maroon|navy|red|blue|purple|teal|fuchsia|aqua)$","i"),r=0,o=e;r<o.length;r++){var i=o[r];if(!Ht(i))return!1;if(!n.test(i))return!1}return!0},isComment:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof Comment))return!1}return!0},isCp:wn,isDate:ln,isDesktopDevice:function(){return"desktop"===pr()},isDimension:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("number"!=typeof o||o<0)return!1;if(!Rr(o))return!1}return!0},isDom:yn,isEmail:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,r=0,o=e;r<o.length;r++){var i=o[r];if(!Ht(i))return!1;if(!n.test(i))return!1}return!0},isEmpty:hn,isEvent:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof Event))return!1}return!0},isFocused:function(e,t){return void 0===t&&(t=!1),e===document.activeElement||t&&e.contains&&e.contains(document.activeElement)},isFunction:qt,isHostname:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Ht(o))return!1;if(!Dr(o)&&!bbn.var.regexp.hostname.test(o))return!1}return!0},isInside:function(e,t){var n=dr(e);if(n.length){if(Ht(t)){var r=!1;return Kt(n,(function(e){if(e.matches&&e.matches(t))return r=!0,!1})),r}if(t instanceof HTMLElement)return n.indexOf(t)>-1}return!1},isInt:zt,isInViewport:function(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();if(t)return n.top>=0&&n.left>=0&&n.right<=(window.innerWidth||document.documentElement.clientWidth)&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight);var r=e.offsetHeight,o=e.offsetWidth;return n.top>=-r&&n.left>=-o&&n.right<=(window.innerWidth||document.documentElement.clientWidth)+o&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:Dr,isIterable:Ut,isMobile:Ar,isMobileDevice:Er,isNull:pn,isNumber:It,isObject:mn,isPercent:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("string"!=typeof o||!o.match(/^\d+(?:\.\d+)?%$/))return!1}return!0},isPrimitive:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(null!==o&&("object"==typeof o||"function"==typeof o))return!1}return!0},isPromise:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Promise]"!=={}.toString.apply(o))return!1}return!0},isPropSize:function(e){var t=!1;return Kt(["width","height","gap","margin","padding","top","left","right","bottom"],(function(n){if(-1!==e.indexOf(n))return t=!0,!1})),t},isSame:En,isSQLDate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("string"!=typeof o||!o.match(/^([1-2]\d{3})-((0\d)|(1[12]))-(([0-2]\d)|(3[01]))(?:( [0-2]\d):([0-5]\d):([0-5]\d))?$/))return!1}return!0},isString:Ht,isSymbol:jr,isTabletDevice:Mr,isURL:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!bbn.var.regexp.url.test(o))return!1}return!0},isValidDimension:Rr,isValidName:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Ht(o)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(o))return!1}return!0},isValue:nr,isVue:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue)for(var r=0,o=t;r<o.length;r++){if(!(s=o[r])||"function"!=typeof s.render)return!1}else for(var i=0,a=t;i<a.length;i++){var s;if(!((s=a[i])instanceof window.Vue))return!1}return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||(e=bbn.cp).isComponent.apply(e,t)},isWritable:function(e,t){for(var n;e&&!(n=Object.getOwnPropertyDescriptor(e,t));)e=Object.getPrototypeOf(e);return!n||Boolean(n.writable||n.set)},iterate:Zt,lightenDarkenHex:function(e,t){if(e&&t){var n="#"===e[0];e=n?e.slice(1):e;var r=parseInt(e,16),o=(r>>16)+t,i=(r>>8&255)+t,a=(255&r)+t;return o>255?o=255:o<0&&(o=0),i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),(n?"#":"")+(a|i<<8|o<<16).toString(16)}},link:_r,log:Wt,makeReactive:function e(t,n,r,o){var i=(null==r?void 0:r.$cid)||"",a="__bbn_"+(i?i+"_":"");if(t&&"object"==typeof t&&[void 0,Object,Array].includes(t.constructor)){if(t.__bbnIsProxy&&t.__bbnParent===r)return t;r&&r.$options&&"bbn-loadbar"===r.$options.name&&Wt(["MAKING bbn-loadbar",t]),t.__bbnWatchers||Reflect.defineProperty(t,"__bbnWatchers",{value:tr(),writable:!0,configurable:!0,enumerable:!1});var s={get:function(s,u){var c=Reflect.get(s,u),l=s.__bbnRoot||s;if(jr(u))return Reflect.get(l,u);var f=o?o+"."+u:u,d=a+(It(u)?u.toString():u);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(u)&&Yt(s))return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=l[u].apply(l,e);return kr("DOING ARRAY STUFF"),Wt(s.__bbnParent),n(s,"length",r),o};if(qt(c))return c;if("__bbnRoot"===u){for(var h=t;h&&(null==h?void 0:h.__bbnTarget);)h=h.__bbnTarget;return h}return"__bbnIsProxy"===u||("__bbnTarget"===u?s:"__bbnParent"===u?r:"__bbnWatchers"===u?s.__bbnWatchers:0===u.indexOf("__bbn_")?Reflect.get(s,u):"length"===u&&Yt(s.__bbnRoot||s)?l.length:u in s&&c&&"object"==typeof c&&[void 0,Object,Array].includes(c.constructor)?(c.__bbnIsProxy&&c.__bbnParent===r||(d in l||Reflect.defineProperty(l,d,{value:e(c,n,r,f),writable:!0,configurable:!0,enumerable:!1}),l[d].__bbnIsProxy&&!l.__bbnWatchers[i]&&(l.__bbnWatchers[i]=f)),l[d]):c)},set:function(t,s,u){if(jr(s))return Reflect.get(t,s,u);var c=t.__bbnRoot||t,l=o?o+"."+s:s;if(jr(s))return Reflect.get(t,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&Wt(["Setting proxy prop in "+r.$options.name,t,s,u]),!En(c[s],u)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(c,s,{value:e(u,n,r,l),writable:!0,configurable:!0,enumerable:!1});else if(u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)){var f=a+(It(s)?s.toString():s);Reflect.defineProperty(c,f,{value:e(u,n,r,l),writable:!0,configurable:!0,enumerable:!1}),c[f].__bbnIsProxy&&!c.__bbnWatchers[i]&&(c.__bbnWatchers[i]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&Wt(["Setting proxy prop in "+r.$options.name+" "+(It(s)?s.toString():s),u,t]),Reflect.set(c,s,u),n(t,s,r)}return!0},defineProperty:function(t,i,s){var u=t,c=o?o+"."+i:i;if("__bbnWatchers"===i||jr(i)||0===i.indexOf("__bbn_"))Reflect.defineProperty(u,i,s);else{var l=a+(It(i)?i.toString():i);Reflect.defineProperty(u,l,{value:e(s.value,n,r,c),writable:!0,configurable:!0,enumerable:!1})}return n(t,i,r),!0},deleteProperty:function(e,t){var n=e;if(0===t.indexOf("__bbn_"))Reflect.deleteProperty(n,t);else{var r=a+(It(t)?t.toString():t);Reflect.deleteProperty(n,r),Reflect.deleteProperty(e,t)}return!0}};return new Proxy(t,s)}return t},map:function e(t,n,r,o){return void 0===o&&(o=0),t.map((function(t,i){return t=n(t,i,o),r&&t[r]&&Yt(t[r])&&(t[r]=e(t[r],n,r,o+1)),t}))},md5:On,microtimestamp:function(){return window.performance.now()+performance.timeOrigin},money:function(e,t,n,r,o,i,a){if(o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),n||(n=void 0===n&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),t||(t=!(void 0!==t||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),r||(r=!(void 0!==r||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),It(a)||(a=t?3:0),0===e&&"number"==typeof a&&a>0){var s=e.toFixed(a).replace(".",o);return n&&(s+=" "+(t?"K"+n:n)),s}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(n?" "+n:"");t&&e&&(e/=1e3,n&&(n="K"+n));var u=e.toFixed(a),c=0,l=1e4;return u&&((l=u.indexOf("."))<=0?l=1e4:c=u.length-l),u.replace(/./g,(function(e,t,n){return"."===e?o:t&&(n.length-t-c)%3==0&&t<l?i+e:e}))+(n?" "+n:"")},move:function(e,t,n){if(n>=e.length)for(var r=n-e.length;1+r--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e},multiorder:function(e,t){if(!t)return e;var n;if(Array.isArray(t)||"object"!=typeof t)n=t;else for(var r in n=[],t)n.push({field:r,dir:t[r]});if(!Array.isArray(n))throw new Error("The orders argument must be an array");return e.slice().sort((function(e,t){for(var r,o=0,i=n;o<i.length;o++){var a=i[o];if(0!==(r=fn(e,t,a.field,a.dir)))return r}return 0}))},mutateArray:function(e,t,n){if(void 0===n&&(n=null),!Yt(e,t))throw new TypeError("mutateArray can only be called with arrays");n?Qt(n,"function","The hash function must be a function"):n=Sn;var r=new Map(t.map((function(e){return[n(e),e]}))),o=[];t.forEach((function(e){o.push(e)}));for(var i=e.length;i--;)r.has(n(e[i]))||e.splice(i,1);for(var a=0;a<o.length;a++)if(a>=e.length||!En(e[a],o[a])){var s=Rn(e,o[a]);if(-1!==s){var u=e.splice(s,1)[0];e.splice(a,0,u)}else e.splice(a,0,o[a])}return e.length>o.length&&e.splice(o.length,e.length-o.length),e},mutateObject:function(e,t,n){if(!mn(e,t))throw new TypeError("mutateObject can only be called with arrays");n?Qt(n,"function","The hash function must be a function"):n=Sn;var r=Object.keys(t);for(var o in e)r.includes(o)||delete e[o];return r.forEach((function(n){En(e[n],t[n])||(e[n]=t[n])})),e},nl2br:function(e,t){return Fn("\n","<br>"+(t?"\n":""),e)},numProperties:dn,objectToFormData:$r,order:function(e,t,n){return void 0===n&&(n="asc"),e?e.sort((function(e,r){return fn(e,r,t,n)})):e},outerHeight:function(e){if((e=Lr(e))&&"offsetHeight"in e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+n)}},outerWidth:function(e){e=Lr(e);var t=window.getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+n)},percent:function(e,t){return t/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:Sr,postOut:function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r="");var o=document.body.querySelector("form#bbn-form_out");o||((o=document.createElement("form")).classList.add("bbn-no"),o.setAttribute("id","bbn-form_out"),o.setAttribute("method","post"),o.setAttribute("enctype","multipart/form-data-encoded"),Cr(o,"style.display","none"),document.body.appendChild(o)),o instanceof HTMLFormElement&&(o.innerHTML="",o.setAttribute("action",e),o.setAttribute("target",r||"_blank"),t||(t={}),(t=tr(t)).bbn||(t.bbn="public"),Cn(o,t),o.submit(),n&&n())},printf:function(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))},quotes2html:function(e,t){return t&&0!==t.toLowerCase().indexOf("s")||(e=Fn("'","'",e)),t&&0!==t.toLowerCase().indexOf("d")||(e=Fn('"',""",e)),e},randomInt:Nr,randomString:function(e,t,n){var r,o,i={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};n||(n="nlu"),e||(r=Nr(8,14)),"string"==typeof t?(n="n",delete i.l,delete i.u,i.n=t,r||(r=e)):"number"==typeof t&&e<t?r=Nr(e,t):e&&(r=e);for(var a="",s=0;s<r;s++)0===s?"n"!==n&&(o=-1===n.indexOf("u")?"l":"u"):o=n[Math.floor(Math.random()*n.length)],a+=i[o][Math.floor(Math.random()*i[o].length)];return a},removeAccents:cn,removeEmpty:function(e){var t=[];if(Yt(e))for(var n=0;n<e.length;n++){var r=!1;e[n]&&(Yt(e[n])?e[n].length&&(r=!0):mn(e[n])?dn(e[n])&&(r=!0):r=!0),r&&t.push(e[n])}return t},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:br,removePrivateProp:Jt,removeTrailingChars:function(e,t){if(t||(t=" "),t.length){for(;Vt(e,-t.length)===t;)e=Vt(e,0,e.length-t.length);for(;Vt(e,0,t.length)===t;)e=Vt(e,t.length)}return e},repeat:function(e,t){return e.repeat(t)},replaceAll:Fn,replaceSelection:function(e,t){var n,r,o;if((n=window.getSelection()).getRangeAt&&n.rangeCount){if((r=window.getSelection().getRangeAt(0)).deleteContents(),r.createContextualFragment)o=r.createContextualFragment(e);else{var i=document.createElement("div"),a=void 0;for(i.innerHTML=e,o=document.createDocumentFragment();a=i.firstChild;)o.appendChild(a)}var s=o.firstChild,u=o.lastChild;r.insertNode(o),n.removeAllRanges(),t?(s&&(r.setStartBefore(s),r.setEndAfter(u)),n.addRange(r)):(r.setStartAfter(u),n.addRange(r))}},resize:xr,rgb2hex:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},riterate:function(e,t,n){return void 0===n&&(n=!1),Zt(e,t,n,!0)},roundDecimal:function(e,t){return Number(Math.round(parseFloat(e+"e"+t+"e-"+t)))},sanitize:function(e,t){void 0===t&&(t="_");for(var n=["[","]","{","}","(",")","-","+","*","/"],r="[",o=0;o<t.length;o++)n.includes(t[o])&&(r+="\\"),r+=t[o];r+="]+";var i=new RegExp(r,"g");return Pr(cn(e).replace(/[^a-z0-9]/gi,t).replace(i,t),t)},search:Rn,selectElementText:function(e,t){if(void 0===t&&(t=null),t=t||window,e instanceof HTMLInputElement)e.select();else{var n,r,o=t.document;t.getSelection&&o.createRange?(n=t.getSelection(),(r=o.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(r)):"createTextRange"in o.body&&"function"==typeof o.body.createTextRange&&((r=o.body.createTextRange()).moveToElementText(e),r.select())}},selector:Lr,setCookie:function(e,t,n){var r="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),r="; expires="+o.toUTCString()}var i=escape(JSON.stringify({value:t}));document.cookie=e+"="+i+r+"; path=/"},setCssVar:function(e,t){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,t)},setNavigationVars:wr,setProp:function(e,t,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!0),Object.defineProperty(e,t,{value:n,writable:r,configurable:o})},setProperty:Cr,shorten:Fr,shortenObj:function e(t,n){void 0===n&&(n=100);var r=Zn(t);return Kt(r,(function(t,o){Ht(t)&&t.length>n?r[o]=Fr(t,n):t&&"object"==typeof t&&(r[o]=e(t))})),r},shuffle:function(e){for(var t,n,r=e.length;0!=r;)n=Math.floor(Math.random()*r),r--,t=[e[n],e[r]],e[r]=t[0],e[n]=t[1];return e},simpleHash:gn,simpleHash1:bn,simpleHash2:vn,startChrono:function(e){var t=bbn.fn.microtimestamp();this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=t},stopChrono:function(e){if(this.constructor.chronos[e||"default"]){var t=bbn.fn.microtimestamp()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],t}throw Error("No chrono with name "+(e||"default"))},string2ArrayBuffer:function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),r=0,o=e.length;r<o;r++)n[r]=e.charCodeAt(r);return t},submit:Or,substr:Vt,sum:function(e,t,n,r,o){var i=0;return Kt($n(e,n,r,o),(function(e){var n="function"==typeof t?t(e):e[t];n&&(i+=parseFloat(n)||0)})),i},timestamp:Tr,toCSV:function(e,t,n,r){void 0===t&&(t=","),void 0===n&&(n=""),void 0===r&&(r='"'),t||(t=","),r||(r='"');var o="",i=e.length;return Kt(e,(function(e,a){var s=Yt(e)?e.length:Object.values(e).length,u=0;Kt(e,(function(e){o+="string"==typeof e?r+Fn(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,++u<s&&(o+=t)})),a<i-1&&(o+=n+"\n")})),o},toggleFullScreen:function(){"mozRequestFullScreen"in window.document.documentElement?window.document.mozFullScreen?window.document.mozCancelFullScreen():"function"==typeof window.document.documentElement.mozRequestFullScreen&&window.document.documentElement.mozRequestFullScreen():"webkitRequestFullScreen"in window.document.documentElement?window.document.webkitIsFullScreen?window.document.webkitCancelFullScreen():"function"==typeof window.document.documentElement.webkitRequestFullScreen&&window.document.documentElement.webkitRequestFullScreen():"msRequestFullScreen"in window.document.documentElement?window.document.msFullscreenEnabled?window.document.msExitFullscreen():"function"==typeof window.document.documentElement.msRequestFullScreen&&window.document.documentElement.msRequestFullScreen():"requestFullscreen"in window.document&&(window.document.fullscreenEnabled?window.document.exitFullscreen():window.document.documentElement.requestFullscreen()),setTimeout((function(){xr()}),0)},translate:function(e,t){var n=t?bbn.lng[0===t.indexOf("_")?t:"_"+t]:bbn.lng;Zt(e,(function(e,t){n[t]=e}))},treatAjaxArguments:yr,treatForHash:_n,trim:Pr,uniqString:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=function(){if(e[o])if("object"==typeof e[o])if(Yt(e[o]))n+=JSON.stringify(e[o]);else{var t={};Kt(Object.keys(e[o]).sort(),(function(n){t[n]=e[o][n]})),n+=JSON.stringify(t)}else"string"!=typeof e[o]?n+=e[o].toString():n+=e[o];else n+="__bbn_empty__"},o=0;o<e.length;o++)r();return On(n)},unique:fr,upload:function(e,t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null);var i=function(){return axios.post(e||bbn.env.path,$r(t),{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){if(o){var t=Math.round(100*e.loaded/e.total);o(t,e.loaded,e.total)}}})};return n||r?i().then((function(e){n&&(Wt("SUCCESS",e),n(e))})).catch((function(e){r&&(Wt("ERROR",e),r(e))})):i()},warning:kr};it.extend(st),it.extend(ct),it.extend(ft),it.extend(ht),it.extend(mt),it.extend(vt),it.extend(yt),it.extend(_t),it.extend(Ot),it.extend(Et),it.extend(At),it.extend(Rt),it.extend(jt),it.extend($t),it.extend(Ct),it.extend(Pt),it.extend(Bt);var Yr={version:"1.0.1",opt:{_cat:{}},app:{},_:en,$:function(e,t){if(null==t?void 0:t.querySelectorAll)return t.querySelectorAll(e);if(t)throw new Error("Invalid context");return document.body.querySelectorAll(e)},lng:{select_unselect_all:"Select/Clear all",select_all:"Select all",search:"Search",loading:"Loading...",choose:"Choose",error:"Error",server_response:"Server response",reload:"Reload",errorText:"Something went wrong",closeAll:"Close all",closeOthers:"Close others",pin:"Pin",arrange:"Arrange",cancel:"Cancel",unpin:"Unpin",yes:"Yes",no:"No",unknown:"Unknown",untitled:"Untitled",confirmation:"Confirmation",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},var:tn,env:nn,db:an,fn:Br};"undefined"!=typeof window&&(window.axios=tt,window.dayjs=it,window.bbn=Yr);!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return n.default.locale(r,null,!0),r}(ot)}({exports:{}});var Ir=Object.freeze({__proto__:null});return e.axios=tt,e.bbn=Yr,e.dayjs=it,e.default=Yr,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
1
|
+
var bbn=function(e){"use strict";function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:r}=Object,o=(i=Object.create(null),e=>{const t=n.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>o(t)===e),s=e=>t=>typeof t===e,{isArray:u}=Array,c=s("undefined");const l=a("ArrayBuffer");const f=s("string"),d=s("function"),h=s("number"),p=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=a("Date"),v=a("File"),g=a("Blob"),y=a("FileList"),w=a("URLSearchParams"),[_,S,O,x]=["ReadableStream","Request","Response","Headers"].map(a);function E(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),u(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function M(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=e=>!c(e)&&e!==A;const R=(D="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>D&&e instanceof D);var D;const j=a("HTMLFormElement"),k=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$=a("RegExp"),L=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};E(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},C="abcdefghijklmnopqrstuvwxyz",N="0123456789",P={DIGIT:N,ALPHA:C,ALPHA_DIGIT:C+C.toUpperCase()+N};const F=a("AsyncFunction");var B={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&d(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||d(e.append)&&("formdata"===(t=o(e))||"object"===t&&d(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t},isString:f,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:p,isPlainObject:m,isReadableStream:_,isRequest:S,isResponse:O,isHeaders:x,isUndefined:c,isDate:b,isFile:v,isBlob:g,isRegExp:$,isFunction:d,isStream:e=>p(e)&&d(e.pipe),isURLSearchParams:w,isTypedArray:R,isFileList:y,forEach:E,merge:function e(){const{caseless:t}=T(this)&&this||{},n={},r=(r,o)=>{const i=t&&M(n,o)||o;m(n[i])&&m(r)?n[i]=e(n[i],r):m(r)?n[i]=e({},r):u(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],r);return n},extend:(e,n,r,{allOwnKeys:o}={})=>(E(n,((n,o)=>{r&&d(n)?e[o]=t(n,r):e[o]=n}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let i,a,s;const u={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],o&&!o(s,e,t)||u[s]||(t[s]=e[s],u[s]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!h(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:j,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,n)=>{if(d(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];d(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:M,global:A,isContextDefined:T,ALPHABET:P,generateString:(e=16,t=P.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&d(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(p(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=u(e)?[]:{};return E(e,((e,t)=>{const i=n(e,r+1);!c(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(p(e)||d(e))&&d(e.then)&&d(e.catch)};function Y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}B.inherits(Y,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I=Y.prototype,U={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{U[e]={value:e}})),Object.defineProperties(Y,U),Object.defineProperty(I,"isAxiosError",{value:!0}),Y.from=(e,t,n,r,o,i)=>{const a=Object.create(I);return B.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Y.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function H(e){return B.isPlainObject(e)||B.isArray(e)}function z(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function q(e,t,n){return e?e.concat(t).map((function(e,t){return e=z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const W=B.toFlatObject(B,{},null,(function(e){return/^is[A-Z]/.test(e)}));function V(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!B.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(B.isDate(e))return e.toISOString();if(!s&&B.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(e)||B.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(B.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(B.isArray(e)&&function(e){return B.isArray(e)&&!e.some(H)}(e)||(B.isFileList(e)||B.endsWith(n,"[]"))&&(s=B.toArray(e)))return n=z(n),s.forEach((function(e,r){!B.isUndefined(e)&&null!==e&&t.append(!0===a?q([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!H(e)||(t.append(q(o,n,i),u(e)),!1)}const l=[],f=Object.assign(W,{defaultVisitor:c,convertValue:u,isVisitable:H});if(!B.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!B.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),B.forEach(n,(function(n,i){!0===(!(B.isUndefined(n)||null===n)&&o.call(t,n,B.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t}function J(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Z(e,t){this._pairs=[],e&&V(e,this,t)}const K=Z.prototype;function G(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X(e,t,n){if(!t)return e;const r=n&&n.encode||G,o=n&&n.serialize;let i;if(i=o?o(t,n):B.isURLSearchParams(t)?t.toString():new Z(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}K.append=function(e,t){this._pairs.push([e,t])},K.toString=function(e){const t=e?function(t){return e.call(this,t,J)}:J;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Q{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Z,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ne="undefined"!=typeof window&&"undefined"!=typeof document,re=(oe="undefined"!=typeof navigator&&navigator.product,ne&&["ReactNative","NativeScript","NS"].indexOf(oe)<0);var oe;const ie="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ae=ne&&window.location.href||"http://localhost";var se={...Object.freeze({__proto__:null,hasBrowserEnv:ne,hasStandardBrowserEnv:re,hasStandardBrowserWebWorkerEnv:ie,origin:ae}),...te};function ue(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&B.isArray(r)?r.length:i,s)return B.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&B.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&B.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,((e,r)=>{t(function(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ce={transitional:ee,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=B.isObject(e);o&&B.isHTMLForm(e)&&(e=new FormData(e));if(B.isFormData(e))return r?JSON.stringify(ue(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new se.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return se.isNode&&B.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=B.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return V(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ce.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Y.from(e,Y.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:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],(e=>{ce.headers[e]={}}));const le=B.toObjectSet(["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"]);const fe=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function he(e){return!1===e||null==e?e:B.isArray(e)?e.map(he):String(e)}function pe(e,t,n,r,o){return B.isFunction(r)?r.call(this,t,n):(o&&(t=n),B.isString(t)?B.isString(r)?-1!==t.indexOf(r):B.isRegExp(r)?r.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=de(t);if(!o)throw new Error("header name must be a non-empty string");const i=B.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=he(e))}const i=(e,t)=>B.forEach(e,((e,n)=>o(e,n,t)));if(B.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(B.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&le[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(B.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=de(e)){const n=B.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(B.isFunction(t))return t.call(this,e,n);if(B.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=de(e)){const n=B.findKey(this,e);return!(!n||void 0===this[n]||t&&!pe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=de(e)){const o=B.findKey(n,e);!o||t&&!pe(0,n[o],o,t)||(delete n[o],r=!0)}}return B.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!pe(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return B.forEach(this,((r,o)=>{const i=B.findKey(n,o);if(i)return t[i]=he(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=he(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return B.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&B.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[fe]=this[fe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=de(e);t[r]||(!function(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return B.isArray(e)?e.forEach(r):r(e),this}}function be(e,t){const n=this||ce,r=t||n,o=me.from(r.headers);let i=r.data;return B.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ve(e){return!(!e||!e.__CANCEL__)}function ge(e,t,n){Y.call(this,null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError"}function ye(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(me.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),B.freezeMethods(me),B.inherits(ge,Y,{__CANCEL__:!0});var we=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=r[a];o||(o=u),n[i]=s,r[i]=u;let l=a,f=0;for(;l!==i;)f+=n[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=c&&u-c;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n=0;const r=1e3/t;let o=null;return function(){const t=!0===this,i=Date.now();if(t||i-n>r)return o&&(clearTimeout(o),o=null),n=i,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),r-(i-n)))}}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,u=o(s);r=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:n,lengthComputable:null!=a};c[t?"download":"upload"]=!0,e(c)}),n)},_e=se.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=B.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Se=se.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),B.isString(r)&&a.push("path="+r),B.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Oe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const xe=e=>e instanceof me?{...e}:e;function Ee(e,t){t=t||{};const n={};function r(e,t,n){return B.isPlainObject(e)&&B.isPlainObject(t)?B.merge.call({caseless:n},e,t):B.isPlainObject(t)?B.merge({},t):B.isArray(t)?t.slice():t}function o(e,t,n){return B.isUndefined(t)?B.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!B.isUndefined(t))return r(void 0,t)}function a(e,t){return B.isUndefined(t)?B.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken: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:s,headers:(e,t)=>o(xe(e),xe(t),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=u[r]||o,a=i(e[r],t[r],r);B.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Me=e=>{const t=Ee({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:u}=t;if(t.headers=s=me.from(s),t.url=X(Oe(t.baseURL,t.url),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),B.isFormData(r))if(se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(se.hasStandardBrowserEnv&&(o&&B.isFunction(o)&&(o=o(t)),o||!1!==o&&_e(t.url))){const e=i&&a&&Se.read(a);e&&s.set(i,e)}return t};var Ae="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Me(e);let o=r.data;const i=me.from(r.headers).normalize();let a,{responseType:s}=r;function u(){r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let c=new XMLHttpRequest;function l(){if(!c)return;const r=me.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());ye((function(e){t(e),u()}),(function(e){n(e),u()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new Y("Request aborted",Y.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||ee;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new Y(e,t.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,r,c)),c=null},void 0===o&&i.setContentType(null),"setRequestHeader"in c&&B.forEach(i.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),B.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),s&&"json"!==s&&(c.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&c.addEventListener("progress",we(r.onDownloadProgress,!0)),"function"==typeof r.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",we(r.onUploadProgress)),(r.cancelToken||r.signal)&&(a=t=>{c&&(n(!t||t.type?new ge(null,e,c):t),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);f&&-1===se.protocols.indexOf(f)?n(new Y("Unsupported protocol "+f+":",Y.ERR_BAD_REQUEST,e)):c.send(o||null)}))};const Te=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Y?t:new ge(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Y(`timeout ${t} of ms exceeded`,Y.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Re=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},De=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Re(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await i.next();if(t)return e.close(),void r();let s=o.byteLength;n&&n(a+=s),e.enqueue(new Uint8Array(o))},cancel:e=>(r(e),i.return())},{highWaterMark:2})},je=(e,t)=>{const n=null!=e;return r=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:r})))},ke="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,$e=ke&&"function"==typeof ReadableStream,Le=ke&&("function"==typeof TextEncoder?(Ce=new TextEncoder,e=>Ce.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ce;const Ne=$e&&(()=>{let e=!1;const t=new Request(se.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Pe=$e&&!!(()=>{try{return B.isReadableStream(new Response("").body)}catch(e){}})(),Fe={stream:Pe&&(e=>e.body)};var Be;ke&&(Be=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Fe[e]&&(Fe[e]=B.isFunction(Be[e])?t=>t[e]():(t,n)=>{throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})})));const Ye=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:B.isBlob(e)?e.size:B.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:B.isArrayBufferView(e)?e.byteLength:(B.isURLSearchParams(e)&&(e+=""),B.isString(e)?(await Le(e)).byteLength:void 0))(t):n};const Ie={http:null,xhr:Ae,fetch:ke&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Me(e);c=c?(c+"").toLowerCase():"text";let h,p,[m,b]=o||i||a?Te([o,i],a):[];const v=()=>{!h&&setTimeout((()=>{m&&m.unsubscribe()})),h=!0};let g;try{if(u&&Ne&&"get"!==n&&"head"!==n&&0!==(g=await Ye(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});B.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body&&(r=De(n.body,65536,je(g,we(u)),null,Le))}B.isString(f)||(f=f?"cors":"omit"),p=new Request(t,{...d,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let o=await fetch(p);const i=Pe&&("stream"===c||"response"===c);if(Pe&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=B.toFiniteNumber(o.headers.get("content-length"));o=new Response(De(o.body,65536,s&&je(t,we(s,!0)),i&&v,Le),e)}c=c||"text";let a=await Fe[B.findKey(Fe,c)||"text"](o,e);return!i&&v(),b&&b(),await new Promise(((t,n)=>{ye(t,n,{data:a,headers:me.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,p),{cause:t.cause||t});throw Y.from(t,t&&t.code,e,p)}})};B.forEach(Ie,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ue=e=>`- ${e}`,He=e=>B.isFunction(e)||null===e||!1===e;var ze=e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!He(n)&&(r=Ie[(t=String(n)).toLowerCase()],void 0===r))throw new Y(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Y("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ue).join("\n"):" "+Ue(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function qe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ge(null,e)}function We(e){qe(e),e.headers=me.from(e.headers),e.data=be.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ze(e.adapter||ce.adapter)(e).then((function(t){return qe(e),t.data=be.call(e,e.transformResponse,t),t.headers=me.from(t.headers),t}),(function(t){return ve(t)||(qe(e),t&&t.response&&(t.response.data=be.call(e,e.transformResponse,t.response),t.response.headers=me.from(t.response.headers))),Promise.reject(t)}))}const Ve="1.7.2",Je={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Je[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ze={};Je.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Y(r(o," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!Ze[o]&&(Ze[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Ke={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Y("option "+i+" must be "+n,Y.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}},validators:Je};const Ge=Ke.validators;class Xe{constructor(e){this.defaults=e,this.interceptors={request:new Q,response:new Q}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ee(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ke.assertOptions(n,{silentJSONParsing:Ge.transitional(Ge.boolean),forcedJSONParsing:Ge.transitional(Ge.boolean),clarifyTimeoutError:Ge.transitional(Ge.boolean)},!1),null!=r&&(B.isFunction(r)?t.paramsSerializer={serialize:r}:Ke.assertOptions(r,{encode:Ge.function,serialize:Ge.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&B.merge(o.common,o[t.method]);o&&B.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=me.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[We.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);f<l;)c=c.then(e[f++],e[f++]);return c}l=a.length;let d=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=We.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(e){return X(Oe((e=Ee(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}B.forEach(["delete","get","head","options"],(function(e){Xe.prototype[e]=function(t,n){return this.request(Ee(n||{},{method:e,url:t,data:(n||{}).data}))}})),B.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ee(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Xe.prototype[e]=t(),Xe.prototype[e+"Form"]=t(!0)}));class Qe{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new ge(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Qe((function(t){e=t}));return{token:t,cancel:e}}}const et={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(et).forEach((([e,t])=>{et[t]=e}));const tt=function e(n){const r=new Xe(n),o=t(Xe.prototype.request,r);return B.extend(o,Xe.prototype,r,{allOwnKeys:!0}),B.extend(o,r,null,{allOwnKeys:!0}),o.create=function(t){return e(Ee(n,t))},o}(ce);tt.Axios=Xe,tt.CanceledError=ge,tt.CancelToken=Qe,tt.isCancel=ve,tt.VERSION=Ve,tt.toFormData=V,tt.AxiosError=Y,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=function(e){return function(t){return e.apply(null,t)}},tt.isAxiosError=function(e){return B.isObject(e)&&!0===e.isAxiosError},tt.mergeConfig=Ee,tt.AxiosHeaders=me,tt.formToJSON=e=>ue(B.isHTMLForm(e)?new FormData(e):e),tt.getAdapter=ze,tt.HttpStatusCode=et,tt.default=tt;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rt={exports:{}};rt.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",u="week",c="month",l="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:f,w:u,d:s,D:d,h:a,m:i,s:o,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=b;var _="$isDayjsObject",S=function(e){return e instanceof M||!(!e||!e[_])},O=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},x=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},E=g;E.l=O,E.i=S,E.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function b(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=b.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return x(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<x(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,l=E.p(e),h=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},p=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,b=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case f:return r?h(1,0):h(31,11);case c:return r?h(1,b):h(0,b+1);case u:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(r?v-w:v+(6-w),b);case s:case d:return p(g+"Hours",0);case a:return p(g+"Minutes",1);case i:return p(g+"Seconds",2);case o:return p(g+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,u=E.p(e),l="set"+(this.$u?"UTC":""),h=(n={},n[s]=l+"Date",n[d]=l+"Date",n[c]=l+"Month",n[f]=l+"FullYear",n[a]=l+"Hours",n[i]=l+"Minutes",n[o]=l+"Seconds",n[r]=l+"Milliseconds",n)[u],p=u===s?this.$D+(t-this.$W):t;if(u===c||u===f){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,l){var d,h=this;r=Number(r);var p=E.p(l),m=function(e){var t=x(h);return E.w(t.date(t.date()+Math.round(e*r)),h)};if(p===c)return this.set(c,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===s)return m(1);if(p===u)return m(7);var b=(d={},d[i]=t,d[a]=n,d[o]=e,d)[p]||1,v=this.$d.getTime()+r*b;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return E.s(i%12||12,e,"0")},p=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,u,2);case"ddd":return f(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,a,!0);case"A":return p(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,d,h){var p,m=this,b=E.p(d),v=x(r),g=(v.utcOffset()-this.utcOffset())*t,y=this-v,w=function(){return E.m(m,v)};switch(b){case f:p=w()/12;break;case c:p=w();break;case l:p=w()/3;break;case u:p=(y-g)/6048e5;break;case s:p=(y-g)/864e5;break;case a:p=y/n;break;case i:p=y/t;break;case o:p=y/e;break;default:p=y}return h?p:E.a(p)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},b}(),A=M.prototype;return x.prototype=A,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",f],["$D",d]].forEach((function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||(e(t,M,x),e.$i=!0),x},x.locale=O,x.isDayjs=S,x.unix=function(e){return x(1e3*e)},x.en=w[y],x.Ls=w,x.p={},x}();var ot=rt.exports,it=nt(ot),at={exports:{}};!function(e,t){e.exports=function(e,t,n){var r="h:mm A",o={lastDay:"[Yesterday at] "+r,sameDay:"[Today at] "+r,nextDay:"[Tomorrow at] "+r,nextWeek:"dddd [at] "+r,lastWeek:"[Last] dddd [at] "+r,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var r=t||this.$locale().calendar||o,i=n(e||void 0).startOf("d"),a=this.diff(i,"d",!0),s="sameElse",u=a<-6?s:a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":s,c=r[u]||o[u];return"function"==typeof c?c.call(this,n()):this.format(c)}}}(at);var st=nt(at.exports),ut={exports:{}};!function(e,t){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[o,function(e){this.afternoon=l(e,!1)}],a:[o,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:u,ZZ:u};function d(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,u=0;u<s;u+=1){var c=a[u],l=f[c],d=l&&l[0],h=l&&l[1];a[u]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,u=o.parser,c=e.slice(r),l=i.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var u=!0===a[2],c=!0===a[3],l=u||c,f=a[2];c&&(f=a[2]),i=this.$locale(),!u&&f&&(i=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,u=r.minutes,c=r.seconds,l=r.milliseconds,f=r.zone,h=new Date,p=a||(o||i?1:h.getDate()),m=o||h.getFullYear(),b=0;o&&!i||(b=i>0?i-1:h.getMonth());var v=s||0,g=u||0,y=c||0,w=l||0;return f?new Date(Date.UTC(m,b,p,v,g,y,w+60*f.offset*1e3)):n?new Date(Date.UTC(m,b,p,v,g,y,w)):new Date(m,b,p,v,g,y,w)}catch(e){return new Date("")}}(t,s,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){a[1]=s[p-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===h&&(this.$d=new Date(""))}else o.call(this,e)}}}()}(ut);var ct=nt(ut.exports),lt={exports:{}};!function(e,t){e.exports=function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}(lt);var ft=nt(lt.exports),dt={exports:{}};!function(e,t){e.exports=function(){var e,t,n=1e3,r=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:u,days:i,hours:o,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof g},d=function(e,t,n){return new g(e,n,t.$l)},h=function(e){return t.p(e)+"s"},p=function(e){return e<0},m=function(e){return p(e)?Math.ceil(e):Math.floor(e)},b=function(e){return Math.abs(e)},v=function(e,t){return e?p(e)?{negative:!0,format:""+b(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},g=function(){function p(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*l[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(c);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var b=p.prototype;return b.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},b.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/u),e%=u,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/o),e%=o,this.$d.minutes=m(e/r),e%=r,this.$d.seconds=m(e/n),e%=n,this.$d.milliseconds=e},b.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,"D"),o=v(this.$d.hours,"H"),i=v(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=v(a,"S"),u=e.negative||t.negative||r.negative||o.negative||i.negative||s.negative,c=o.format||i.format||s.format?"T":"",l=(u?"-":"")+"P"+e.format+t.format+r.format+c+o.format+i.format+s.format;return"P"===l||"-P"===l?"P0D":l},b.toJSON=function(){return this.toISOString()},b.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(r[e])}))},b.as=function(e){return this.$ms/l[h(e)]},b.get=function(e){var t=this.$ms,n=h(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?m(t/l[n]):this.$d[n],t||0},b.add=function(e,t,n){var r;return r=t?e*l[h(t)]:f(e)?e.$ms:d(e,this).$ms,d(this.$ms+r*(n?-1:1),this)},b.subtract=function(e,t){return this.add(e,t,!0)},b.locale=function(e){var t=this.clone();return t.$l=e,t},b.clone=function(){return d(this.$ms,this)},b.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},p}(),y=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,o){e=o,t=o().$utils(),o.duration=function(e,t){var n=o.locale();return d(e,{$l:n},t)},o.isDuration=f;var i=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?y(this,e,1):i.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?y(this,e,-1):a.bind(this)(e,t)}}}()}(dt);var ht=nt(dt.exports),pt={exports:{}};!function(e,t){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],u=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(u?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(u?this.isAfter(a,r):!this.isBefore(a,r))}}}(pt);var mt=nt(pt.exports),bt={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}(bt);var vt=nt(bt.exports),gt={exports:{}};!function(e,t){var n;e.exports=(n="day",function(e,t,r){var o=function(e){return e.add(4-e.isoWeekday(),n)},i=t.prototype;i.isoWeekYear=function(){return o(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),n);var t,i,a,s=o(this),u=(t=this.isoWeekYear(),a=4-(i=(this.$u?r.utc:r)().year(t).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(a+=7),i.add(a,n));return s.diff(u,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}})}(gt);var yt=nt(gt.exports),wt={exports:{}};!function(e,t){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),u=o(a[n]),c=s||u.map((function(e){return e.slice(0,r)}));if(!i)return c;var l=a.weekStart;return c.map((function(e,t){return c[(t+(l||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},u=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}(wt);var _t=nt(wt.exports),St={exports:{}};!function(e,t){var n;e.exports=(n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,r){var o=t.prototype,i=o.format;r.en.formats=n,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,r=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,o){var i=o&&o.toUpperCase();return r||t[o]||n[o]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(e,void 0===t?{}:t);return i.call(this,r)}})}(St);var Ot=nt(St.exports),xt={exports:{}};!function(e,t){e.exports=function(e,t,n){var r=function(e,t){if(!t||!t.length||1===t.length&&!t[0]||1===t.length&&Array.isArray(t[0])&&!t[0].length)return null;var n;1===t.length&&t[0].length>0&&(t=t[0]),n=(t=t.filter((function(e){return e})))[0];for(var r=1;r<t.length;r+=1)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n};n.max=function(){var e=[].slice.call(arguments,0);return r("isAfter",e)},n.min=function(){var e=[].slice.call(arguments,0);return r("isBefore",e)}}}(xt);var Et=nt(xt.exports),Mt={exports:{}};!function(e,t){var n,r;e.exports=(n="month",r="quarter",function(e,t){var o=t.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(e,t){return e=Number(e),this.$utils().p(t)===r?this.add(3*e,n):i.bind(this)(e,t)};var a=o.startOf;o.startOf=function(e,t){var o=this.$utils(),i=!!o.u(t)||t;if(o.p(e)===r){var s=this.quarter()-1;return i?this.month(3*s).startOf(n).startOf("day"):this.month(3*s+2).endOf(n).endOf("day")}return a.bind(this)(e,t)}})}(Mt);var At=nt(Mt.exports),Tt={exports:{}};!function(e,t){e.exports=function(e,t,n){e=e||{};var r=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,o){return r.fromToBase(e,t,n,o)}n.en.relativeTime=o,r.fromToBase=function(t,r,i,a,s){for(var u,c,l,f=i.$locale().relativeTime||o,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(u=a?n(t).diff(i,m.d,!0):i.diff(t,m.d,!0));var b=(e.rounding||Math.round)(Math.abs(u));if(l=u>0,b<=m.r||!m.r){b<=1&&p>0&&(m=d[p-1]);var v=f[m.l];s&&(b=s(""+b)),c="string"==typeof v?v.replace("%d",b):v(b,r,m.l,l);break}}if(r)return c;var g=l?f.future:f.past;return"function"==typeof g?g(c):g.replace("%s",c)},r.to=function(e,t){return i(e,t,this,!0)},r.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}(Tt);var Rt=nt(Tt.exports),Dt={exports:{}};!function(e,t){var n,r;e.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(e,t,o){var i,a=function(e,t,n){void 0===n&&(n={});var o=new Date(e),i=function(e,t){void 0===t&&(t={});var n=t.timeZoneName||"short",o=e+"|"+n,i=r[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[o]=i),i}(t,n);return i.formatToParts(o)},s=function(e,t){for(var r=a(e,t),i=[],s=0;s<r.length;s+=1){var u=r[s],c=u.type,l=u.value,f=n[c];f>=0&&(i[f]=parseInt(l,10))}var d=i[3],h=24===d?0:d,p=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",m=+e;return(o.utc(p).valueOf()-(m-=m%1e3))/6e4},u=t.prototype;u.tz=function(e,t){void 0===e&&(e=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),s=Math.round((r-new Date(a))/1e3/60),u=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-s,!0);if(t){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,a=n||t||i,u=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,o=s(r,n);if(t===o)return[r,t];var i=s(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),u,a),l=c[0],f=c[1],d=o(l).utcOffset(f);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}})}(Dt);var jt=nt(Dt.exports),kt={exports:{}};!function(e,t){e.exports=function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}(kt);var $t=nt(kt.exports),Lt={exports:{}};!function(e,t){e.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),o=i(e).local();return d.call(r,o,t,n)}}}()}(Lt);var Ct=nt(Lt.exports),Nt={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}(Nt);var Pt=nt(Nt.exports),Ft={exports:{}};!function(e,t){var n,r;e.exports=(n="week",r="year",function(e,t,o){var i=t.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(r).add(1,r).date(t),a=o(this).endOf(n);if(i.isBefore(a))return 1}var s=o(this).startOf(r).date(t).startOf(n).subtract(1,"millisecond"),u=this.diff(s,n,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(Ft);var Bt=nt(Ft.exports);function Yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Array.isArray(o))return!1}return!0}function It(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(["boolean","object","symbol"].includes(typeof o)||""===o||isNaN(o))return!1}return!0}function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!o||"object"!=typeof o||!(Symbol.iterator in Object(o)))return!1}return!0}function Ht(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object String]"!=={}.toString.apply(o))return!1}return!0}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Number.isInteger(o))return!1}return!0}function qt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!(o&&o.constructor&&o.call&&o.apply))return!1}return!0}function Wt(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(void 0!==window.console){var o=void 0,i=5,a="log";n[0]&&"object"==typeof n[0]&&n[0]._bbn_console_style&&(n[0]._bbn_console_mode&&qt(console[n[0]._bbn_console_mode])?a=n[0]._bbn_console_mode:(o=n[0]._bbn_console_style,i=n[0]._bbn_console_level),n.shift());var s=window.console[a];if((null===(t=null===(e=window.bbn)||void 0===e?void 0:e.env)||void 0===t?void 0:t.loggingLevel)>=i)for(var u=0;u<n.length;){var c=typeof n[u],l=[n[u]];"string"!==c&&"number"!==c||l.unshift("%c %s ",o),s.apply(window.console,l),u++}}return this}function Vt(e,t,n){if(!Ht(e)||!zt(t))throw Wt(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return t<0&&(t=e.length+t),zt(n)?e.substring(t,(n<0?e.length:t)+n):e.substring(t)}function Jt(e,t){void 0===t&&(t=!1);var n=null;if("object"==typeof e)for(var r in n={},e)Vt(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(t&&"object"==typeof e[r]?n[r]=Jt(e[r],!0):n[r]=e[r]);return n||!1}function Zt(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),null!==e&&"object"==typeof e){var o=Object.keys(n?Jt(e):e);r&&o.reverse();for(var i=0,a=o;i<a.length;i++){var s=a[i];if(!1===t(e[s],s))break}}return e}function Kt(e,t){if(!(It(e)&&e>0)){if(Ut(e)){for(n=0;n<e.length;n++)if(!1===t(e[n],n))return;return e}return Zt(e,t)}for(var n=0;n<e;n++)if(!1===t(n,n))return}function Gt(e){return e.replace(/[A-z]{1}/,(function(e){return e.toUpperCase()}))}function Xt(e){if(arguments.length>1){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);t.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),Wt.apply(this,t)}throw new Error(e)}function Qt(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=!1;Yt(t)||(t=[t]);var a=[];if(Kt(t,(function(t){var n;if(t===String?t="string":t===Number?t="number":t===Array?t="array":t===Boolean?t="boolean":t===Object?t="object":t===Function&&(t="function"),qt(t)){if(a.push(t.name||(null===(n=t.constructor)||void 0===n?void 0:n.name)||t.toString()),e instanceof t)return i=!0,!1}else if(Ht(t)&&qt(bbn.fn["is"+Gt(t)])){if(bbn.fn["is"+Gt(t)](e))return i=!0,!1;a.push(t)}else Xt("The type ".concat(t," is not recognized"))})),!i)throw Wt(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),r.length&&Wt(r),new Error((n?n+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function en(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift(),r=bbn.lng[n]||n;if(e.length){var o=0;return r.replace(/\%([d|s])/g,(function(t,n){var r=e[o++];return r||(r="d"===n?0:""),Qt(r,"d"===n?"number":"string",bbn._("The value you gave did not correspond, check the loggg")),r}))}return r}var tn={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:[33,34,35,36,38,40],leftRight:[36,35,37,39],dels:[8,46,45],confirm:[13,9],alt:[20,16,17,18,144],numbers:[48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105],numsigns:[109,110,189,190]},comparators:[">=","<=",">","<","="],operators:["+","-","/","*"],tags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],colors:{darkgrey:"#5a6a62",black:"#000000",anthracite:"#454545",grey:"#d3d3d3",white:"#ffffff",beige:"#fdfdfd",lightgrey:"#dcdcdc",pastelblue:"#ddebf6",cyan:"#00c8f8",blue:"#6e9ecf",indigo:"#3f51b5",navy:"#354458",webblue:"#2196f3",teal:"#009688",turquoise:"#1fda9a",pastelgreen:"#e2efda",palegreen:"#ccffcc",green:"#00a03e",olive:"#92b06a",pastelorange:"#fff2cc",yellow:"#fdf200",orange:"#ff9900",pink:"#eb65a0",purple:"#a333c8",red:"#db3340",brown:"#8c6954"},reserved:["abstract","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","new","null","package","return","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","while","with"],mockText:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",regexp:{url:new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),ip:/^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,hostname:/^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i}},nn={siteTitle:window.document.title,logging:!1,cdn:"",lang:"en",host:window.location.protocol+"//"+window.location.hostname,url:window.location.href,old_path:null,loading:!1,width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:50,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax"},rn=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB,on=function(e){var t=this,n=an._connections[e],r=an._structures[e];this.insert=function(e,t){return Array.isArray(t)||(t=[t]),new Promise((function(r){var o=n.transaction(e,"readwrite"),i=o.objectStore(e),a=t.length;Kt(t,(function(e){var t=i.put(e);t.onerror=function(){Wt(t.error),a--}})),o.onabort=function(){throw new Error(o.error)},o.oncomplete=function(){r(a)}}))},this.update=function(e,t,o){return new Promise((function(i){var a=n.transaction(e,"readwrite"),s=a.objectStore(e),u=r[e],c=u.keys.PRIMARY.columns.length>1?u.keys.PRIMARY.columns:u.keys.PRIMARY.columns[0];if(!o[c])throw new Error(en("No "));var l=1,f=s.put(t,o[c]);f.onerror=function(){Wt(f.error),l--},a.onabort=function(){throw new Error(a.error)},a.oncomplete=function(){i(l)}}))},this.delete=function(e,t){return new Promise((function(o){var i=n.transaction(e,"readwrite"),a=i.objectStore(e),s=r[e],u=s.keys.PRIMARY.columns.length>1?s.keys.PRIMARY.columns:s.keys.PRIMARY.columns[0];if(!t[u])throw new Error(en("No "));var c=1,l=a.delete(t[u]);l.onerror=function(){Wt(l.error),c--},i.onabort=function(){throw new Error(i.error)},i.oncomplete=function(){o(c)}}))},this.selectOne=function(e,n,r,o,i,a){return new Promise((function(s){t.select(e,[n],r,o,i,a).then((function(e){var t;s(null!==(t=e[n])&&void 0!==t?t:void 0)}))}))},this.select=function(e,t,o,i,a,s){var u=n.transaction(e,"readonly").objectStore(e),c=r[e],l=c.keys.PRIMARY.columns.length>1?c.keys.PRIMARY.columns:c.keys.PRIMARY.columns[0];if(!o[l])throw new Error(en("No "));return new Promise((function(e){var n=u.get(o[l]);n.onsuccess=function(){var r=n.result;if(t.length){var o={};return Zt(r,(function(e,n){t.indexOf(n)>-1&&(o[n]=e)})),e(o)}e(r)}}))},this.selectAll=function(e,t,o,i,a,s){var u=n.transaction(e,"read").objectStore(e),c=r[e];if(!o[c.keys.PRIMARY.columns.length>1?c.keys.PRIMARY.columns:c.keys.PRIMARY.columns[0]])throw new Error(en("No "));return new Promise((function(e){u.get(r.keys.PRIMARY)}))},this.getColumnValues=function(e,t,r,o,i,a){return new Promise((function(t){n.transaction(e,"read").objectStore(e)}))}},an={_structures:{},_connections:{},_stores:{},ok:void 0!==rn,open:function(e){return new Promise((function(t){if(!an._connections[e]){if(!an._structures[e])throw new Error(en("Impossible to find a structure for the database %s",e));var n=rn.open(e);return n.onupgradeneeded=function(){Wt("UPGRADE NEEDED");var t=n.result;Zt(an._structures[e],(function(e,n){var r=e.keys.PRIMARY.columns.length>1?e.keys.PRIMARY.columns:e.keys.PRIMARY.columns[0],o=t.createObjectStore(n,{keyPath:r});Zt(e.keys,(function(e,t){"PRIMARY"!==t&&o.createIndex(t,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})}))}))},void(n.onsuccess=function(){an._connections[e]=n.result;var r=new on(e);t(r)})}t(new on(an._connections[e]))}))},add:function(e,t,n){var r;if(!(null===(r=null==n?void 0:n.keys)||void 0===r?void 0:r.PRIMARY)||!(null==n?void 0:n.fields))throw new Error(en("The database structure for %s is not valid (are there keys and field? Is there a primary?",t));an._structures[e]||(an._structures[e]={}),an._structures[e][t]=n}};function sn(e,t,n){var r=(new Date).getTime(),o={key:e,url:Vt(e,0,e.length-33),loader:t,aborter:n,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(o),bbn.env.loadersHistory.unshift(o);for(var i=bbn.env.loadersHistory.length;i&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)i--,bbn.env.loading||bbn.env.loadersHistory.splice(i,1);return r}function un(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if("object"==typeof e){var r=[];return 1===t.length&&"string"==typeof t[0]?r.push.apply(r,t[0].split(".")):r.push.apply(r,t),r.reduce((function(e,t){if(e)return e[e instanceof Array?parseInt(t):t]}),e)}}function cn(e){if(!Ht(e)){if(!e.toString)throw Wt(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Date]"!=={}.toString.apply(o))return!1}return!0}function fn(e,t,n,r){void 0===r&&(r="asc");var o=un(e,n),i=un(t,n),a=(typeof o).toLowerCase(),s=(typeof i).toLowerCase();if("asc"!==r&&Ht(r)&&"desc"===r.toLowerCase()&&(r="desc"),a!==s)o=a,i=s;else switch(a){case"string":o=cn(o).toLowerCase(),i=cn(i).toLowerCase();break;case"boolean":o=o?1:0,i=i?1:0;break;case"object":ln(o)&&(o=o.getTime(),i=ln(i)?i.getTime():0)}return o<i?"desc"===r?1:-1:o>i?"desc"===r?-1:1:0}function dn(e){return e&&"object"==typeof e?Object.keys(e).length:0}function hn(e){return!e||(Yt(e)?!e.length:"object"==typeof e&&!dn(e))}function pn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Null]"!=={}.toString.apply(o))return!1}return!0}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Object]"!=={}.toString.apply(o))return!1}return!0}function bn(e){for(var t=0,n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return Math.abs(t).toString(16)}function vn(e){for(var t=0,n=0;n<e.length;n++){t=e.charCodeAt(n)+(t<<6)+(t<<16)-t,t|=0}return Math.abs(t).toString(16)}function gn(e){return bn(e).padStart(8,"0")+vn(e).padStart(8,"0")}function yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof HTMLElement))return!1}return!0}function wn(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(var r=0,o=t;r<o.length;r++){var i=o[r];if(!bbn.cp.isComponent(i)||yn(i)||!(null===(e=i.$el)||void 0===e?void 0:e.bbnCid))return!1}return!0}function _n(e,t,n,r,o){if(void 0===t&&(t=null),void 0===n&&(n=0),void 0===r&&(r=null),void 0===o&&(o=null),n||r||(r=new WeakSet),void 0===e)e="__BBN_UNDEFINED__";else if(null===e)e="__BBN_NULL__";else if(null===e)e="__BBN_NULL__";else if("function"==typeof e)e="__BBN_FUNCTION__"+e.toString();else if("symbol"==typeof e)e="__BBN_SYMBOL__"+e.toString();else if("string"==typeof e)e="__BBN_STRING__"+e;else if("number"==typeof e)e="__BBN_NUMBER__"+e.toString();else if("boolean"==typeof e)e="__BBN_BOOLEAN__"+e.toString();else if([void 0,Object,Array,null].includes(null==e?void 0:e.constructor)){if(bbn.fn.isArray(e))if(r.has(e)||t&&t<n)e="__BBN_ARRAY__"+e.constructor.toString();else{r.add(e);for(var i="",a=0;a<e.length;a++)i+="__BBN_ITEM"+a.toString()+"__"+o(e[a],t,n+1,r,o);e="__BBN_ARRAY__"+i}else if("object"==typeof e)if(r.has(e)||t&&t<n)e="__BBN_OBJECT__"+(e.constructor?e.constructor.toString():"");else{r.add(e);i="";for(var s in e){var u=s;"string"!=typeof u&&(u=o(u,o,1,1)),i+="__BBN_PROP_"+u+"__"+o(e[s],t,n+1,r,o)}e="__BBN_OBJECT__"+i}}else e=yn(e)?e.bbnId?"__BBN_DOM__"+e.tagName+"/"+e.bbnId+e.bbnHash:"__BBN_DOM__"+e.tagName+"/"+e.className:wn(e)?"__BBN_CP__"+e.$options.name+"/"+e.$cid:"__BBN_OBJECT__"+e.constructor.toString();return e}function Sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="",r=null;for(var o in 2===e.length&&"number"==typeof e[1]&&(r=e[1],e=[e[0]]),e)n+=_n(e[o],r,0,null,_n);return gn(n)}function On(e){var t="0123456789abcdef";function n(e){var n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(o,a)),i),n)}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}var c,l,f,d,h,p=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<t%4*8;return r[t>>2]|=128<<t%4*8,r[16*n-2]=8*e.length,r}(e),m=1732584193,b=-271733879,v=-1732584194,g=271733878;for(c=0;c<p.length;c+=16)l=m,f=b,d=v,h=g,m=i(m,b,v,g,p[c+0],7,-680876936),g=i(g,m,b,v,p[c+1],12,-389564586),v=i(v,g,m,b,p[c+2],17,606105819),b=i(b,v,g,m,p[c+3],22,-1044525330),m=i(m,b,v,g,p[c+4],7,-176418897),g=i(g,m,b,v,p[c+5],12,1200080426),v=i(v,g,m,b,p[c+6],17,-1473231341),b=i(b,v,g,m,p[c+7],22,-45705983),m=i(m,b,v,g,p[c+8],7,1770035416),g=i(g,m,b,v,p[c+9],12,-1958414417),v=i(v,g,m,b,p[c+10],17,-42063),b=i(b,v,g,m,p[c+11],22,-1990404162),m=i(m,b,v,g,p[c+12],7,1804603682),g=i(g,m,b,v,p[c+13],12,-40341101),v=i(v,g,m,b,p[c+14],17,-1502002290),m=a(m,b=i(b,v,g,m,p[c+15],22,1236535329),v,g,p[c+1],5,-165796510),g=a(g,m,b,v,p[c+6],9,-1069501632),v=a(v,g,m,b,p[c+11],14,643717713),b=a(b,v,g,m,p[c+0],20,-373897302),m=a(m,b,v,g,p[c+5],5,-701558691),g=a(g,m,b,v,p[c+10],9,38016083),v=a(v,g,m,b,p[c+15],14,-660478335),b=a(b,v,g,m,p[c+4],20,-405537848),m=a(m,b,v,g,p[c+9],5,568446438),g=a(g,m,b,v,p[c+14],9,-1019803690),v=a(v,g,m,b,p[c+3],14,-187363961),b=a(b,v,g,m,p[c+8],20,1163531501),m=a(m,b,v,g,p[c+13],5,-1444681467),g=a(g,m,b,v,p[c+2],9,-51403784),v=a(v,g,m,b,p[c+7],14,1735328473),m=s(m,b=a(b,v,g,m,p[c+12],20,-1926607734),v,g,p[c+5],4,-378558),g=s(g,m,b,v,p[c+8],11,-2022574463),v=s(v,g,m,b,p[c+11],16,1839030562),b=s(b,v,g,m,p[c+14],23,-35309556),m=s(m,b,v,g,p[c+1],4,-1530992060),g=s(g,m,b,v,p[c+4],11,1272893353),v=s(v,g,m,b,p[c+7],16,-155497632),b=s(b,v,g,m,p[c+10],23,-1094730640),m=s(m,b,v,g,p[c+13],4,681279174),g=s(g,m,b,v,p[c+0],11,-358537222),v=s(v,g,m,b,p[c+3],16,-722521979),b=s(b,v,g,m,p[c+6],23,76029189),m=s(m,b,v,g,p[c+9],4,-640364487),g=s(g,m,b,v,p[c+12],11,-421815835),v=s(v,g,m,b,p[c+15],16,530742520),m=u(m,b=s(b,v,g,m,p[c+2],23,-995338651),v,g,p[c+0],6,-198630844),g=u(g,m,b,v,p[c+7],10,1126891415),v=u(v,g,m,b,p[c+14],15,-1416354905),b=u(b,v,g,m,p[c+5],21,-57434055),m=u(m,b,v,g,p[c+12],6,1700485571),g=u(g,m,b,v,p[c+3],10,-1894986606),v=u(v,g,m,b,p[c+10],15,-1051523),b=u(b,v,g,m,p[c+1],21,-2054922799),m=u(m,b,v,g,p[c+8],6,1873313359),g=u(g,m,b,v,p[c+15],10,-30611744),v=u(v,g,m,b,p[c+6],15,-1560198380),b=u(b,v,g,m,p[c+13],21,1309151649),m=u(m,b,v,g,p[c+4],6,-145523070),g=u(g,m,b,v,p[c+11],10,-1120210379),v=u(v,g,m,b,p[c+2],15,718787259),b=u(b,v,g,m,p[c+9],21,-343485551),m=r(m,l),b=r(b,f),v=r(v,d),g=r(g,h);return n(m)+n(b)+n(v)+n(g)}function xn(e){var t="function"==typeof e?e.toString():e;if("string"!=typeof t)throw Error("Unexpected type "+typeof e+" while parsing function");for(var n,r="",o=!1,i=!1,a=!1,s="",u=0,c=0,l=[],f={},d="",h=['"',"'","`"],p=!1,m=!1,b=!1,v=!1,g=!1,y=!1,w="",_=0;_<t.length;_++)if(b||"/"!==t[_]||"*"!==t[_+1])if("/"===t[_]&&"*"===t[_-1])b=!1;else if(v||"/"!==t[_]||"/"!==t[_+1])if("\n"===t[_])v=!1;else{if(b||v)continue;if(t[_]===d&&!p&&d)d="",r+=t[_];else if(d)p="\\"===t[_]&&!p,r+=t[_];else if(h.includes(t[_])&&!p)d=t[_],r+=t[_];else if("("===t[_]){if(u++,""!==r.trim()){if("function"===r.trim())a=!0;else if("async"!==r.trim()){var S=(s=r.trim()).match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);S&&(s=S[1])}r=""}}else if(")"===t[_])u===c+1&&(m?(f.default=r.trim(),m=!1):r&&(f.name=r.trim()),(f.name||f.default)&&(l.push(f),f={}),r=""),c++;else if(g&&"}"!==t[_])r+=t[_];else{if(u&&u===c&&":"===t[_]){var O=t.substring(_+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!O)throw Error("Unexpected ':' while parsing function");w=O[1],n=t.substring(_+O[0].length).trim();break}if(!(r||"="!==t[_]||">"!==t[_+1]||u!==c||c||o)){f.name=t.slice(0,_).trim(),l.push(f),f={},o=!0,n=bbn.fn.substr(t,_+2).trim();break}if(u===c&&"="===t[_]&&">"===t[_+1]){""!==r.trim()&&(f.name=r.trim(),l.push(f),f={},r=""),o=!0,_++;continue}if("="===t[_]&&u>c&&!m)f.name=r.trim(),r="",m=!0;else if(","===t[_])if(g)r+=t[_];else{if(!(u>c))throw Error("Unexpected ',' while parsing function");m?(f.default=r.trim(),m=!1):r&&(f.name=r.trim()),(f.name||f.default)&&(l.push(f),f={}),r=""}else if("{"===t[_]||"}"===t[_]){if(u===c){n=t.substring(_).trim();break}u>c?"{"!==t[_]||g?"}"===t[_]&&g&&(g=!1,r+=t[_]):(g=!0,r=t[_]):r=""}else{if(o){n=t.substring(t.indexOf("=>")+2).trim();break}" "===t[_]?""!==r.trim()&&("async"===r.trim()&&(i=!0),u>c?r+=t[_]:r=""):r+=t[_]}}}else v=!0,r="";else b=!0,r="";if(!n){if(!o)throw Error("Unexpected end of function while parsing function");n=r}"{ [native code] }"===n&&(y=!0);var x=l.map((function(e){return e.name+(e.default?" = "+e.default:"")})).join(", ");return{body:n,args:l,argString:x,isArrow:o,hasFunction:a,name:s,isAsync:i,isBinary:y,hash:On(n+(s?"-"+s:"")+(x?"-"+x:"")),returnType:w}}function En(e,t,n){if(n||(n=[]),e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r=Object.keys(e).sort(),o=Object.keys(t).sort();if(Sn(r)!==Sn(o))return!1;var i=!0;if(e&&"object"==typeof e){if(n.includes(e))return i;n.push(e)}return Kt(r,(function(n){if(!En(e[n],t[n]))return i=!1,!1})),i}if(e&&t&&"function"==typeof e&&"function"==typeof t){r=xn(e),o=xn(t);var a=r.hash===o.hash;return a&&r.isBinary&&(a=!1),a}return!1}function Mn(e,t,n){switch(n){case"===":case"=":case"equal":case"eq":case"is":return e===t;case"!==":case"notequal":case"neq":case"isnot":return e!==t;case"!=":case"different":return e!=t;case"contains":case"contain":case"icontains":case"icontain":return!hn(e)&&!hn(t)&&-1!==cn(e).toLowerCase().indexOf(cn(t).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!pn(e)&&!pn(t))||-1===cn(e.toLowerCase()).indexOf(cn(t.toLowerCase()));case"starts":case"start":return!pn(e)&&!pn(t)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof t&&(t=t.toString()||""),0===e.indexOf(t));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!pn(e)&&!pn(t)&&0===cn(e).toLowerCase().indexOf(cn(t).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!pn(e)&&!pn(t)&&e.lastIndexOf(t)===e.length-t.length;case"like":return!pn(e)&&!pn(t)&&cn(e).toLowerCase()===cn(t).toLowerCase();case"gt":case">":return e>t;case"gte":case">=":return e>=t;case"lt":case"<":return e<t;case"lte":case"<=":return e<=t;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(mn(e,t))return En(e,t);default:return e==t}}function An(e,t){if(!t.conditions||!t.logic||!Yt(t.conditions))throw new Error("Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects");var n="AND"===t.logic;return Kt(t.conditions,(function(r){var o;if(r.conditions&&Yt(r.conditions))o=An(e,r);else if(o=Mn(un(e,r.field),r.value,r.operator)){var i=r.field.split("."),a=i.pop();i.length&&Kt(i,(function(t){return e=e[t]})),void 0===un(e,a)&&void 0!==r.value&&(o=!1)}if(o){if("OR"===t.logic)return n=!0,!1}else if("AND"===t.logic)return n=!1,!1})),n}function Tn(e,t){if(void 0===t&&(t="="),!mn(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!Yt(e.conditions)){var n=[];Zt(e,(function(e,r){mn(e)&&"object"==typeof e.conditions?n.push(Tn(e)):n.push({field:r,operator:t,value:e})})),e={conditions:n}}return e.logic||(e.logic="AND"),e}function Rn(e,t,n,r,o){if(void 0===n&&(n=null),void 0===r&&(r="="),void 0===o&&(o=0),!Ut(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;var i,a=!1;if("string"==typeof t?i={conditions:[{field:t,value:n,operator:r||"="}]}:t?(o="number"==typeof r?r:0,r=n,mn(t)?i=t:"function"==typeof t&&(a=!0,i=t)):(a=!0,i=function(e){return An({value:e},Tn({logic:"AND",conditions:[{field:"value",operator:r||"=",value:n}]}))}),a||mn(i)&&dn(i))if(It(r)&&(o="number"==typeof r?r:0,r=void 0),It(o)||(o=0),"function"==typeof i){for(var s=o;s<e.length;s++)if(i(e[s]))return s}else{i=Tn(i);for(s=o;s<e.length;s++)if(An(e[s],i))return s}return-1}function Dn(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r="=");var o=Rn(e,t,n,r);return o>-1&&e[o]}function jn(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=Rn(bbn.env.loaders,{key:e});if(r>-1){var o=bbn.env.loaders.splice(r,1)[0],i=Dn(bbn.env.loadersHistory,{key:e,start:o.start});return i&&(i.loading=!1,i.duration=(new Date).getTime()-o.start,"string"==typeof t?(i.errorMessage=t,i.error=!n,i.abort=n):mn(t)&&(i.success=!0)),!0}return!1}function kn(e){var t=Rn(bbn.env.loaders,{key:e});return t>-1?bbn.env.loaders[t]:null}function $n(e,t,n,r){if(void 0===n&&(n=null),void 0===r&&(r="="),!Yt(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");var o={},i=[],a="function"==typeof t;if(!t||!e.length)return e;if(e.length){if("object"==typeof t)r=n,o=t;else if("string"==typeof t)o[t]=n;else if(!a)throw new Error("Search function error: The prop argument should be a string or an object");return"function"==typeof t?Kt(e,(function(e,n){t(e,n)&&i.push(e)})):(o=Tn(o,r)).conditions&&o.logic&&Kt(e,(function(e){An(e,o)&&i.push(e)})),i}}function Ln(e){if(dn(e)){bbn.var.colors||(bbn.var.colors={});var t=document.createElement("style");document.head.appendChild(t);var n=t.sheet;Zt(e,(function(e,t){bbn.var.colors[t]=e,n.insertRule(".bbn-"+t+", .bbn-color-text-"+t+" {color: "+e+" !important;}",0),n.insertRule("svg.bbn-"+t+", .bbn-"+t+" svg, svg.bbn-color-text-"+t+", .bbn-color-text-"+t+" svg {fill: "+e+";}",0),n.insertRule(".bbn-bg-"+t+", .bbn-color-bg-"+t+", .bbn-color-background-"+t+" {background-color: "+e+" !important;}",0),n.insertRule(".bbn-border-"+t+", .bbn-color-border-"+t+" {border-color: "+e+" !important;}",0),n.insertRule(".bbn-color-"+t+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",0)}))}}function Cn(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=""),e&&"FORM"===e.tagName){var r=function(t,n){var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)};t=JSON.parse(JSON.stringify(t||{})),n=n||"",t&&Zt(t,(function(t,o){var i=n?"".concat(n,"[").concat(o,"]"):o;t instanceof Date?r(i,t.toISOString()):t instanceof Array?t.forEach((function(t,n){var o="".concat(i,"[").concat(n,"]");"object"==typeof t?Cn(e,t,o):r(o,t.toString())})):"object"!=typeof t||t instanceof File?r(i,t.toString()):Cn(e,t,i)}))}}function Nn(e,t){var n=0;Kt(t,(function(t){t.style[e]="auto"})),Kt(t,(function(t,r){var o=t.getBoundingClientRect(),i=o[e]%1?o[e]-o[e]%1+1:o[e];i>n&&(n=i)})),Kt(t,(function(t,r){n&&(t.style[e]=n+"px")}))}function Pn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Fn(e,t,n,r){return void 0===r&&(r=""),n.toString().replace(mn(e)?e:new RegExp(Pn(e),"g"+r),t)}function Bn(e,t,n){var r={};return t&&Zt(t,(function(e,t){-1===t.indexOf("_bbn")&&(r[t]=e)})),e+":"+On((n||"json")+JSON.stringify(r))}function Yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=!1,r=[],o=0;o<e.length;o++)if(!0===e[o])n=!0;else{if(!e[o])continue;if("object"!=typeof e[o])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[o]);r.push(e[o])}if(!r.length)throw new Error("No argument given");var i=r[0];for(o=1;o<r.length;o++)Zt(r[o],(function(e,t){n?Yt(e)?(i[t]=Yt(i[t])?i[t]:[],Kt(e,(function(e,n){if(e&&"object"==typeof e){var r=i[t][n];Yt(e)?Yt(r)||(r=[]):mn(r)||(r={}),i[t][n]=Yn(!0,r,e)}else i[t][n]=e}))):mn(e)?i[t]=Yn(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:(i[t]!==e||void 0===e&&!Object.prototype.hasOwnProperty.apply(i,[t]))&&(i[t]=e)})),r[o].__bbnNoData&&Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1});return i}function In(e,t,n,r,o,i){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===i&&(i=null),1===arguments.length&&e&&"object"==typeof e&&e.url&&(e.abort&&(i=e.abort),e.failure&&(o=e.failure),e.success&&(r=e.success),e.data&&(n=e.data),e.datatype&&(t=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=Fn("//","/",e)),t||(t="json");var a=Bn(e,n,t),s=kn(a);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&Yn(n||{},{_bbn_token:bbn.env.token});var u=new AbortController,c={responseType:t,signal:u.signal};"text"===t&&(c.headers={accept:"text/javascript","Content-Type":"text/javascript"});var l=[e];mn(n)&&dn(n)>0&&l.push(n),l.push(c);var f=2===l.length?"get":"post",d=axios[f].apply(null,l).then((function(t){if(jn(a,t),bbn.fn.defaultEndLoadingFunction(e,h,n,t),200===t.status)qt(r)&&r(t.data,t.headers);else bbn.fn.defaultAjaxErrorFunction(d,t);return t})).catch((function(t){var r=axios.isCancel(t);if(jn(a,t.message||t.response.data,r),bbn.fn.defaultEndLoadingFunction(e,h,n,t),r){var s=1;qt(i)&&(s=i(t.message,e)),s&&bbn.fn.defaultAjaxAbortFunction(t.message,e)}else{s=1;qt(o)&&(s=o(t.request,t)),s&&bbn.fn.defaultAjaxErrorFunction(t.request,t.response?t.response.data:"",t.response?t.response.status:t)}})),h=sn(a,d,u);return bbn.fn.defaultStartLoadingFunction(e,h,n,a),d}}function Un(e,t){if(e&&Ht(e)){var n=e.split("/").pop();if(!t)return n;var r=t.length;if(n&&Vt(n,-r)===t)return Vt(n,0,n.length-r)}return""}function Hn(e){var t=typeof e;if(void 0===e)return new Date;if("number"===t||It(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===t){if(10===e.length)return new Date(parseInt(Vt(e,0,4)),parseInt(Vt(e,5,2))-1,parseInt(Vt(e,8,2)),12);if(19===e.length)return new Date(parseInt(Vt(e,0,4)),parseInt(Vt(e,5,2))-1,parseInt(Vt(e,8,2)),parseInt(Vt(e,11,2)),parseInt(Vt(e,14,2)),parseInt(Vt(e,17,2)))}else if(ln(e))return e;return!1}function zn(e,t){void 0===t&&(t=!1);var n=Hn(e);return ln(n)?void 0!==dayjs?dayjs(n).calendar(null,{sameDay:"["+bbn._("Today")+"] HH:mm",nextDay:"["+bbn._("Tomorrow")+"] HH:mm",nextWeek:"ddd D HH:mm",lastDay:"["+bbn._("Yesterday")+"] HH:mm",lastWeek:"ddd D HH:mm",sameElse:"DD/MM/YYYY HH:mm"}):n.toLocaleDateString():t&&Ht(t)?t:""}function qn(e,t){if(void 0===t&&(t=!1),!0===t)return zn(e);var n=Hn(e);return ln(n)?void 0!==dayjs?dayjs(n).format("L"):n.toLocaleDateString():t&&Ht(t)?t:""}var Wn=function(e){return e};function Vn(e,t,n,r,o){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null);var i=!1;if(t){i=!0;var a="object"===(typeof t).toLowerCase(),s=void 0;if(a&&t.prescript)try{new Function(t.prescript)()}catch(e){Xt(e.message||"")}if(a&&void 0===t.url&&(t.url=e),i=n&&qt(n)?n(t,o):bbn.fn.defaultLinkFunction(t,o),o&&a&&void 0!==t.content&&("value"in o?o.value=t.content:o.innerHTML=t.content),i&&a&&t.script&&(i="function"==typeof t.script?t.script(t.data?t.data:{},o||null):function(e,n){var r=null;try{qt(r=new Function(t.script)())&&(r=r(e,n))}catch(e){Wt(e,t),Xt(qt(e.getMessage)?e.getMessage():null)}return r}(t.data?t.data:{},o||!1)),i&&r&&qt(r)?r(t):a&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(t,o),i&&a&&t.postscript)new Function(t.postscript)(t.postscript);a&&t.error&&(s=t.errorTitle||bbn.lng.server_response,bbn.fn.defaultAlertFunction(t.error,s))}else bbn.fn.defaultAlertFunction(bbn.lng.errorText,bbn.lng.error);return i}function Jn(e,t,n){void 0===n&&(n=!1);var r,o={error:!1,result:!0};("string"==typeof t&&(t=[t]),Yt(t)||(o.error=bbn._("checkProps must receive a string or an array as props argument")),mn(e)||(o.error=bbn._("checkProps must receive an object as obj argument")),o.error)||Kt(t,(function(t){var i=(t=t.trim().split(":"))[1]||!1;if(t=t[0],void 0===e[t]?o.error=t+" "+bbn._("is not defined"):i?(r="is"+Vt(i,0,1).toUpperCase()+Vt(i,1).toLowerCase(),void 0===bbn.fn[r]?o.error=i+" "+bbn._("is not a valid type"):bbn.fn[r](e[t])||(o.error=t+" "+bbn._("is not a")+" "+i)):n&&!e[t]&&(o.error=t+" "+bbn._("is empty")),o.error)return!1}));return o.error&&(o.result=!1),o}function Zn(e){return Yt(e)?e.slice().map((function(e){return"object"==typeof e?Zn(e):e})):mn(e)?Yn(!0,Object.create(Object.getPrototypeOf(e)),e):e}it.extend(st),it.extend(vt);for(var Kn=[],Gn=0;Gn<256;Gn++){for(var Xn=Gn,Qn=0;Qn<8;Qn++)Xn=1&Xn?3988292384^Xn>>>1:Xn>>>1;Kn.push(Xn)}var er=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.length&&Yn.apply(void 0,er([n],e,!1)),n}function nr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("object"==typeof o&&!pn(o))return!1}return!0}var rr=[];function or(e){if(Ht(e)&&e){for(;"/"===Vt(e,e.length-1);)e=Vt(e,0,e.length-1);var t=e.lastIndexOf("/");if(t>0)return Vt(e,0,t);if(0===t)return"/"}return""}function ir(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Blob]"!=={}.toString.apply(o))return!1}return!0}function ar(e){if(e&&Ht(e)){var t=e.split(".");if(t[0]&&t.length>1)return t[t.length-1].toLowerCase()}return""}function sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof HTMLCanvasElement))return!1}return!0}function ur(e,t,n){if(void 0===n&&(n=null),sr(t))t.toBlob((function(t){var n=document.createElement("a");n.download=e,n.href=window.URL.createObjectURL(t),n.className="bbn-no",n.click(),window.URL.revokeObjectURL(n.href)}),n||"image/png");else{n?-1===n.indexOf("/")&&(n="text/"+n):n=mn(t)&&t.type?t.type:"octet/stream";var r=window.document.createElement("a");r.className="bbn-no";var o=null;if(Ht(t))o=new Blob([t],{type:n});else try{o=t}catch(e){Wt(e)}r.href=window.URL.createObjectURL(o),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}}function cr(e){var t;return"checkbox"===e.type?e.checked?(t=e.value)||(t=1):t=0:"radio"===e.type?e.checked&&(t=e.value):t=e.value,t}function lr(e){var t,n,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),o={};return Kt(r,(function(e,r){if(void 0!==(n=cr(e))&&!e.disabled){var i=e.name;if(-1===i.indexOf("[]")&&i.indexOf("[")>-1&&i.indexOf("]")>-1&&i.lastIndexOf("]")===i.length-1&&(i=Fn("][",".",i),i=Fn("[",".",i),i=Fn("]","",i)),i.length>2&&i.indexOf("[]")===i.length-2)t=Vt(i,0,i.length-2),void 0===o[t]&&(o[t]=[]),o[t].push(n);else if(i.indexOf(".")>-1){var a=void 0,s=i.split(".");a=o;for(var u=0;u<s.length;u++)void 0===o[s[u]]&&(u<s.length-1?a[s[u]]={}:a[s[u]]=n),a=a[s[u]]}else o[i]=n}})),o}function fr(e){return e.filter((function(e,t,n){return t===n.indexOf(e)}))}function dr(e,t){void 0===t&&(t=null);var n=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof t)for(;e=e.parentElement.closest(t);)n.push(e);else for(!0===t&&n.push(e);e=e.parentElement;)n.push(e);return n}function hr(e){return 0!==e.indexOf("--")&&(e="--"+e),getComputedStyle(document.documentElement).getPropertyValue(e)}function pr(){var e=navigator.userAgent.toLowerCase();return/iPhone|Android/i.test(navigator.userAgent)?"mobile":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?"tablet":"desktop"}function mr(){var e,t=window.getSelection();if(t.rangeCount>0){Wt("RANGE",e=t.getRangeAt(0));var n=e.cloneContents();Wt("clonedSelection",n);var r=document.createElement("div");return r.appendChild(n),r.innerHTML}return""}function br(e){return Ht(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function vr(e){var t=document.createElement("div");return t.innerHTML=e,e=t.innerText}function gr(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t}function yr(e){var t,n,r={};if(mn(e[0])&&1===e.length)return e[0];for(n=0;n<e.length;n++)t=(t=typeof e[n]).toLowerCase(),qt(e[n])?(r.errorFn&&!r.abortFn&&(r.abortFn=e[n]),r.successFn&&!r.errorFn?r.errorFn=e[n]:r.successFn||(r.successFn=e[n])):1===e[n]||!0===e[n]?r.force=!0:"string"===t?r.url?r.datatype=e[n]:0===e[n].indexOf("#")||0===e[n].indexOf(bbn.env.root+"#")?r.url=Vt(e[n],bbn.env.root.length):(r.url=e[n],0===r.url.indexOf(bbn.env.root)&&(r.url=Vt(r.url,bbn.env.root.length))):e[n]&&"object"===t&&(e[n]instanceof Event?r.e=e[n]:r.ele||1!==e[n].nodeType?"object"===t.toLowerCase()&&(r.obj=e[n]):r.ele=e[n]);return!r.url&&dn(r)&&(r.url=bbn.env.path),void 0===r.obj&&(r.obj={_bbn:"public"}),r.datatype||(r.datatype="json"),r}function wr(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=!1),bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(Vt(e,0,7))?e:bbn.env.root+e,bbn.env.path=Vt(bbn.env.url,bbn.env.root.length),bbn.env.params=$n(bbn.env.path.split("/"),(function(e){return""!==e}));var o=window.history;if(o){var i=o.state,a={url:bbn.env.path,old_path:bbn.env.old_path||null,data:n||{},reload:!1};i&&i.url===bbn.env.path&&(i.data&&Yn(a.data,i.data),i.title&&!t&&(t=i.title),r=!0),t=t?vr(t):bbn.env.siteTitle,r?(a.reload=!0,o.replaceState(a,t,bbn.env.url)):o.pushState(a,t,bbn.env.url)}}function _r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=yr(e),r=1;if(!0===n)return!0;if(!n)return _r(window.location.href);if(0===n.url.indexOf("javascript:"))return!0;if(0===n.url.indexOf("data:"))return!0;if(0===n.url.indexOf("#"))return location.href=bbn.env.url+n.url,!0;if(0===n.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=n.url,setTimeout((function(){bbn.env.ignoreUnload=!1}),0),!1;if(kn(n.url))return!1;if((0===n.url.indexOf("http://")||0===n.url.indexOf("https://"))&&0!==n.url.indexOf(bbn.env.host))return n.e&&n.e.preventDefault(),window.open(n.url),!1;if(n.url!==bbn.env.params.join("/")||1===n.force){if(n.successFn)r=n.successFn(n.url);else if(bbn.fn.defaultPreLinkFunction){var o=bbn.fn.defaultPreLinkFunction(n.url,n.force,n.ele);void 0!==o.data?(Yn(n.obj,o.data),r=1):r=o}if(r){1!==r&&"string"==typeof r&&(n.url=r);var i=bbn._("The Ajax call to")+" "+n.url+" ";return In(n.url,n.datatype,n.obj,(function(e){e||Wt(i+bbn._("returned no answer")),mn(e)&&(0===Object.keys(e).length&&Wt(i+bbn._("returned an empty object")),e.new_url?(e.old_path=n.url,n.url=e.new_url):e.url&&n.url!==e.url&&(e.old_path=n.url)),Vn(n.url,e,n.successFn,null,n.ele)&&void 0===e.noNav&&0!==bbn.env.path.indexOf(n.url)&&wr(n.url,(e.title?e.title+" - ":"")+bbn.env.siteTitle)}),n.errorFn||null)}}return!0}function Sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=yr(e);if(n.url)return In(n.url,n.datatype,n.obj,(function(e){Vn(n.url,e,n.successFn,null,n.ele)}),n.errorFn,n.abortFn)}function Or(e,t,n){var r,o=e.getAttribute("action")||bbn.env.path;if(""===o&&(o="."),"string"==typeof o&&(0!==o.indexOf("http")||-1!==o.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(t&&t.preventDefault(),r=lr(e))){e.setAttribute("action",null);var i=[o,r];!n&&e.getAttribute("data-script")&&(n=(n=new Function(e.getAttribute("data-script")))()),n&&i.push(n),Sr.apply(void 0,i)}}function xr(){var e=bbn.env.width!==window.innerWidth,t=bbn.env.height!==window.innerHeight;if(e||t){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),t&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));var n=parseInt(hr("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<n?"small":"regular"),o=(document.body.className||"").split(" "),i=!1;Kt(o,(function(e,t){if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return i=!0,e!==r&&o.splice(t,1,r),!1})),i||o.push(r),bbn.fn.defaultResizeFunction(),document.body.className=o.join(" ")}}function Er(){return"mobile"===pr()}function Mr(){return"tablet"===pr()}function Ar(){return Er()||Mr()}function Tr(e){void 0===e&&(e=!1);var t=(new Date).getTime();return e?Math.round(t/1e3):t}function Rr(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||It(Vt(e,0,1)))){var t=document.createElement("div");t.style.width=e;var n=!!t.style.width.length;return t.remove(),n}return!1}function Dr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Ht(o)||!bbn.var.regexp.ip.test(o))return!1}return!0}function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Symbol]"!=={}.toString.apply(o))return!1}return!0}function kr(e){var t=["BBN: "+e];t.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),Wt.apply(this,t)}function $r(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null);var r=new FormData,o=function(e,t){void 0===t&&(t=""),(!n||Yt(n)&&!n.includes(t))&&(e instanceof File?r.append(t,e):Yt(e)?Kt(e,(function(e,n){o(e,t+"["+n+"]")})):mn(e)&&Object.keys(e).length?Zt(e,(function(n,r){r in e&&o(n,t?t+"["+r+"]":r)})):pn(e)||void 0===e||r.append(t,e))};return o(e,t),r}function Lr(e){return"string"==typeof e?document.querySelector(e):e}function Cr(e,t,n,r){if("object"==typeof e&&"string"==typeof t){var o=e,i=t.split(".");Kt(i,(function(e,t){if(!o){if(!r)throw new Error(bbn._("The object is invalid"));o={}}i.length-1===t?o[e]=n:o=o[e]}))}}function Nr(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Pr(e,t){if(void 0===t&&(t=" ")," "===t)return e.trim();if(!t)return e;if(t===e)return"";for(;0===e.indexOf(t);)e=Vt(e,t.length);for(;e.lastIndexOf(t)===e.length-t.length;)e=Vt(e,0,e.length-t.length);return e}function Fr(e,t,n){return"string"==typeof e.toLowerCase()&&(t||(t=bbn.var.shortenLen),void 0!==n&&Ht(n)||(n="..."),e.length>t&&(e=Vt(e,0,t)+n)),e}var Br={_addLoader:sn,_compareValues:fn,_deleteLoader:jn,abort:function(e){var t=kn(e);(null==t?void 0:t.aborter)&&t.aborter.abort("Operation canceled by the user.")},abortURL:function(e){Kt($n(bbn.env.loaders,{url:e}),(function(t){if(!t||!t.source)throw new Error("Impossible to find the loader with URL "+e);t.source.cancel("Operation canceled by the user.")}))},addColors:Ln,addInputs:Cn,addStyle:function(e,t){mn(t)&&Zt(t,(function(t,n){e.style[n]=t}))},adjustHeight:function(){var e=arguments;return 1===e.length&&Ut(e[0])&&(e=e[0]),Nn("height",e)},adjustSize:Nn,adjustWidth:function(){var e=arguments;return 1===e.length&&Ut(e[0])&&(e=e[0]),Nn("width",e)},ajax:In,analyzeFunction:xn,animateCss:function(e,t,n){e.classList.add("animated"),e.classList.add(t),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function e(r){r.target.removeEventListener(r.type,e),"function"==typeof n&&n.call(this),r.target.classList.remove(t)}))},arrayBuffer2String:function(e){return String.fromCharCode.apply(null,new Uint16Array(e))},arrayFromProp:function(e,t){var n=[];return Kt(e,(function(e,r){n.push(un(e,t))})),n},autoExtend:function(e,t){bbn[e]||(bbn[e]={}),Yn(bbn[e],t)},baseName:Un,br2nl:function(e){return Fn("<br />","\n",Fn("<br/>","\n",Fn("<br>","\n",e)))},calendar:function(e,t){if(void 0===t&&(t=!1),void 0===it)return qn(e,t);var n=Hn(e);return ln(n)?it(n).calendar(null,{sameDay:"["+Wn("Today")+"]",nextDay:"["+Wn("Tomorrow")+"]",nextWeek:"ddd D",lastDay:"["+Wn("Yesterday")+"]",lastWeek:"ddd D",sameElse:"L"}):t&&Ht(t)?t:""},callback:Vn,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,(function(e,t,n,r){return n?n.toUpperCase():t.toLowerCase()}))},camelToCss:function(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})).replace("/^./",(function(e){return e.toLowerCase()}))},canvasToImage:function(e){var t=new Image;return t.src=e.toDataURL("image/png"),t},cast:function(e){var t;return e?"object"==typeof e?bbn.fn.isArray(e)?"Array ("+e.length+")":(null===(t=e.constructor)||void 0===t?void 0:t.name)||"{}":e.toString?e.toString():"string"==typeof e?e:"":""},center:function(e){for(var t=e.parentNode,n=t.clientWidth,r=t.clientHeight;t&&(!n||!r);)n=(t=e.parentNode).clientWidth,r=t.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+t.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+t.scrollLeft)+"px",e},checkProps:function(e,t,n){return void 0===n&&(n=!1),Jn(e,t,n).result},checkPropsDetails:Jn,checkPropsOrDie:function(e,t,n){void 0===n&&(n=!1);var r=Jn(e,t,n);if(r.error)throw new Error(r.error);return!0},checkType:Qt,circularReplacer:function(){var e=new WeakSet;return function(t,n){if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n),[void 0,Object,Array,null].includes(n.constructor)||(n=yn(n)?n.bbnId?"__BBN_DOM__"+n.tagName+"/"+n.bbnId+n.bbnHash:"__BBN_DOM__"+n.tagName+"/"+n.className:wn(n)?"__BBN_CP__"+n.$options.name+"/"+n.$cid:n.constructor.toString())}return n}},clone:Zn,colorToHex:function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle},compare:Mn,compareConditions:An,copy:function(e){return new Promise((function(t){var n;if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?navigator.clipboard.write([new ClipboardItem((n={},n[e.type.toString()]=e,n))]).then((function(){t(!0)})):mn(e)&&qt(e.toBlob)?e.toBlob((function(e){var n;navigator.clipboard.write([new ClipboardItem((n={},n[e.type.toString()]=e,n))]).then((function(){t(!0)}))})):(navigator.clipboard.writeText(e),t(!0)));var r=document.createElement("textarea");r.style.opacity="0",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),t(!0)}t(!1)}))},correctCase:Gt,count:function(e,t,n,r){return void 0===n&&(n=null),void 0===r&&(r="="),$n(e,t,n,r).length||0},crc32:function(e){for(var t=~0,n=0;n<e.length;n++){var r=e.charCodeAt(n);t=t>>>8^Kn[255&(t^r)]}return~t>>>0},createObject:tr,cssExists:function(e){for(var t,n,r=document.styleSheets,o=0;o<r.length;o++){t=1;try{n=r[o].rules||r[o].cssRules}catch(e){if(t=!1,"SecurityError"!==e.name)throw e}if(t)for(var i=0;i<n.length;i++)if(new RegExp("(^|\\s)"+Pn(e)+"(\\{|\\s)","g").test(n[i].selectorText))return!0}return!1},date:Hn,dateSQL:function(e,t){var n=Hn(e);if(n)return it(n).format("YYYY-MM-DD"+(t?"":" HH:mm:ss"))},daysInMonth:function(e){var t=Hn(e);return!!t&&dayjs(t).daysInMonth()},deepPath:function e(t,n,r,o){var i;return void 0===o&&(o=[]),(i=Rn(t,n,0))>-1?(o.push(i),o):(Kt(t,(function(t,i){if(Yt(t[r])){var a=o.slice();a.push(i);var s=e(t[r],n,r,a);if(!1!==s)return s}})),!1)},defaultAjaxAbortFunction:function(e,t){Wt(e)},defaultAjaxErrorFunction:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),Wt(t,n)},defaultAlertFunction:function(e,t){alert(e)},defaultConfirmFunction:function(e,t,n){void 0===n&&(n=null);var r=0;confirm(e)&&qt(t)&&(t(),r=1),!r&&qt(n)&&n()},defaultEndLoadingFunction:function(e,t,n,r){return!0},defaultErrorFunction:function(e){Wt(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,t){return!0},defaultPostLinkFunction:function(e,t){return!0},defaultPreLinkFunction:function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),Wt("defaultPreLinkFunction",e,t,n),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,t,n,r){return!0},deleteProp:function(e,t){Qt(e,"object",bbn._("The obj must be an object in setProp")),Qt(t,"string",bbn._("The prop must be a string in setProp")),delete e[t]},diffObj:function e(t,n,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1),o||(rr=[]);var i="unchanged";void 0===o&&(o=!1);var a=tr();if(!qt(t)&&!qt(n)){if(nr(t)||nr(n)){var s=function(e,t){return e===t||ln(e)&&ln(t)&&e.getTime()===t.getTime()?i:void 0===e?"created":void 0===t?"deleted":"updated"}(t,n);if(r||s!==i){var u=tr();return Object.defineProperty(u,"type",{value:s,enumerable:!1}),Object.defineProperty(u,"data",{value:void 0===t?n:t,enumerable:!1}),Object.defineProperty(u,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==t&&Object.defineProperty(u,"newData",{value:n,enumerable:!1}),u}return!1}if(yn(t)||yn(n))return!1;if(rr.includes(t)||rr.includes(n))return!1;for(var c in rr.push(t,n),t)if(!qt(t[c])){var l=void 0;void 0!==n[c]&&(l=n[c]),(s=e(t[c],l,r,!0))&&(a[c]=s)}for(var c in n){if(!qt(n[c])&&void 0===t[c])(s=e(void 0,n[c],r,!0))&&(a[c]=s)}}return!(o&&!r&&!dn(a))&&a},dirName:or,download:function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=null),t&&"object"==typeof t&&(n=t,t=""),In(e,"blob",n||{_bbn_download:1},(function(n,r){if(!t){var o="content-disposition",i="attachment; filename=";t=(null==r?void 0:r[o])&&0===r[o].indexOf(i)?Vt(r[o],22,r[o].length-21-2):Un(e)}if(ir(n)){var a=ar(t);if("string"==typeof t&&("type"in n&&"text/html"!==n.type||["php","html"].includes(a)))return void ur(t,n)}}),(function(e){bbn.fn.defaultAjaxErrorFunction(e)}))},downloadContent:ur,each:Kt,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:Xt,escapeDquotes:function(e){return Ht(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:Pn,escapeSquotes:function(e){return Ht(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return Ht(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,t){var n="";e.match("^(http|https)://")&&(n+="http","s"===(e=e.substring(4)).substr(0,1)&&(n+="s",e=e.substring(1)),n+="://",e=e.substring(3)),Kt(or(e).split("/"),(function(e){n+=encodeURIComponent(e)+"/"}));var r=Un(e),o="?",i="";if(r.indexOf(o)){var a=r.split("?");o="&",i="?"+a[1],r=a[0]}return t&&Ht(t)?(t.match("^(\\&|\\?)")&&(t=t.substring(1)),t=o+t):t="",n+encodeURIComponent(r)+i+t},extend:Yn,extendOut:function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=null,o=0,i=t;o<i.length;o++){var a=i[o];if(!mn(a))throw new Error("Each argument for extendOut must be an object, "+typeof a+" given");if(null===r)r=a;else for(var s in a)mn(r[s],a[s])?e(r[s],a[s]):void 0===r[s]&&(r[s]=a[s])}return r},fdate:qn,fdatetime:zn,fieldValue:cr,fileExt:ar,filter:$n,filterToConditions:Tn,findAll:function e(t,n,r,o){var i;void 0===o&&(o=[]);for(var a=0;(i=Rn(t,n,a))>-1;)o.push(t[i]),a=i+1;return Kt(t,(function(t){Yt(t[r])&&e(t[r],n,r,o)})),o},firstVarElement:function(e){var t=e.indexOf("["),n=e.indexOf(".");return-1===t&&-1===n?e:-1===t?e.substring(0,n):-1===n?e.substring(0,t):e.substring(0,Math.min(t,n))},fori:function(e,t,n,r){if(void 0===n&&(n=e.length-1),void 0===r&&(r=0),Yt(e)){var o=e.length-1;It(n)&&0<n&&n<=o||(n=o),(!It(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(var i=r;i<=n;i++)if(!1===t(e[i],i))return}},forir:function(e,t,n,r){if(void 0===n&&(n=e.length-1),void 0===r&&(r=0),Yt(e)){var o=e.length-1;It(n)&&0<n&&n<=o||(n=o),(!It(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(var i=n;i>=r;i--)if(!1===t(e[i],i))return}},format:function(e){var t=Array.prototype.slice.call(arguments,1);if(t.length){var n=0;return e.replace(/\%([d|s])/g,(function(e,r){var o=t[n++];return Qt(o,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),o}))}return e},formatBytes:function(e,t){if(void 0===t&&(t=2),!e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},formatDate:function(e,t){return dayjs(e).format(t)},formatSize:function(e,t){return It(e)?e+"px":Ht(e)?e:!t&&"auto"},formdata:lr,fromXml:function(e,t){var n=null;if(window.DOMParser)n=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if((n=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!n.loadXML(e))throw n.parseError.reason+" "+n.parseError.srcText}function r(e,n){if("#text"!=e.nodeName){var o={},i=n[e.nodeName];if(i?Array.isArray(i)?n[e.nodeName].push(o):n[e.nodeName]=[i,o]:t&&-1!=t.indexOf(e.nodeName)?n[e.nodeName]=[o]:n[e.nodeName]=o,e.attributes)for(var a=0,s=e.attributes;a<s.length;a++){var u=s[a];o[u.nodeName]=u.nodeValue}for(var c=0,l=e.childNodes;c<l.length;c++){r(l[c],o)}}else{var f=e.nodeValue;f.trim()&&(n["#text"]=f)}}for(var o={},i=0,a=n.childNodes;i<a.length;i++){r(a[i],o)}return o},ftime:function(e,t){var n=Hn(e);return ln(n)?void 0!==dayjs?dayjs(n).calendar():n.toLocaleDateString():t&&Ht(t)?t:""},getAllTags:function(){return fr(Array.prototype.map.apply(document.all,[function(e){return e.tagName.toLowerCase()}]))},getAncestors:dr,getAttributes:function(e){e.getAttributeNames||Xt("The element is not a proper HTML Element");var t=Object.create(null);return e.getAttributeNames().forEach((function(n){t[n]=e.getAttribute(n)})),t},getBrowserName:function(){var e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge"):case e.includes("edg/"):return"Edge";case e.includes("opr")&&!!window.opr:return"Opera";case e.includes("chrome")&&!!window.chrome:return"Chrome";case e.includes("trident"):return"Internet Explorer";case e.includes("firefox"):return"Firefox";case e.includes("safari"):return"Safari";default:return"Other"}},getBrowserVersion:function(){var e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge/"):return e.split("edge/")[1].split(" ")[0];case e.includes("edg/"):return e.split("edg/")[1].split(" ")[0];case e.includes("opr/")&&!!window.opr:return e.split("opr/")[1].split(" ")[0];case e.includes("chrome/")&&!!window.chrome:return e.split("chrome/")[1].split(" ")[0];case e.includes("trident/"):return e.split("trident/")[1].split(" ")[0];case e.includes("firefox/"):return e.split("firefox/")[1].split(" ")[0];case e.includes("safari/"):return e.split("version/")[1].split(" ")[0];default:return""}},getCookie:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t)){var i=o.substring(t.length,o.length);if(i)return JSON.parse(unescape(i)).value}}return null},getCssVar:hr,getDay:function(e){var t=Hn(e);if(t){var n=t.getTime(),r=t.getYear(),o=365*(r-1970);t.getMonth()<2&&r--;for(var i=1972;i<=r;i+=4)o++;return o+Math.floor(n/864e5)}return!1},getDeviceType:pr,getEventData:function(e){var t=e.dataTransfer||e.clipboardData,n=t.getData("Text"),r={raw:n,files:[],str:[]};return new Promise((function(o,i){var a=!(t instanceof DataTransfer);if(!n&&"copy"===e.type){var s=window.getSelection();r.raw=s.toString();var u=mr();r.str.push({type:"text/plain",data:r.raw}),u!==r.raw?r.str.push({type:"text/html",data:u}):0===r.raw.trim().indexOf("<")&&r.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+r.raw+"\n</code>"}),a=!0,o(r)}if(!a){var c=[],l=t.items.length;Kt(t.items,(function(e,n){var i=e.kind,s=e.type;if("file"===i){var u=t.files[n];if(!s&&u.name){var f=u.name.split(".");s=f[f.length-1]}var d=u?u.name:bbn._("untitled"),h=u?u.size:null,p=u?u.lastModified:null,m=e.getAsFile();m?(a=!0,l--,r.files.push({type:s,data:m,name:d,size:h,mdate:p}),c.push(d),l||(r.raw||(r.raw=c.join(", ")),o(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+d)}else a=!0,e.getAsString((function(e){l--,r.str.push({type:s,data:e}),"text/plain"===s&&c.push(name),l||(r.raw||(r.raw=c.join(", ")),o(r))}))}))}a||setTimeout((function(){o(r)}))}))},getField:function(e,t,n,r,o){var i;if(void 0===n&&(n=""),void 0===r&&(r=null),void 0===o&&(o="="),t&&(i=Dn(e,n,r,o)))return i[t]},getFieldValues:function(e,t,n,r,o){Qt(t,"string"),n&&(e=$n(e,n,r,o));var i=[];return Kt(e,(function(e){return-1===i.indexOf(e[t])?i.push(e[t]):null})),i},getHtml:function(e,t){void 0===t&&(t=!1);var n=e.innerHTML();return t&&(n=br(n)),n.trim()},getHTMLOfSelection:mr,getLoader:kn,getPath:function(e){for(var t,n=e,r=0,o=function(){var e=n,o=e.localName;if(!o)return"break";if(e===document.body)return"break";if(e.id)return{value:"#"+e.id};r||(e.className&&" "!==e.className&&(o+="."+Fn(" ",".",Fn(" "," ",e.className))),r=1);var i=n.parentNode;if(i.children.filter((function(e){return e.tagName===o})).length>1){var a=i.children.indexOf(e)+1;a>1&&(o+=":nth-child("+a+")")}t=o+(t?">"+t:""),n=i};n.length;){var i=o();if("object"==typeof i)return i.value;if("break"===i)break}return t},getProp:function(e,t){return Qt(e,"object",bbn._("The obj must be an object in setProp")),Qt(t,"string",bbn._("The prop must be a string in setProp")),e[t]},getProperty:un,getRequestId:Bn,getRow:Dn,getScrollBarSize:function(){if(void 0===bbn.env.scrollBarSize){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;e.parentNode.removeChild(e);var o=t-r;bbn.env.scrollBarSize=o?o+1:0}return bbn.env.scrollBarSize},getText:function(e){return e.innerText().trim()},getTimeoff:function(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)},happy:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),Wt.apply(this,e),this},hash:Sn,hex2rgb:function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},history:function(){return window.history||!1},html2text:vr,imageToCanvas:gr,imgToBase64:function(e,t){return void 0===t&&(t="image/png"),gr(e).toDataURL(t)},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),Wt.apply(this,e),this},init:function(e,t){bbn.env.isInit&&!t||(bbn.env.root=document.baseURI.length>0?document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==Vt(bbn.env.root,-1)&&(bbn.env.root+="/"),bbn.env.isInit||"undefined"==typeof dayjs||Kt(["advancedFormat","arraySupport","badMutable","buddhistEra","calendar","customParseFormat","dayOfYear","devHelper","duration","isBetween","isLeapYear","isSameOrAfter","isSameOrBefore","isToday","isTomorrow","isYesterday","isoWeek","isoWeeksInYear","localeData","localizedFormat","minMax","objectSupport","pluralGetSet","quarterOfYear","relativeTime","timezone","toArray","toObject","updateLocale","utc","weekOfYear","weekYear","weekday"],(function(e){window["dayjs_plugin_"+e]&&dayjs.extend(window["dayjs_plugin_"+e])})),"object"==typeof e&&Yn(!0,bbn,e),bbn.env.path=Vt(bbn.env.url,bbn.env.root.length),Kt(bbn.env.path.split("/"),(function(e,t){""!==(e=decodeURI(e.trim()))&&bbn.env.params.push(e)})),bbn.var.colors&&Ln(bbn.var.colors),bbn.env.lang&&void 0!==dayjs&&Promise.resolve().then((function(){return Ir})).then((function(){dayjs.locale(bbn.env.lang)})),document.addEventListener("focusin",(function(e){e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.last_focus=Tr()})),document.addEventListener("click",(function(e){if(bbn.env.last_focus=Tr(),"ajax"===bbn.env.nav){var t=e.target;if(t instanceof HTMLElement&&"A"!==t.tagName){for(var n=t;n&&"A"!==n.tagName&&"BODY"!==n.tagName;)n=n.parentElement;t=n&&"A"===n.tagName?n:null}return t instanceof HTMLElement&&t.hasAttribute("href")&&!t.hasAttribute("target")&&!t.classList.contains("bbn-no")?(e.preventDefault(),e.stopPropagation(),_r(t.getAttribute("href")),!1):void 0}})),Kt(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"),(function(e){e.addEventListener("submit",(function(t){Or(e,t)}))})),window.addEventListener("hashchange",(function(){bbn.env.hashChanged=(new Date).getTime()}),!1),window.addEventListener("resize",(function(){xr()})),window.addEventListener("orientationchange",(function(){xr()})),xr(),Ar()&&(document.body.classList.add("bbn-mobile"),Mr()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){var t=window.history;if(!bbn.env.historyDisabled&&t&&bbn.fn.defaultHistoryFunction(t.state)){var n=t.state;n?_r(n.url,Yn({title:n.title||bbn.env.siteTitle},n.data||{})):n&&n.data&&qt(n.data.script)&&n.data.script()}}),bbn.env.isInit=!0,document.dispatchEvent(new Event("bbninit")),bbn.env.logging&&Wt("Logging in bbn is enabled"))},isActiveInterface:function(e){return void 0===e&&(e=600),!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:Yt,isBlob:ir,isBoolean:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(![!0,!1].includes(o))return!1}return!0},isCanvas:sr,isColor:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=new RegExp("^(#[a-f0-9]{6}|#[a-f0-9]{3}|rgb *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|rgba *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|black|green|silver|gray|olive|white|yellow|maroon|navy|red|blue|purple|teal|fuchsia|aqua)$","i"),r=0,o=e;r<o.length;r++){var i=o[r];if(!Ht(i))return!1;if(!n.test(i))return!1}return!0},isComment:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof Comment))return!1}return!0},isCp:wn,isDate:ln,isDesktopDevice:function(){return"desktop"===pr()},isDimension:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("number"!=typeof o||o<0)return!1;if(!Rr(o))return!1}return!0},isDom:yn,isEmail:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,r=0,o=e;r<o.length;r++){var i=o[r];if(!Ht(i))return!1;if(!n.test(i))return!1}return!0},isEmpty:hn,isEvent:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof Event))return!1}return!0},isFocused:function(e,t){return void 0===t&&(t=!1),e===document.activeElement||t&&e.contains&&e.contains(document.activeElement)},isFunction:qt,isHex:function(e){return Boolean(e.match(/^0x[0-9a-f]+$/i))},isHostname:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Ht(o))return!1;if(!Dr(o)&&!bbn.var.regexp.hostname.test(o))return!1}return!0},isInside:function(e,t){var n=dr(e);if(n.length){if(Ht(t)){var r=!1;return Kt(n,(function(e){if(e.matches&&e.matches(t))return r=!0,!1})),r}if(t instanceof HTMLElement)return n.indexOf(t)>-1}return!1},isInt:zt,isInViewport:function(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();if(t)return n.top>=0&&n.left>=0&&n.right<=(window.innerWidth||document.documentElement.clientWidth)&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight);var r=e.offsetHeight,o=e.offsetWidth;return n.top>=-r&&n.left>=-o&&n.right<=(window.innerWidth||document.documentElement.clientWidth)+o&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:Dr,isIterable:Ut,isMobile:Ar,isMobileDevice:Er,isNull:pn,isNumber:It,isObject:mn,isPercent:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("string"!=typeof o||!o.match(/^\d+(?:\.\d+)?%$/))return!1}return!0},isPrimitive:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(null!==o&&("object"==typeof o||"function"==typeof o))return!1}return!0},isPromise:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Promise]"!=={}.toString.apply(o))return!1}return!0},isPropSize:function(e){var t=!1;return Kt(["width","height","gap","margin","padding","top","left","right","bottom"],(function(n){if(-1!==e.indexOf(n))return t=!0,!1})),t},isSame:En,isSQLDate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("string"!=typeof o||!o.match(/^([1-2]\d{3})-((0\d)|(1[12]))-(([0-2]\d)|(3[01]))(?:( [0-2]\d):([0-5]\d):([0-5]\d))?$/))return!1}return!0},isString:Ht,isSymbol:jr,isTabletDevice:Mr,isURL:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!bbn.var.regexp.url.test(o))return!1}return!0},isValidDimension:Rr,isValidName:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Ht(o)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(o))return!1}return!0},isValue:nr,isVue:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue)for(var r=0,o=t;r<o.length;r++){if(!(s=o[r])||"function"!=typeof s.render)return!1}else for(var i=0,a=t;i<a.length;i++){var s;if(!((s=a[i])instanceof window.Vue))return!1}return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||(e=bbn.cp).isComponent.apply(e,t)},isWritable:function(e,t){for(var n;e&&!(n=Object.getOwnPropertyDescriptor(e,t));)e=Object.getPrototypeOf(e);return!n||Boolean(n.writable||n.set)},iterate:Zt,lightenDarkenHex:function(e,t){if(e&&t){var n="#"===e[0];e=n?e.slice(1):e;var r=parseInt(e,16),o=(r>>16)+t,i=(r>>8&255)+t,a=(255&r)+t;return o>255?o=255:o<0&&(o=0),i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),(n?"#":"")+(a|i<<8|o<<16).toString(16)}},link:_r,log:Wt,makeReactive:function e(t,n,r,o){var i=(null==r?void 0:r.$cid)||"",a="__bbn_"+(i?i+"_":"");if(t&&"object"==typeof t&&[void 0,Object,Array].includes(t.constructor)){if(t.__bbnIsProxy&&t.__bbnParent===r)return t;r&&r.$options&&"bbn-loadbar"===r.$options.name&&Wt(["MAKING bbn-loadbar",t]),t.__bbnWatchers||Reflect.defineProperty(t,"__bbnWatchers",{value:tr(),writable:!0,configurable:!0,enumerable:!1});var s={get:function(s,u){var c=Reflect.get(s,u),l=s.__bbnRoot||s;if(jr(u))return Reflect.get(l,u);var f=o?o+"."+u:u,d=a+(It(u)?u.toString():u);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(u)&&Yt(s))return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=l[u].apply(l,e);return kr("DOING ARRAY STUFF"),Wt(s.__bbnParent),n(s,"length",r),o};if(qt(c))return c;if("__bbnRoot"===u){for(var h=t;h&&(null==h?void 0:h.__bbnTarget);)h=h.__bbnTarget;return h}return"__bbnIsProxy"===u||("__bbnTarget"===u?s:"__bbnParent"===u?r:"__bbnWatchers"===u?s.__bbnWatchers:0===u.indexOf("__bbn_")?Reflect.get(s,u):"length"===u&&Yt(s.__bbnRoot||s)?l.length:u in s&&c&&"object"==typeof c&&[void 0,Object,Array].includes(c.constructor)?(c.__bbnIsProxy&&c.__bbnParent===r||(d in l||Reflect.defineProperty(l,d,{value:e(c,n,r,f),writable:!0,configurable:!0,enumerable:!1}),l[d].__bbnIsProxy&&!l.__bbnWatchers[i]&&(l.__bbnWatchers[i]=f)),l[d]):c)},set:function(t,s,u){if(jr(s))return Reflect.get(t,s,u);var c=t.__bbnRoot||t,l=o?o+"."+s:s;if(jr(s))return Reflect.get(t,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&Wt(["Setting proxy prop in "+r.$options.name,t,s,u]),!En(c[s],u)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(c,s,{value:e(u,n,r,l),writable:!0,configurable:!0,enumerable:!1});else if(u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)){var f=a+(It(s)?s.toString():s);Reflect.defineProperty(c,f,{value:e(u,n,r,l),writable:!0,configurable:!0,enumerable:!1}),c[f].__bbnIsProxy&&!c.__bbnWatchers[i]&&(c.__bbnWatchers[i]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&Wt(["Setting proxy prop in "+r.$options.name+" "+(It(s)?s.toString():s),u,t]),Reflect.set(c,s,u),n(t,s,r)}return!0},defineProperty:function(t,i,s){var u=t,c=o?o+"."+i:i;if("__bbnWatchers"===i||jr(i)||0===i.indexOf("__bbn_"))Reflect.defineProperty(u,i,s);else{var l=a+(It(i)?i.toString():i);Reflect.defineProperty(u,l,{value:e(s.value,n,r,c),writable:!0,configurable:!0,enumerable:!1})}return n(t,i,r),!0},deleteProperty:function(e,t){var n=e;if(0===t.indexOf("__bbn_"))Reflect.deleteProperty(n,t);else{var r=a+(It(t)?t.toString():t);Reflect.deleteProperty(n,r),Reflect.deleteProperty(e,t)}return!0}};return new Proxy(t,s)}return t},map:function e(t,n,r,o){return void 0===o&&(o=0),t.map((function(t,i){return t=n(t,i,o),r&&t[r]&&Yt(t[r])&&(t[r]=e(t[r],n,r,o+1)),t}))},md5:On,microtimestamp:function(){return window.performance.now()+performance.timeOrigin},money:function(e,t,n,r,o,i,a){if(o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),n||(n=void 0===n&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),t||(t=!(void 0!==t||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),r||(r=!(void 0!==r||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),It(a)||(a=t?3:0),0===e&&"number"==typeof a&&a>0){var s=e.toFixed(a).replace(".",o);return n&&(s+=" "+(t?"K"+n:n)),s}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(n?" "+n:"");t&&e&&(e/=1e3,n&&(n="K"+n));var u=e.toFixed(a),c=0,l=1e4;return u&&((l=u.indexOf("."))<=0?l=1e4:c=u.length-l),u.replace(/./g,(function(e,t,n){return"."===e?o:t&&(n.length-t-c)%3==0&&t<l?i+e:e}))+(n?" "+n:"")},move:function(e,t,n){if(n>=e.length)for(var r=n-e.length;1+r--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e},multiorder:function(e,t){if(!t)return e;var n;if(Array.isArray(t)||"object"!=typeof t)n=t;else for(var r in n=[],t)n.push({field:r,dir:t[r]});if(!Array.isArray(n))throw new Error("The orders argument must be an array");return e.slice().sort((function(e,t){for(var r,o=0,i=n;o<i.length;o++){var a=i[o];if(0!==(r=fn(e,t,a.field,a.dir)))return r}return 0}))},mutateArray:function(e,t,n){if(void 0===n&&(n=null),!Yt(e,t))throw new TypeError("mutateArray can only be called with arrays");n?Qt(n,"function","The hash function must be a function"):n=Sn;var r=new Map(t.map((function(e){return[n(e),e]}))),o=[];t.forEach((function(e){o.push(e)}));for(var i=e.length;i--;)r.has(n(e[i]))||e.splice(i,1);for(var a=0;a<o.length;a++)if(a>=e.length||!En(e[a],o[a])){var s=Rn(e,o[a]);if(-1!==s){var u=e.splice(s,1)[0];e.splice(a,0,u)}else e.splice(a,0,o[a])}return e.length>o.length&&e.splice(o.length,e.length-o.length),e},mutateObject:function(e,t,n){if(!mn(e,t))throw new TypeError("mutateObject can only be called with arrays");n?Qt(n,"function","The hash function must be a function"):n=Sn;var r=Object.keys(t);for(var o in e)r.includes(o)||delete e[o];return r.forEach((function(n){En(e[n],t[n])||(e[n]=t[n])})),e},nl2br:function(e,t){return Fn("\n","<br>"+(t?"\n":""),e)},numProperties:dn,objectToFormData:$r,order:function(e,t,n){return void 0===n&&(n="asc"),e?e.sort((function(e,r){return fn(e,r,t,n)})):e},outerHeight:function(e){if((e=Lr(e))&&"offsetHeight"in e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+n)}},outerWidth:function(e){e=Lr(e);var t=window.getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+n)},percent:function(e,t){return t/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:Sr,postOut:function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r="");var o=document.body.querySelector("form#bbn-form_out");o||((o=document.createElement("form")).classList.add("bbn-no"),o.setAttribute("id","bbn-form_out"),o.setAttribute("method","post"),o.setAttribute("enctype","multipart/form-data-encoded"),Cr(o,"style.display","none"),document.body.appendChild(o)),o instanceof HTMLFormElement&&(o.innerHTML="",o.setAttribute("action",e),o.setAttribute("target",r||"_blank"),t||(t={}),(t=tr(t)).bbn||(t.bbn="public"),Cn(o,t),o.submit(),n&&n())},printf:function(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))},quotes2html:function(e,t){return t&&0!==t.toLowerCase().indexOf("s")||(e=Fn("'","'",e)),t&&0!==t.toLowerCase().indexOf("d")||(e=Fn('"',""",e)),e},randomInt:Nr,randomString:function(e,t,n){var r,o,i={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};n||(n="nlu"),e||(r=Nr(8,14)),"string"==typeof t?(n="n",delete i.l,delete i.u,i.n=t,r||(r=e)):"number"==typeof t&&e<t?r=Nr(e,t):e&&(r=e);for(var a="",s=0;s<r;s++)0===s?"n"!==n&&(o=-1===n.indexOf("u")?"l":"u"):o=n[Math.floor(Math.random()*n.length)],a+=i[o][Math.floor(Math.random()*i[o].length)];return a},removeAccents:cn,removeEmpty:function(e){var t=[];if(Yt(e))for(var n=0;n<e.length;n++){var r=!1;e[n]&&(Yt(e[n])?e[n].length&&(r=!0):mn(e[n])?dn(e[n])&&(r=!0):r=!0),r&&t.push(e[n])}return t},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:br,removePrivateProp:Jt,removeTrailingChars:function(e,t){if(t||(t=" "),t.length){for(;Vt(e,-t.length)===t;)e=Vt(e,0,e.length-t.length);for(;Vt(e,0,t.length)===t;)e=Vt(e,t.length)}return e},repeat:function(e,t){return e.repeat(t)},replaceAll:Fn,replaceSelection:function(e,t){var n,r,o;if((n=window.getSelection()).getRangeAt&&n.rangeCount){if((r=window.getSelection().getRangeAt(0)).deleteContents(),r.createContextualFragment)o=r.createContextualFragment(e);else{var i=document.createElement("div"),a=void 0;for(i.innerHTML=e,o=document.createDocumentFragment();a=i.firstChild;)o.appendChild(a)}var s=o.firstChild,u=o.lastChild;r.insertNode(o),n.removeAllRanges(),t?(s&&(r.setStartBefore(s),r.setEndAfter(u)),n.addRange(r)):(r.setStartAfter(u),n.addRange(r))}},resize:xr,rgb2hex:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},riterate:function(e,t,n){return void 0===n&&(n=!1),Zt(e,t,n,!0)},roundDecimal:function(e,t){return Number(Math.round(parseFloat(e+"e"+t+"e-"+t)))},sanitize:function(e,t){void 0===t&&(t="_");for(var n=["[","]","{","}","(",")","-","+","*","/"],r="[",o=0;o<t.length;o++)n.includes(t[o])&&(r+="\\"),r+=t[o];r+="]+";var i=new RegExp(r,"g");return Pr(cn(e).replace(/[^a-z0-9]/gi,t).replace(i,t),t)},search:Rn,selectElementText:function(e,t){if(void 0===t&&(t=null),t=t||window,e instanceof HTMLInputElement)e.select();else{var n,r,o=t.document;t.getSelection&&o.createRange?(n=t.getSelection(),(r=o.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(r)):"createTextRange"in o.body&&"function"==typeof o.body.createTextRange&&((r=o.body.createTextRange()).moveToElementText(e),r.select())}},selector:Lr,setCookie:function(e,t,n){var r="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),r="; expires="+o.toUTCString()}var i=escape(JSON.stringify({value:t}));document.cookie=e+"="+i+r+"; path=/"},setCssVar:function(e,t){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,t)},setNavigationVars:wr,setProp:function(e,t,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!0),Object.defineProperty(e,t,{value:n,writable:r,configurable:o})},setProperty:Cr,shorten:Fr,shortenObj:function e(t,n){void 0===n&&(n=100);var r=Zn(t);return Kt(r,(function(t,o){Ht(t)&&t.length>n?r[o]=Fr(t,n):t&&"object"==typeof t&&(r[o]=e(t))})),r},shuffle:function(e){for(var t,n,r=e.length;0!=r;)n=Math.floor(Math.random()*r),r--,t=[e[n],e[r]],e[r]=t[0],e[n]=t[1];return e},simpleHash:gn,simpleHash1:bn,simpleHash2:vn,startChrono:function(e){var t=bbn.fn.microtimestamp();this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=t},stopChrono:function(e){if(this.constructor.chronos[e||"default"]){var t=bbn.fn.microtimestamp()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],t}throw Error("No chrono with name "+(e||"default"))},string2ArrayBuffer:function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),r=0,o=e.length;r<o;r++)n[r]=e.charCodeAt(r);return t},submit:Or,substr:Vt,sum:function(e,t,n,r,o){var i=0;return Kt($n(e,n,r,o),(function(e){var n="function"==typeof t?t(e):e[t];n&&(i+=parseFloat(n)||0)})),i},timestamp:Tr,toCSV:function(e,t,n,r){void 0===t&&(t=","),void 0===n&&(n=""),void 0===r&&(r='"'),t||(t=","),r||(r='"');var o="",i=e.length;return Kt(e,(function(e,a){var s=Yt(e)?e.length:Object.values(e).length,u=0;Kt(e,(function(e){o+="string"==typeof e?r+Fn(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,++u<s&&(o+=t)})),a<i-1&&(o+=n+"\n")})),o},toggleFullScreen:function(){"mozRequestFullScreen"in window.document.documentElement?window.document.mozFullScreen?window.document.mozCancelFullScreen():"function"==typeof window.document.documentElement.mozRequestFullScreen&&window.document.documentElement.mozRequestFullScreen():"webkitRequestFullScreen"in window.document.documentElement?window.document.webkitIsFullScreen?window.document.webkitCancelFullScreen():"function"==typeof window.document.documentElement.webkitRequestFullScreen&&window.document.documentElement.webkitRequestFullScreen():"msRequestFullScreen"in window.document.documentElement?window.document.msFullscreenEnabled?window.document.msExitFullscreen():"function"==typeof window.document.documentElement.msRequestFullScreen&&window.document.documentElement.msRequestFullScreen():"requestFullscreen"in window.document&&(window.document.fullscreenEnabled?window.document.exitFullscreen():window.document.documentElement.requestFullscreen()),setTimeout((function(){xr()}),0)},translate:function(e,t){var n=t?bbn.lng[0===t.indexOf("_")?t:"_"+t]:bbn.lng;Zt(e,(function(e,t){n[t]=e}))},treatAjaxArguments:yr,treatForHash:_n,trim:Pr,uniqString:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=function(){if(e[o])if("object"==typeof e[o])if(Yt(e[o]))n+=JSON.stringify(e[o]);else{var t={};Kt(Object.keys(e[o]).sort(),(function(n){t[n]=e[o][n]})),n+=JSON.stringify(t)}else"string"!=typeof e[o]?n+=e[o].toString():n+=e[o];else n+="__bbn_empty__"},o=0;o<e.length;o++)r();return On(n)},unique:fr,upload:function(e,t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null);var i=function(){return axios.post(e||bbn.env.path,$r(t),{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){if(o){var t=Math.round(100*e.loaded/e.total);o(t,e.loaded,e.total)}}})};return n||r?i().then((function(e){n&&(Wt("SUCCESS",e),n(e))})).catch((function(e){r&&(Wt("ERROR",e),r(e))})):i()},warning:kr};it.extend(st),it.extend(ct),it.extend(ft),it.extend(ht),it.extend(mt),it.extend(vt),it.extend(yt),it.extend(_t),it.extend(Ot),it.extend(Et),it.extend(At),it.extend(Rt),it.extend(jt),it.extend($t),it.extend(Ct),it.extend(Pt),it.extend(Bt);var Yr={version:"1.0.1",opt:{_cat:{}},app:{},_:en,$:function(e,t){if(null==t?void 0:t.querySelectorAll)return t.querySelectorAll(e);if(t)throw new Error("Invalid context");return document.body.querySelectorAll(e)},lng:{select_unselect_all:"Select/Clear all",select_all:"Select all",search:"Search",loading:"Loading...",choose:"Choose",error:"Error",server_response:"Server response",reload:"Reload",errorText:"Something went wrong",closeAll:"Close all",closeOthers:"Close others",pin:"Pin",arrange:"Arrange",cancel:"Cancel",unpin:"Unpin",yes:"Yes",no:"No",unknown:"Unknown",untitled:"Untitled",confirmation:"Confirmation",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},var:tn,env:nn,db:an,fn:Br};"undefined"!=typeof window&&(window.axios=tt,window.dayjs=it,window.bbn=Yr);!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return n.default.locale(r,null,!0),r}(ot)}({exports:{}});var Ir=Object.freeze({__proto__:null});return e.axios=tt,e.bbn=Yr,e.dayjs=it,e.default=Yr,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
2
2
|
//# sourceMappingURL=bbn.js.map
|