| Current File : /home/digitaw/www/wp-content/plugins/webp-converter-for-media/assets/build/js/scripts.js |
/*! For license information please see scripts.js.LICENSE.txt */
!function(){var t,e={251:function(t,e){e.read=function(t,e,r,n,s){var i,o,a=8*s-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?s-1:0,f=r?-1:1,p=t[e+h];for(h+=f,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+t[e+h],h+=f,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=n;l>0;o=256*o+t[e+h],h+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=c}return(p?-1:1)*o*Math.pow(2,i-n)},e.write=function(t,e,r,n,s,i){var o,a,u,c=8*i-s-1,l=(1<<c)-1,h=l>>1,f=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=l?(a=0,o=l):o+h>=1?(a=(e*u-1)*Math.pow(2,s),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;t[r+p]=255&a,p+=d,a/=256,s-=8);for(o=o<<s|a,c+=s;c>0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},287:function(t,e,r){"use strict";var n=r(526),s=r(251),i=r(634);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(e,r);t=a(t,n);var s=t.write(e,r);s!==n&&(t=t.slice(0,s));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=a(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?a(t,0):f(t,e);if("Buffer"===e.type&&i(e.data))return f(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(l(e),t=a(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function f(t,e){var r=e.length<0?0:0|p(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return M(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(n)return M(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return R(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return P(this,e,r);case"base64":return T(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function _(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,s){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=s?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(s)return-1;r=t.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,s);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,s);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,s){var i,o=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(s){var l=-1;for(i=r;i<a;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*o}else-1!==l&&(i-=i-l),l=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var h=!0,f=0;f<u;f++)if(c(t,i+f)!==c(e,f)){h=!1;break}if(h)return i}return-1}function y(t,e,r,n){r=Number(r)||0;var s=t.length-r;n?(n=Number(n))>s&&(n=s):n=s;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o<n;++o){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))return o;t[r+o]=a}return o}function w(t,e,r,n){return Y(M(e,t.length-r),t,r,n)}function v(t,e,r,n){return Y(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function E(t,e,r,n){return v(t,e,r,n)}function A(t,e,r,n){return Y(z(e),t,r,n)}function S(t,e,r,n){return Y(function(t,e){for(var r,n,s,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,s=r%256,i.push(s),i.push(n);return i}(e,t.length-r),t,r,n)}function T(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function R(t,e,r){r=Math.min(t.length,r);for(var n=[],s=e;s<r;){var i,o,a,u,c=t[s],l=null,h=c>239?4:c>223?3:c>191?2:1;if(s+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[s+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[s+1],o=t[s+2],128==(192&i)&&128==(192&o)&&(u=(15&c)<<12|(63&i)<<6|63&o)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[s+1],o=t[s+2],a=t[s+3],128==(192&i)&&128==(192&o)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),s+=h}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=O));return r}(n)}e.hp=u,e.IS=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),o(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return l(e),e<=0?a(t,e):void 0!==r?"string"==typeof n?a(t,e).fill(r,n):a(t,e).fill(r):a(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,s=0,i=Math.min(r,n);s<i;++s)if(t[s]!==e[s]){r=t[s],n=e[s];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),s=0;for(r=0;r<t.length;++r){var o=t[r];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)_(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?R(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.IS;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,s){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||r>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=r)return 0;if(n>=s)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(s>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),a=Math.min(i,o),c=this.slice(n,s),l=t.slice(e,r),h=0;h<a;++h)if(c[h]!==l[h]){i=c[h],o=l[h];break}return i<o?-1:o<i?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var s=this.length-e;if((void 0===r||r>s)&&(r=s),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return y(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return v(this,t,e,r);case"latin1":case"binary":return E(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function x(t,e,r){var n="";r=Math.min(t.length,r);for(var s=e;s<r;++s)n+=String.fromCharCode(127&t[s]);return n}function P(t,e,r){var n="";r=Math.min(t.length,r);for(var s=e;s<r;++s)n+=String.fromCharCode(t[s]);return n}function B(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var s="",i=e;i<r;++i)s+=I(t[i]);return s}function U(t,e,r){for(var n=t.slice(e,r),s="",i=0;i<n.length;i+=2)s+=String.fromCharCode(n[i]+256*n[i+1]);return s}function C(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,s,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function k(t,e,r,n){e<0&&(e=65535+e+1);for(var s=0,i=Math.min(t.length-r,2);s<i;++s)t[r+s]=(e&255<<8*(n?s:1-s))>>>8*(n?s:1-s)}function j(t,e,r,n){e<0&&(e=4294967295+e+1);for(var s=0,i=Math.min(t.length-r,4);s<i;++s)t[r+s]=e>>>8*(n?s:3-s)&255}function N(t,e,r,n,s,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(t,e,r,n,i){return i||N(t,0,r,4),s.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,i){return i||N(t,0,r,8),s.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var s=e-t;r=new u(s,void 0);for(var i=0;i<s;++i)r[i]=this[i+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t],s=1,i=0;++i<e&&(s*=256);)n+=this[t+i]*s;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t+--e],s=1;e>0&&(s*=256);)n+=this[t+--e]*s;return n},u.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t],s=1,i=0;++i<e&&(s*=256);)n+=this[t+i]*s;return n>=(s*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=e,s=1,i=this[t+--n];n>0&&(s*=256);)i+=this[t+--n]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),s.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),s.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),s.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),s.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var s=1,i=0;for(this[e]=255&t;++i<r&&(s*=256);)this[e+i]=t/s&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var s=r-1,i=1;for(this[e+s]=255&t;--s>=0&&(i*=256);)this[e+s]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*r-1);L(this,t,e,r,s-1,-s)}var i=0,o=1,a=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/o|0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*r-1);L(this,t,e,r,s-1,-s)}var i=r-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o|0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return q(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return q(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var s,i=n-r;if(this===t&&r<e&&e<n)for(s=i-1;s>=0;--s)t[s+e]=this[s+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(s=0;s<i;++s)t[s+e]=this[s+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var s=t.charCodeAt(0);s<256&&(t=s)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=u.isBuffer(t)?t:M(new u(t,n).toString()),a=o.length;for(i=0;i<r-e;++i)this[i+e]=o[i%a]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function I(t){return t<16?"0"+t.toString(16):t.toString(16)}function M(t,e){var r;e=e||1/0;for(var n=t.length,s=null,i=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!s){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(e-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){for(var s=0;s<n&&!(s+r>=e.length||s>=t.length);++s)e[s+r]=t[s];return s}},526:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=a(t),o=i[0],u=i[1],c=new s(function(t,e,r){return 3*(e+r)/4-r}(0,o,u)),l=0,h=u>0?o-4:o;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e);1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,s=n%3,i=[],o=16383,a=0,c=n-s;a<c;a+=o)i.push(u(t,a,a+o>c?c:a+o));1===s?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===s&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=i[o],n[i.charCodeAt(o)]=o;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var s,i,o=[],a=e;a<n;a+=3)s=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(r[(i=s)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},538:function(t,e,r){"use strict";var n={};function s(t,e){return function(){return t.apply(e,arguments)}}r.r(n),r.d(n,{hasBrowserEnv:function(){return dt},hasStandardBrowserEnv:function(){return _t},hasStandardBrowserWebWorkerEnv:function(){return bt},navigator:function(){return gt},origin:function(){return mt}});var i=r(606);const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,{iterator:u,toStringTag:c}=Symbol,l=(h=Object.create(null),t=>{const e=o.call(t);return h[e]||(h[e]=e.slice(8,-1).toLowerCase())});var h;const f=t=>(t=t.toLowerCase(),e=>l(e)===t),p=t=>e=>typeof e===t,{isArray:d}=Array,g=p("undefined");const _=f("ArrayBuffer");const b=p("string"),m=p("function"),y=p("number"),w=t=>null!==t&&"object"==typeof t,v=t=>{if("object"!==l(t))return!1;const e=a(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||c in t||u in t)},E=f("Date"),A=f("File"),S=f("Blob"),T=f("FileList"),R=f("URLSearchParams"),[O,x,P,B]=["ReadableStream","Request","Response","Headers"].map(f);function U(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,s;if("object"!=typeof t&&(t=[t]),d(t))for(n=0,s=t.length;n<s;n++)e.call(null,t[n],n,t);else{const s=r?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let o;for(n=0;n<i;n++)o=s[n],e.call(null,t[o],o,t)}}function C(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,s=r.length;for(;s-- >0;)if(n=r[s],e===n.toLowerCase())return n;return null}const L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,k=t=>!g(t)&&t!==L;const j=(N="undefined"!=typeof Uint8Array&&a(Uint8Array),t=>N&&t instanceof N);var N;const q=f("HTMLFormElement"),D=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),F=f("RegExp"),I=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};U(r,((r,s)=>{let i;!1!==(i=e(r,s,t))&&(n[s]=i||r)})),Object.defineProperties(t,n)};const M=f("AsyncFunction"),z=(Y="function"==typeof setImmediate,H=m(L.postMessage),Y?setImmediate:H?(J=`axios@${Math.random()}`,W=[],L.addEventListener("message",(({source:t,data:e})=>{t===L&&e===J&&W.length&&W.shift()()}),!1),t=>{W.push(t),L.postMessage(J,"*")}):t=>setTimeout(t));var Y,H,J,W;const V="undefined"!=typeof queueMicrotask?queueMicrotask.bind(L):void 0!==i&&i.nextTick||z;var K={isArray:d,isArrayBuffer:_,isBuffer:function(t){return null!==t&&!g(t)&&null!==t.constructor&&!g(t.constructor)&&m(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||m(t.append)&&("formdata"===(e=l(t))||"object"===e&&m(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&_(t.buffer),e},isString:b,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:v,isReadableStream:O,isRequest:x,isResponse:P,isHeaders:B,isUndefined:g,isDate:E,isFile:A,isBlob:S,isRegExp:F,isFunction:m,isStream:t=>w(t)&&m(t.pipe),isURLSearchParams:R,isTypedArray:j,isFileList:T,forEach:U,merge:function t(){const{caseless:e}=k(this)&&this||{},r={},n=(n,s)=>{const i=e&&C(r,s)||s;v(r[i])&&v(n)?r[i]=t(r[i],n):v(n)?r[i]=t({},n):d(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&U(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:n}={})=>(U(e,((e,n)=>{r&&m(e)?t[n]=s(e,r):t[n]=e}),{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let s,i,o;const u={};if(e=e||{},null==t)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],n&&!n(o,t,e)||u[o]||(e[o]=t[o],u[o]=!0);t=!1!==r&&a(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:l,kindOfTest:f,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(d(t))return t;let e=t.length;if(!y(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[u]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:q,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:I,freezeMethods:t=>{I(t,((e,r)=>{if(m(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];m(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return d(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:C,global:L,isContextDefined:k,isSpecCompliantForm:function(t){return!!(t&&m(t.append)&&"FormData"===t[c]&&t[u])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(w(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const s=d(t)?[]:{};return U(t,((t,e)=>{const i=r(t,n+1);!g(i)&&(s[e]=i)})),e[n]=void 0,s}}return t};return r(t,0)},isAsyncFn:M,isThenable:t=>t&&(w(t)||m(t))&&m(t.then)&&m(t.catch),setImmediate:z,asap:V,isIterable:t=>null!=t&&m(t[u])};function X(t,e,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}K.inherits(X,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:K.toJSONObject(this.config),code:this.code,status:this.status}}});const $=X.prototype,G={};["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((t=>{G[t]={value:t}})),Object.defineProperties(X,G),Object.defineProperty($,"isAxiosError",{value:!0}),X.from=(t,e,r,n,s,i)=>{const o=Object.create($);return K.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),X.call(o,t.message,e,r,n,s),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};var Q=X,Z=r(287).hp;function tt(t){return K.isPlainObject(t)||K.isArray(t)}function et(t){return K.endsWith(t,"[]")?t.slice(0,-2):t}function rt(t,e,r){return t?t.concat(e).map((function(t,e){return t=et(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const nt=K.toFlatObject(K,{},null,(function(t){return/^is[A-Z]/.test(t)}));var st=function(t,e,r){if(!K.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!K.isUndefined(e[t])}))).metaTokens,s=r.visitor||c,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(e);if(!K.isFunction(s))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(K.isDate(t))return t.toISOString();if(!a&&K.isBlob(t))throw new Q("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(t)||K.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Z.from(t):t}function c(t,r,s){let a=t;if(t&&!s&&"object"==typeof t)if(K.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(K.isArray(t)&&function(t){return K.isArray(t)&&!t.some(tt)}(t)||(K.isFileList(t)||K.endsWith(r,"[]"))&&(a=K.toArray(t)))return r=et(r),a.forEach((function(t,n){!K.isUndefined(t)&&null!==t&&e.append(!0===o?rt([r],n,i):null===o?r:r+"[]",u(t))})),!1;return!!tt(t)||(e.append(rt(s,r,i),u(t)),!1)}const l=[],h=Object.assign(nt,{defaultVisitor:c,convertValue:u,isVisitable:tt});if(!K.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!K.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),K.forEach(r,(function(r,i){!0===(!(K.isUndefined(r)||null===r)&&s.call(e,r,K.isString(i)?i.trim():i,n,h))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e};function it(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function ot(t,e){this._pairs=[],t&&st(t,this,e)}const at=ot.prototype;at.append=function(t,e){this._pairs.push([t,e])},at.toString=function(t){const e=t?function(e){return t.call(this,e,it)}:it;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var ut=ot;function ct(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lt(t,e,r){if(!e)return t;const n=r&&r.encode||ct;K.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let i;if(i=s?s(e,r):K.isURLSearchParams(e)?e.toString():new ut(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}var ht=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){K.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ut,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const dt="undefined"!=typeof window&&"undefined"!=typeof document,gt="object"==typeof navigator&&navigator||void 0,_t=dt&&(!gt||["ReactNative","NativeScript","NS"].indexOf(gt.product)<0),bt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,mt=dt&&window.location.href||"http://localhost";var yt={...n,...pt};var wt=function(t){function e(t,r,n,s){let i=t[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=t.length;if(i=!i&&K.isArray(n)?n.length:i,a)return K.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o;n[i]&&K.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],s)&&K.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],e[i]=t[i];return e}(n[i])),!o}if(K.isFormData(t)&&K.isFunction(t.entries)){const r={};return K.forEachEntry(t,((t,n)=>{e(function(t){return K.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null};const vt={transitional:ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,s=K.isObject(t);s&&K.isHTMLForm(t)&&(t=new FormData(t));if(K.isFormData(t))return n?JSON.stringify(wt(t)):t;if(K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t)||K.isReadableStream(t))return t;if(K.isArrayBufferView(t))return t.buffer;if(K.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return st(t,new yt.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return yt.isNode&&K.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=K.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return st(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return s||n?(e.setContentType("application/json",!1),function(t,e,r){if(K.isString(t))try{return(e||JSON.parse)(t),K.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||vt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw Q.from(t,Q.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],(t=>{vt.headers[t]={}}));var Et=vt;const At=K.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 St=Symbol("internals");function Tt(t){return t&&String(t).trim().toLowerCase()}function Rt(t){return!1===t||null==t?t:K.isArray(t)?t.map(Rt):String(t)}function Ot(t,e,r,n,s){return K.isFunction(n)?n.call(this,e,r):(s&&(e=r),K.isString(e)?K.isString(n)?-1!==e.indexOf(n):K.isRegExp(n)?n.test(e):void 0:void 0)}class xt{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function s(t,e,r){const s=Tt(e);if(!s)throw new Error("header name must be a non-empty string");const i=K.findKey(n,s);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Rt(t))}const i=(t,e)=>K.forEach(t,((t,r)=>s(t,r,e)));if(K.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(K.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let r,n,s;return t&&t.split("\n").forEach((function(t){s=t.indexOf(":"),r=t.substring(0,s).trim().toLowerCase(),n=t.substring(s+1).trim(),!r||e[r]&&At[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e);else if(K.isObject(t)&&K.isIterable(t)){let r,n,s={};for(const e of t){if(!K.isArray(e))throw TypeError("Object iterator must return a key-value pair");s[n=e[0]]=(r=s[n])?K.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}i(s,e)}else null!=t&&s(e,t,r);return this}get(t,e){if(t=Tt(t)){const r=K.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(K.isFunction(e))return e.call(this,t,r);if(K.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Tt(t)){const r=K.findKey(this,t);return!(!r||void 0===this[r]||e&&!Ot(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function s(t){if(t=Tt(t)){const s=K.findKey(r,t);!s||e&&!Ot(0,r[s],s,e)||(delete r[s],n=!0)}}return K.isArray(t)?t.forEach(s):s(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const s=e[r];t&&!Ot(0,this[s],s,t,!0)||(delete this[s],n=!0)}return n}normalize(t){const e=this,r={};return K.forEach(this,((n,s)=>{const i=K.findKey(r,s);if(i)return e[i]=Rt(n),void delete e[s];const o=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(s):String(s).trim();o!==s&&delete e[s],e[o]=Rt(n),r[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return K.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&K.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=(this[St]=this[St]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Tt(t);e[n]||(!function(t,e){const r=K.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,s){return this[n].call(this,e,t,r,s)},configurable:!0})}))}(r,t),e[n]=!0)}return K.isArray(t)?t.forEach(n):n(t),this}}xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(xt.prototype,(({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}})),K.freezeMethods(xt);var Pt=xt;function Bt(t,e){const r=this||Et,n=e||r,s=Pt.from(n.headers);let i=n.data;return K.forEach(t,(function(t){i=t.call(r,i,s.normalize(),e?e.status:void 0)})),s.normalize(),i}function Ut(t){return!(!t||!t.__CANCEL__)}function Ct(t,e,r){Q.call(this,null==t?"canceled":t,Q.ERR_CANCELED,e,r),this.name="CanceledError"}K.inherits(Ct,Q,{__CANCEL__:!0});var Lt=Ct;function kt(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new Q("Request failed with status code "+r.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}var jt=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let s,i=0,o=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=n[o];s||(s=u),r[i]=a,n[i]=u;let l=o,h=0;for(;l!==i;)h+=r[l++],l%=t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),u-s<e)return;const f=c&&u-c;return f?Math.round(1e3*h/f):void 0}};var Nt=function(t,e){let r,n,s=0,i=1e3/e;const o=(e,i=Date.now())=>{s=i,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),a=e-s;a>=i?o(t,e):(r=t,n||(n=setTimeout((()=>{n=null,o(r)}),i-a)))},()=>r&&o(r)]};const qt=(t,e,r=3)=>{let n=0;const s=jt(50,250);return Nt((r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,u=s(a);n=i;t({loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&i<=o?(o-i)/u:void 0,event:r,lengthComputable:null!=o,[e?"download":"upload"]:!0})}),r)},Dt=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Ft=t=>(...e)=>K.asap((()=>t(...e)));var It=yt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,yt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Mt=yt.hasStandardBrowserEnv?{write(t,e,r,n,s,i){const o=[t+"="+encodeURIComponent(e)];K.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),K.isString(n)&&o.push("path="+n),K.isString(s)&&o.push("domain="+s),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zt(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Yt=t=>t instanceof Pt?{...t}:t;function Ht(t,e){e=e||{};const r={};function n(t,e,r,n){return K.isPlainObject(t)&&K.isPlainObject(e)?K.merge.call({caseless:n},t,e):K.isPlainObject(e)?K.merge({},e):K.isArray(e)?e.slice():e}function s(t,e,r,s){return K.isUndefined(e)?K.isUndefined(t)?void 0:n(void 0,t,0,s):n(t,e,0,s)}function i(t,e){if(!K.isUndefined(e))return n(void 0,e)}function o(t,e){return K.isUndefined(e)?K.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,s,i){return i in e?n(r,s):i in t?n(void 0,r):void 0}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(t,e,r)=>s(Yt(t),Yt(e),0,!0)};return K.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=u[n]||s,o=i(t[n],e[n],n);K.isUndefined(o)&&i!==a||(r[n]=o)})),r}var Jt=t=>{const e=Ht({},t);let r,{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:u}=e;if(e.headers=a=Pt.from(a),e.url=lt(zt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),K.isFormData(n))if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(yt.hasStandardBrowserEnv&&(s&&K.isFunction(s)&&(s=s(e)),s||!1!==s&&It(e.url))){const t=i&&o&&Mt.read(o);t&&a.set(i,t)}return e};var Wt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){const n=Jt(t);let s=n.data;const i=Pt.from(n.headers).normalize();let o,a,u,c,l,{responseType:h,onUploadProgress:f,onDownloadProgress:p}=n;function d(){c&&c(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function _(){if(!g)return;const n=Pt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());kt((function(t){e(t),d()}),(function(t){r(t),d()}),{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:t,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(_)},g.onabort=function(){g&&(r(new Q("Request aborted",Q.ECONNABORTED,t,g)),g=null)},g.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const s=n.transitional||ft;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new Q(e,s.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,t,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&K.forEach(i.toJSON(),(function(t,e){g.setRequestHeader(e,t)})),K.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),h&&"json"!==h&&(g.responseType=n.responseType),p&&([u,l]=qt(p,!0),g.addEventListener("progress",u)),f&&g.upload&&([a,c]=qt(f),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(o=e=>{g&&(r(!e||e.type?new Lt(null,t,g):e),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const b=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);b&&-1===yt.protocols.indexOf(b)?r(new Q("Unsupported protocol "+b+":",Q.ERR_BAD_REQUEST,t)):g.send(s||null)}))};var Vt=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const s=function(t){if(!r){r=!0,o();const e=t instanceof Error?t:this.reason;n.abort(e instanceof Q?e:new Lt(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,s(new Q(`timeout ${e} of ms exceeded`,Q.ETIMEDOUT))}),e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(s):t.removeEventListener("abort",s)})),t=null)};t.forEach((t=>t.addEventListener("abort",s)));const{signal:a}=n;return a.unsubscribe=()=>K.asap(o),a}};const Kt=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,s=0;for(;s<r;)n=s+e,yield t.slice(s,n),s=n},Xt=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},$t=(t,e,r,n)=>{const s=async function*(t,e){for await(const r of Xt(t))yield*Kt(r,e)}(t,e);let i,o=0,a=t=>{i||(i=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await s.next();if(e)return a(),void t.close();let i=n.byteLength;if(r){let t=o+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel(t){return a(t),s.return()}},{highWaterMark:2})},Gt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Qt=Gt&&"function"==typeof ReadableStream,Zt=Gt&&("function"==typeof TextEncoder?(te=new TextEncoder,t=>te.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var te;const ee=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},re=Qt&&ee((()=>{let t=!1;const e=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),ne=Qt&&ee((()=>K.isReadableStream(new Response("").body))),se={stream:ne&&(t=>t.body)};var ie;Gt&&(ie=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!se[t]&&(se[t]=K.isFunction(ie[t])?e=>e[t]():(e,r)=>{throw new Q(`Response type '${t}' is not supported`,Q.ERR_NOT_SUPPORT,r)})})));const oe=async(t,e)=>{const r=K.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(K.isBlob(t))return t.size;if(K.isSpecCompliantForm(t)){const e=new Request(yt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return K.isArrayBufferView(t)||K.isArrayBuffer(t)?t.byteLength:(K.isURLSearchParams(t)&&(t+=""),K.isString(t)?(await Zt(t)).byteLength:void 0)})(e):r};const ae={http:null,xhr:Wt,fetch:Gt&&(async t=>{let{url:e,method:r,data:n,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:h="same-origin",fetchOptions:f}=Jt(t);c=c?(c+"").toLowerCase():"text";let p,d=Vt([s,i&&i.toAbortSignal()],o);const g=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let _;try{if(u&&re&&"get"!==r&&"head"!==r&&0!==(_=await oe(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(K.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Dt(_,qt(Ft(u)));n=$t(r.body,65536,t,e)}}K.isString(h)||(h=h?"include":"omit");const s="credentials"in Request.prototype;p=new Request(e,{...f,signal:d,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:s?h:void 0});let i=await fetch(p);const o=ne&&("stream"===c||"response"===c);if(ne&&(a||o&&g)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=K.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Dt(e,qt(Ft(a),!0))||[];i=new Response($t(i.body,65536,r,(()=>{n&&n(),g&&g()})),t)}c=c||"text";let b=await se[K.findKey(se,c)||"text"](i,t);return!o&&g&&g(),await new Promise(((e,r)=>{kt(e,r,{data:b,headers:Pt.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:p})}))}catch(e){if(g&&g(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,t,p),{cause:e.cause||e});throw Q.from(e,e&&e.code,t,p)}})};K.forEach(ae,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const ue=t=>`- ${t}`,ce=t=>K.isFunction(t)||null===t||!1===t;var le=t=>{t=K.isArray(t)?t:[t];const{length:e}=t;let r,n;const s={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!ce(r)&&(n=ae[(e=String(r)).toLowerCase()],void 0===n))throw new Q(`Unknown adapter '${e}'`);if(n)break;s[e||"#"+i]=n}if(!n){const t=Object.entries(s).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let r=e?t.length>1?"since :\n"+t.map(ue).join("\n"):" "+ue(t[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function he(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Lt(null,t)}function fe(t){he(t),t.headers=Pt.from(t.headers),t.data=Bt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return le(t.adapter||Et.adapter)(t).then((function(e){return he(t),e.data=Bt.call(t,t.transformResponse,e),e.headers=Pt.from(e.headers),e}),(function(e){return Ut(e)||(he(t),e&&e.response&&(e.response.data=Bt.call(t,t.transformResponse,e.response),e.response.headers=Pt.from(e.response.headers))),Promise.reject(e)}))}const pe="1.9.0",de={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{de[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const ge={};de.transitional=function(t,e,r){return(n,s,i)=>{if(!1===t)throw new Q(function(t,e){return"[Axios v1.9.0] Transitional option '"+t+"'"+e+(r?". "+r:"")}(s," has been removed"+(e?" in "+e:"")),Q.ERR_DEPRECATED);return e&&!ge[s]&&(ge[s]=!0),!t||t(n,s,i)}},de.spelling=function(t){return(t,e)=>!0};var _e={assertOptions:function(t,e,r){if("object"!=typeof t)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let s=n.length;for(;s-- >0;){const i=n[s],o=e[i];if(o){const e=t[i],r=void 0===e||o(e,i,t);if(!0!==r)throw new Q("option "+i+" must be "+r,Q.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Q("Unknown option "+i,Q.ERR_BAD_OPTION)}},validators:de};const be=_e.validators;class me{constructor(t){this.defaults=t||{},this.interceptors={request:new ht,response:new ht}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Ht(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:s}=e;void 0!==r&&_e.assertOptions(r,{silentJSONParsing:be.transitional(be.boolean),forcedJSONParsing:be.transitional(be.boolean),clarifyTimeoutError:be.transitional(be.boolean)},!1),null!=n&&(K.isFunction(n)?e.paramsSerializer={serialize:n}:_e.assertOptions(n,{encode:be.function,serialize:be.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),_e.assertOptions(e,{baseUrl:be.spelling("baseURL"),withXsrfToken:be.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=s&&K.merge(s.common,s[e.method]);s&&K.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete s[t]})),e.headers=Pt.concat(i,s);const o=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,h=0;if(!a){const t=[fe.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,u),l=t.length,c=Promise.resolve(e);h<l;)c=c.then(t[h++],t[h++]);return c}l=o.length;let f=e;for(h=0;h<l;){const t=o[h++],e=o[h++];try{f=t(f)}catch(t){e.call(this,t);break}}try{c=fe.call(this,f)}catch(t){return Promise.reject(t)}for(h=0,l=u.length;h<l;)c=c.then(u[h++],u[h++]);return c}getUri(t){return lt(zt((t=Ht(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}K.forEach(["delete","get","head","options"],(function(t){me.prototype[t]=function(e,r){return this.request(Ht(r||{},{method:t,url:e,data:(r||{}).data}))}})),K.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,s){return this.request(Ht(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}me.prototype[t]=e(),me.prototype[t+"Form"]=e(!0)}));var ye=me;class we{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,s){r.reason||(r.reason=new Lt(t,n,s),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new we((function(e){t=e})),cancel:t}}}var ve=we;const Ee={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(Ee).forEach((([t,e])=>{Ee[e]=t}));var Ae=Ee;const Se=function t(e){const r=new ye(e),n=s(ye.prototype.request,r);return K.extend(n,ye.prototype,r,{allOwnKeys:!0}),K.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Ht(e,r))},n}(Et);Se.Axios=ye,Se.CanceledError=Lt,Se.CancelToken=ve,Se.isCancel=Ut,Se.VERSION=pe,Se.toFormData=st,Se.AxiosError=Q,Se.Cancel=Se.CanceledError,Se.all=function(t){return Promise.all(t)},Se.spread=function(t){return function(e){return t.apply(null,e)}},Se.isAxiosError=function(t){return K.isObject(t)&&!0===t.isAxiosError},Se.mergeConfig=Ht,Se.AxiosHeaders=Pt,Se.formToJSON=t=>wt(K.isHTMLForm(t)?new FormData(t):t),Se.getAdapter=le,Se.HttpStatusCode=Ae,Se.default=Se;var Te=Se;class Re{constructor(t){this.notice=t,this.set_vars()&&this.set_events()}set_vars(){return this.settings={ajax_action:this.notice.getAttribute("data-notice-action"),ajax_url:this.notice.getAttribute("data-notice-url"),button_close_class:".notice-dismiss",button_hide_class:"[data-permanently]"},this.events={click_on_close:this.click_on_close.bind(this)},!0}set_events(){this.notice.addEventListener("click",this.events.click_on_close)}click_on_close(t){const{button_close_class:e,button_hide_class:r}=this.settings;t.target.matches(e)?(this.notice.removeEventListener("click",this.events.click_on_close),this.hide_notice(!1)):t.target.matches(r)&&(this.notice.removeEventListener("click",this.events.click_on_close),this.hide_notice(!0))}hide_notice(t){const{button_close_class:e}=this.settings;this.send_request(t),t&&this.notice.querySelector(e).click()}send_request(t){const{ajax_url:e}=this.settings;Te({method:"POST",url:e,data:this.get_data_for_request(t)})}get_data_for_request(t){const{ajax_action:e}=this.settings,r=new FormData;return r.append("action",e),r.append("is_permanently",t?1:0),r}}class Oe{constructor(){const t=document.querySelectorAll('.notice[data-notice="webp-converter-for-media"][data-notice-action]'),{length:e}=t;for(let r=0;r<e;r++)new Re(t[r])}}class xe{constructor(){this.set_vars()&&this.set_events()}set_vars(){return this.settings={api_path_attr:"data-api-path",wrapper_id:"%s-wrapper",spinner_id:"%s-spinner",spinner_active:"is-active"},!0}set_events(){window.webpcConvertAttachment=this.start_conversion.bind(this)}start_conversion(t,e){const r=t.getAttribute("id"),n=document.getElementById(this.settings.wrapper_id.replace("%s",r)),s=document.getElementById(this.settings.spinner_id.replace("%s",r)),i=t.getAttribute(this.settings.api_path_attr).split("|")[0],o=t.getAttribute(this.settings.api_path_attr).split("|")[1];t.setAttribute("disabled","disabled"),s.classList.add(this.settings.spinner_active),this.send_request(i,o,e,t.value,n)}send_request(t,e,r,n,s){Te({method:"POST",url:t,data:{post_id:r,quality_level:n},headers:{"X-WP-Nonce":e}}).then((t=>{t.data&&t.data.output_html&&(s.innerHTML=t.data.output_html)})).catch((t=>{}))}}class Pe{constructor(){this.status=this.set_vars()}set_vars(){if(this.counter_webp=document.querySelector('[data-counter="webp"]'),this.counter_avif=document.querySelector('[data-counter="avif"]'),this.counter_webp&&this.counter_avif)return this.counter_webp_percent=this.counter_webp.querySelector("[data-counter-percent]"),this.counter_webp_images=this.counter_webp.querySelector("[data-counter-left]"),this.counter_webp_loader=this.counter_webp.querySelector("[data-counter-loader]"),this.counter_avif_percent=this.counter_avif.querySelector("[data-counter-percent]"),this.counter_avif_images=this.counter_avif.querySelector("[data-counter-left]"),this.counter_avif_loader=this.counter_avif.querySelector("[data-counter-loader]"),this.data={webp_converted:0,webp_unconverted:0,webp_all:0,avif_converted:0,avif_unconverted:0,avif_all:0},this.atts={counter_percent:"data-percent"},!0}set_files_webp(t,e){this.status&&(this.data.webp_converted+=t,this.data.webp_unconverted=e-t,this.data.webp_all=e||this.data.webp_all,this.refresh_stats())}reset_files_webp(){this.status&&(this.data.webp_converted=0,this.data.webp_unconverted=this.data.webp_all,this.refresh_stats())}set_files_avif(t,e){this.status&&(this.data.avif_converted+=t,this.data.avif_unconverted=e-t,this.data.avif_all=e,this.refresh_stats())}set_error(){this.counter_webp_loader.setAttribute("hidden","hidden"),this.counter_avif_loader.setAttribute("hidden","hidden")}reset_files_avif(){this.status&&(this.data.avif_converted=0,this.data.avif_unconverted=this.data.avif_all,this.refresh_stats())}add_files_webp(t){this.status&&(this.data.webp_converted+=t,this.data.webp_unconverted-=t,this.refresh_stats())}add_files_avif(t){this.status&&(this.data.avif_converted+=t,this.data.avif_unconverted-=t,this.refresh_stats())}refresh_stats(){const{webp_converted:t,webp_unconverted:e,webp_all:r,avif_converted:n,avif_unconverted:s,avif_all:i}=this.data,{counter_percent:o}=this.atts,a=r>0?Math.floor(t/r*100):0,u=i>0?Math.floor(n/i*100):0;this.counter_webp.setAttribute(o,a),this.counter_webp_percent.innerText=a,this.counter_webp_images.innerText=Math.max(e,0).toString().replace(/\B(?=(\d{3})+(?!\d))/g," "),this.counter_avif.setAttribute(o,u),this.counter_avif_percent.innerText=u,this.counter_avif_images.innerText=Math.max(s,0).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}}class Be{constructor(){this.set_vars()&&this.set_events()}set_vars(){return this.inputs=document.querySelectorAll("[data-radio-selector]"),!!this.inputs.length}set_events(){const{length:t}=this.inputs;for(let e=0;e<t;e++)this.inputs[e].addEventListener("change",this.toggle_value.bind(this))}toggle_value(t){const e=t.currentTarget.getAttribute("data-radio-selector"),r=t.currentTarget.value.split(","),n=document.querySelectorAll('input[name="'.concat(e,'[]"]')),{length:s}=n;for(let t=0;t<s;t++)n[t].checked=r.includes(n[t].value)}}class Ue{constructor(){this.set_vars()&&this.set_events()}set_vars(){return this.triggers=document.querySelectorAll("[data-toggle-trigger]"),!!this.triggers.length&&(this.outputs=document.querySelectorAll("[data-toggle-output-values]"),!0)}set_events(){const{length:t}=this.triggers;for(let e=0;e<t;e++)this.triggers[e].addEventListener("change",this.toggle_output.bind(this))}toggle_output(t){const e=t.currentTarget.getAttribute("name"),r="checkbox"===t.currentTarget.getAttribute("type")?this.get_checkbox_value(e):this.get_radio_value(e),{length:n}=this.outputs;for(let t=0;t<n;t++)if(this.outputs[t].getAttribute("data-toggle-output")===e){const e=this.outputs[t].getAttribute("data-toggle-output-attr");this.validate_output(this.outputs[t],r)?this.outputs[t].removeAttribute(e):this.outputs[t].setAttribute(e,e)}}get_checkbox_value(t){const e=[],{length:r}=this.triggers;for(let n=0;n<r;n++)this.triggers[n].getAttribute("name")===t&&this.triggers[n].checked&&e.push(this.triggers[n].getAttribute("value"));return e}get_radio_value(t){const{length:e}=this.triggers;for(let r=0;r<e;r++)if(this.triggers[r].getAttribute("name")===t&&this.triggers[r].checked)return[this.triggers[r].getAttribute("value")];return[]}validate_output(t,e){const r=t.getAttribute("data-toggle-output-values").split(";"),{length:n}=e;for(let t=0;t<n;t++)if(r.indexOf(e[t])>=0)return!0;return!1}}class Ce{constructor(t){this.conversion_stats_manager=t,this.set_vars()&&this.set_events()}set_vars(){if(this.section=document.querySelector(".webpcLoader"),this.section&&(this.wrapper_status=this.section.querySelector("[data-status]"),this.wrapper_status))return this.progress=this.wrapper_status.querySelector("[data-status-progress]"),this.progress_size=this.section.querySelector("[data-status-count-size]"),this.progress_success=this.section.querySelector("[data-status-count-success]"),this.progress_failed=this.section.querySelector("[data-status-count-error]"),this.wrapper_errors=this.section.querySelector("[data-errors]"),this.errors_output=this.wrapper_errors.querySelector("[data-errors-output]"),this.wrapper_success=this.section.querySelector("[data-success]"),this.option_force=this.section.querySelector('input[name="regenerate_force"]'),this.submit_button=this.section.querySelector("[data-submit]"),this.data={count:0,max:0,items:[],size:{before:0,after:0},files_counter:{all:0,converted:0},errors:0},this.settings={is_disabled:!1,ajax:{url_paths:this.section.getAttribute("data-api-paths").split("|")[0],url_paths_nonce:this.section.getAttribute("data-api-paths").split("|")[1],url_regenerate:this.section.getAttribute("data-api-regenerate").split("|")[0],url_regenerate_nonce:this.section.getAttribute("data-api-regenerate").split("|")[1],error_message:this.section.getAttribute("data-api-error-message")},units:["kB","MB","GB"],max_errors:1e3,connection_timeout:6e4},this.atts={progress:"data-percent",counter_percent:"data-percent"},this.classes={progress_error:"webpcLoader__statusProgress--error",button_disabled:"webpcLoader__button--disabled",error_message:"webpcLoader__errorsContentError"},!0}set_events(){this.submit_button.addEventListener("click",this.init_regeneration.bind(this))}init_regeneration(t){t.preventDefault(),this.settings.is_disabled||(this.settings.is_disabled=!0,this.submit_button.classList.add(this.classes.button_disabled),this.option_force.setAttribute("disabled","disabled"),this.wrapper_status.removeAttribute("hidden"),this.send_request_for_paths())}send_request_for_paths(){const{url_paths:t,url_paths_nonce:e}=this.settings.ajax;Te({method:"POST",url:t,data:{regenerate_force:this.option_force.checked?1:0},headers:{"X-WP-Nonce":e}}).then((t=>{const e=this.parse_files_paths(t.data);this.data.items=e,this.data.max=e.length,this.option_force.checked&&(this.conversion_stats_manager.reset_files_webp(),this.conversion_stats_manager.reset_files_avif()),this.regenerate_next_images()})).catch((t=>{this.catch_request_error(t,!0)}))}parse_files_paths(t){const e=[];for(const r in t){const{length:n}=t[r].files;for(let s=0;s<n;s++){const n=[];for(let e=0;e<t[r].files[s].length;e++)n.push(t[r].path+"/"+t[r].files[s][e]);e.push(n)}}return e}regenerate_next_images(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0===this.data.max&&this.update_progress(),this.data.count>=this.data.max)return;t>=3?t=0:t>0&&this.data.count--;const e=this.data.items[this.data.count];this.data.count++,this.send_request_for_regeneration(e,t)}send_request_for_regeneration(t,e){const{url_regenerate:r,url_regenerate_nonce:n}=this.settings.ajax;Te({method:"POST",url:r,data:{regenerate_force:this.option_force.checked?1:0,paths:t},headers:{"X-WP-Nonce":n},timeout:this.settings.connection_timeout}).then((t=>{const{is_fatal_error:e}=t.data;this.update_errors(t.data.errors,e),e||(this.update_size(t.data),this.update_files_count(t.data),this.update_progress(),this.regenerate_next_images())})).catch((r=>{r.response?(this.catch_request_error(r,!1,t),setTimeout(this.regenerate_next_images.bind(this),1e3)):setTimeout(this.regenerate_next_images.bind(this,e+1),1e3)}))}update_errors(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.data.errors>this.settings.max_errors&&(this.data.errors=0,this.errors_output.innerHTML="");const r=this.get_date();for(let n=0;n<t.length;n++)this.print_error_message(t[n],e,!1,r),this.data.errors++;e&&this.set_fatal_error()}get_date(){const t=new Date,e=("0"+t.getHours()).substr(-2),r=("0"+t.getMinutes()).substr(-2),n=("0"+t.getSeconds()).substr(-2);return"".concat(e,":").concat(r,":").concat(n)}set_fatal_error(){this.progress.classList.add(this.classes.progress_error)}catch_request_error(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e&&(this.print_error_message([this.settings.ajax.error_message],!0,!1),this.set_fatal_error());const n=null!==r?'["'.concat(r.join('", "'),'"]'):"";this.print_error_message("".concat(t.response.status," - ").concat(t.response.statusText," (").concat(t.response.config.url,") ").concat(n),!0,!0)}print_error_message(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const s=document.createElement("p"),i=n||this.get_date();if(r){const e=document.createElement("pre");e.innerText=t,s.appendChild(e)}else s.innerHTML="<strong>".concat(i,"</strong> - ").concat(t);e&&s.classList.add(this.classes.error_message),this.wrapper_errors.removeAttribute("hidden"),this.errors_output.appendChild(s)}update_size(t){const{size:e}=this.data;e.before+=t.size.before,e.after+=t.size.after;let r=e.before-e.after;if(r<0&&(r=0),0===r)return;let n=Math.round(100*(1-e.after/e.before));n<0&&(n=0);let s=-1;do{s++,r/=1024}while(r>1024);const i=r.toFixed(2),o=this.settings.units[s];this.progress_size.innerHTML="".concat(i," ").concat(o," (").concat(n,"%)")}update_files_count(t){const{files_counter:e}=this.data,{files:r}=t;this.conversion_stats_manager.add_files_webp(r.webp_available),this.conversion_stats_manager.add_files_avif(r.avif_available),e.converted+=r.webp_converted+r.avif_converted,e.all+=r.webp_available+r.avif_available,this.progress_success.innerText=e.converted.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "),this.progress_failed.innerText=(e.all-e.converted).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}update_progress(){let t=this.data.max>0?Math.floor(this.data.count/this.data.max*100):100;t>100&&(t=100),100===t&&this.wrapper_success.removeAttribute("hidden"),this.progress.setAttribute(this.atts.progress,t.toString())}}class Le{constructor(t,e,r){this.conversion_stats_manager=t,this.images_tree_generator=e,this.plans_button_generator=r,this.set_vars()&&this.send_request()}set_vars(){if(this.section=document.querySelector("[data-api-stats]"),this.section)return this.error_output=this.section.querySelector("[data-api-stats-error]"),this.settings={ajax_url:this.section.getAttribute("data-api-stats").split("|")[0],ajax_nonce:this.section.getAttribute("data-api-stats").split("|")[1]},!0}send_request(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(t>=3)return this.conversion_stats_manager.set_error(),this.images_tree_generator.set_error(),void this.plans_button_generator.set_error();const e=new Date;Te({method:"GET",url:this.settings.ajax_url,headers:{"X-WP-Nonce":this.settings.ajax_nonce}}).then((r=>{if(r.data){const t=r.data.value_webp_all||0,e=r.data.value_webp_converted||0,n=r.data.value_avif_all||0,s=r.data.value_avif_converted||0;this.conversion_stats_manager.set_files_webp(e,t),this.conversion_stats_manager.set_files_avif(s,n),this.images_tree_generator.generate_tree(r.data.tree),this.plans_button_generator.show_button(t-e,n-s)}else this.send_request(t+1),this.show_request_error(e,r)})).catch((r=>{this.send_request(t+1),r.response&&this.show_request_error(e,r.response)}))}show_request_error(t,e){const r=(new Date-t)/1e3,n=e.status,s=JSON.stringify(e.data);this.error_output.innerText="HTTP Error ".concat(n," (").concat(r,"s): ").concat(s),this.error_output.removeAttribute("hidden")}}class ke{constructor(){this.status=this.set_vars()}set_vars(){if(this.section=document.querySelector("[data-tree]"),this.section)return this.loader=this.section.querySelector("[data-tree-loader]"),this.toggle_button=document.querySelector("[data-tree-toggle-button]"),this.settings={max_items:1e3,message_files_count:this.section.getAttribute("data-tree-files-count"),message_input_tooltip:this.section.getAttribute("data-tree-input-tooltip")},!0}generate_tree(t){if(!this.status)return;this.loader=null,this.section.innerHTML=this.draw_tree(t);const e=this.section.querySelectorAll(".webpcTree__itemCheckbox");for(let t=0;t<e.length;t++)e[t].addEventListener("change",this.hide_child_items.bind(this));this.toggle_button&&(this.toggle_button.removeAttribute("hidden"),this.toggle_button.addEventListener("click",this.toggle_all_items.bind(this)))}set_error(){this.loader&&this.loader.setAttribute("hidden","hidden")}draw_tree(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"tree",n="";const{length:s}=t;if(!s)return n;0===e&&(n+='<ul class="webpcTree__items">');for(let i=0;i<s;i++){const s="".concat(r,"-").concat(t[i].name).replace(/\s/g,""),o=t[i].files.length,a=t[i].items?t[i].items.length:0;n+='<li class="webpcTree__item">',n+='<input type="checkbox" id="'.concat(s,'" class="webpcTree__itemCheckbox ').concat(a?"webpcTree__itemCheckbox--hasItems":"",'">'),n+='<label for="'.concat(s,'" class="webpcTree__itemLabel" title="').concat(this.settings.message_input_tooltip,'">'),n+="".concat(t[i].name," <strong>(").concat(t[i].count.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "),")</strong>"),n+="</label>",n+='<ul class="webpcTree__items">',a&&(n+=this.draw_tree(t[i].items,e+1,s));for(let e=0;e<o&&e!==this.settings.max_items;e++)n+='<li class="webpcTree__item">',n+='<span class="webpcTree__itemName">'.concat(t[i].files[e],"</span>"),n+="</li>";if(o>this.settings.max_items){const t=(o-this.settings.max_items).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ");n+='<li class="webpcTree__item">',n+='<span class="webpcTree__itemName webpcTree__itemName--text">'.concat(this.settings.message_files_count.replace("%s",t),"</span>"),n+="</li>"}n+="</ul>",n+="</li>"}return 0===e&&(n+="</ul>"),n}hide_child_items(t){if(t.currentTarget.checked)return;const e=t.currentTarget.parentNode.querySelectorAll(".webpcTree__itemCheckbox");for(let t=0;t<e.length;t++)e[t].checked=!1}toggle_all_items(t){t.preventDefault();if(this.section.querySelector(".webpcTree__itemCheckbox--hasItems:checked")){const t=this.section.querySelectorAll(".webpcTree__itemCheckbox");for(let e=0;e<t.length;e++)t[e].checked=!1}else{const t=this.section.querySelectorAll(".webpcTree__itemCheckbox--hasItems");for(let e=0;e<t.length;e++)t[e].checked=!0}}}class je{constructor(t){this.section=t,this.set_vars()&&this.set_events()}set_vars(){return this.button=this.section.querySelector("[data-plans-button]"),this.loader=this.section.querySelector("[data-plans-loader]"),this.settings={button_url:this.button.getAttribute("href")},!0}set_events(){}show_button(t,e){const r=this.settings.button_url.replace("webp=0","webp=".concat(t)).replace("avif=0","avif=".concat(e));this.button.setAttribute("href",r),this.loader&&(this.button.removeAttribute("hidden"),this.loader.setAttribute("hidden","hidden"))}set_error(){this.loader&&(this.button.removeAttribute("hidden"),this.loader.setAttribute("hidden","hidden"))}}class Ne{constructor(){const t=document.querySelectorAll(".webpcPage [data-plans]");this.instances=[];for(let e=0;e<t.length;e++)this.instances.push(new je(t[e]))}show_button(t,e){for(let r=0;r<this.instances.length;r++)this.instances[r].show_button(t,e)}set_error(){for(let t=0;t<this.instances.length;t++)this.instances[t].set_error()}}class qe{constructor(t){this.popup_wrapper=t,this.set_vars()&&this.set_events()}set_vars(){return this.popup_id=this.popup_wrapper.getAttribute("data-popup"),!!this.popup_id&&(this.button=document.querySelector('[data-open-popup="'+this.popup_id+'"]'),!!this.button&&(this.settings={content_page_attr:"data-popup-page",button_page_attr:"data-popup-button-page"},this.close_buttons=this.popup_wrapper.querySelectorAll("[data-popup-close]"),this.content_pages=this.popup_wrapper.querySelectorAll("[".concat(this.settings.content_page_attr,"]")),this.page_buttons=this.popup_wrapper.querySelectorAll("[".concat(this.settings.button_page_attr,"]")),this.data={is_button_clicked:!1},this.events={open_popup:this.open_popup.bind(this)},!0))}set_events(){this.button.addEventListener("click",this.events.open_popup);for(let t=0;t<this.close_buttons.length;t++)this.close_buttons[t].addEventListener("click",this.close_popup.bind(this));for(let t=0;t<this.page_buttons.length;t++)this.page_buttons[t].addEventListener("click",this.set_content_page.bind(this))}open_popup(t){t.preventDefault(),t.stopImmediatePropagation(),this.button.removeEventListener("click",this.events.open_popup),this.popup_wrapper.removeAttribute("hidden")}close_popup(){this.popup_wrapper.setAttribute("hidden","hidden"),setTimeout((()=>{this.button.click()}),0)}set_content_page(t){for(let t=0;t<this.content_pages.length;t++)this.content_pages[t].setAttribute("hidden","hidden");const e=t.currentTarget.getAttribute(this.settings.button_page_attr);this.popup_wrapper.querySelector("[".concat(this.settings.content_page_attr,'="').concat(e,'"]')).removeAttribute("hidden")}}class De{constructor(){const t=document.querySelectorAll(".webpcPage [data-popup]"),{length:e}=t;for(let r=0;r<e;r++)new qe(t[r])}}new class{constructor(){const t=new Pe,e=new ke,r=new Ne;new De,new Oe,new xe,new Ce(t),new Le(t,e,r),new Be,new Ue}}},606:function(t){var e,r,n=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var a,u=[],c=!1,l=-1;function h(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&f())}function f(){if(!c){var t=o(h);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l<e;)a&&a[l].run();l=-1,e=u.length}a=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||c||o(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},634:function(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},656:function(){}},r={};function n(t){var s=r[t];if(void 0!==s)return s.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.m=e,t=[],n.O=function(e,r,s,i){if(!r){var o=1/0;for(l=0;l<t.length;l++){r=t[l][0],s=t[l][1],i=t[l][2];for(var a=!0,u=0;u<r.length;u++)(!1&i||o>=i)&&Object.keys(n.O).every((function(t){return n.O[t](r[u])}))?r.splice(u--,1):(a=!1,i<o&&(o=i));if(a){t.splice(l--,1);var c=s();void 0!==c&&(e=c)}}return e}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[r,s,i]},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t={671:0,2:0};n.O.j=function(e){return 0===t[e]};var e=function(e,r){var s,i,o=r[0],a=r[1],u=r[2],c=0;if(o.some((function(e){return 0!==t[e]}))){for(s in a)n.o(a,s)&&(n.m[s]=a[s]);if(u)var l=u(n)}for(e&&e(r);c<o.length;c++)i=o[c],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(l)},r=self.webpackChunkwebp_converter_for_media=self.webpackChunkwebp_converter_for_media||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}(),n.O(void 0,[2],(function(){return n(538)}));var s=n.O(void 0,[2],(function(){return n(656)}));s=n.O(s)}();