mazey 5.7.0 → 5.7.1
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/README.md +16 -5
- package/README.zh-CN.md +8 -2
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts +6 -8
- package/lib/index.esm.js +2 -2
- package/lib/mazey.min.js +2 -2
- package/package.json +10 -5
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Mazey v5.7.
|
|
2
|
+
* Mazey v5.7.1 https://github.com/chengchuu/mazey
|
|
3
3
|
* (c) 2018-2026 Cheng
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function t(t,r){if(t){if("string"==typeof t)return e(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function r(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,f=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){f=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(e,r)||t(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){try{return Date.prototype.getTime.call(e)}catch(e){return null}}var o=/^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2})(?::(\d{2}))?)?$/,i=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?(Z|[+-]\d{2}:\d{2})$/;function a(e,t,r,n,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=new Date(0);return u?(c.setUTCFullYear(e,t-1,r),c.setUTCHours(n,o,i,a),Number.isFinite(c.getTime())&&c.getUTCFullYear()===e&&c.getUTCMonth()===t-1&&c.getUTCDate()===r&&c.getUTCHours()===n&&c.getUTCMinutes()===o&&c.getUTCSeconds()===i&&c.getUTCMilliseconds()===a):(c.setFullYear(e,t-1,r),c.setHours(n,o,i,a),Number.isFinite(c.getTime())&&c.getFullYear()===e&&c.getMonth()===t-1&&c.getDate()===r&&c.getHours()===n&&c.getMinutes()===o&&c.getSeconds()===i&&c.getMilliseconds()===a)}function u(e,t,r,n,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=new Date(0);return u.setFullYear(e,t-1,r),u.setHours(n,o,i,a),u}function c(e){if("number"==typeof e){var t=new Date(e);return Number.isFinite(e)&&Number.isFinite(t.getTime())?t:null}if("object"==typeof e&&null!==e){var c=n(e);return null!==c&&Number.isFinite(c)?new Date(c):null}if("string"!=typeof e)return null;var f=e.trim();if(!f)return null;var l=o.exec(f);if(l){var s=r(l.slice(1),6),d=s[0],p=s[1],v=s[2],h=s[3],g=void 0===h?"0":h,m=s[4],y=void 0===m?"0":m,b=s[5],w=r([d,p,v,g,y,void 0===b?"0":b].map(Number),6),x=w[0],E=w[1],S=w[2],O=w[3],T=w[4],A=w[5];return a(x,E,S,O,T,A)?u(x,E,S,O,T,A):null}var j=i.exec(f);if(!j)return null;var _=r(j.slice(1),8),k=_[0],N=_[1],M=_[2],C=_[3],P=_[4],D=_[5],L=void 0===D?"0":D,R=_[6],F=void 0===R?"":R,I=_[7],U=Number("".concat(F,"00").slice(0,3));if(!a(Number(k),Number(N),Number(M),Number(C),Number(P),Number(L),U,!0))return null;if("Z"!==I){var z=Number(I.slice(1,3)),$=Number(I.slice(4,6));if(z>23||$>59)return null}return function(e,t,r,n,o,i,a,u){var c=new Date(0);if(c.setUTCFullYear(e,t-1,r),c.setUTCHours(n,o,i,a),"Z"===u)return c;var f="+"===u[0]?1:-1,l=60*Number(u.slice(1,3))+Number(u.slice(4,6));return new Date(c.getTime()-f*l*60*1e3)}(Number(k),Number(N),Number(M),Number(C),Number(P),Number(L),U,I)}var f=/^(\d{4,})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?$/;function l(e,t){var r=String(e);return r.length>=t?r:"".concat("0".repeat(t-r.length)).concat(r)}function s(e){if("string"!=typeof e)return null;var t=f.exec(e);if(!t)return null;var n=r(t.slice(1),7),o=n[0],i=n[1],c=n[2],l=n[3],s=n[4],d=n[5],p=void 0===d?"0":d,v=n[6],h=void 0===v?"":v,g=Number(o),m=Number(i),y=Number(c),b=Number(l),w=Number(s),x=Number(p),E=Number("".concat(h,"00").slice(0,3));return g<1||!a(g,m,y,b,w,x,E)?null:u(g,m,y,b,w,x,E)}function d(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="object"==typeof e&&null!==e?n(e):null;if(null===o)throw new TypeError("date must be a Date");if(!Number.isFinite(o))throw new RangeError("Invalid date");var i=null!==(t=r.precision)&&void 0!==t?t:"minute";if("minute"!==i&&"second"!==i&&"millisecond"!==i)throw new TypeError("precision must be minute, second, or millisecond");var a=new Date(o),u=a.getFullYear();if(u<1)throw new RangeError("Date year must be greater than zero");var c=[l(u,4),l(a.getMonth()+1,2),l(a.getDate(),2)].join("-"),f=[l(a.getHours(),2),l(a.getMinutes(),2)];"minute"!==i&&f.push(l(a.getSeconds(),2));var s="".concat(c,"T").concat(f.join(":"));return"millisecond"===i&&(s+=".".concat(l(a.getMilliseconds(),3))),s}function p(e,t){var r="number"==typeof e?e:"object"==typeof e&&null!==e?n(e):null,o=new Date(null!=r?r:NaN),i="number"==typeof t?t<0?Math.ceil(t):Math.floor(t):NaN;if(!Number.isFinite(o.getTime())||!Number.isFinite(i))return new Date(NaN);if(0===i)return o;var a=o.getMonth(),u=o.getDate(),c=o.getFullYear()-i,f=new Date(o.getTime());return f.setFullYear(c,a+1,0),u>=f.getDate()?f:(o.setFullYear(c,a,u),o)}function v(){return Date.now?Date.now():(new Date).getTime()}var h={type:"d"};function g(e){return"string"==typeof e&&/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e)?e.replace(" ","T"):e}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,o=(n=Object.assign({},h,n)).type;"number"==typeof e&&Number.isFinite(e)||(e=new Date(g(e)).getTime()),"number"==typeof t&&Number.isFinite(t)||(t=new Date(g(t)).getTime());var i=Number(t)-Number(e),a="",u=r(new Array(4).fill(0),4),c=u[0],f=(u[1],u[2],u[3]);if(i>=0)switch(c=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),f=Math.floor(i/1e3),o){case"d":a=c;break;case"text":a=[{value:c=Math.floor(i/1e3/60/60/24),unit:"day"},{value:Math.floor(i/1e3/60/60%24),unit:"hour"},{value:Math.floor(i/1e3/60%60),unit:"minute"},{value:f=Math.floor(i/1e3%60),unit:"second"}].filter(function(e){return e.value>0}).map(function(e){return b(e.value,e.unit)}).join(" ")||b(0,"second");break;default:a=f}return a}function y(){return m(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:h)}function b(e,t){var r=Math.round(10*e)/10,n=1===r?t:"".concat(t,"s");return"".concat(r," ").concat(n)}function w(e){var t=(Number.isFinite(e)?Math.max(e,0):0)/1e3;return t>=86400?b(t/24/60/60,"day"):t>=3600?b(t/60/60,"hour"):t>=60?b(t/60,"minute"):b(t,"second")}function x(e){return null!==c(e)}function E(e){var t=c(e);if(!t)return!1;var r=new Date;return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function S(e){var t=c(e);return null!==t&&t.getFullYear()===(new Date).getFullYear()}function O(e){var t=c(e);if(!t)return!1;var r=new Date;return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()}function T(e){var t=c(e);if(!t)return!1;var r=new Date,n=(r.getDay()+6)%7;r.setHours(0,0,0,0),r.setDate(r.getDate()-n);var o=new Date(r.getTime());o.setDate(o.getDate()+7);var i=t.getTime();return i>=r.getTime()&&i<o.getTime()}function A(e){var t=c(e);if(!t)return!1;var r=new Date;return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()&&t.getHours()===r.getHours()}function j(e,t){var r=Math.max(1,Math.round(e));return"about ".concat(r," ").concat(t).concat(1===r?"":"s")}function _(e){var t=c(e);if(!t)return"";var r=6e4,n=36e5,o=864e5,i=Math.abs(t.getTime()-Date.now());return i<3e4?"less than a minute":i<9e4?"about 1 minute":i<27e5?j(i/r,"minute"):i<54e5?"about 1 hour":i<864e5?j(i/n,"hour"):i<1512e5?"about 1 day":i<30*o?j(i/o,"day"):i<45*o?"about 1 month":i<365*o?j(i/(30*o),"month"):i<545*o?"about 1 year":j(i/(365*o),"year")}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd";void 0===e&&(e=new Date);var r=new Date(e);if(!Number.isFinite(r.getTime()))throw new RangeError("Invalid date");var n=r.getHours(),o={yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate()<10?"0"+r.getDate():r.getDate(),HH:n<10?"0"+n:n,hh:(n%12||12)<10?"0"+(n%12||12):n%12||12,mm:r.getMinutes()<10?"0"+r.getMinutes():r.getMinutes(),ss:r.getSeconds()<10?"0"+r.getSeconds():r.getSeconds(),a:n<12?"AM":"PM"},i=t||"yyyy-MM-dd";return Object.keys(o).forEach(function(e){var t=o[e];"MM"===e&&Number(t)<=9&&(t="0".concat(t)),i=i.split(e).join(String(t))}),i}function N(e){return k(void 0===e?new Date:new Date(e instanceof Date?e.getTime():e),"yyyy.MMdd.HHmmss").split(".").map(function(e){return String(Number(e))}).join(".")}function M(e,t,r){var n=c(e);if(!n)throw new TypeError("startDate must be a valid date.");var o=c(t);if(!o)throw new TypeError("endDate must be a valid date.");var i=o.getTime()-n.getTime();if(i<=0)throw new RangeError("endDate must be later than startDate.");var a=function(e){if("number"==typeof e){if(!Number.isFinite(e))throw new TypeError("totalReturnRate must be a finite number or percentage string.");return e}if("string"!=typeof e)throw new TypeError("totalReturnRate must be a finite number or percentage string.");var t=e.trim();if(!t)throw new TypeError("totalReturnRate must not be empty.");var r=t.endsWith("%")?t.slice(0,-1).trim():t;if(!r)throw new TypeError("totalReturnRate must be a valid percentage string.");var n=Number(r);if(!Number.isFinite(n))throw new TypeError("totalReturnRate must be a valid percentage string.");return n/100}(r);if(a<=-1)throw new RangeError("totalReturnRate must be greater than -1.");var u=i/864e5,f=Math.pow(1+a,365/u)-1;if(!Number.isFinite(f))throw new RangeError("calculated CAGR must be finite.");return f}function C(e,t){var r=e.length,n=t.length;if(0===r||0===n)return 0;for(var o=Array.from({length:r},function(){return new Array(n).fill(0)}),i=0,a=0;a<r;++a)for(var u=0;u<n;++u)if(e[a]===t[u]){var c=0;a>0&&u>0&&(c=o[a-1][u-1]),o[a][u]=c+1,i=Math.max(i,o[a][u])}return i}function P(e,t){return C(e,t)}function D(e,t){var r=e.length,n=t.length;if(0===r||0===n)return 0;for(var o=Array.from({length:r},function(){return new Array(n).fill(0)}),i=0;i<r;++i)for(var a=0;a<n;++a)if(e[i]===t[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=0,f=0;a>0&&(c=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(c,f)}return o[r-1][n-1]}function L(e,t){return D(e,t)}function R(e){return Math.random()<e}function F(e){return R(e)}function I(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function U(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){I(i,n,o,a,u,"next",e)}function u(e){I(i,n,o,a,u,"throw",e)}a(void 0)})}}function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $,B={exports:{}},q={exports:{}};($=q).exports=function(e,t){this.v=e,this.k=t},$.exports.__esModule=!0,$.exports.default=$.exports;var Y=q.exports,W={exports:{}},Z={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Z);var H=Z.exports;!function(e){var t=H;function r(){var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(e,r,i,a){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return t(c,"_invoke",function(e,t,r){var i,a,u,c=0,l=r||[],s=!1,d={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(e,t){return i=e,a=0,u=n,d.n=t,f}};function p(e,t){for(a=e,u=t,o=0;!s&&c&&!r&&o<l.length;o++){var r,i=l[o],p=d.p,v=i[2];e>3?(r=v===t)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=p&&((r=e<2&&p<i[1])?(a=0,d.v=t,d.n=i[1]):p<v&&(r=e<3||i[0]>t||t>v)&&(i[4]=e,i[5]=t,d.n=v,a=0))}if(r||e>1)return f;throw s=!0,t}return function(r,l,v){if(c>1)throw TypeError("Generator is already running");for(s&&1===l&&p(l,v),a=l,u=v;(o=a<2?n:u)||!s;){i||(a?a<3?(a>1&&(d.n=-1),p(a,u)):d.n=u:d.v=u);try{if(c=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,u)))throw TypeError("iterator result is not an object");if(!o.done)return o;u=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(s=d.n<0)?u:e.call(t,d))!==f)break}catch(e){i=n,a=1,u=e}finally{c=1}}return{value:o,done:s}}}(e,i,a),!0),c}var f={};function l(){}function s(){}function d(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),v=d.prototype=l.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,u,"GeneratorFunction")),e.prototype=Object.create(v),e}return s.prototype=d,t(v,"constructor",d),t(d,"constructor",s),s.displayName="GeneratorFunction",t(d,u,"GeneratorFunction"),t(v),t(v,u,"Generator"),t(v,a,function(){return this}),t(v,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(W);var V=W.exports,G={exports:{}},J={exports:{}},K={exports:{}};!function(e){var t=Y,r=H;e.exports=function e(n,o){function i(e,r,a,u){try{var c=n[e](r),f=c.value;return f instanceof t?o.resolve(f.v).then(function(e){i("next",e,a,u)},function(e){i("throw",e,a,u)}):o.resolve(f).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,u)})}catch(e){u(e)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(K);var Q=K.exports;!function(e){var t=V,r=Q;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(J);var X=J.exports;!function(e){var t=X;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(G);var ee=G.exports,te={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(te);var re=te.exports,ne={exports:{}},oe={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(oe);var ie=oe.exports;!function(e){var t=ie.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(ne);var ae=ne.exports;!function(e){var t=Y,r=V,n=ee,o=X,i=Q,a=re,u=ae;function c(){var f=r(),l=f.m(c),s=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function v(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,u(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,t,r,n){return f.w(v(e),t,r,n&&n.reverse())},isGeneratorFunction:d,mark:f.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(d(t)?o:n)(v(e),t,r,i,a)},keys:a,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports}(B);var ue=(0,B.exports)(),ce=ue;try{regeneratorRuntime=ue}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=ue:Function("r","regeneratorRuntime = r")(ue)}var fe=z(ce);function le(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return se(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?se(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var de=Function.prototype.toString.call(Object);function pe(e,t,r){var n,o=null===(n=Object.getOwnPropertyDescriptor(t,r))||void 0===n?void 0:n.get;if(!o)return!1;try{return o.call(e),!0}catch(e){return!1}}function ve(e){return null===e||"object"!=typeof e?e:he(e,function(){if("undefined"!=typeof WeakMap)return new WeakMap;var e=[],t=[];return{get:function(r){var n=e.indexOf(r);return-1===n?void 0:t[n]},set:function(r,n){e.push(r),t.push(n)}}}())}function he(e,t){if(null===e||"object"!=typeof e)return e;var r=e,o=t.get(r);if(void 0!==o)return o;var i=n(r);if(null!==i){var a=new Date(i);return t.set(r,a),a}var u=function(e){var t,r=null===(t=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))||void 0===t?void 0:t.get;if(!r)return null;try{return r.call(e)}catch(e){return null}}(r);if(null!==u){var c=e,f=new RegExp(u,function(e){if("string"==typeof e.flags)return e.flags;var t=e,r="";return t.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}(c));return f.lastIndex=c.lastIndex,t.set(r,f),f}if("undefined"!=typeof ArrayBuffer&&pe(r,ArrayBuffer.prototype,"byteLength")){var l=ArrayBuffer.prototype.slice.call(e,0);return t.set(r,l),l}if("undefined"!=typeof SharedArrayBuffer&&pe(r,SharedArrayBuffer.prototype,"byteLength")){var s=SharedArrayBuffer.prototype.slice.call(e,0);return t.set(r,s),s}if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(e)){var d=he(e.buffer,t),p="undefined"!=typeof DataView&&pe(r,DataView.prototype,"byteLength")?new DataView(d,e.byteOffset,e.byteLength):new e.constructor(d,e.byteOffset,e.length);return t.set(r,p),p}if("undefined"!=typeof Map&&pe(r,Map.prototype,"size")){var v=new Map;return t.set(r,v),Map.prototype.forEach.call(e,function(e,r){v.set(he(r,t),he(e,t))}),v}if("undefined"!=typeof Set&&pe(r,Set.prototype,"size")){var h=new Set;return t.set(r,h),Set.prototype.forEach.call(e,function(e){h.add(he(e,t))}),h}var g=Array.isArray(e),m=Object.getPrototypeOf(e),y=function(e){var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.prototype.hasOwnProperty.call(t,"constructor")?t.constructor:null;return"function"==typeof r&&Function.prototype.toString.call(r)===de}(r),b=!g&&!y&&function(e){var t=Object.getPrototypeOf(e),r=null==t?void 0:t.constructor;return"function"==typeof r&&-1===Function.prototype.toString.call(r).indexOf("[native code]")}(r);if(!g&&!y&&!b)return t.set(r,e),e;var w=g?new Array(e.length):Object.create(b?Object.prototype:m);return t.set(r,w),function(e){var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t}(r).forEach(function(e){if(!g||"length"!==e){var n=Object.getOwnPropertyDescriptor(r,e);n&&("value"in n&&(n.value=he(n.value,t)),Object.defineProperty(w,e,n))}}),w}function ge(e){return!e||"object"!=typeof e||Object.isFrozen(e)||(Object.freeze(e),Object.values(e).forEach(ge)),e}function me(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach(function(t){void 0!==t&&Object.keys(t).forEach(function(r){var n=t[r];if(void 0!==n){var o=e;"__proto__"!==r||Object.prototype.hasOwnProperty.call(e,r)?o[r]=n:Object.defineProperty(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0})}})}),e}function ye(e){return ve(e)}function be(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substring(1):t}function we(e){var t=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});return t.endsWith("-")?t.slice(0,-1):t}function xe(e){return be(e)}function Ee(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substring(1):t}function Se(e){return e.replace(/_([a-z])/g,function(e,t){return t.toUpperCase()})}function Oe(e){return Ee(e)}function Te(e){if("string"!=typeof e)throw new TypeError("value must be a string");var t=e.replace(/[^A-Za-z0-9_$]/g,"_").toUpperCase();return/^[A-Za-z_$]/.test(t)?t:"_".concat(t)}function Ae(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,r=/\s/;r.test(e.charAt(t));)t--;return e.slice(0,t+1)}function je(e){if("string"!=typeof e)return!1;try{return JSON.parse(e),!0}catch(e){}return!1}function _e(e){return je(e)}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return JSON.parse(e)}catch(e){return t}}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;if(!Number.isFinite(e)||e<=0)return"";e=Math.floor(e);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function Me(){return Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:5)}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=[v(),Me(e||3)];return t[0]+t[1]}function Pe(){return Ce(arguments.length>0&&void 0!==arguments[0]?arguments[0]:3)}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="";return r=t?(100*e).toFixed(t):String(Math.floor(100*e)),"".concat(r,"%")}function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(String(e)).toFixed(t)}function Re(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign({},r);var n=null,o=null,i=null,a=null,u=0,c=function(){u=!1===r.leading?0:v(),i=null,a=e.apply(this,o),i||(n=o=null)};return function(){var f=v();u||!1!==r.leading||(u=f);var l=t-(f-u);n=this;for(var s=arguments.length,d=new Array(s),p=0;p<s;p++)d[p]=arguments[p];return o=d,l<=0||l>t?(i&&(clearTimeout(i),i=null),u=f,a=e.apply(n,o),i||(n=o=null)):i||!1===r.trailing||(i=setTimeout(c.bind(n),l)),a}}function Fe(e,t,r){var n=null,o=null,i=null,a=null,u=null,c=function(){var f=v()-i;f<t&&f>=0?o=setTimeout(c,t-f):(o=null,r||(u=e.apply(n,a),o||(n=a=null)))};return function(){n=this;for(var f=arguments.length,l=new Array(f),s=0;s<f;s++)l[s]=arguments[s];a=l,i=v();var d=r&&!o;return o||(o=setTimeout(c,t)),d&&(u=e.apply(n,a),n=a=null),u}}function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isNaNAsNumber,n=void 0!==r&&r,o=t.isInfinityAsNumber,i=void 0!==o&&o,a=t.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!n&&isNaN(e)))}function Ue(e){var t=null;if(e&&"function"==typeof e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t=e.apply(void 0,n)}return t}function ze(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Ue.apply(void 0,[e].concat(r))}function $e(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t}function Be(e){var t=Boolean(e),r="object"==typeof e,n="[object Object]"===Object.prototype.toString.call(e);return t&&r&&n}function qe(e){return"function"==typeof e}function Ye(e){return"string"==typeof e}function We(e){return"boolean"==typeof e}function Ze(e){return We(e)}function He(e){return null==e}function Ve(e){return"[object Array]"===Object.prototype.toString.call(e)}function Ge(e){return!!Be(e)&&0!==Object.keys(e).length}function Je(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")}function Ke(e){return Je(e)}function Qe(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeNewLine,r=void 0!==t&&t,n="";return e&&(n=e.replace(/<\/?.+?>/g,""),r&&(n=n.replace(/[\r\n]/g,""))),n}function Xe(e){return Qe(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function et(e){return Qe(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function tt(e){return Qe(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new TypeError("value must be a string.");var r=t.preserveEntities?/&(?!(?:#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]+);)/gi:/&/g,n={"<":"<",">":">",'"':""","'":"'"};return e.replace(r,"&").replace(/[<>"']/g,function(e){return n[e]})}function nt(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,function(e){return t[e]})}function ot(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&|<|>|"|'|/)/g,function(e){return t[e]})}function it(e){return ot(e)}function at(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{hasDot:!1,dotText:"..."};if(r=Object.assign({hasDot:!1,dotText:"..."},r),""!=e&&e){for(var n=0,o="",i=/[^\x00-\xff]/g,a="",u=e.replace(i,"**").length,c=0;c<u&&(null!=(a=e.charAt(c).toString()).match(i)?n+=2:n++,!(n>t));c++)o+=a;return r.hasDot&&u>t&&(o+=r.dotText),o}return""}function ut(e,t){return at(e,t,{hasDot:arguments.length>2&&void 0!==arguments[2]&&arguments[2]})}function ct(e,t){return ut(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}function ft(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{validStatusRange:[200,300],validCode:[0]})||{},r=t.validStatusRange,n=void 0===r?[200,300]:r,o=t.validCode,i=void 0===o?[0]:o;2!==n.length&&console.error("valid validStatusRange is required");var a=!1;if(e&&e.status&&2===n.length&&e.status>=n[0]&&e.status<n[1]){var u=e.data;u&&i.includes(u.code)&&(a=!0)}return a}function lt(e,t,r){if(null===e||"object"!=typeof e)return!1;var n,o=e,i=le(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(null===o||"object"!=typeof o&&"function"!=typeof o||!Object.prototype.hasOwnProperty.call(o,a))return!1;o=o[a]}}catch(e){i.e(e)}finally{i.f()}return o===r}var st=["B","KB","MB","GB","TB"];function dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.base,n=void 0===r?1024:r,o=t.fractionDigits,i=void 0===o?1:o,a=t.invalidValue,u=void 0===a?"":a;if(!Number.isFinite(e)||e<0||1e3!==n&&1024!==n||!Number.isInteger(i)||i<0||i>20)return u;for(var c=e,f=0;c>=n&&f<st.length-1;)c/=n,f+=1;return 0===f?"".concat(Number(c.toFixed(i))," ").concat(st[f]):"".concat(c.toFixed(i)," ").concat(st[f])}function pt(e){return dt(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function vt(e){var t,r=0;for(t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r}function ht(e){return gt.apply(this,arguments)}function gt(){return(gt=U(fe.mark(function e(t){var r,n,o,i,a,u,c;return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r="undefined"==typeof crypto?null:crypto)&&r.subtle&&"function"==typeof r.subtle.digest){e.next=1;break}throw new Error("Web Crypto API is not available.");case 1:if(n=t,"string"!=typeof t){e.next=3;break}if("undefined"!=typeof TextEncoder){e.next=2;break}throw new Error("TextEncoder is not available.");case 2:n=(new TextEncoder).encode(t);case 3:return e.next=4,r.subtle.digest("SHA-256",n);case 4:for(o=e.sent,i="",a=new Uint8Array(o),u=0;u<a.length;u++)c=a[u].toString(16),i+=1===c.length?"0".concat(c):c;return e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function mt(e){return/^1\d{10}$/.test(e)}var yt=mt;function bt(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function wt(e){if(!Number.isFinite(e)||e<=0)return"";e=Math.floor(e);for(var t="";e>0;){var r=e%26;0===r&&(r=26),t=String.fromCharCode(r+96)+t,e=(e-r)/26}return t}function xt(){return"v4"}function Et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return!0===e},n=t.interval,o=void 0===n?1e3:n,i=t.times,a=void 0===i?10:i,u=t.context,c=t.args;if("function"==typeof e){if(!Number.isFinite(o)||o<0)console.error("Expected a non-negative number for interval.");else if(!Number.isFinite(a)||a<0)console.error("Expected a non-negative number for times.");else if(0!==a){var f=0,l=function(){setTimeout(U(fe.mark(function t(){var n;return fe.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e.apply(u,c);case 1:if(n=t.sent,!(r(n)||++f>=a)){t.next=2;break}return t.abrupt("return");case 2:l();case 3:case"end":return t.stop()}},t)})),o)};l()}}else console.error("Expected a function.")}function St(e){return Ot.apply(this,arguments)}function Ot(){return(Ot=U(fe.mark(function e(t){return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){setTimeout(function(){e(t)},t)}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Tt(e){return At.apply(this,arguments)}function At(){return(At=U(fe.mark(function e(t){return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",St(t));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}var jt="";function _t(){if(jt)return"browser"===jt;var e="undefined"!=typeof window;return e&&(jt="browser"),e}function kt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Nt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Mt(e,t){var r=e[t];if(void 0!==r&&"string"!=typeof r)throw new TypeError("manifest.".concat(t," must be a string when provided"));return r}function Ct(e){if(void 0===e)return{name:""};if("string"==typeof e)return{name:e.trim()};if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError("manifest.author must be a string or object");var t,r=e,n={name:""},o=kt(["name","email","url"]);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=r[i];if(void 0!==a&&"string"!=typeof a)throw new TypeError("manifest.author.".concat(i," must be a string when provided"));if("string"==typeof a){var u=a.trim();("name"===i||u)&&(n[i]=u)}}}catch(e){o.e(e)}finally{o.f()}return n}function Pt(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError("manifest must be an object");if(null===r||"object"!=typeof r||Array.isArray(r))throw new TypeError("options must be an object when provided");var n=e;if("string"!=typeof n.name||!n.name.trim())throw new TypeError("manifest.name must be a non-empty string");var o=n.name.trim(),i=function(e){if(/\s/.test(e))throw new TypeError("manifest.name must not contain whitespace");if(e.startsWith("@")){var t=e.split("/");if(2!==t.length||t[0].length<2||!t[1])throw new TypeError("manifest.name must be a valid scoped package name");return t[1]}if(e.includes("/"))throw new TypeError("manifest.name must be an unscoped or scoped package name");return e}(o),a=null!==(t=r.packageManager)&&void 0!==t?t:"npm";if("npm"!==a&&"pnpm"!==a&&"yarn"!==a)throw new TypeError('packageManager must be "npm", "pnpm", or "yarn"');var u="npm"===a?"npm install":"".concat(a," add");return{name:o,version:Mt(n,"version"),description:Mt(n,"description"),license:Mt(n,"license"),author:Ct(n.author),unscopedName:i,iifeGlobal:Te(i),installCommand:"".concat(u," ").concat(o)}}function Dt(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}function Lt(e){var t=e.indexOf("#"),r=-1===t?e:e.slice(0,t),n=r.indexOf("?"),o=/^(?:[a-z][a-z\d+.-]*:)?\/\//i.test(r)||"/"===r.charAt(0),i=-1===n?o?"":r:r.slice(n+1);return i?i.split("&").reduce(function(e,t){if(!t||-1===t.indexOf("="))return e;var r=t.indexOf("=");return e.push([Dt(t.slice(0,r)),Dt(t.slice(r+1))]),e},[]):[]}function Rt(e,t){return Lt(e).filter(function(e){return r(e,1)[0]===t}).map(function(e){return r(e,2)[1]})}var Ft=/^(?=.{1,39}$)(?!.*--)[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/,It=/^(?=.{1,100}$)(?!\.{1,2}$)[A-Za-z0-9_.-]+$/;function Ut(){return new Error("The value does not identify one supported GitHub repository")}function zt(e,t){var r=t.replace(/\.git$/i,"");if(!Ft.test(e)||!It.test(r))throw Ut();var n="".concat(e,"/").concat(r);return{owner:e,name:r,slug:n,url:"https://github.com/".concat(n)}}function $t(e){if("string"!=typeof e)throw new TypeError("value must be a string");var t=e.trim();if(!t||/[%\\?#]/.test(t)||function(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<=31||127===r)return!0}return!1}(t))throw Ut();var r=t.match(/^(?:github:)?([^/:\s]+)\/([^/\s]+)$/i);if(r)return zt(r[1],r[2]);var n=t.match(/^git@([^:\s]+):([^/\s]+)\/([^/\s]+)$/);if(n&&"github.com"===n[1].toLowerCase())return zt(n[2],n[3]);var o,i=t.replace(/^git\+(?=(?:git|ssh|https?):\/\/)/i,""),a=i.match(/^[a-z][a-z\d+.-]*:\/\/([^/?#]+)/i);if(!a||/(^|\/)\.{1,2}(?:\/|$)/.test(i.slice(a[0].length)))throw Ut();if(-1!==a[1].slice(a[1].lastIndexOf("@")+1).indexOf(":")||"function"!=typeof URL)throw Ut();try{o=new URL(i)}catch(e){throw Ut()}var u=o.protocol.toLowerCase(),c=o.hostname.toLowerCase().replace(/^www\./,"");if(!["git:","ssh:","http:","https:"].includes(u)||"github.com"!==c||""!==o.username&&"git"!==o.username||""!==o.password||""!==o.search||""!==o.hash)throw Ut();var f=o.pathname.match(/^\/([^/]+)\/([^/]+)\/?$/);if(!f)throw Ut();return zt(f[1],f[2])}function Bt(e){return Rt(location.search,e)[0]||""}function qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""===e&&(e=location.search);var t={};return Lt(e).forEach(function(e){var n=r(e,2),o=n[0],i=n[1];Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{configurable:!0,enumerable:!0,value:i,writable:!0})}),t}function Yt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Rt(e,t);return r.returnArray?n:n.length?n[0]:null}function Wt(e,t,r){var n=e.indexOf("#"),o=-1===n?"":e.slice(n),i=-1===n?e:e.slice(0,n),a=i.indexOf("?"),u=-1===a?i:i.slice(0,a),c=-1===a?"":i.slice(a+1),f=encodeURIComponent(t),l=encodeURIComponent(r),s=!1,d=(c?c.split("&").filter(Boolean):[]).reduce(function(e,r){var n=r.indexOf("=");return Dt(-1===n?r:r.slice(0,n))===t?s||(e.push("".concat(f,"=").concat(l)),s=!0):e.push(r),e},[]);return s||d.push("".concat(f,"=").concat(l)),"".concat(u,"?").concat(d.join("&")).concat(o)}function Zt(e){var t=location.hash.split("?");return 1===t.length?"":Rt("?".concat(t.slice(1).join("?")),e)[0]||""}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["hostname"];if(ar(e)){var r=new window.URL(e);return t.reduce(function(e,t){return e+=r[t]},"")}var n=document.createElement("a");return n.href=e,t.reduce(function(e,t){return e+=n[t]},"")}function Vt(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b()!@:%_+.~#?&//=]*)$/.test(e)}function Gt(e){return void 0===e||Number(e)<=65535}function Jt(e){var t=e.split(".");return 4===t.length&&t.every(function(e){return/^\d{1,3}$/.test(e)&&(1===e.length||"0"!==e.charAt(0))&&Number(e)<=255})}function Kt(e){var t=e.split("::");if(t.length>2)return!1;var r=2===t.length,n=[];t.forEach(function(e){e&&(n=n.concat(e.split(":")))});for(var o=0,i=0;i<n.length;i++){var a=n[i];if(-1!==a.indexOf(".")){if(i!==n.length-1||!Jt(a))return!1;o+=2}else{if(!/^[0-9a-f]{1,4}$/i.test(a))return!1;o+=1}}return r?o<8:8===o}function Qt(e){var t=e.match(/^\[([0-9a-f:.]+)\]$/i);if(t)return Kt(t[1]);if("."===e.charAt(e.length-1)&&(e=e.slice(0,-1)),Jt(e))return!0;var r=e.split(".");return!(r.length<2||r.some(function(e){return!e||!/^[a-z\d-]+$/i.test(e)||"-"===e.charAt(0)||"-"===e.charAt(e.length-1)}))&&!/^\d+$/.test(r[r.length-1])}function Xt(e){var t=e.match(/^https?:\/\/([^/?#]+)(?:[/?#][^\s<>"`]*)?$/i);if(!t||-1!==t[1].indexOf("@"))return!1;var r=t[1],n=r.match(/^\[([0-9a-f:.]+)\](?::(\d*))?$/i);if(n)return Kt(n[1])&&Gt(n[2]);var o=r.match(/^([^:]+)(?::(\d*))?$/);return!(!o||!Gt(o[2]))&&Qt(o[1])}function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!0};if("string"!=typeof e||!e||e.trim()!==e)return!1;var r=/^https?:\/\/[^/\\]/i.test(e),n=/^\/\/[^/\\]/.test(e);if(!r&&(t.strict||!n))return!1;var o=n?"http:".concat(e):e;if(!Xt(o))return!1;if("function"!=typeof URL)return!0;try{var i=new URL(o);return("http:"===i.protocol||"https:"===i.protocol)&&Qt(i.hostname)&&!i.username&&!i.password}catch(e){try{return new URL("http://example.com"),!1}catch(e){return Xt(o)}}}function tr(e){var t="";if("string"!=typeof e||""==e)return t;var r=e.split(/[?#]/,1)[0],n=/\.[^/]+$/.exec(r);return n?(n[0].length>1&&(t=n[0].substring(1)),t):t}function rr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t||(t=".js");for(var r=document.querySelectorAll("script[src]"),n=0;n<r.length;n++){var o=r[n].getAttribute("src");if(o&&-1!==o.indexOf(t)){var i=Rt(o,e)[0];if(void 0!==i)return i}}return""}function nr(e){return e&&0===Object.keys(e).length?"":"?".concat(Object.keys(e).map(function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))}).join("&"))}function or(e){return e.replace(/^http:/,"https:")}function ir(e){return or(e)}function ar(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=window.URL;if("function"!=typeof t)return!1;try{var r=new t(e);return Boolean(r.href)}catch(e){return!1}}function ur(e){var t="";(!er(e)&&er(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),ar(e))&&(t=new URL(e).host);return t}function cr(e){var t="";(!er(e)&&er(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),ar(e))&&(t=new URL(e).pathname);return t}function fr(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fireOnInit,r=void 0===t||t,n=history,o=location.href,i=[],a=function(t){var r=location.href;if(r!==o||"load"===t){var n=o;o=r,e({url:r,oldUrl:n,trigger:t})}},u=function(){return a("popstate")},c=function(){return a("hashchange")};window.addEventListener("popstate",u),window.addEventListener("hashchange",c),i.push(function(){return window.removeEventListener("popstate",u)}),i.push(function(){return window.removeEventListener("hashchange",c)}),n.__mazeyUrlChangePatched__||(n.__mazeyUrlChangePatched__=!0,n.__mazeyUrlChangeSubscribers__=new Set,n.__mazeyRawPushState__=history.pushState.bind(history),n.__mazeyRawReplaceState__=history.replaceState.bind(history),history.pushState=function(){n.__mazeyRawPushState__.apply(n,arguments),n.__mazeyUrlChangeSubscribers__.forEach(function(e){return e("pushState")})},history.replaceState=function(){n.__mazeyRawReplaceState__.apply(n,arguments),n.__mazeyUrlChangeSubscribers__.forEach(function(e){return e("replaceState")})});var f=function(e){return a(e)};return n.__mazeyUrlChangeSubscribers__.add(f),i.push(function(){return n.__mazeyUrlChangeSubscribers__.delete(f)}),r&&a("load"),function(){i.forEach(function(e){return e()})}}function lr(r){return function(t){if(Array.isArray(t))return e(t)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||t(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(e){return sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(e)}function dr(e){var t=function(e,t){if("object"!=sr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sr(t)?t:t+""}function pr(e,t,r){return(t=dr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function hr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(r),!0).forEach(function(t){pr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var gr={enabled:!0,isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",isStringifyObject:!1,logFn:function(){},errorFn:function(){}};function mr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hr({},gr),r=Object.assign(hr({},gr),t),n=r.enabled,o=r.isClosed,i=r.showWrap,a=r.showDate,u=r.locales,c=r.isStringifyObject,f=r.logFn,l=r.errorFn,s=n;!0===o&&(yr.warn("The options.isClosed is deprecated. Please use options.enabled instead."),s=!1);var d=Object.create(null),p=function(){return(new Date).toLocaleDateString(u,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach(function(t){d[t]=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];if(s){var u,d,v=e,h=e;if("string"==typeof e&&e.length>=2){var g=e.length;v=":"===e[g-1]?e.substring(0,g-1):e}if(i&&console.log("--- ".concat(v," - begin ---")),a&&(h=e?"".concat(p()," ").concat(e):"".concat(p())),c&&(n=n.map(function(e){return Be(e)?JSON.stringify(e):e})),e||a)(u=console)[t].apply(u,[h].concat(lr(n)));else(d=console)[t].apply(d,lr(n));"log"===t&&f(),"error"===t&&l(),i&&console.log("--- ".concat(v," - end ---"))}}}),d}var yr=mr("[Mazey]"),br=mr("",{showDate:!0,locales:"zh-CN",isStringifyObject:!0});function wr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return xr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Er(e,t){if(!e)return yr.error("The element is not exist."),!1;for(var r=e.className.split(/\s+/),n=0;n<r.length;n++)if(r[n]===t)return!0;return!1}function Sr(e,t){if(e){if(Array.isArray(t))t.forEach(function(t){t&&e.classList.add(t)});else if(t){for(var r=e.className,n=r.split(/\s+/),o=0;o<n.length;o++)if(n[o]===t)return;var i,a="";""!==r&&(a=" "),i=r+a+t,e.className=i}}else yr.error("The element is not exist.")}function Or(e,t){Sr(e,t)}function Tr(e,t){var r;e?(r=(r=(r=(r=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=r):yr.error("The element is not exist.")}function Ar(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:""};if(!e)return!1;var r=document.createDocumentFragment(),n=null,o="",i=document.createElement("style");return t.id?(o="".concat(t.id),(n=document.getElementById(o))?n.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,r.appendChild(i),document.head.appendChild(r))):(i.innerHTML=e,r.appendChild(i),document.head.appendChild(r)),!0}function jr(){var e=window.jQuery||window.$;if(e){var t=e("img");return!(!t||!t.length)&&(t.each(function(){var t=e(this);if(t){var r=t.attr("src");if(r&&"string"==typeof r&&r.length){var n=r.match(/[?&]width=([0-9]+[a-z%]*)/),o=r.match(/[?&]height=([0-9]+[a-z%]*)/);n&&$e(n)&&n[1]&&t.width(n[1]),o&&$e(o)&&o[1]&&t.height(o[1])}}}),!0)}var r=document.getElementsByTagName("img");return r.length>0&&(Array.from(r).forEach(function(e){var t=e;if(t){var r=t.getAttribute("src");if(r&&"string"==typeof r&&r.length){var n=r.match(/[?&]width=([0-9]+[a-z%]*)/),o=r.match(/[?&]height=([0-9]+[a-z%]*)/);n&&$e(n)&&n[1]&&(t.style.width=n[1]),o&&$e(o)&&o[1]&&(t.style.height=o[1])}}}),!0)}function _r(){return jr()}function kr(e,t){var r="";return t&&t.length>0&&(r=t.join(";")+";"),"".concat(e,"{").concat(r,"}")}function Nr(e){for(var t=document.getElementsByTagName("meta"),r=0;r<t.length;r++)if(t[r].getAttribute("name")===e)return t[r].getAttribute("content")||"";return""}function Mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)return!1;var r=e.trim();if(!r)return!0===t.allowEmpty;var n=t.root||("undefined"==typeof document?null:document);if(!n)return!1;try{return n.querySelector(r),!0}catch(e){return!1}}function Cr(e){return Boolean(e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}var Pr=new WeakMap,Dr=new WeakMap,Lr={button:"inline-block",input:"inline-block",select:"inline-block",textarea:"inline-block",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",li:"list-item",summary:"list-item"},Rr=new Set(["address","article","aside","blockquote","body","dd","details","dialog","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","main","nav","ol","p","pre","section","ul"]);function Fr(e){if(!Cr(e))return null;var t=e.style;return t&&"string"==typeof t.display?e:null}function Ir(e){var t=new Set,r=function(e){var r=Fr(e);r&&t.add(r)};if("string"==typeof e){if("undefined"==typeof document)return[];try{document.querySelectorAll(e).forEach(r)}catch(e){return[]}return Array.from(t)}var n=Fr(e);if(n)return[n];if(!e||"object"!=typeof e)return[];if("function"==typeof e[Symbol.iterator]){var o,i=wr(e);try{for(i.s();!(o=i.n()).done;){r(o.value)}}catch(e){i.e(e)}finally{i.f()}return Array.from(t)}var a=e.length;if(!Number.isSafeInteger(a)||a<0)return[];for(var u=0;u<a;u+=1)r(e[u]);return Array.from(t)}function Ur(e){var t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e).display:null}function zr(e){var t=e.ownerDocument,r=e.localName.toLowerCase(),n=Dr.get(t);n||(n=new Map,Dr.set(t,n));var o=e.namespaceURI||"",i="".concat(o,":").concat(r),a=n.get(i);if(a)return a;var u="",c="http://www.w3.org/1999/xhtml"===o&&r.includes("-"),f=t.body||t.documentElement;if(f&&!c){var l=o&&"http://www.w3.org/1999/xhtml"!==o?t.createElementNS(o,r):t.createElement(r);f.appendChild(l);try{u=Ur(l)||""}finally{f.removeChild(l)}}return u&&"none"!==u||(u=function(e){return Lr[e]?Lr[e]:Rr.has(e)?"block":"inline"}(r)),n.set(i,u),u}function $r(e){return Ir(e).forEach(function(e){"none"!==Ur(e)&&"none"!==e.style.display&&Pr.set(e,e.style.display),e.style.display="none"}),e}function Br(e){return Ir(e).forEach(function(e){Pr.has(e)?(e.style.display=Pr.get(e),Pr.delete(e)):"none"===e.style.display&&(e.style.display=""),""===e.style.display&&"none"===Ur(e)&&(e.style.display=zr(e))}),e}function qr(e,t){if(void 0===e)return Cr(t.defaultElement)?t.defaultElement:null;var r=t.unwrap?t.unwrap(e):e;if(null==r)return null;if("string"==typeof r)try{return t.root.querySelector(r)}catch(e){return null}return"object"==typeof r&&"$el"in r&&(r=r.$el),Cr(r)?r:null}function Yr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.excludeSelector,n=void 0===r?"":r,o=t.replaceImagesWithAlt,i=void 0===o||o,a=t.normalizeWhitespace,u=void 0===a||a,c=e.cloneNode(!0);i&&Array.from(c.querySelectorAll("img[alt]")).forEach(function(e){var t,r=e.getAttribute("alt")||"";null===(t=e.parentNode)||void 0===t||t.replaceChild(c.ownerDocument.createTextNode(r),e)});var f=n.trim();f&&Mr(f,{root:c})&&Array.from(c.querySelectorAll(f)).forEach(function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)});var l=c.innerText||c.textContent||"";return u?l.replace(/\u00a0/g," ").replace(/\s+/g," ").trim():l}function Wr(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Zr(){var e=window.MAZEY_DEFINE_LISTENERS;if(e&&"object"==typeof e)return e;var t=Object.create(null);return window.MAZEY_DEFINE_LISTENERS=t,t}function Hr(e,t){var r=Zr();Array.isArray(r[e])||Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:[],writable:!0}),"function"==typeof t&&r[e].push(t)}function Vr(e,t){var r=Zr()[e];if(Array.isArray(r))for(var n=r.slice(),o=0,i=n.length;o<i;o++)"function"==typeof n[o]&&(void 0===t?n[o]():n[o](t))}function Gr(e,t){Vr(e,t)}function Jr(e,t){var r=Zr(),n=r[e];if("string"==typeof e&&Array.isArray(n))if("function"==typeof t){for(var o=0,i=n.length;o<i;o++)if(n[o]===t){r[e].splice(o,1);break}}else delete r[e]}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var r=JSON.stringify(t);sessionStorage.setItem(e,void 0===r?"null":r)}}function Qr(e){var t=null;if(e){var r=sessionStorage.getItem(e);if(r)try{t=JSON.parse(r)}catch(e){t=r}}return t}function Xr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var r=JSON.stringify(t);localStorage.setItem(e,void 0===r?"null":r)}}function en(e){var t=null;if(e){var r=localStorage.getItem(e);if(r)try{t=JSON.parse(r)}catch(e){t=r}}return t}var tn=Kr,rn=Qr,nn=Xr,on=en,an="__mazey_cookie_name_encoded__-",un="__mazey_cookie_value_encoded__-";function cn(e){return"".concat(un).concat(encodeURIComponent(e))}function fn(e){var t=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/.test(e),r=0===e.indexOf(an)||0===e.indexOf(un);return t&&!r?e:function(e){return"".concat(an).concat(encodeURIComponent(e))}(e)}function ln(e){var t=fn(e);return t!==e?[t,e]:[e]}function sn(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){var o=r[n].trim();if(0===o.indexOf(t))return o.substring(t.length)}}function dn(e){for(var t=ln(e),r="1"===sn(cn(e)),n=0;n<t.length;n++){var o=sn(t[n]);if(void 0!==o){if(r)try{return decodeURIComponent(o)}catch(e){return o}return o}}return""}function pn(e,t,r,n){var o;if(r){var i=new Date;i.setTime(i.getTime()+24*r*60*60*1e3),o="; expires="+i.toUTCString()}else o="";var a=function(e){for(var t=!0,r=0;r<e.length;r++){var n=e.charCodeAt(r);if(!(33===n||n>=35&&n<=43||n>=45&&n<=58||n>=60&&n<=91||n>=93&&n<=126)){t=!1;break}}return{isEncoded:!t,value:t?e:encodeURIComponent(e)}}(t),u=fn(e),c=a.isEncoded?"1":"",f=a.isEncoded?o:"; expires=Thu, 01 Jan 1970 00:00:00 GMT",l=["".concat(u,"=").concat(a.value).concat(o,"; path=/"),"".concat(cn(e),"=").concat(c).concat(f,"; path=/")],s=function(e){var t=e?"; domain=".concat(e):"";l.forEach(function(e){document.cookie="".concat(e).concat(t)})},d=location.hostname;if(n)s(n);else if(-1===d.indexOf("."))s();else{var p=d.split(".");p.shift(),s("."+p.join(".")),dn(e)!==t&&s(".".concat(d))}}function vn(e){var t=ln(e),r=t.concat(cn(e)),n=new Date;n.setTime(n.getTime()-1);var o=t.some(function(e){return void 0!==sn(e)});return r.forEach(function(e,t){r.indexOf(e)===t&&void 0!==sn(e)&&["".concat(e,"=; expires=").concat(n.toUTCString()),"".concat(e,"=; expires=").concat(n.toUTCString(),"; path=/")].forEach(function(e){document.cookie=e;var t=location.hostname;if(-1!==t.indexOf("."))for(var r=t.split("."),n=0;n<r.length;n++)document.cookie="".concat(e,"; domain=.").concat(r.slice(n).join("."))})}),o&&r.every(function(e){return void 0===sn(e)})}function hn(e){vn(e)}function gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function mn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(r),!0).forEach(function(t){pr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function yn(e){var t,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:""}).id,n=function(){},o=new Promise(function(e,r){t=e,n=r}),i=function(){l(),t("loaded")},a=document.createElement("link");a||n(new Error("Not support create link element"));var u="onload"in a,c=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=e,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),c||!u)return setTimeout(function(){s(a,i,0)},1),o;function f(){i()}function l(){a&&(a.onload=a.onerror=a.onreadystatechange=null),a=null}function s(e,t,r){if(e){var n,o=e.sheet;if((r+=1)>3e5)return n=!0,e&&(e=null),void t();if(c)o&&(n=!0);else if(o)try{o.cssRules&&(n=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(n=!0)}setTimeout(function(){n?t():s(e,t,r)},20)}}return u?(a.onload=f,a.onerror=function(){l(),n(new Error("Failed to load CSS: ".concat(e)))}):a.onreadystatechange=function(){a&&/loaded|complete/.test(a.readyState)&&f()},o}var bn={id:"",callback:function(){},timeout:5e3,isDefer:!1,isAsync:!1,isCrossOrigin:!1,attributes:null,cssUrl:""};function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mn({},bn),r=Object.assign(mn({},bn),t),n=r.id,o=r.callback,i=r.timeout,a=r.isDefer,u=r.isAsync,c=r.isCrossOrigin,f=r.attributes,l=r.cssUrl;if(l){var s=function(e,t){if(!t)return"";if(er(t))return t;try{var r=new URL(e,location.href);return new URL(t,r).href}catch(r){var n=e.split("/");return n.pop(),"".concat(n.join("/"),"/").concat(t)}}(e,l);s&&yn(s).catch(function(e){console.error("Failed to load CSS from ".concat(s,": ").concat(null==e?void 0:e.message))})}return new Promise(function(t,r){var l=document.createElement("script"),s=!1,d=null,p=function(){l.onload=null,l.onerror=null,l.onreadystatechange=null,null!==d&&(clearTimeout(d),d=null)},v=function(){if(!s){s=!0,p();try{ze(o),t("loaded")}catch(e){r(e)}}},h=function(e){s||(s=!0,p(),r(e))};l.type="text/javascript",l.defer=Boolean(a),l.async=Boolean(u),c&&(l.crossOrigin="anonymous"),n&&(l.id=n),f&&Object.keys(f).forEach(function(e){l.setAttribute(e,f[e])}),l.readyState?l.onreadystatechange=function(){"loaded"!==l.readyState&&"complete"!==l.readyState||v()}:l.onload=v,l.onerror=function(){return h(new Error("Failed to load script: ".concat(e)))},l.src=e,i&&(d=setTimeout(function(){return h(new Error("timeout"))},i));var g=document.getElementsByTagName("script")[0];null!=g&&g.parentNode?g.parentNode.insertBefore(l,g):(document.head||document.body||document.documentElement).appendChild(l)})}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4;return new Promise(function(t,r){var n=null,o=function(){window.removeEventListener("load",i),null!==n&&(clearTimeout(n),n=null)},i=function(){o(),t("load")};"complete"!==document.readyState?(window.addEventListener("load",i),n=setTimeout(function(){o(),r(new Error("timeout"))},e)):t("complete")})}function En(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=function(e){r(e)},n.src=e})}function Sn(e,t){var r;if(window[e])return Promise.resolve("defined");var n=On.get(e),o=null===(r=n)||void 0===r?void 0:r.get(t);if(o)return o;n||(n=new Map,On.set(e,n));var i=function(){var r,o;null===(r=n)||void 0===r||r.delete(t),0===(null===(o=n)||void 0===o?void 0:o.size)&&On.delete(e)},a=wn(t).then(function(e){return i(),e},function(e){throw i(),e});return n.set(t,a),a}var On=new Map;function Tn(e){if("undefined"==typeof window)return!1;var t=[],r=window.PerformanceObserver;return!!r&&($e(r.supportedEntryTypes)&&(t=r.supportedEntryTypes),t.includes(e))}function An(){return jn.apply(this,arguments)}function jn(){return(jn=U(fe.mark(function e(){return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Tn("paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-contentful-paint"===e.name});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _n(){return kn.apply(this,arguments)}function kn(){return(kn=U(fe.mark(function e(){return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Tn("paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-paint"===e.name});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Nn(){return Mn.apply(this,arguments)}function Mn(){return(Mn=U(fe.mark(function e(){return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Tn("largest-contentful-paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"largest-contentful-paint"===e.entryType});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"largest-contentful-paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Cn(){return Pn.apply(this,arguments)}function Pn(){return(Pn=U(fe.mark(function e(){return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Tn("first-input")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-input"===e.entryType});if(n){t.disconnect();var o=n.processingStart;e(o?Math.round(n.processingStart-n.startTime):0)}});t.observe({type:"first-input",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Dn(){return Ln.apply(this,arguments)}function Ln(){return(Ln=U(fe.mark(function e(){return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Tn("layout-shift")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().reduce(function(e,t){var r=0;return Ie(t.value)&&(r=t.value),e+r},0);t.disconnect(),e(n)});t.observe({type:"layout-shift",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Rn(){return Fn.apply(this,arguments)}function Fn(){return(Fn=U(fe.mark(function e(){var t,r;return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Tn("navigation")){e.next=1;break}return e.abrupt("return",0);case 1:if(window.performance&&window.performance.getEntriesByType){e.next=2;break}return e.abrupt("return",0);case 2:if(t=window.performance.getEntriesByType("navigation")[0],r=0,t){e.next=3;break}return e.abrupt("return",0);case 3:return r=t.responseStart-t.requestStart,e.abrupt("return",Math.round(r));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function In(){return Un.apply(this,arguments)}function Un(){return Un=U(fe.mark(function e(){var t,n,o,i,a,u,c,f,l,s,d,p,v,h,g,m,y,b,w,x,E,S,O,T,A,j,_,k,N,M,C,P,D,L,R,F,I,U,z,$,B,q,Y,W=arguments;return fe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Y=function(e,t){var r=0;return t&&(r=e-t),r},q=function(){var e="";return window.screen&&window.screen.orientation&&"number"==typeof window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e},B=function(){var e="",t=window.navigator;if(t.connection&&t.connection.effectiveType)switch(t.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e},$=function(){var e,t=navigator.userAgent.toLowerCase(),r=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",o=t.match(/midp/i)&&"midp",i=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=t.match(/ucweb/i)&&"ucweb",u=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",f=t.match(/windows mobile/i)&&"windows mobile";return(e=r||n||o||i||a||u||c||f?n||o||i||a||u||c||f?"phone":r?"ipad":void 0:"pc")||(e=""),e},z=function(){var e="",t=navigator.userAgent,r=t.indexOf("Android")>-1,n=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(r&&(e=(i.match(/\d+\.\d+/g)||[])[0]),n&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e},U=function(){return navigator.userAgent.indexOf("Android")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"},I=function(){if(a){var e=a;j=e.decodedBodySize,_=e.encodedBodySize;var r=a;l=r.unloadEventEnd,s=r.unloadEventStart,d=r.redirectEnd,p=r.redirectStart,v=r.domainLookupEnd,h=r.domainLookupStart,g=r.connectEnd,m=r.connectStart,y=r.secureConnectionStart,b=r.responseStart,w=r.requestStart,x=r.responseEnd,E=r.domContentLoadedEventStart,S=r.loadEventStart,O=r.loadEventEnd,T=r.startTime,A=r.fetchStart}else k&&(l=k.unloadEventEnd,s=k.unloadEventStart,d=k.redirectEnd,p=k.redirectStart,v=k.domainLookupEnd,h=k.domainLookupStart,g=k.connectEnd,m=k.connectStart,y=k.secureConnectionStart,b=k.responseStart,w=k.requestStart,x=k.responseEnd,E=k.domContentLoadedEventStart,S=k.loadEventStart,O=k.loadEventEnd,T=k.navigationStart,A=k.fetchStart);Ie(T)?P=T:Ie(A)&&(P=A);var n={source:N,os:U(),osVersion:z(),deviceType:$(),network:B(),screenDirection:q(),unloadTime:l-s,redirectTime:d-p,dnsTime:v-h,tcpTime:g-m,sslTime:Y(g,y),responseTime:b-w,downloadTime:x-b,firstPaintTime:R,firstContentfulPaintTime:F,domReadyTime:E-P,onloadTime:S-P,whiteTime:b-P,renderTime:O-P,decodedBodySize:j,encodedBodySize:_};Object.keys(n).forEach(function(e){Ie(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))}),Ie(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var i={};t||Object.keys(n).forEach(function(e){i[Oe(e)]=n[e]}),Object.keys(i).length?o(i):o(n)},t=W.length>0&&void 0!==W[0]&&W[0],Tn("navigation")){e.next=1;break}return e.abrupt("return",Promise.reject(new Error("navigation is not supported")));case 1:if((n=window.performance)&&"function"==typeof n.getEntries&&"function"==typeof n.getEntriesByType){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("performance is not supported")));case 2:if(i=new Promise(function(e){o=e}),a=null,$e(u=n.getEntriesByType("navigation"))&&(a=u[0]),c=new Array(19).fill(0),f=r(c,19),l=f[0],s=f[1],d=f[2],p=f[3],v=f[4],h=f[5],g=f[6],m=f[7],y=f[8],b=f[9],w=f[10],x=f[11],E=f[12],S=f[13],O=f[14],T=f[15],A=f[16],j=f[17],_=f[18],k=n.timing,N="",!a){e.next=3;break}N="PerformanceNavigationTiming",j=(M=a).decodedBodySize,_=M.encodedBodySize,l=(C=a).unloadEventEnd,s=C.unloadEventStart,d=C.redirectEnd,p=C.redirectStart,v=C.domainLookupEnd,h=C.domainLookupStart,g=C.connectEnd,m=C.connectStart,y=C.secureConnectionStart,b=C.responseStart,w=C.requestStart,x=C.responseEnd,E=C.domContentLoadedEventStart,S=C.loadEventStart,O=C.loadEventEnd,T=C.startTime,A=C.fetchStart,e.next=5;break;case 3:if(!k){e.next=4;break}N="PerformanceTiming",l=k.unloadEventEnd,s=k.unloadEventStart,d=k.redirectEnd,p=k.redirectStart,v=k.domainLookupEnd,h=k.domainLookupStart,g=k.connectEnd,m=k.connectStart,y=k.secureConnectionStart,b=k.responseStart,w=k.requestStart,x=k.responseEnd,E=k.domContentLoadedEventStart,S=k.loadEventStart,O=k.loadEventEnd,T=k.navigationStart,A=k.fetchStart,e.next=5;break;case 4:return e.abrupt("return",Promise.reject(new Error("NavigationTiming and Timing are not supported")));case 5:if(P=0,!Ie(T)){e.next=6;break}P=T,e.next=8;break;case 6:if(!Ie(A)){e.next=7;break}P=A,e.next=8;break;case 7:return e.abrupt("return",Promise.reject(new Error("startTime, navigationStart or fetchStart are required")));case 8:return e.next=9,Promise.all([_n(),An()]);case 9:return D=e.sent,L=r(D,2),R=L[0],F=L[1],Ie(O)&&O>0?I():"complete"===document.readyState?window.setTimeout(I,0):window.addEventListener("load",function e(){window.removeEventListener("load",e),window.setTimeout(function(){I()},0)}),e.abrupt("return",i);case 10:case"end":return e.stop()}},e)})),Un.apply(this,arguments)}function zn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(r),!0).forEach(function(t){pr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.userAgent.trim().toLowerCase();return/\bmacintosh\b/.test(t)&&"macintel"===e.platform.toLowerCase()&&e.maxTouchPoints>1}var qn=Object.freeze(["adsbot-google","ahrefsbot","amazonbot","applebot","baiduspider","bingbot","bingpreview","bytespider","ccbot","chatgpt-user","claudebot","discordbot","dotbot","duckduckbot","facebookexternalhit","facebot","google-inspectiontool","googlebot","googleother","gptbot","linkedinbot","mediapartners-google","mj12bot","perplexitybot","petalbot","semrushbot","slackbot","slurp","storebot-google","telegrambot","twitterbot","whatsapp","yandexbot"]),Yn=Object.freeze(["headlesschrome","phantomjs","slimerjs","selenium","puppeteer","playwright"]);function Wn(){try{return"undefined"==typeof navigator?null:navigator}catch(e){return null}}function Zn(){var e=Wn();if(!e)return{userAgent:"",platform:"",maxTouchPoints:0};var t="",r="",n=0;try{var o=e.userAgent;t="string"==typeof o?o:""}catch(e){return{userAgent:"",platform:"",maxTouchPoints:0}}try{var i=e.platform;r="string"==typeof i?i:""}catch(e){r=""}try{var a=e.maxTouchPoints;n=Number.isFinite(a)?a:0}catch(e){n=0}return{userAgent:t,platform:r,maxTouchPoints:n}}function Hn(e){var t=e.userAgent.trim().toLowerCase();return t?/\bandroid\b|\badr\b/.test(t)?"android":/\bios\b|\biphone\b|\bipad\b|\bipod\b|\biwatch\b/.test(t)||Bn(e,t)?"ios":/\bwindows\b|\bwin32\b|\bwin64\b|\bwow32\b|\bwow64\b/.test(t)?"windows":/\bmacintosh\b|\bmacintel\b|\bmac os x\b/.test(t)?"macos":/\blinux\b/.test(t)?"linux":"":""}function Vn(e){var t=e.userAgent.trim().toLowerCase();if(!t)return"";if(/\biwatch\b|\bapple watch\b/.test(t))return"";if(/\bipad\b|\btablet\b/.test(t)||Bn(e,t))return"tablet";var r=Hn(e);return"android"===r?/\bmobile\b/.test(t)?"mobile":"tablet":"ios"===r&&/\biphone\b|\bipod\b/.test(t)?"mobile":"windows"===r||"macos"===r||"linux"===r||/\bcros\b/.test(t)?"desktop":/\bmobile\b/.test(t)?"mobile":""}function Gn(e){if(void 0!==e&&"string"!=typeof e)throw new TypeError("userAgent must be a string when provided.");return Vn(void 0!==e?{userAgent:e,platform:"",maxTouchPoints:0}:Zn())}function Jn(e){if(void 0!==e&&"string"!=typeof e)throw new TypeError("userAgent must be a string when provided.");return Hn(void 0!==e?{userAgent:e,platform:"",maxTouchPoints:0}:Zn())}function Kn(e){return"mobile"===Gn(e)}function Qn(e){return"desktop"===Gn(e)}function Xn(e){return"tablet"===Gn(e)}function eo(e){return"ios"===Jn(e)}function to(e){return"android"===Jn(e)}function ro(e){return"macos"===Jn(e)}function no(e){return"windows"===Jn(e)}function oo(e){return"linux"===Jn(e)}function io(e,t){var r=e.trim().toLowerCase();return t.some(function(e){return r.includes(e)})}function ao(e){if(void 0!==e&&"string"!=typeof e)throw new TypeError("userAgent must be a string when provided.");var t=void 0===e?function(){var e=Wn();if(!e)return"";try{var t=e.userAgent;return"string"==typeof t?t:""}catch(e){return""}}():e;return io(t,qn)?"crawler":io(t,Yn)||function(){var e=Wn();if(!e)return!1;try{return!0===e.webdriver}catch(e){return!1}}()?"automation":"unknown"}function uo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof window||"undefined"==typeof navigator)return!1;try{var t;if(null===e||"object"!=typeof e||Array.isArray(e))return!1;var r=e.requireManifest,n=e.scope;if(void 0!==r&&"boolean"!=typeof r||void 0!==n&&"string"!=typeof n)return!1;if(!0!==window.isSecureContext||!("serviceWorker"in navigator))return!1;if(void 0!==n&&!function(e){var t=e.trim();if(!t||/[?#]/.test(t))return!1;try{var r=new URL(window.location.href),n=new URL(t,r);if(n.origin!==r.origin||""!==n.search||""!==n.hash)return!1;if(r.pathname===n.pathname)return!0;var o=n.pathname.endsWith("/")?n.pathname:"".concat(n.pathname,"/");return r.pathname.startsWith(o)}catch(e){return!1}}(n))return!1;if(!1===r)return!0;if("undefined"==typeof document)return!1;var o=document.querySelector('link[rel~="manifest"][href]');return Boolean(null==o||null===(t=o.getAttribute("href"))||void 0===t?void 0:t.trim())}catch(e){return!1}}function co(){if("undefined"==typeof window||"undefined"==typeof navigator)return!1;var e=navigator;try{var t=window.matchMedia;if("function"==typeof t&&t.call(window,"(display-mode: standalone)").matches)return!0}catch(e){}try{return!0===e.standalone}catch(e){return!1}}function fo(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var e={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:"",colorScheme:""};try{var t=Zn(),r=t.userAgent.toLowerCase();if(!r)return e;var n=function(e){return e.test(r)},o=function(e){var t="",n=r.match(e);return n&&$e(n)&&(t=(t=(t=n.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),t},i=Hn(t),a="";"ios"===i&&(n(/ipad/g)?a="ipad":n(/iphone/g)?a="iphone":n(/iwatch/g)?a="iwatch":n(/ipod/g)?a="ipod":"macintel"===t.platform.toLowerCase()&&t.maxTouchPoints>1&&(a="ipad")),e=$n($n({},e),{},{system:i,appleType:a});var u="";"windows"===i?n(/windows nt 5.0|windows 2000/g)?u="2000":n(/windows nt 5.1|windows xp/g)?u="xp":n(/windows nt 5.2|windows 2003/g)?u="2003":n(/windows nt 6.0|windows vista/g)?u="vista":n(/windows nt 6.1|windows 7/g)?u="7":n(/windows nt 6.2|windows 8/g)?u="8":n(/windows nt 6.3|windows 8.1/g)?u="8.1":n(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===i?u=o(/os x [\d._]+/g):"android"===i?u=o(/android [\d._]+/g):"ios"===i&&(u=o(/os [\d._]+/g)),e=$n($n({},e),{},{systemVs:u});var c="";"windows"===i||"macos"===i||"linux"===i?c="desktop":("android"===i||"ios"===i||n(/mobile/g))&&(c="mobile"),e=$n($n({},e),{},{platform:c});var f="",l="";n(/applewebkit/g)?(f="webkit",n(/edg(?:a|ios)?\//g)||n(/edge\//g)?l="edge":n(/opr/g)?l="opera":n(/chrome/g)?l="chrome":n(/safari/g)&&(l="safari")):n(/gecko/g)&&n(/firefox/g)?(f="gecko",l="firefox"):n(/presto/g)?(f="presto",l="opera"):n(/trident|compatible|msie/g)&&(f="trident",l="iexplore"),e=$n($n({},e),{},{engine:f,supporter:l});var s="";"webkit"===f?s=o(/applewebkit\/[\d._]+/g):"gecko"===f?s=o(/gecko\/[\d._]+/g):"presto"===f?s=o(/presto\/[\d._]+/g):"trident"===f&&(s=o(/trident\/[\d._]+/g)),e=$n($n({},e),{},{engineVs:s});var d="";"chrome"===l?d=o(/chrome\/[\d._]+/g):"safari"===l?d=o(/version\/[\d._]+/g):"firefox"===l?d=o(/firefox\/[\d._]+/g):"opera"===l?d=o(/opr\/[\d._]+/g):"iexplore"===l?d=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===l&&(d=o(/(?:edge|edg|edga|edgios)\/[\d._]+/g)),e=$n($n({},e),{},{supporterVs:d});var p="",v="";n(/micromessenger/g)?(p="wechat",v=o(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=o(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=o(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=o(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=o(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),e=$n($n({},e),{},{shell:p,shellVs:v});var h="";if(window.matchMedia){var g=window.matchMedia("(prefers-color-scheme: dark)"),m=window.matchMedia("(prefers-color-scheme: light)");g.matches?h="dark":m.matches&&(h="light")}return e=$n($n({},e),{},{colorScheme:h}),window.MAZEY_BROWSER_INFO=e,e}catch(t){return yr.warn(t),e}}function lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",r=fo(),n=[];return["system","platform","engine","supporter","shell","appleType"].forEach(function(o){var i=r[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(t)),n.push("".concat(a).concat(i))}}),n}var so="";function po(){if(so)return Promise.resolve("webp"===so);return new Promise(function(e){var t=new Image;t.onload=function(){var r=t.width>0&&t.height>0;so=r?"webp":"no-webp",e(r)},t.onerror=function(){so="no-webp",e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="})}function vo(e,t){if("function"!=typeof t)throw new TypeError("listener must be a function");if(null===e)return function(){};if("object"!=typeof e)throw new TypeError("media must be a MediaQueryList or null");var r=e.addEventListener,n=e.removeEventListener,o=e.addListener,i=e.removeListener,a=null;if("function"==typeof r&&"function"==typeof n){var u=t;r.call(e,"change",u),a=function(){return n.call(e,"change",u)}}else"function"==typeof o&&"function"==typeof i&&(o.call(e,t),a=function(){return i.call(e,t)});var c=!1;return function(){var e;c||(c=!0,null===(e=a)||void 0===e||e())}}function ho(e,t,r){if(null===e||"object"!=typeof e||"function"!=typeof e.addEventListener||"function"!=typeof e.removeEventListener)throw new TypeError("registration must support event listeners");if(null===t||"object"!=typeof t||"function"!=typeof t.addEventListener||"function"!=typeof t.removeEventListener)throw new TypeError("container must support event listeners");if(null===r||"object"!=typeof r||"function"!=typeof r.onUpdateAvailable||void 0!==r.onControllerChange&&"function"!=typeof r.onControllerChange)throw new TypeError("callbacks must provide onUpdateAvailable");var n=!1,o=null,i=null,a=!1,u=!1,c=function(e){n||i===e||(i=e,r.onUpdateAvailable(e))},f=function(){var e;!n&&"installed"===(null===(e=o)||void 0===e?void 0:e.state)&&t.controller&&c(o)},l=function(){var t,r;n||(null===(t=o)||void 0===t||t.removeEventListener("statechange",f),null===(r=o=e.installing)||void 0===r||r.addEventListener("statechange",f),f())},s=function(){var e;n||null===(e=r.onControllerChange)||void 0===e||e.call(r)},d=function(){if(a){try{e.removeEventListener("updatefound",l)}catch(e){}a=!1}try{var r;null===(r=o)||void 0===r||r.removeEventListener("statechange",f)}catch(e){}if(u){try{t.removeEventListener("controllerchange",s)}catch(e){}u=!1}};try{e.addEventListener("updatefound",l),a=!0,t.addEventListener("controllerchange",s),u=!0,e.waiting&&t.controller&&c(e.waiting),e.installing&&l()}catch(e){throw n=!0,d(),o=null,i=null,e}return{activateWaiting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"SKIP_WAITING"};if(n||!i)return!1;try{return i.postMessage(e),!0}catch(e){return!1}},dispose:function(){n||(n=!0,d(),o=null,i=null)}}}function go(e){if("string"!=typeof e||""===e.trim())throw new TypeError("storageKey must be a non-empty string.")}function mo(e){if("undefined"==typeof window)return null;try{return new URL(window.location.href).searchParams.get(e)}catch(e){return null}}function yo(e){if("undefined"==typeof window)return null;try{var t=window.localStorage;return t&&"function"==typeof t.getItem?t.getItem(e):null}catch(e){return null}}function bo(e,t){if("undefined"==typeof window)return!1;try{var r=window.localStorage;return!(!r||"function"!=typeof r.setItem)&&(r.setItem(e,t),!0)}catch(e){return!1}}var wo=Object.freeze({system:"System",light:"Light",dark:"Dark"});function xo(e){return"light"===e||"dark"===e}function Eo(){if("undefined"==typeof window)return null;try{var e=window.matchMedia;return"function"!=typeof e?null:e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}catch(e){return null}}function So(e,t){return{value:e,label:wo[t]}}function Oo(e){go(e);var t=mo("theme");if(xo(t))return bo(e,t),So(t,t);var r=yo(e);if(xo(r))return So(r,r);var n=Eo();return"system"===r&&n||n?So(n,"system"):So("light","light")}function To(e,t){if(go(e),!function(e){return"system"===e||xo(e)}(t))throw new TypeError('value must be "system", "light", or "dark".');return bo(e,t)}function Ao(e){var t=e.split("-");if(!/^[a-z]{2,8}$/i.test(t[0]))return null;var r=[t[0].toLowerCase()],n=1;if(n<t.length&&/^[a-z]{4}$/i.test(t[n])){var o=t[n].toLowerCase();r.push("".concat(o[0].toUpperCase()).concat(o.slice(1))),n++}for(n<t.length&&(/^[a-z]{2}$/i.test(t[n])||/^\d{3}$/.test(t[n]))&&(r.push(/^[a-z]{2}$/i.test(t[n])?t[n].toUpperCase():t[n]),n++);n<t.length;n++){var i=t[n];if(!/^(?:[a-z0-9]{5,8}|\d[a-z0-9]{3})$/i.test(i))return null;r.push(i.toLowerCase())}return r.join("-")}function jo(e){if("string"!=typeof e)return null;var t=e.trim().replace(/_/g,"-");if(!t)return null;if("undefined"!=typeof Intl)try{var r=Intl,n=r.getCanonicalLocales;if("function"==typeof n){var o=n.call(r,t)[0];return"string"==typeof o&&o?o:null}}catch(e){return e instanceof RangeError||"object"==typeof e&&null!==e&&"name"in e&&"RangeError"===e.name?null:Ao(t)}return Ao(t)}function _o(e){if("undefined"==typeof Intl)return e;try{var t=Intl.DisplayNames;if("function"!=typeof t)return e;var r=new t([e],{type:"language"}).of(e);return"string"==typeof r&&r.trim()?r:e}catch(t){return e}}function ko(e){return{value:e,label:_o(e)}}function No(e){go(e);var t=jo(mo("lang"));if(t)return ko(t);var r=jo(yo(e));if(r)return ko(r);var n=jo(function(){if("undefined"==typeof window||"undefined"==typeof navigator)return null;try{return"string"==typeof navigator.language?navigator.language:null}catch(e){return null}}());return ko(null!=n?n:"en")}function Mo(e,t){go(e);var r=jo(t);if(!r)throw new TypeError("language must be a valid language tag.");return bo(e,r)}export{Sr as addClass,Hr as addEvent,Ar as addStyle,me as assignDefined,L as calLongestCommonSubsequence,P as calLongestCommonSubstring,M as calculateCAGR,Oe as camelCase2Underscore,xe as camelCaseToKebabCase,Wr as cancelBubble,et as clearHTML,tt as clearHtml,wt as convert10To26,be as convertCamelToKebab,Ee as convertCamelToUnder,or as convertHttpToHttps,we as convertKebabToCamel,nr as convertObjectToQuery,Je as convertToHtmlBreaks,Se as convertUnderToCamel,ct as cutCHSString,at as cutZHString,Fe as debounce,ve as deepCopy,ye as deepCopyObject,ge as deepFreeze,hn as delCookie,Pt as derivePackageMetadata,ao as detectVisitorType,ze as doFn,rt as escapeHtmlAttribute,Yr as extractElementText,Vr as fireEvent,Le as floatFixed,De as floatToPercent,dt as formatByteSize,k as formatDate,_ as formatDistanceToNow,w as formatDurationFromMs,d as formatLocalDateTime,lo as genBrowserAttrs,mr as genCustomConsole,vt as genHashCode,Ne as genRndNumString,kr as genStyleString,Ce as genUniqueNumString,N as generateCalendarVersion,Me as generateRndNum,Pe as generateUniqueNum,qt as getAllQueryParams,fo as getBrowserInfo,Dn as getCLS,dn as getCookie,xt as getCurrentVersion,m as getDateDifference,Zr as getDefineListeners,Ht as getDomain,An as getFCP,Cn as getFID,_n as getFP,pt as getFileSize,y as getFriendlyInterval,Zt as getHashQueryParam,Nn as getLCP,en as getLocalJSON,on as getLocalStorage,Nr as getPageMeta,In as getPerformance,Bt as getQueryParam,rr as getScriptQueryParam,Qr as getSessionJSON,rn as getSessionStorage,Eo as getSystemTheme,Rn as getTTFB,tr as getUrlFileType,ur as getUrlHost,Yt as getUrlParam,cr as getUrlPath,Er as hasClass,$r as hide,F as inRate,Gr as invokeEvent,Ue as invokeFn,to as isAndroid,Ve as isArray,We as isBool,Ze as isBoolean,_t as isBrowser,Qn as isDesktop,qe as isFunction,R as isHit,eo as isIOS,je as isJSONString,_e as isJsonString,oo as isLinux,ro as isMacOS,yt as isMobile,$e as isNonEmptyArray,Ge as isNonEmptyObject,Ie as isNumber,Kn as isPhone,Be as isPureObject,uo as isSafePWAEnv,co as isStandalonePWA,Ye as isString,po as isSupportWebp,Tn as isSupportedEntryType,Xn as isTablet,A as isThisHour,O as isThisMonth,T as isThisWeek,S as isThisYear,E as isToday,He as isUdfOrNul,Mr as isValidCssSelector,lt as isValidData,x as isValidDate,bt as isValidEmail,er as isValidHttpUrl,mt as isValidPhoneNumber,Vt as isValidUrl,no as isWindows,vo as listenMediaQueryChanges,yn as loadCSS,En as loadImage,wn as loadScript,Sn as loadScriptIfUndefined,D as longestComSubsequence,C as longestComSubstring,v as mNow,Ae as mTrim,yr as mazeyCon,Ke as newLine,fr as onURLChange,$t as parseGitHubRepository,ke as parseJsonSafe,s as parseLocalDateTime,Tr as removeClass,vn as removeCookie,Jr as removeEvent,Qe as removeHTML,Xe as removeHtml,Et as repeatUntilConditionMet,ir as replaceHttp,qr as resolveElementTarget,No as resolveLanguagePreference,Oo as resolveThemePreference,nt as sanitizeInput,Or as setClass,pn as setCookie,jr as setImgSizeBySrc,_r as setImgWidHeiBySrc,Mo as setLanguagePreference,Xr as setLocalJSON,nn as setLocalStorage,Kr as setSessionJSON,tn as setSessionStorage,To as setThemePreference,ht as sha256Hex,Br as show,Tt as sleep,p as subYears,Re as throttle,br as timeCon,Te as toJavaScriptGlobalName,ut as truncateZHString,it as unsanitize,ot as unsanitizeInput,Wt as updateQueryParam,St as waitTime,ho as watchServiceWorkerUpdates,xn as windowLoaded,ft as zAxiosIsValidRes};
|
|
6
|
+
function e(e){try{return Date.prototype.getTime.call(e)}catch(e){return null}}const t=/^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2})(?::(\d{2}))?)?$/,n=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?(Z|[+-]\d{2}:\d{2})$/;function r(e,t,n,r,o,i,s=0,c=!1){const u=new Date(0);return c?(u.setUTCFullYear(e,t-1,n),u.setUTCHours(r,o,i,s),Number.isFinite(u.getTime())&&u.getUTCFullYear()===e&&u.getUTCMonth()===t-1&&u.getUTCDate()===n&&u.getUTCHours()===r&&u.getUTCMinutes()===o&&u.getUTCSeconds()===i&&u.getUTCMilliseconds()===s):(u.setFullYear(e,t-1,n),u.setHours(r,o,i,s),Number.isFinite(u.getTime())&&u.getFullYear()===e&&u.getMonth()===t-1&&u.getDate()===n&&u.getHours()===r&&u.getMinutes()===o&&u.getSeconds()===i&&u.getMilliseconds()===s)}function o(e,t,n,r,o,i,s=0){const c=new Date(0);return c.setFullYear(e,t-1,n),c.setHours(r,o,i,s),c}function i(i){if("number"==typeof i){const e=new Date(i);return Number.isFinite(i)&&Number.isFinite(e.getTime())?e:null}if("object"==typeof i&&null!==i){const t=e(i);return null!==t&&Number.isFinite(t)?new Date(t):null}if("string"!=typeof i)return null;const s=i.trim();if(!s)return null;const c=t.exec(s);if(c){const[e,t,n,i="0",s="0",u="0"]=c.slice(1),[a,l,f,d,p,m]=[e,t,n,i,s,u].map(Number);return r(a,l,f,d,p,m)?o(a,l,f,d,p,m):null}const u=n.exec(s);if(!u)return null;const[a,l,f,d,p,m="0",g="",h]=u.slice(1),w=Number(`${g}00`.slice(0,3));if(!r(Number(a),Number(l),Number(f),Number(d),Number(p),Number(m),w,!0))return null;if("Z"!==h){const e=Number(h.slice(1,3)),t=Number(h.slice(4,6));if(e>23||t>59)return null}return function(e,t,n,r,o,i,s,c){const u=new Date(0);if(u.setUTCFullYear(e,t-1,n),u.setUTCHours(r,o,i,s),"Z"===c)return u;const a="+"===c[0]?1:-1,l=60*Number(c.slice(1,3))+Number(c.slice(4,6));return new Date(u.getTime()-a*l*60*1e3)}(Number(a),Number(l),Number(f),Number(d),Number(p),Number(m),w,h)}const s=/^(\d{4,})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?$/;function c(e,t){const n=String(e);return n.length>=t?n:`${"0".repeat(t-n.length)}${n}`}function u(e){if("string"!=typeof e)return null;const t=s.exec(e);if(!t)return null;const[n,i,c,u,a,l="0",f=""]=t.slice(1),d=Number(n),p=Number(i),m=Number(c),g=Number(u),h=Number(a),w=Number(l),y=Number(`${f}00`.slice(0,3));return d<1||!r(d,p,m,g,h,w,y)?null:o(d,p,m,g,h,w,y)}function a(t,n={}){const r="object"==typeof t&&null!==t?e(t):null;if(null===r)throw new TypeError("date must be a Date");if(!Number.isFinite(r))throw new RangeError("Invalid date");const o=n.precision??"minute";if("minute"!==o&&"second"!==o&&"millisecond"!==o)throw new TypeError("precision must be minute, second, or millisecond");const i=new Date(r),s=i.getFullYear();if(s<1)throw new RangeError("Date year must be greater than zero");const u=[c(s,4),c(i.getMonth()+1,2),c(i.getDate(),2)].join("-"),a=[c(i.getHours(),2),c(i.getMinutes(),2)];"minute"!==o&&a.push(c(i.getSeconds(),2));let l=`${u}T${a.join(":")}`;return"millisecond"===o&&(l+=`.${c(i.getMilliseconds(),3)}`),l}function l(t,n){const r="number"==typeof t?t:"object"==typeof t&&null!==t?e(t):null,o=new Date(r??NaN),i="number"==typeof n?n<0?Math.ceil(n):Math.floor(n):NaN;if(!Number.isFinite(o.getTime())||!Number.isFinite(i))return new Date(NaN);if(0===i)return o;const s=o.getMonth(),c=o.getDate(),u=o.getFullYear()-i,a=new Date(o.getTime());a.setFullYear(u,s+1,0);return c>=a.getDate()?a:(o.setFullYear(u,s,c),o)}function f(){return Date.now()}const d={type:"d"};function p(e){return"string"==typeof e&&/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e)?e.replace(" ","T"):e}function m(e=0,t=0,n=d){n=Object.assign({},d,n);const{type:r}=n;"number"==typeof e&&Number.isFinite(e)||(e=new Date(p(e)).getTime()),"number"==typeof t&&Number.isFinite(t)||(t=new Date(p(t)).getTime());const o=Number(t)-Number(e);let i="",[s,c,u,a]=new Array(4).fill(0);if(o>=0)switch(s=Math.floor(o/1e3/60/60/24),c=Math.floor(o/1e3/60/60),u=Math.floor(o/1e3/60),a=Math.floor(o/1e3),r){case"d":i=s;break;case"text":s=Math.floor(o/1e3/60/60/24),c=Math.floor(o/1e3/60/60%24),u=Math.floor(o/1e3/60%60),a=Math.floor(o/1e3%60),i=[{value:s,unit:"day"},{value:c,unit:"hour"},{value:u,unit:"minute"},{value:a,unit:"second"}].filter(({value:e})=>e>0).map(({value:e,unit:t})=>h(e,t)).join(" ")||h(0,"second");break;default:i=a}return i}function g(e=0,t=0,n=d){return m(e,t,n)}function h(e,t){const n=Math.round(10*e)/10;return`${n} ${1===n?t:`${t}s`}`}function w(e){const t=(Number.isFinite(e)?Math.max(e,0):0)/1e3;return t>=86400?h(t/24/60/60,"day"):t>=3600?h(t/60/60,"hour"):t>=60?h(t/60,"minute"):h(t,"second")}function y(e){return null!==i(e)}function b(e){const t=i(e);if(!t)return!1;const n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}function v(e){const t=i(e);return null!==t&&t.getFullYear()===(new Date).getFullYear()}function E(e){const t=i(e);if(!t)return!1;const n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()}function T(e){const t=i(e);if(!t)return!1;const n=new Date,r=(n.getDay()+6)%7;n.setHours(0,0,0,0),n.setDate(n.getDate()-r);const o=new Date(n.getTime());o.setDate(o.getDate()+7);const s=t.getTime();return s>=n.getTime()&&s<o.getTime()}function A(e){const t=i(e);if(!t)return!1;const n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()&&t.getHours()===n.getHours()}function S(e,t){const n=Math.max(1,Math.round(e));return`about ${n} ${t}${1===n?"":"s"}`}function $(e){const t=i(e);if(!t)return"";const n=6e4,r=36e5,o=864e5,s=Math.abs(t.getTime()-Date.now());return s<3e4?"less than a minute":s<9e4?"about 1 minute":s<27e5?S(s/n,"minute"):s<54e5?"about 1 hour":s<864e5?S(s/r,"hour"):s<1512e5?"about 1 day":s<30*o?S(s/o,"day"):s<45*o?"about 1 month":s<365*o?S(s/(30*o),"month"):s<545*o?"about 1 year":S(s/(365*o),"year")}function _(e,t="yyyy-MM-dd"){void 0===e&&(e=new Date);const n=new Date(e);if(!Number.isFinite(n.getTime()))throw new RangeError("Invalid date");const r=n.getHours(),o={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),HH:r<10?"0"+r:r,hh:(r%12||12)<10?"0"+(r%12||12):r%12||12,mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds(),a:r<12?"AM":"PM"};let i=t||"yyyy-MM-dd";return Object.keys(o).forEach(e=>{let t=o[e];"MM"===e&&Number(t)<=9&&(t=`0${t}`),i=i.split(e).join(String(t))}),i}function O(e){return _(void 0===e?new Date:new Date(e instanceof Date?e.getTime():e),"yyyy.MMdd.HHmmss").split(".").map(e=>String(Number(e))).join(".")}function x(e,t,n){const r=i(e);if(!r)throw new TypeError("startDate must be a valid date.");const o=i(t);if(!o)throw new TypeError("endDate must be a valid date.");const s=o.getTime()-r.getTime();if(s<=0)throw new RangeError("endDate must be later than startDate.");const c=function(e){if("number"==typeof e){if(!Number.isFinite(e))throw new TypeError("totalReturnRate must be a finite number or percentage string.");return e}if("string"!=typeof e)throw new TypeError("totalReturnRate must be a finite number or percentage string.");const t=e.trim();if(!t)throw new TypeError("totalReturnRate must not be empty.");const n=t.endsWith("%")?t.slice(0,-1).trim():t;if(!n)throw new TypeError("totalReturnRate must be a valid percentage string.");const r=Number(n);if(!Number.isFinite(r))throw new TypeError("totalReturnRate must be a valid percentage string.");return r/100}(n);if(c<=-1)throw new RangeError("totalReturnRate must be greater than -1.");const u=s/864e5,a=Math.pow(1+c,365/u)-1;if(!Number.isFinite(a))throw new RangeError("calculated CAGR must be finite.");return a}function N(e,t){const n=e.length,r=t.length;if(0===n||0===r)return 0;const o=Array.from({length:n},()=>new Array(r).fill(0));let i=0;for(let s=0;s<n;++s)for(let n=0;n<r;++n)if(e[s]===t[n]){let e=0;s>0&&n>0&&(e=o[s-1][n-1]),o[s][n]=e+1,i=Math.max(i,o[s][n])}return i}function j(e,t){return N(e,t)}function C(e,t){const n=e.length,r=t.length;if(0===n||0===r)return 0;const o=Array.from({length:n},()=>new Array(r).fill(0));for(let i=0;i<n;++i)for(let n=0;n<r;++n)if(e[i]===t[n]){let e=0;i>0&&n>0&&(e=o[i-1][n-1]),o[i][n]=e+1}else{let[e,t]=[0,0];n>0&&(e=o[i][n-1]),i>0&&(t=o[i-1][n]),o[i][n]=Math.max(e,t)}return o[n-1][r-1]}function M(e,t){return C(e,t)}function D(e){return Math.random()<e}function k(e){return D(e)}const F=Function.prototype.toString.call(Object);function L(e,t,n){const r=Object.getOwnPropertyDescriptor(t,n)?.get;if(!r)return!1;try{return r.call(e),!0}catch(e){return!1}}function R(e){return null===e||"object"!=typeof e?e:z(e,new WeakMap)}function z(t,n){if(null===t||"object"!=typeof t)return t;const r=t,o=n.get(r);if(void 0!==o)return o;const i=e(r);if(null!==i){const e=new Date(i);return n.set(r,e),e}const s=function(e){const t=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")?.get;if(!t)return null;try{return t.call(e)}catch(e){return null}}(r);if(null!==s){const e=t,o=new RegExp(s,function(e){return e.flags}(e));return o.lastIndex=e.lastIndex,n.set(r,o),o}if("undefined"!=typeof ArrayBuffer&&L(r,ArrayBuffer.prototype,"byteLength")){const e=ArrayBuffer.prototype.slice.call(t,0);return n.set(r,e),e}if("undefined"!=typeof SharedArrayBuffer&&L(r,SharedArrayBuffer.prototype,"byteLength")){const e=SharedArrayBuffer.prototype.slice.call(t,0);return n.set(r,e),e}if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)){const e=z(t.buffer,n),o="undefined"!=typeof DataView&&L(r,DataView.prototype,"byteLength")?new DataView(e,t.byteOffset,t.byteLength):new t.constructor(e,t.byteOffset,t.length);return n.set(r,o),o}if("undefined"!=typeof Map&&L(r,Map.prototype,"size")){const e=new Map;return n.set(r,e),Map.prototype.forEach.call(t,(t,r)=>{e.set(z(r,n),z(t,n))}),e}if("undefined"!=typeof Set&&L(r,Set.prototype,"size")){const e=new Set;return n.set(r,e),Set.prototype.forEach.call(t,t=>{e.add(z(t,n))}),e}const c=Array.isArray(t),u=Object.getPrototypeOf(t),a=function(e){const t=Object.getPrototypeOf(e);if(null===t)return!0;const n=Object.hasOwn(t,"constructor")?t.constructor:null;return"function"==typeof n&&Function.prototype.toString.call(n)===F}(r),l=!c&&!a&&function(e){const t=Object.getPrototypeOf(e),n=t?.constructor;return"function"==typeof n&&-1===Function.prototype.toString.call(n).indexOf("[native code]")}(r);if(!c&&!a&&!l)return n.set(r,t),t;const f=c?new Array(t.length):Object.create(l?Object.prototype:u);return n.set(r,f),function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}(r).forEach(e=>{if(c&&"length"===e)return;const t=Object.getOwnPropertyDescriptor(r,e);t&&("value"in t&&(t.value=z(t.value,n)),Object.defineProperty(f,e,t))}),f}function P(e){return!e||"object"!=typeof e||Object.isFrozen(e)||(Object.freeze(e),Object.values(e).forEach(P)),e}function U(e,...t){return t.forEach(t=>{void 0!==t&&Object.keys(t).forEach(n=>{const r=t[n];if(void 0!==r){const t=e;"__proto__"!==n||Object.hasOwn(e,n)?t[n]=r:Object.defineProperty(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0})}})}),e}function I(e){return R(e)}function B(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substring(1):t}function q(e){const t=e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());return t.endsWith("-")?t.slice(0,-1):t}function Y(e){return B(e)}function W(e){const t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substring(1):t}function Z(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function H(e){return W(e)}function V(e){if("string"!=typeof e)throw new TypeError("value must be a string");const t=e.replace(/[^A-Za-z0-9_$]/g,"_").toUpperCase();return/^[A-Za-z_$]/.test(t)?t:`_${t}`}function J(e){return e.trim()}function G(e){if("string"!=typeof e)return!1;try{return JSON.parse(e),!0}catch(e){}return!1}function Q(e){return G(e)}function K(e,t=null){try{return JSON.parse(e)}catch(e){return t}}function X(e=5){if(!Number.isFinite(e)||e<=0)return"";e=Math.floor(e);let t="";for(;e--;)t+=Math.floor(10*Math.random());return t}function ee(e=5){return X(e)}function te(e=3){const[t,n]=[f(),ee(e||3)];return t+n}function ne(e=3){return te(e)}function re(e,t=0){let n="";return n=t?(100*e).toFixed(t):String(Math.floor(100*e)),`${n}%`}function oe(e,t=0){return parseFloat(String(e)).toFixed(t)}function ie(e,t,n={}){n=Object.assign({},n);let r=null,o=null,i=null,[s,c]=[null,0];const u=function(){c=!1===n.leading?0:f(),i=null,s=e.apply(this,o),i||(r=o=null)};return function(...a){const l=f();c||!1!==n.leading||(c=l);const d=t-(l-c);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),c=l,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(u.bind(r),d)),s}}function se(e,t,n){let r=null,o=null,i=null,s=null,c=null;const u=function(){const a=f()-i;a<t&&a>=0?o=setTimeout(u,t-a):(o=null,n||(c=e.apply(r,s),o||(r=s=null)))};return function(...a){r=this,s=a,i=f();const l=n&&!o;return o||(o=setTimeout(u,t)),l&&(c=e.apply(r,s),r=s=null),c}}function ce(e,t={}){const{isNaNAsNumber:n=!1,isInfinityAsNumber:r=!1,isUnFiniteAsNumber:o=!1}=t;return"number"==typeof e&&(!(!0!==r&&!0!==o&&!isFinite(e))&&!(!n&&isNaN(e)))}function ue(e,...t){let n=null;return e&&"function"==typeof e&&(n=e(...t)),n}function ae(e,...t){return ue(e,...t)}function le(e){let t=!1;return Array.isArray(e)&&e.length&&(t=!0),t}function fe(e){const t=Boolean(e),n="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return t&&n&&r}function de(e){return"function"==typeof e}function pe(e){return"string"==typeof e}function me(e){return"boolean"==typeof e}function ge(e){return me(e)}function he(e){return null==e}function we(e){return"[object Array]"===Object.prototype.toString.call(e)}function ye(e){return!!fe(e)&&0!==Object.keys(e).length}function be(e){if(!e)return"";const t=new RegExp("\\n","g");return e.replace(t,"<br />")}function ve(e){return be(e)}function Ee(e,t={}){const{removeNewLine:n=!1}=t;let r="";return e&&(r=e.replace(/<\/?.+?>/g,""),n&&(r=r.replace(/[\r\n]/g,""))),r}function Te(e,t={}){return Ee(e,t)}function Ae(e,t={}){return Ee(e,t)}function Se(e,t={}){return Ee(e,t)}function $e(e,t={}){if("string"!=typeof e)throw new TypeError("value must be a string.");const n=t.preserveEntities?/&(?!(?:#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]+);)/gi:/&/g,r={"<":"<",">":">",'"':""","'":"'"};return e.replace(n,"&").replace(/[<>"']/g,e=>r[e])}function _e(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,e=>t[e])}function Oe(e){const t={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&|<|>|"|'|/)/g,e=>t[e])}function xe(e){return Oe(e)}function Ne(e,t,n={hasDot:!1,dotText:"..."}){if(n=Object.assign({hasDot:!1,dotText:"..."},n),""!=e&&e){let r=0,o="";const i=/[^\x00-\xff]/g;let s="";const c=e.replace(i,"**").length;for(let n=0;n<c&&(s=e.charAt(n).toString(),null!=s.match(i)?r+=2:r++,!(r>t));n++)o+=s;return n.hasDot&&c>t&&(o+=n.dotText),o}return""}function je(e,t,n=!1){return Ne(e,t,{hasDot:n})}function Ce(e,t,n=!1){return je(e,t,n)}function Me(e,t={validStatusRange:[200,300],validCode:[0]}){const n=t||{},{validStatusRange:r=[200,300],validCode:o=[0]}=n;2!==r.length&&console.error("valid validStatusRange is required");let i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){const t=e.data;t&&o.includes(t.code)&&(i=!0)}return i}function De(e,t,n){if(null===e||"object"!=typeof e)return!1;let r=e;for(const e of t){if(null===r||"object"!=typeof r&&"function"!=typeof r||!Object.hasOwn(r,e))return!1;r=r[e]}return r===n}const ke=["B","KB","MB","GB","TB"];function Fe(e,t={}){const{base:n=1024,fractionDigits:r=1,invalidValue:o=""}=t;if(!Number.isFinite(e)||e<0||1e3!==n&&1024!==n||!Number.isInteger(r)||r<0||r>20)return o;let i=e,s=0;for(;i>=n&&s<ke.length-1;)i/=n,s+=1;return 0===s?`${Number(i.toFixed(r))} ${ke[s]}`:`${i.toFixed(r)} ${ke[s]}`}function Le(e,t={}){return Fe(e,t)}function Re(e){let t,n,r=0;for(t=0;t<e.length;t++)n=e.charCodeAt(t),r=(r<<5)-r+n,r|=0;return r}async function ze(e){const t="undefined"==typeof crypto?null:crypto;if(!t?.subtle||"function"!=typeof t.subtle.digest)throw new Error("Web Crypto API is not available.");let n=e;if("string"==typeof e){if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not available.");n=(new TextEncoder).encode(e)}const r=await t.subtle.digest("SHA-256",n);let o="";const i=new Uint8Array(r);for(let e=0;e<i.length;e++){const t=i[e].toString(16);o+=1===t.length?`0${t}`:t}return o}function Pe(e){return/^1\d{10}$/.test(e)}const Ue=Pe;function Ie(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function Be(e){if(!Number.isFinite(e)||e<=0)return"";e=Math.floor(e);let t="";for(;e>0;){let n=e%26;0===n&&(n=26),t=String.fromCharCode(n+96)+t,e=(e-n)/26}return t}function qe(){return"v4"}function Ye(e,t={},n=e=>!0===e){const{interval:r=1e3,times:o=10,context:i,args:s}=t;if("function"!=typeof e)return void console.error("Expected a function.");if(!Number.isFinite(r)||r<0)return void console.error("Expected a non-negative number for interval.");if(!Number.isFinite(o)||o<0)return void console.error("Expected a non-negative number for times.");if(0===o)return;let c=0;const u=()=>{setTimeout(async()=>{const t=await e.apply(i,s);n(t)||++c>=o||u()},r)};u()}async function We(e){return new Promise(t=>{setTimeout(()=>{t(e)},e)})}async function Ze(e){return We(e)}let He="";function Ve(){if(He)return"browser"===He;const e="undefined"!=typeof window;return e&&(He="browser"),e}function Je(e,t){const n=e[t];if(void 0!==n&&"string"!=typeof n)throw new TypeError(`manifest.${t} must be a string when provided`);return n}function Ge(e){if(void 0===e)return{name:""};if("string"==typeof e)return{name:e.trim()};if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError("manifest.author must be a string or object");const t=e,n={name:""};for(const e of["name","email","url"]){const r=t[e];if(void 0!==r&&"string"!=typeof r)throw new TypeError(`manifest.author.${e} must be a string when provided`);if("string"==typeof r){const t=r.trim();("name"===e||t)&&(n[e]=t)}}return n}function Qe(e,t={}){if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError("manifest must be an object");if(null===t||"object"!=typeof t||Array.isArray(t))throw new TypeError("options must be an object when provided");const n=e;if("string"!=typeof n.name||!n.name.trim())throw new TypeError("manifest.name must be a non-empty string");const r=n.name.trim(),o=function(e){if(/\s/.test(e))throw new TypeError("manifest.name must not contain whitespace");if(e.startsWith("@")){const t=e.split("/");if(2!==t.length||t[0].length<2||!t[1])throw new TypeError("manifest.name must be a valid scoped package name");return t[1]}if(e.includes("/"))throw new TypeError("manifest.name must be an unscoped or scoped package name");return e}(r),i=t.packageManager??"npm";if("npm"!==i&&"pnpm"!==i&&"yarn"!==i)throw new TypeError('packageManager must be "npm", "pnpm", or "yarn"');const s="npm"===i?"npm install":`${i} add`;return{name:r,version:Je(n,"version"),description:Je(n,"description"),license:Je(n,"license"),author:Ge(n.author),unscopedName:o,iifeGlobal:V(o),installCommand:`${s} ${r}`}}function Ke(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}function Xe(e){const t=e.indexOf("#"),n=-1===t?e:e.slice(0,t),r=n.indexOf("?"),o=/^(?:[a-z][a-z\d+.-]*:)?\/\//i.test(n)||"/"===n.charAt(0),i=-1===r?o?"":n:n.slice(r+1);return i?i.split("&").reduce((e,t)=>{if(!t||-1===t.indexOf("="))return e;const n=t.indexOf("=");return e.push([Ke(t.slice(0,n)),Ke(t.slice(n+1))]),e},[]):[]}function et(e,t){return Xe(e).filter(([e])=>e===t).map(([,e])=>e)}const tt=/^(?=.{1,39}$)(?!.*--)[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/,nt=/^(?=.{1,100}$)(?!\.{1,2}$)[A-Za-z0-9_.-]+$/;function rt(){return new Error("The value does not identify one supported GitHub repository")}function ot(e,t){const n=t.replace(/\.git$/i,"");if(!tt.test(e)||!nt.test(n))throw rt();const r=`${e}/${n}`;return{owner:e,name:n,slug:r,url:`https://github.com/${r}`}}function it(e){if("string"!=typeof e)throw new TypeError("value must be a string");const t=e.trim();if(!t||/[%\\?#]/.test(t)||function(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<=31||127===n)return!0}return!1}(t))throw rt();const n=t.match(/^(?:github:)?([^/:\s]+)\/([^/\s]+)$/i);if(n)return ot(n[1],n[2]);const r=t.match(/^git@([^:\s]+):([^/\s]+)\/([^/\s]+)$/);if(r&&"github.com"===r[1].toLowerCase())return ot(r[2],r[3]);const o=t.replace(/^git\+(?=(?:git|ssh|https?):\/\/)/i,""),i=o.match(/^[a-z][a-z\d+.-]*:\/\/([^/?#]+)/i);if(!i||/(^|\/)\.{1,2}(?:\/|$)/.test(o.slice(i[0].length)))throw rt();if(-1!==i[1].slice(i[1].lastIndexOf("@")+1).indexOf(":"))throw rt();let s;try{s=new URL(o)}catch(e){throw rt()}const c=s.protocol.toLowerCase(),u=s.hostname.toLowerCase().replace(/^www\./,"");if(!["git:","ssh:","http:","https:"].includes(c)||"github.com"!==u||""!==s.username&&"git"!==s.username||""!==s.password||""!==s.search||""!==s.hash)throw rt();const a=s.pathname.match(/^\/([^/]+)\/([^/]+)\/?$/);if(!a)throw rt();return ot(a[1],a[2])}function st(e){return et(location.search,e)[0]||""}function ct(e=""){""===e&&(e=location.search);const t={};return Xe(e).forEach(([e,n])=>{Object.hasOwn(t,e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0})}),t}function ut(e,t,n={}){const r=et(e,t);return n.returnArray?r:r.length?r[0]:null}function at(e,t,n){const r=e.indexOf("#"),o=-1===r?"":e.slice(r),i=-1===r?e:e.slice(0,r),s=i.indexOf("?"),c=-1===s?i:i.slice(0,s),u=-1===s?"":i.slice(s+1),a=encodeURIComponent(t),l=encodeURIComponent(n);let f=!1;const d=(u?u.split("&").filter(Boolean):[]).reduce((e,n)=>{const r=n.indexOf("=");return Ke(-1===r?n:n.slice(0,r))===t?f||(e.push(`${a}=${l}`),f=!0):e.push(n),e},[]);return f||d.push(`${a}=${l}`),`${c}?${d.join("&")}${o}`}function lt(e){const t=location.hash.split("?");return 1===t.length?"":et(`?${t.slice(1).join("?")}`,e)[0]||""}function ft(e,t=["hostname"]){try{const n=new URL(e,document.baseURI);return t.reduce((e,t)=>e+=n[t],"")}catch(n){const r=document.createElement("a");return r.href=e,t.reduce((e,t)=>e+=r[t],"")}}function dt(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b()!@:%_+.~#?&//=]*)$/.test(e)}function pt(e){return void 0===e||Number(e)<=65535}function mt(e){const t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&(1===e.length||"0"!==e.charAt(0))&&Number(e)<=255)}function gt(e){const t=e.split("::");if(t.length>2)return!1;const n=2===t.length;let r=[];t.forEach(e=>{e&&(r=r.concat(e.split(":")))});let o=0;for(let e=0;e<r.length;e++){const t=r[e];if(-1!==t.indexOf(".")){if(e!==r.length-1||!mt(t))return!1;o+=2}else{if(!/^[0-9a-f]{1,4}$/i.test(t))return!1;o+=1}}return n?o<8:8===o}function ht(e){const t=e.match(/^\[([0-9a-f:.]+)\]$/i);if(t)return gt(t[1]);if("."===e.charAt(e.length-1)&&(e=e.slice(0,-1)),mt(e))return!0;const n=e.split(".");return!(n.length<2||n.some(e=>!e||!/^[a-z\d-]+$/i.test(e)||"-"===e.charAt(0)||"-"===e.charAt(e.length-1)))&&!/^\d+$/.test(n[n.length-1])}function wt(e,t={strict:!0}){if("string"!=typeof e||!e||e.trim()!==e)return!1;const n=/^https?:\/\/[^/\\]/i.test(e),r=/^\/\/[^/\\]/.test(e);if(!n&&(t.strict||!r))return!1;const o=r?`http:${e}`:e;if(!function(e){const t=e.match(/^https?:\/\/([^/?#]+)(?:[/?#][^\s<>"`]*)?$/i);if(!t||-1!==t[1].indexOf("@"))return!1;const n=t[1],r=n.match(/^\[([0-9a-f:.]+)\](?::(\d*))?$/i);if(r)return gt(r[1])&&pt(r[2]);const o=n.match(/^([^:]+)(?::(\d*))?$/);return!(!o||!pt(o[2]))&&ht(o[1])}(o))return!1;try{const e=new URL(o);return("http:"===e.protocol||"https:"===e.protocol)&&ht(e.hostname)&&!e.username&&!e.password}catch(e){return!1}}function yt(e){let t="";if("string"!=typeof e||""==e)return t;const n=e.split(/[?#]/,1)[0],r=/\.[^/]+$/.exec(n);return r?(r[0].length>1&&(t=r[0].substring(1)),t):t}function bt(e,t=""){t||(t=".js");const n=document.querySelectorAll("script[src]");for(let r=0;r<n.length;r++){const o=n[r].getAttribute("src");if(o&&-1!==o.indexOf(t)){const t=et(o,e)[0];if(void 0!==t)return t}}return""}function vt(e){return e&&0===Object.keys(e).length?"":`?${Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}`}function Et(e){return e.replace(/^http:/,"https:")}function Tt(e){return Et(e)}function At(e){!wt(e)&&wt(e,{strict:!1})&&e.startsWith("//")&&(e="https:"+e);try{return new URL(e).host}catch(e){return""}}function St(e){!wt(e)&&wt(e,{strict:!1})&&e.startsWith("//")&&(e="https:"+e);try{return new URL(e).pathname}catch(e){return""}}function $t(e,t={}){const{fireOnInit:n=!0}=t,r=history;let o=location.href;const i=[],s=t=>{const n=location.href;if(n===o&&"load"!==t)return;const r=o;o=n,e({url:n,oldUrl:r,trigger:t})},c=()=>s("popstate"),u=()=>s("hashchange");window.addEventListener("popstate",c),window.addEventListener("hashchange",u),i.push(()=>window.removeEventListener("popstate",c)),i.push(()=>window.removeEventListener("hashchange",u)),r.__mazeyUrlChangePatched__||(r.__mazeyUrlChangePatched__=!0,r.__mazeyUrlChangeSubscribers__=new Set,r.__mazeyRawPushState__=history.pushState.bind(history),r.__mazeyRawReplaceState__=history.replaceState.bind(history),history.pushState=function(...e){r.__mazeyRawPushState__(...e),r.__mazeyUrlChangeSubscribers__.forEach(e=>e("pushState"))},history.replaceState=function(...e){r.__mazeyRawReplaceState__(...e),r.__mazeyUrlChangeSubscribers__.forEach(e=>e("replaceState"))});const a=e=>s(e);return r.__mazeyUrlChangeSubscribers__.add(a),i.push(()=>r.__mazeyUrlChangeSubscribers__.delete(a)),n&&s("load"),()=>{i.forEach(e=>e())}}const _t={enabled:!0,isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",isStringifyObject:!1,logFn:()=>{},errorFn:()=>{}};function Ot(e="",t={..._t}){const{enabled:n,isClosed:r,showWrap:o,showDate:i,locales:s,isStringifyObject:c,logFn:u,errorFn:a}=Object.assign({..._t},t);let l=n;!0===r&&(xt.warn("The options.isClosed is deprecated. Please use options.enabled instead."),l=!1);const f=Object.create(null),d=()=>(new Date).toLocaleDateString(s,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"});return["log","info","warn","error"].forEach(t=>{f[t]=function(...n){if(!l)return;let r=e,s=e;if("string"==typeof e&&e.length>=2){const t=e.length;r=":"===e[t-1]?e.substring(0,t-1):e}o&&console.log(`--- ${r} - begin ---`),i&&(s=e?`${d()} ${e}`:`${d()}`),c&&(n=n.map(e=>fe(e)?JSON.stringify(e):e)),e||i?console[t](s,...n):console[t](...n),"log"===t&&u(),"error"===t&&a(),o&&console.log(`--- ${r} - end ---`)}}),f}const xt=Ot("[Mazey]"),Nt=Ot("",{showDate:!0,locales:"zh-CN",isStringifyObject:!0});function jt(e,t){if(!e)return xt.error("The element is not exist."),!1;const n=e.className.split(/\s+/);for(let e=0;e<n.length;e++)if(n[e]===t)return!0;return!1}function Ct(e,t){if(!e)return void xt.error("The element is not exist.");if(Array.isArray(t))return void t.forEach(t=>{t&&e.classList.add(t)});if(!t)return;const n=e.className,r=n.split(/\s+/);for(let e=0;e<r.length;e++)if(r[e]===t)return;let o="",i="";""!==n&&(o=" "),i=n+o+t,e.className=i}function Mt(e,t){Ct(e,t)}function Dt(e,t){if(!e)return void xt.error("The element is not exist.");let n;n=" "+e.className+" ",n=n.replace(/(\s+)/gi," "),n=n.replace(" "+t+" "," "),n=n.replace(/(^\s+)|(\s+$)/g,""),e.className=n}function kt(e,t={id:""}){if(!e)return!1;const n=document.createDocumentFragment();let r=null,o="";const i=document.createElement("style");return t.id?(o=`${t.id}`,r=document.getElementById(o),r?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0}function Ft(){const e=window.jQuery||window.$;if(e){const t=e("img");return!(!t||!t.length)&&(t.each(function(){const t=e(this);if(!t)return;const n=t.attr("src");if(!(n&&"string"==typeof n&&n.length))return;const r=n.match(/[?&]width=([0-9]+[a-z%]*)/),o=n.match(/[?&]height=([0-9]+[a-z%]*)/);r&&le(r)&&r[1]&&t.width(r[1]),o&&le(o)&&o[1]&&t.height(o[1])}),!0)}{const e=document.getElementsByTagName("img");if(e.length>0)return Array.from(e).forEach(function(e){const t=e;if(!t)return;const n=t.getAttribute("src");if(!(n&&"string"==typeof n&&n.length))return;const r=n.match(/[?&]width=([0-9]+[a-z%]*)/),o=n.match(/[?&]height=([0-9]+[a-z%]*)/);r&&le(r)&&r[1]&&(t.style.width=r[1]),o&&le(o)&&o[1]&&(t.style.height=o[1])}),!0}return!1}function Lt(){return Ft()}function Rt(e,t){let n="";return t&&t.length>0&&(n=t.join(";")+";"),`${e}{${n}}`}function zt(e){const t=document.getElementsByTagName("meta");for(let n=0;n<t.length;n++)if(t[n].getAttribute("name")===e)return t[n].getAttribute("content")||"";return""}function Pt(e,t={}){if("string"!=typeof e)return!1;const n=e.trim();if(!n)return!0===t.allowEmpty;const r=t.root||("undefined"==typeof document?null:document);if(!r)return!1;try{return r.querySelector(n),!0}catch(e){return!1}}function Ut(e){return Boolean(e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}const It=new WeakMap,Bt=new WeakMap,qt={button:"inline-block",input:"inline-block",select:"inline-block",textarea:"inline-block",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",li:"list-item",summary:"list-item"},Yt=new Set(["address","article","aside","blockquote","body","dd","details","dialog","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","main","nav","ol","p","pre","section","ul"]);function Wt(e){if(!Ut(e))return null;const t=e.style;return t&&"string"==typeof t.display?e:null}function Zt(e){const t=new Set,n=e=>{const n=Wt(e);n&&t.add(n)};if("string"==typeof e){if("undefined"==typeof document)return[];try{document.querySelectorAll(e).forEach(n)}catch(e){return[]}return Array.from(t)}const r=Wt(e);if(r)return[r];if(!e||"object"!=typeof e)return[];if("function"==typeof e[Symbol.iterator]){for(const t of e)n(t);return Array.from(t)}const o=e.length;if(!Number.isSafeInteger(o)||o<0)return[];for(let t=0;t<o;t+=1)n(e[t]);return Array.from(t)}function Ht(e){const t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e).display:null}function Vt(e){const t=e.ownerDocument,n=e.localName.toLowerCase();let r=Bt.get(t);r||(r=new Map,Bt.set(t,r));const o=e.namespaceURI||"",i=`${o}:${n}`,s=r.get(i);if(s)return s;let c="";const u="http://www.w3.org/1999/xhtml"===o&&n.includes("-"),a=t.body||t.documentElement;if(a&&!u){const e=o&&"http://www.w3.org/1999/xhtml"!==o?t.createElementNS(o,n):t.createElement(n);a.appendChild(e);try{c=Ht(e)||""}finally{a.removeChild(e)}}return c&&"none"!==c||(c=function(e){return qt[e]?qt[e]:Yt.has(e)?"block":"inline"}(n)),r.set(i,c),c}function Jt(e){return Zt(e).forEach(e=>{"none"!==Ht(e)&&"none"!==e.style.display&&It.set(e,e.style.display),e.style.display="none"}),e}function Gt(e){return Zt(e).forEach(e=>{It.has(e)?(e.style.display=It.get(e),It.delete(e)):"none"===e.style.display&&(e.style.display=""),""===e.style.display&&"none"===Ht(e)&&(e.style.display=Vt(e))}),e}function Qt(e,t){if(void 0===e)return Ut(t.defaultElement)?t.defaultElement:null;let n=t.unwrap?t.unwrap(e):e;if(null==n)return null;if("string"==typeof n)try{return t.root.querySelector(n)}catch(e){return null}return"object"==typeof n&&"$el"in n&&(n=n.$el),Ut(n)?n:null}function Kt(e,t={}){const{excludeSelector:n="",replaceImagesWithAlt:r=!0,normalizeWhitespace:o=!0}=t,i=e.cloneNode(!0);r&&Array.from(i.querySelectorAll("img[alt]")).forEach(e=>{const t=e.getAttribute("alt")||"";e.parentNode?.replaceChild(i.ownerDocument.createTextNode(t),e)});const s=n.trim();s&&Pt(s,{root:i})&&Array.from(i.querySelectorAll(s)).forEach(e=>e.parentNode?.removeChild(e));const c=i.innerText||i.textContent||"";return o?c.replace(/\u00a0/g," ").replace(/\s+/g," ").trim():c}function Xt(e){e.stopPropagation()}function en(){const e=window.MAZEY_DEFINE_LISTENERS;if(e&&"object"==typeof e)return e;const t=Object.create(null);return window.MAZEY_DEFINE_LISTENERS=t,t}function tn(e,t){const n=en();Array.isArray(n[e])||Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:[],writable:!0}),"function"==typeof t&&n[e].push(t)}function nn(e,t){const n=en()[e];if(Array.isArray(n)){const e=n.slice();for(let n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&(void 0===t?e[n]():e[n](t))}}function rn(e,t){nn(e,t)}function on(e,t){const n=en(),r=n[e];if("string"==typeof e&&Array.isArray(r))if("function"==typeof t){for(let o=0,i=r.length;o<i;o++)if(r[o]===t){n[e].splice(o,1);break}}else delete n[e]}function sn(e,t=null){if(e){const n=JSON.stringify(t);sessionStorage.setItem(e,void 0===n?"null":n)}}function cn(e){let t=null;if(e){const n=sessionStorage.getItem(e);if(n)try{t=JSON.parse(n)}catch(e){t=n}}return t}function un(e,t=null){if(e){const n=JSON.stringify(t);localStorage.setItem(e,void 0===n?"null":n)}}function an(e){let t=null;if(e){const n=localStorage.getItem(e);if(n)try{t=JSON.parse(n)}catch(e){t=n}}return t}const ln=sn,fn=cn,dn=un,pn=an,mn="__mazey_cookie_name_encoded__-",gn="__mazey_cookie_value_encoded__-";function hn(e){return`${gn}${encodeURIComponent(e)}`}function wn(e){const t=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/.test(e),n=0===e.indexOf(mn)||0===e.indexOf(gn);return t&&!n?e:function(e){return`${mn}${encodeURIComponent(e)}`}(e)}function yn(e){const t=wn(e);return t!==e?[t,e]:[e]}function bn(e){const t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){const r=n[e].trim();if(0===r.indexOf(t))return r.substring(t.length)}}function vn(e){const t=yn(e),n="1"===bn(hn(e));for(let e=0;e<t.length;e++){const r=bn(t[e]);if(void 0!==r){if(n)try{return decodeURIComponent(r)}catch(e){return r}return r}}return""}function En(e,t,n,r){let o;if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),o="; expires="+e.toUTCString()}else o="";const i=function(e){let t=!0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(!(33===r||r>=35&&r<=43||r>=45&&r<=58||r>=60&&r<=91||r>=93&&r<=126)){t=!1;break}}return{isEncoded:!t,value:t?e:encodeURIComponent(e)}}(t),s=wn(e),c=i.isEncoded?"1":"",u=i.isEncoded?o:"; expires=Thu, 01 Jan 1970 00:00:00 GMT",a=[`${s}=${i.value}${o}; path=/`,`${hn(e)}=${c}${u}; path=/`],l=e=>{const t=e?`; domain=${e}`:"";a.forEach(e=>{document.cookie=`${e}${t}`})},f=location.hostname;if(r)l(r);else if(-1===f.indexOf("."))l();else{const n=f.split(".");n.shift();l("."+n.join(".")),vn(e)!==t&&l(`.${f}`)}}function Tn(e){const t=yn(e),n=t.concat(hn(e)),r=new Date;r.setTime(r.getTime()-1);const o=t.some(e=>void 0!==bn(e));return n.forEach((e,t)=>{if(n.indexOf(e)===t&&void 0!==bn(e)){[`${e}=; expires=${r.toUTCString()}`,`${e}=; expires=${r.toUTCString()}; path=/`].forEach(e=>{document.cookie=e;const t=location.hostname;if(-1!==t.indexOf(".")){const n=t.split(".");for(let t=0;t<n.length;t++)document.cookie=`${e}; domain=.${n.slice(t).join(".")}`}})}}),o&&n.every(e=>void 0===bn(e))}function An(e){Tn(e)}function Sn(e,t={id:""}){const{id:n}=t;return new Promise((t,r)=>{const o=document.createElement("link");let i=!1;const s=()=>{o.onload=null,o.onerror=null};o.rel="stylesheet",o.type="text/css",o.href=e,void 0!==n&&(o.id=n),o.onload=()=>{i||(i=!0,s(),t("loaded"))},o.onerror=()=>{i||(i=!0,s(),r(new Error(`Failed to load CSS: ${e}`)))},document.head.appendChild(o)})}const $n={id:"",callback:function(){},timeout:5e3,isDefer:!1,isAsync:!1,isCrossOrigin:!1,attributes:null,cssUrl:""};function _n(e,t={...$n}){const{id:n,callback:r,timeout:o,isDefer:i,isAsync:s,isCrossOrigin:c,attributes:u,cssUrl:a}=Object.assign({...$n},t);if(a){const t=function(e,t){if(!t)return"";if(wt(t))return t;try{const n=new URL(e,location.href);return new URL(t,n).href}catch(n){const r=e.split("/");return r.pop(),`${r.join("/")}/${t}`}}(e,a);t&&Sn(t).catch(e=>{console.error(`Failed to load CSS from ${t}: ${e?.message}`)})}return new Promise((t,a)=>{const l=document.createElement("script");let f=!1,d=null;const p=()=>{l.onload=null,l.onerror=null,null!==d&&(clearTimeout(d),d=null)},m=e=>{f||(f=!0,p(),a(e))};l.type="text/javascript",l.defer=Boolean(i),l.async=Boolean(s),c&&(l.crossOrigin="anonymous"),n&&(l.id=n),u&&Object.keys(u).forEach(e=>{l.setAttribute(e,u[e])}),l.onload=()=>{if(!f){f=!0,p();try{ae(r),t("loaded")}catch(e){a(e)}}},l.onerror=()=>m(new Error(`Failed to load script: ${e}`)),l.src=e,o&&(d=setTimeout(()=>m(new Error("timeout")),o));const g=document.getElementsByTagName("script")[0];if(g?.parentNode)g.parentNode.insertBefore(l,g);else{(document.head||document.body||document.documentElement).appendChild(l)}})}function On(e=3e4){return new Promise((t,n)=>{let r=null;const o=()=>{window.removeEventListener("load",i),null!==r&&(clearTimeout(r),r=null)},i=()=>{o(),t("load")};"complete"!==document.readyState?(window.addEventListener("load",i),r=setTimeout(()=>{o(),n(new Error("timeout"))},e)):t("complete")})}function xn(e){return new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=e=>{n(e)},r.src=e})}function Nn(e,t){if(window[e])return Promise.resolve("defined");let n=jn.get(e);const r=n?.get(t);if(r)return r;n||(n=new Map,jn.set(e,n));const o=()=>{n?.delete(t),0===n?.size&&jn.delete(e)},i=_n(t).then(e=>(o(),e),e=>{throw o(),e});return n.set(t,i),i}const jn=new Map;function Cn(e){if("undefined"==typeof window)return!1;let t=[];const n=window.PerformanceObserver;return!!n&&(le(n.supportedEntryTypes)&&(t=n.supportedEntryTypes),t.includes(e))}async function Mn(){return Cn("paint")?new Promise(e=>{const t=new window.PerformanceObserver(n=>{const r=n.getEntries().find(e=>"first-contentful-paint"===e.name);r&&(t.disconnect(),e(Math.round(r.startTime)))});t.observe({type:"paint",buffered:!0})}):0}async function Dn(){return Cn("paint")?new Promise(e=>{const t=new window.PerformanceObserver(n=>{const r=n.getEntries().find(e=>"first-paint"===e.name);r&&(t.disconnect(),e(Math.round(r.startTime)))});t.observe({type:"paint",buffered:!0})}):0}async function kn(){return Cn("largest-contentful-paint")?new Promise(e=>{const t=new window.PerformanceObserver(n=>{const r=n.getEntries().find(e=>"largest-contentful-paint"===e.entryType);r&&(t.disconnect(),e(Math.round(r.startTime)))});t.observe({type:"largest-contentful-paint",buffered:!0})}):0}async function Fn(){return Cn("first-input")?new Promise(e=>{const t=new window.PerformanceObserver(n=>{const r=n.getEntries().find(e=>"first-input"===e.entryType);if(r){t.disconnect();const n=r.processingStart;e(n?Math.round(r.processingStart-r.startTime):0)}});t.observe({type:"first-input",buffered:!0})}):0}async function Ln(){return Cn("layout-shift")?new Promise(e=>{const t=new window.PerformanceObserver(n=>{const r=n.getEntries().reduce((e,t)=>{let n=0;return ce(t.value)&&(n=t.value),e+n},0);t.disconnect(),e(r)});t.observe({type:"layout-shift",buffered:!0})}):0}async function Rn(){if(!Cn("navigation"))return 0;if(!window.performance||!window.performance.getEntriesByType)return 0;const e=window.performance.getEntriesByType("navigation")[0];let t=0;return e?(t=e.responseStart-e.requestStart,Math.round(t)):0}async function zn(e=!1){if(!Cn("navigation"))return Promise.reject(new Error("navigation is not supported"));const t=window.performance;if(!t||"function"!=typeof t.getEntriesByType)return Promise.reject(new Error("performance is not supported"));let n;const r=new Promise(e=>{[n]=[e]}),o=t.getEntriesByType("navigation");if(!le(o))return Promise.reject(new Error("NavigationTiming is not supported"));const i=o[0];let[s,c,u,a,l,f,d,p,m,g,h,w,y,b,v,E,T,A,S]=new Array(19).fill(0);({decodedBodySize:A,encodedBodySize:S}=i),({unloadEventEnd:s,unloadEventStart:c,redirectEnd:u,redirectStart:a,domainLookupEnd:l,domainLookupStart:f,connectEnd:d,connectStart:p,secureConnectionStart:m,responseStart:g,requestStart:h,responseEnd:w,domContentLoadedEventStart:y,loadEventStart:b,loadEventEnd:v,startTime:E,fetchStart:T}=i);let $=0;if(ce(E))$=E;else{if(!ce(T))return Promise.reject(new Error("startTime, navigationStart or fetchStart are required"));$=T}const[_,O]=await Promise.all([Dn(),Mn()]);function x(){({decodedBodySize:A,encodedBodySize:S}=i),({unloadEventEnd:s,unloadEventStart:c,redirectEnd:u,redirectStart:a,domainLookupEnd:l,domainLookupStart:f,connectEnd:d,connectStart:p,secureConnectionStart:m,responseStart:g,requestStart:h,responseEnd:w,domContentLoadedEventStart:y,loadEventStart:b,loadEventEnd:v,startTime:E,fetchStart:T}=i),ce(E)?$=E:ce(T)&&($=T);const t={source:"PerformanceNavigationTiming",os:N(),osVersion:j(),deviceType:C(),network:M(),screenDirection:D(),unloadTime:s-c,redirectTime:u-a,dnsTime:l-f,tcpTime:d-p,sslTime:k(d,m),responseTime:g-h,downloadTime:w-g,firstPaintTime:_,firstContentfulPaintTime:O,domReadyTime:y-$,onloadTime:b-$,whiteTime:g-$,renderTime:v-$,decodedBodySize:A,encodedBodySize:S};Object.keys(t).forEach(e=>{ce(t[e])&&(t[e]<0?t[e]=0:t[e]=Math.round(t[e]))}),ce(t.whiteTime)&&t.whiteTime>t.onloadTime&&(t.whiteTime=0);const r={};e||Object.keys(t).forEach(e=>{r[H(e)]=t[e]}),Object.keys(r).length?n(r):n(t)}function N(){let e;return e=navigator.userAgent.indexOf("Android")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others",e}function j(){let e="";const t=navigator.userAgent,n=t.indexOf("Android")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;const i=o[1];return i?(n&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function C(){let e;const t=navigator.userAgent.toLowerCase(),n=t.match(/(ipad)/i)&&"ipad",r=t.match(/iphone os/i)&&"iphone os",o=t.match(/midp/i)&&"midp",i=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",s=t.match(/ucweb/i)&&"ucweb",c=t.match(/android/i)&&"android",u=t.match(/windows ce/i)&&"windows ce",a=t.match(/windows mobile/i)&&"windows mobile";return e=n||r||o||i||s||c||u||a?r||o||i||s||c||u||a?"phone":n?"ipad":void 0:"pc",e||(e=""),e}function M(){let e="";const t=window.navigator;if(t.connection&&t.connection.effectiveType)switch(t.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function D(){let e="";return window.screen&&window.screen.orientation&&"number"==typeof window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function k(e,t){let n=0;return t&&(n=e-t),n}return ce(v)&&v>0?x():"complete"===document.readyState?window.setTimeout(x,0):window.addEventListener("load",function e(){window.removeEventListener("load",e),window.setTimeout(function(){x()},0)}),r}function Pn(e,t=e.userAgent.trim().toLowerCase()){return/\bmacintosh\b/.test(t)&&"macintel"===e.platform.toLowerCase()&&e.maxTouchPoints>1}const Un=Object.freeze(["adsbot-google","ahrefsbot","amazonbot","applebot","baiduspider","bingbot","bingpreview","bytespider","ccbot","chatgpt-user","claudebot","discordbot","dotbot","duckduckbot","facebookexternalhit","facebot","google-inspectiontool","googlebot","googleother","gptbot","linkedinbot","mediapartners-google","mj12bot","perplexitybot","petalbot","semrushbot","slackbot","slurp","storebot-google","telegrambot","twitterbot","whatsapp","yandexbot"]),In=Object.freeze(["headlesschrome","phantomjs","slimerjs","selenium","puppeteer","playwright"]);function Bn(){try{return"undefined"==typeof navigator?null:navigator}catch(e){return null}}function qn(){const e=Bn();if(!e)return{userAgent:"",platform:"",maxTouchPoints:0};let t="",n="",r=0;try{const n=e.userAgent;t="string"==typeof n?n:""}catch(e){return{userAgent:"",platform:"",maxTouchPoints:0}}try{const t=e.platform;n="string"==typeof t?t:""}catch(e){n=""}try{const t=e.maxTouchPoints;r=Number.isFinite(t)?t:0}catch(e){r=0}return{userAgent:t,platform:n,maxTouchPoints:r}}function Yn(e){const t=e.userAgent.trim().toLowerCase();return t?/\bandroid\b|\badr\b/.test(t)?"android":/\bios\b|\biphone\b|\bipad\b|\bipod\b|\biwatch\b/.test(t)||Pn(e,t)?"ios":/\bwindows\b|\bwin32\b|\bwin64\b|\bwow32\b|\bwow64\b/.test(t)?"windows":/\bmacintosh\b|\bmacintel\b|\bmac os x\b/.test(t)?"macos":/\blinux\b/.test(t)?"linux":"":""}function Wn(e){const t=e.userAgent.trim().toLowerCase();if(!t)return"";if(/\biwatch\b|\bapple watch\b/.test(t))return"";if(/\bipad\b|\btablet\b/.test(t)||Pn(e,t))return"tablet";const n=Yn(e);return"android"===n?/\bmobile\b/.test(t)?"mobile":"tablet":"ios"===n&&/\biphone\b|\bipod\b/.test(t)?"mobile":"windows"===n||"macos"===n||"linux"===n||/\bcros\b/.test(t)?"desktop":/\bmobile\b/.test(t)?"mobile":""}function Zn(e){if(void 0!==e&&"string"!=typeof e)throw new TypeError("userAgent must be a string when provided.");return Wn(void 0!==e?{userAgent:e,platform:"",maxTouchPoints:0}:qn())}function Hn(e){if(void 0!==e&&"string"!=typeof e)throw new TypeError("userAgent must be a string when provided.");return Yn(void 0!==e?{userAgent:e,platform:"",maxTouchPoints:0}:qn())}function Vn(e){return"mobile"===Zn(e)}function Jn(e){return"desktop"===Zn(e)}function Gn(e){return"tablet"===Zn(e)}function Qn(e){return"ios"===Hn(e)}function Kn(e){return"android"===Hn(e)}function Xn(e){return"macos"===Hn(e)}function er(e){return"windows"===Hn(e)}function tr(e){return"linux"===Hn(e)}function nr(e,t){const n=e.trim().toLowerCase();return t.some(e=>n.includes(e))}function rr(e){if(void 0!==e&&"string"!=typeof e)throw new TypeError("userAgent must be a string when provided.");const t=void 0===e?function(){const e=Bn();if(!e)return"";try{const t=e.userAgent;return"string"==typeof t?t:""}catch(e){return""}}():e;return nr(t,Un)?"crawler":nr(t,In)||function(){const e=Bn();if(!e)return!1;try{return!0===e.webdriver}catch(e){return!1}}()?"automation":"unknown"}function or(e={}){if("undefined"==typeof window||"undefined"==typeof navigator)return!1;try{if(null===e||"object"!=typeof e||Array.isArray(e))return!1;const t=e.requireManifest,n=e.scope;if(void 0!==t&&"boolean"!=typeof t||void 0!==n&&"string"!=typeof n)return!1;if(!0!==window.isSecureContext||!("serviceWorker"in navigator))return!1;if(void 0!==n&&!function(e){const t=e.trim();if(!t||/[?#]/.test(t))return!1;try{const e=new URL(window.location.href),n=new URL(t,e);if(n.origin!==e.origin||""!==n.search||""!==n.hash)return!1;if(e.pathname===n.pathname)return!0;const r=n.pathname.endsWith("/")?n.pathname:`${n.pathname}/`;return e.pathname.startsWith(r)}catch(e){return!1}}(n))return!1;if(!1===t)return!0;if("undefined"==typeof document)return!1;const r=document.querySelector('link[rel~="manifest"][href]');return Boolean(r?.getAttribute("href")?.trim())}catch(e){return!1}}function ir(){if("undefined"==typeof window||"undefined"==typeof navigator)return!1;const e=navigator;try{const e=window.matchMedia;if("function"==typeof e&&e.call(window,"(display-mode: standalone)").matches)return!0}catch(e){}try{return!0===e.standalone}catch(e){return!1}}function sr(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;let e={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:"",colorScheme:""};try{const t=qn(),n=t.userAgent.toLowerCase();if(!n)return e;const r=e=>e.test(n),o=e=>{let t="";const r=n.match(e);return r&&le(r)&&(t=r.toString(),t=t.replace(/[^0-9|_.]/g,""),t=t.replace(/_/g,".")),t},i=Yn(t);let s="";"ios"===i&&(r(/ipad/g)?s="ipad":r(/iphone/g)?s="iphone":r(/iwatch/g)?s="iwatch":r(/ipod/g)?s="ipod":"macintel"===t.platform.toLowerCase()&&t.maxTouchPoints>1&&(s="ipad")),e={...e,system:i,appleType:s};let c="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?c="2000":r(/windows nt 5.1|windows xp/g)?c="xp":r(/windows nt 5.2|windows 2003/g)?c="2003":r(/windows nt 6.0|windows vista/g)?c="vista":r(/windows nt 6.1|windows 7/g)?c="7":r(/windows nt 6.2|windows 8/g)?c="8":r(/windows nt 6.3|windows 8.1/g)?c="8.1":r(/windows nt 10.0|windows 10/g)&&(c="10"):"macos"===i?c=o(/os x [\d._]+/g):"android"===i?c=o(/android [\d._]+/g):"ios"===i&&(c=o(/os [\d._]+/g)),e={...e,systemVs:c};let u="";"windows"===i||"macos"===i||"linux"===i?u="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(u="mobile"),e={...e,platform:u};let a="",l="";r(/applewebkit/g)?(a="webkit",r(/edg(?:a|ios)?\//g)||r(/edge\//g)?l="edge":r(/opr/g)?l="opera":r(/chrome/g)?l="chrome":r(/safari/g)&&(l="safari")):r(/gecko/g)&&r(/firefox/g)?(a="gecko",l="firefox"):r(/presto/g)?(a="presto",l="opera"):r(/trident|compatible|msie/g)&&(a="trident",l="iexplore"),e={...e,engine:a,supporter:l};let f="";"webkit"===a?f=o(/applewebkit\/[\d._]+/g):"gecko"===a?f=o(/gecko\/[\d._]+/g):"presto"===a?f=o(/presto\/[\d._]+/g):"trident"===a&&(f=o(/trident\/[\d._]+/g)),e={...e,engineVs:f};let d="";"chrome"===l?d=o(/chrome\/[\d._]+/g):"safari"===l?d=o(/version\/[\d._]+/g):"firefox"===l?d=o(/firefox\/[\d._]+/g):"opera"===l?d=o(/opr\/[\d._]+/g):"iexplore"===l?d=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===l&&(d=o(/(?:edge|edg|edga|edgios)\/[\d._]+/g)),e={...e,supporterVs:d};let p="",m="";r(/micromessenger/g)?(p="wechat",m=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(p="qq_browser",m=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?p="qq_app":r(/ucbrowser/g)?(p="uc",m=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?p="360":r(/2345explorer/g)?(p="2345",m=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?p="sougou":r(/lbbrowser/g)?p="liebao":r(/maxthon/g)?(p="maxthon",m=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(p="bilibili"),e={...e,shell:p,shellVs:m};let g="";if(window.matchMedia){const e=window.matchMedia("(prefers-color-scheme: dark)"),t=window.matchMedia("(prefers-color-scheme: light)");e.matches?g="dark":t.matches&&(g="light")}return e={...e,colorScheme:g},window.MAZEY_BROWSER_INFO=e,e}catch(t){return xt.warn(t),e}}function cr(e="",t="-"){const n=sr(),r=[];return["system","platform","engine","supporter","shell","appleType"].forEach(o=>{const i=n[o];if(i){let n="";e&&e.length>0&&(n=`${e}${t}`),r.push(`${n}${i}`)}}),r}let ur="";function ar(){if(ur)return Promise.resolve("webp"===ur);return new Promise(e=>{const t=new Image;t.onload=()=>{const n=t.width>0&&t.height>0;ur=n?"webp":"no-webp",e(n)},t.onerror=()=>{ur="no-webp",e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="})}function lr(e,t){if("function"!=typeof t)throw new TypeError("listener must be a function");if(null===e)return()=>{};if("object"!=typeof e)throw new TypeError("media must be a MediaQueryList or null");const n=e.addEventListener,r=e.removeEventListener;let o=null;if("function"==typeof n&&"function"==typeof r){const i=t;n.call(e,"change",i),o=()=>r.call(e,"change",i)}let i=!1;return()=>{i||(i=!0,o?.())}}function fr(e,t,n){if(null===e||"object"!=typeof e||"function"!=typeof e.addEventListener||"function"!=typeof e.removeEventListener)throw new TypeError("registration must support event listeners");if(null===t||"object"!=typeof t||"function"!=typeof t.addEventListener||"function"!=typeof t.removeEventListener)throw new TypeError("container must support event listeners");if(null===n||"object"!=typeof n||"function"!=typeof n.onUpdateAvailable||void 0!==n.onControllerChange&&"function"!=typeof n.onControllerChange)throw new TypeError("callbacks must provide onUpdateAvailable");let r=!1,o=null,i=null,s=!1,c=!1;const u=e=>{r||i===e||(i=e,n.onUpdateAvailable(e))},a=()=>{!r&&"installed"===o?.state&&t.controller&&u(o)},l=()=>{r||(o?.removeEventListener("statechange",a),o=e.installing,o?.addEventListener("statechange",a),a())},f=()=>{r||n.onControllerChange?.()},d=()=>{if(s){try{e.removeEventListener("updatefound",l)}catch(e){}s=!1}try{o?.removeEventListener("statechange",a)}catch(e){}if(c){try{t.removeEventListener("controllerchange",f)}catch(e){}c=!1}};try{e.addEventListener("updatefound",l),s=!0,t.addEventListener("controllerchange",f),c=!0,e.waiting&&t.controller&&u(e.waiting),e.installing&&l()}catch(e){throw r=!0,d(),o=null,i=null,e}return{activateWaiting(e={type:"SKIP_WAITING"}){if(r||!i)return!1;try{return i.postMessage(e),!0}catch(e){return!1}},dispose(){r||(r=!0,d(),o=null,i=null)}}}function dr(e){if("string"!=typeof e||""===e.trim())throw new TypeError("storageKey must be a non-empty string.")}function pr(e){if("undefined"==typeof window)return null;try{return new URL(window.location.href).searchParams.get(e)}catch(e){return null}}function mr(e){if("undefined"==typeof window)return null;try{const t=window.localStorage;return t&&"function"==typeof t.getItem?t.getItem(e):null}catch(e){return null}}function gr(e,t){if("undefined"==typeof window)return!1;try{const n=window.localStorage;return!(!n||"function"!=typeof n.setItem)&&(n.setItem(e,t),!0)}catch(e){return!1}}const hr=Object.freeze({system:"System",light:"Light",dark:"Dark"});function wr(e){return"light"===e||"dark"===e}function yr(){if("undefined"==typeof window)return null;try{const e=window.matchMedia;return"function"!=typeof e?null:e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}catch(e){return null}}function br(e,t){return{value:e,label:hr[t]}}function vr(e){dr(e);const t=pr("theme");if(wr(t))return gr(e,t),br(t,t);const n=mr(e);if(wr(n))return br(n,n);const r=yr();return"system"===n&&r||r?br(r,"system"):br("light","light")}function Er(e,t){if(dr(e),!function(e){return"system"===e||wr(e)}(t))throw new TypeError('value must be "system", "light", or "dark".');return gr(e,t)}function Tr(e){const t=e.split("-");if(!/^[a-z]{2,8}$/i.test(t[0]))return null;const n=[t[0].toLowerCase()];let r=1;if(r<t.length&&/^[a-z]{4}$/i.test(t[r])){const e=t[r].toLowerCase();n.push(`${e[0].toUpperCase()}${e.slice(1)}`),r++}for(r<t.length&&(/^[a-z]{2}$/i.test(t[r])||/^\d{3}$/.test(t[r]))&&(n.push(/^[a-z]{2}$/i.test(t[r])?t[r].toUpperCase():t[r]),r++);r<t.length;r++){const e=t[r];if(!/^(?:[a-z0-9]{5,8}|\d[a-z0-9]{3})$/i.test(e))return null;n.push(e.toLowerCase())}return n.join("-")}function Ar(e){if("string"!=typeof e)return null;const t=e.trim().replace(/_/g,"-");if(!t)return null;if("undefined"!=typeof Intl)try{const e=Intl,n=e.getCanonicalLocales;if("function"==typeof n){const r=n.call(e,t)[0];return"string"==typeof r&&r?r:null}}catch(e){return e instanceof RangeError||"object"==typeof e&&null!==e&&"name"in e&&"RangeError"===e.name?null:Tr(t)}return Tr(t)}function Sr(e){if("undefined"==typeof Intl)return e;try{const t=Intl.DisplayNames;if("function"!=typeof t)return e;const n=new t([e],{type:"language"}).of(e);return"string"==typeof n&&n.trim()?n:e}catch(t){return e}}function $r(e){return{value:e,label:Sr(e)}}function _r(e){dr(e);const t=Ar(pr("lang"));if(t)return $r(t);const n=Ar(mr(e));if(n)return $r(n);return $r(Ar(function(){if("undefined"==typeof window||"undefined"==typeof navigator)return null;try{return"string"==typeof navigator.language?navigator.language:null}catch(e){return null}}())??"en")}function Or(e,t){dr(e);const n=Ar(t);if(!n)throw new TypeError("language must be a valid language tag.");return gr(e,n)}export{Ct as addClass,tn as addEvent,kt as addStyle,U as assignDefined,M as calLongestCommonSubsequence,j as calLongestCommonSubstring,x as calculateCAGR,H as camelCase2Underscore,Y as camelCaseToKebabCase,Xt as cancelBubble,Ae as clearHTML,Se as clearHtml,Be as convert10To26,B as convertCamelToKebab,W as convertCamelToUnder,Et as convertHttpToHttps,q as convertKebabToCamel,vt as convertObjectToQuery,be as convertToHtmlBreaks,Z as convertUnderToCamel,Ce as cutCHSString,Ne as cutZHString,se as debounce,R as deepCopy,I as deepCopyObject,P as deepFreeze,An as delCookie,Qe as derivePackageMetadata,rr as detectVisitorType,ae as doFn,$e as escapeHtmlAttribute,Kt as extractElementText,nn as fireEvent,oe as floatFixed,re as floatToPercent,Fe as formatByteSize,_ as formatDate,$ as formatDistanceToNow,w as formatDurationFromMs,a as formatLocalDateTime,cr as genBrowserAttrs,Ot as genCustomConsole,Re as genHashCode,X as genRndNumString,Rt as genStyleString,te as genUniqueNumString,O as generateCalendarVersion,ee as generateRndNum,ne as generateUniqueNum,ct as getAllQueryParams,sr as getBrowserInfo,Ln as getCLS,vn as getCookie,qe as getCurrentVersion,m as getDateDifference,en as getDefineListeners,ft as getDomain,Mn as getFCP,Fn as getFID,Dn as getFP,Le as getFileSize,g as getFriendlyInterval,lt as getHashQueryParam,kn as getLCP,an as getLocalJSON,pn as getLocalStorage,zt as getPageMeta,zn as getPerformance,st as getQueryParam,bt as getScriptQueryParam,cn as getSessionJSON,fn as getSessionStorage,yr as getSystemTheme,Rn as getTTFB,yt as getUrlFileType,At as getUrlHost,ut as getUrlParam,St as getUrlPath,jt as hasClass,Jt as hide,k as inRate,rn as invokeEvent,ue as invokeFn,Kn as isAndroid,we as isArray,me as isBool,ge as isBoolean,Ve as isBrowser,Jn as isDesktop,de as isFunction,D as isHit,Qn as isIOS,G as isJSONString,Q as isJsonString,tr as isLinux,Xn as isMacOS,Ue as isMobile,le as isNonEmptyArray,ye as isNonEmptyObject,ce as isNumber,Vn as isPhone,fe as isPureObject,or as isSafePWAEnv,ir as isStandalonePWA,pe as isString,ar as isSupportWebp,Cn as isSupportedEntryType,Gn as isTablet,A as isThisHour,E as isThisMonth,T as isThisWeek,v as isThisYear,b as isToday,he as isUdfOrNul,Pt as isValidCssSelector,De as isValidData,y as isValidDate,Ie as isValidEmail,wt as isValidHttpUrl,Pe as isValidPhoneNumber,dt as isValidUrl,er as isWindows,lr as listenMediaQueryChanges,Sn as loadCSS,xn as loadImage,_n as loadScript,Nn as loadScriptIfUndefined,C as longestComSubsequence,N as longestComSubstring,f as mNow,J as mTrim,xt as mazeyCon,ve as newLine,$t as onURLChange,it as parseGitHubRepository,K as parseJsonSafe,u as parseLocalDateTime,Dt as removeClass,Tn as removeCookie,on as removeEvent,Ee as removeHTML,Te as removeHtml,Ye as repeatUntilConditionMet,Tt as replaceHttp,Qt as resolveElementTarget,_r as resolveLanguagePreference,vr as resolveThemePreference,_e as sanitizeInput,Mt as setClass,En as setCookie,Ft as setImgSizeBySrc,Lt as setImgWidHeiBySrc,Or as setLanguagePreference,un as setLocalJSON,dn as setLocalStorage,sn as setSessionJSON,ln as setSessionStorage,Er as setThemePreference,ze as sha256Hex,Gt as show,Ze as sleep,l as subYears,ie as throttle,Nt as timeCon,V as toJavaScriptGlobalName,je as truncateZHString,xe as unsanitize,Oe as unsanitizeInput,at as updateQueryParam,We as waitTime,fr as watchServiceWorkerUpdates,On as windowLoaded,Me as zAxiosIsValidRes};
|