← Back
Editing: index.js
/*! For license information please see index.js.LICENSE.txt */ (()=>{var e={66303:(e,t,r)=>{"use strict";var n=r(72418),o=r(28713),i=r(1101),a=r(82322);e.exports=a||n.call(i,o)},28713:e=>{"use strict";e.exports=Function.prototype.apply},1101:e=>{"use strict";e.exports=Function.prototype.call},51089:(e,t,r)=>{"use strict";var n=r(72418),o=r(60084),i=r(1101),a=r(66303);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},82322:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},27771:(e,t,r)=>{"use strict";var n=r(41886),o=r(51089),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},29654:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},o=t||{},a=e.split(";"),c=o.decode||r,p=0;p<a.length;p++){var l=a[p],s=l.indexOf("=");if(!(s<0)){var u=l.substring(0,s).trim();if(null==n[u]){var f=l.substring(s+1,l.length).trim();'"'===f[0]&&(f=f.slice(1,-1)),n[u]=i(f,c)}}}return n},t.serialize=function(e,t,r){var i=r||{},a=i.encode||n;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!o.test(e))throw new TypeError("argument name is invalid");var c=a(t);if(c&&!o.test(c))throw new TypeError("argument val is invalid");var p=e+"="+c;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");p+="; Max-Age="+Math.floor(l)}if(i.domain){if(!o.test(i.domain))throw new TypeError("option domain is invalid");p+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw new TypeError("option path is invalid");p+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");p+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(p+="; HttpOnly"),i.secure&&(p+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"strict":p+="; SameSite=Strict";break;case"none":p+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return p};var r=decodeURIComponent,n=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e,t){try{return t(e)}catch(t){return e}}},45768:(e,t,r)=>{"use strict";var n,o=r(51089),i=r(47889);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),c=Object,p=c.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof p&&function(e){return p(null==e?e:c(e))}},91760:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},27326:e=>{"use strict";e.exports=EvalError},77126:e=>{"use strict";e.exports=Error},95675:e=>{"use strict";e.exports=RangeError},51303:e=>{"use strict";e.exports=ReferenceError},34379:e=>{"use strict";e.exports=SyntaxError},60084:e=>{"use strict";e.exports=TypeError},28132:e=>{"use strict";e.exports=URIError},93667:e=>{"use strict";e.exports=Object},65786:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),c=r(0,o.length-a.length),p=[],l=0;l<c;l++)p[l]="$"+l;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(p)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))}),o.prototype){var s=function(){};s.prototype=o.prototype,i.prototype=new s,s.prototype=null}return i}},72418:(e,t,r)=>{"use strict";var n=r(65786);e.exports=Function.prototype.bind||n},41886:(e,t,r)=>{"use strict";var n,o=r(93667),i=r(77126),a=r(27326),c=r(95675),p=r(51303),l=r(34379),s=r(60084),u=r(28132),f=r(82066),y=r(12672),d=r(80100),m=r(7850),g=r(12400),h=r(62182),w=r(55309),b=Function,v=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=r(47889),E=r(91760),S=function(){throw new s},A=x?function(){try{return S}catch(e){try{return x(arguments,"callee").get}catch(e){return S}}}():S,O=r(75764)(),j=r(46558),P=r(938),_=r(36642),I=r(28713),N=r(1101),R={},k="undefined"!=typeof Uint8Array&&j?j(Uint8Array):n,T={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&j?j([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&j?j(j([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&j?j((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":c,"%ReferenceError%":p,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&j?j((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&j?j(""[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":A,"%TypedArray%":k,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":I,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":P,"%Math.abs%":f,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":h,"%Math.sign%":w,"%Reflect.getPrototypeOf%":_};if(j)try{null.error}catch(e){var D=j(j(e));T["%Error.prototype%"]=D}var M=function e(t){var r;if("%AsyncFunction%"===t)r=v("async function () {}");else if("%GeneratorFunction%"===t)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=v("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&j&&(r=j(o.prototype))}return T[t]=r,r},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=r(72418),U=r(7080),W=L.call(N,Array.prototype.concat),C=L.call(I,Array.prototype.splice),B=L.call(N,String.prototype.replace),$=L.call(N,String.prototype.slice),G=L.call(N,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,H=function(e,t){var r,n=e;if(U(F,n)&&(n="%"+(r=F[n])[0]+"%"),U(T,n)){var o=T[n];if(o===R&&(o=M(n)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return B(e,K,function(e,t,r,o){n[n.length]=r?B(o,z,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=H("%"+n+"%",t),i=o.name,a=o.value,c=!1,p=o.alias;p&&(n=p[0],C(r,W([0,1],p)));for(var u=1,f=!0;u<r.length;u+=1){var y=r[u],d=$(y,0,1),m=$(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==y&&f||(c=!0),U(T,i="%"+(n+="."+y)+"%"))a=T[i];else if(null!=a){if(!(y in a)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&u+1>=r.length){var g=x(a,y);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[y]}else f=U(a,y),a=a[y];f&&!c&&(T[i]=a)}}return a}},938:(e,t,r)=>{"use strict";var n=r(93667);e.exports=n.getPrototypeOf||null},36642:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},46558:(e,t,r)=>{"use strict";var n=r(36642),o=r(938),i=r(45768);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},98683:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},47889:(e,t,r)=>{"use strict";var n=r(98683);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},75764:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(32294);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},32294:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7080:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(72418);e.exports=i.call(n,o)},82066:e=>{"use strict";e.exports=Math.abs},12672:e=>{"use strict";e.exports=Math.floor},44067:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},80100:e=>{"use strict";e.exports=Math.max},7850:e=>{"use strict";e.exports=Math.min},12400:e=>{"use strict";e.exports=Math.pow},62182:e=>{"use strict";e.exports=Math.round},55309:(e,t,r)=>{"use strict";var n=r(44067);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},94201:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,p=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=c&&p&&"function"==typeof p.get?p.get:null,s=c&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,h=String.prototype.match,w=String.prototype.slice,b=String.prototype.replace,v=String.prototype.toUpperCase,x=String.prototype.toLowerCase,E=RegExp.prototype.test,S=Array.prototype.concat,A=Array.prototype.join,O=Array.prototype.slice,j=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,N="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-j(-e):j(e);if(n!==e){var o=String(n),i=w.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var M=r(52944),F=M.custom,L=z(F)?F:null,U={__proto__:null,double:'"',single:"'"},W={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function C(e,t,r){var n=r.quoteStyle||t,o=U[n];return o+e+o}function B(e){return b.call(String(e),/"/g,""")}function $(e){return!R||!("object"==typeof e&&(R in e||void 0!==e[R]))}function G(e){return"[object Array]"===V(e)&&$(e)}function K(e){return"[object RegExp]"===V(e)&&$(e)}function z(e){if(N)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,c){var p=n||{};if(q(p,"quoteStyle")&&!q(U,p.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(p,"maxStringLength")&&("number"==typeof p.maxStringLength?p.maxStringLength<0&&p.maxStringLength!==1/0:null!==p.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!q(p,"customInspect")||p.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(p,"indent")&&null!==p.indent&&"\t"!==p.indent&&!(parseInt(p.indent,10)===p.indent&&p.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(p,"numericSeparator")&&"boolean"!=typeof p.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=p.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,p);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return v?D(t,E):E}if("bigint"==typeof t){var j=String(t)+"n";return v?D(t,j):j}var _=void 0===p.depth?5:p.depth;if(void 0===o&&(o=0),o>=_&&_>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var F,W=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(p,o);if(void 0===c)c=[];else if(J(c,t)>=0)return"[Circular]";function H(t,r,n){if(r&&(c=O.call(c)).push(r),n){var i={depth:p.depth};return q(p,"quoteStyle")&&(i.quoteStyle=p.quoteStyle),e(t,i,o+1,c)}return e(t,p,o+1,c)}if("function"==typeof t&&!K(t)){var Y=function(e){if(e.name)return e.name;var t=h.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,H);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ne.length>0?" { "+A.call(ne,", ")+" }":"")}if(z(t)){var oe=N?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!=typeof t||N?oe:Z(oe)}if((F=t)&&"object"==typeof F&&("undefined"!=typeof HTMLElement&&F instanceof HTMLElement||"string"==typeof F.nodeName&&"function"==typeof F.getAttribute)){for(var ie="<"+x.call(String(t.nodeName)),ae=t.attributes||[],ce=0;ce<ae.length;ce++)ie+=" "+ae[ce].name+"="+C(B(ae[ce].value),"double",p);return ie+=">",t.childNodes&&t.childNodes.length&&(ie+="..."),ie+"</"+x.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var pe=re(t,H);return W&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(pe)?"["+te(pe,W)+"]":"[ "+A.call(pe,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&$(e)}(t)){var le=re(t,H);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(le,", ")+" }":"{ ["+String(t)+"] "+A.call(S.call("[cause]: "+H(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(L&&"function"==typeof t[L]&&M)return M(t,{depth:_-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return a&&a.call(t,function(e,r){se.push(H(r,t,!0)+" => "+H(e,t))}),ee("Map",i.call(t),se,W)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return s&&s.call(t,function(e){ue.push(H(e,t))}),ee("Set",l.call(t),ue,W)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if(function(e){return"[object Number]"===V(e)&&$(e)}(t))return Z(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}(t))return Z(H(P.call(t)));if(function(e){return"[object Boolean]"===V(e)&&$(e)}(t))return Z(d.call(t));if(function(e){return"[object String]"===V(e)&&$(e)}(t))return Z(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===V(e)&&$(e)}(t)&&!K(t)){var fe=re(t,H),ye=T?T(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",me=!ye&&R&&Object(t)===t&&R in t?w.call(V(t),8,-1):de?"Object":"",ge=(ye||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||de?"["+A.call(S.call([],me||[],de||[]),": ")+"] ":"");return 0===fe.length?ge+"{}":W?ge+"{"+te(fe,W)+"}":ge+"{ "+A.call(fe,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return H.call(e,t)}function V(e){return m.call(e)}function J(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Q(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(w.call(e,0,t.maxStringLength),t)+n}var o=W[t.quoteStyle||"single"];return o.lastIndex=0,C(b.call(b.call(e,o,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function Z(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):A.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=G(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=q(e,o)?t(e[o],e):""}var i,a="function"==typeof _?_(e):[];if(N){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var p in e)q(e,p)&&(r&&String(Number(p))===p&&p<e.length||N&&i["$"+p]instanceof Symbol||(E.call(/[^\w$]/,p)?n.push(t(p,e)+": "+t(e[p],e)):n.push(p+": "+t(e[p],e))));if("function"==typeof _)for(var l=0;l<a.length;l++)k.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}},2439:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8435:(e,t,r)=>{"use strict";var n=r(76898),o=r(78604),i=r(2439);e.exports={formats:i,parse:o,stringify:n}},78604:(e,t,r)=>{"use strict";var n=r(44174),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},c=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},p=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t,r,i){if(e){var a=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),a=i?r.slice(0,i.index):r,c=[];if(a){if(!t.plainObjects&&o.call(Object.prototype,a)&&!t.allowPrototypes)return;c[c.length]=a}for(var p=0;null!==(i=n.exec(r))&&p<t.depth;){p+=1;var l=i[1].slice(1,-1);if(!t.plainObjects&&o.call(Object.prototype,l)&&!t.allowPrototypes)return;c[c.length]=i[1]}if(i){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");c[c.length]="["+r.slice(i.index)+"]"}return c}(e,r);if(a)return function(e,t,r,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var c=o?t:p(t,r,i),l=e.length-1;l>=0;--l){var s,u=e[l];if("[]"===u&&r.parseArrays)s=n.isOverflow(c)?c:r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:n.combine([],c,r.arrayLimit,r.plainObjects);else{s=r.plainObjects?{__proto__:null}:{};var f="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(y,10),m=!isNaN(d)&&u!==y&&String(d)===y&&d>=0&&r.parseArrays;if(r.parseArrays||""!==y)if(m&&d<r.arrayLimit)(s=[])[d]=c;else{if(m&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");m?(s[d]=c,n.markOverflow(s,d)):"__proto__"!==y&&(s[y]=c)}else s={0:c}}c=s}return c}(a,t,r,i)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var s="string"==typeof e?function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==s?s+1:s);if(t.throwOnLimitExceeded&&void 0!==s&&u.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(1===s?"":"s")+" allowed.");var f,y=-1,d=t.charset;if(t.charsetSentinel)for(f=0;f<u.length;++f)0===u[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[f]?d="utf-8":"utf8=%26%2310003%3B"===u[f]&&(d="iso-8859-1"),y=f,f=u.length);for(f=0;f<u.length;++f)if(f!==y){var m,g,h=u[f],w=h.indexOf("]="),b=-1===w?h.indexOf("="):w+1;if(-1===b?(m=t.decoder(h,a.decoder,d,"key"),g=t.strictNullHandling?null:""):null!==(m=t.decoder(h.slice(0,b),a.decoder,d,"key"))&&(g=n.maybeMap(p(h.slice(b+1),t,i(r[m])?r[m].length:0),function(e){return t.decoder(e,a.decoder,d,"value")})),g&&t.interpretNumericEntities&&"iso-8859-1"===d&&(g=c(String(g))),h.indexOf("[]=")>-1&&(g=i(g)?[g]:g),t.comma&&i(g)&&g.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");g=n.combine([],g,t.arrayLimit,t.plainObjects)}if(null!==m){var v=o.call(r,m);v&&("combine"===t.duplicates||h.indexOf("[]=")>-1)?r[m]=n.combine(r[m],g,t.arrayLimit,t.plainObjects):v&&"last"!==t.duplicates||(r[m]=g)}}return r}(e,r):e,u=r.plainObjects?{__proto__:null}:{},f=Object.keys(s),y=0;y<f.length;++y){var d=f[y],m=l(d,s[d],r,"string"==typeof e);u=n.merge(u,m,r)}return!0===r.allowSparse?u:n.compact(u)}},76898:(e,t,r)=>{"use strict";var n=r(16496),o=r(44174),i=r(2439),a=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},p=Array.isArray,l=Array.prototype.push,s=function(e,t){l.apply(e,p(t)?t:[t])},u=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},d={},m=function e(t,r,i,a,c,l,u,f,m,g,h,w,b,v,x,E,S,A){for(var O,j=t,P=A,_=0,I=!1;void 0!==(P=P.get(d))&&!I;){var N=P.get(t);if(_+=1,void 0!==N){if(N===_)throw new RangeError("Cyclic object value");I=!0}void 0===P.get(d)&&(_=0)}if("function"==typeof g?j=g(r,j):j instanceof Date?j=b(j):"comma"===i&&p(j)&&(j=o.maybeMap(j,function(e){return e instanceof Date?b(e):e})),null===j){if(l)return m&&!E?m(r,y.encoder,S,"key",v):r;j=""}if("string"==typeof(O=j)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||o.isBuffer(j))return m?[x(E?r:m(r,y.encoder,S,"key",v))+"="+x(m(j,y.encoder,S,"value",v))]:[x(r)+"="+x(String(j))];var R,k=[];if(void 0===j)return k;if("comma"===i&&p(j))E&&m&&(j=o.maybeMap(j,m)),R=[{value:j.length>0?j.join(",")||null:void 0}];else if(p(g))R=g;else{var T=Object.keys(j);R=h?T.sort(h):T}var D=f?String(r).replace(/\./g,"%2E"):String(r),M=a&&p(j)&&1===j.length?D+"[]":D;if(c&&p(j)&&0===j.length)return M+"[]";for(var F=0;F<R.length;++F){var L=R[F],U="object"==typeof L&&L&&void 0!==L.value?L.value:j[L];if(!u||null!==U){var W=w&&f?String(L).replace(/\./g,"%2E"):String(L),C=p(j)?"function"==typeof i?i(M,W):M:M+(w?"."+W:"["+W+"]");A.set(t,_);var B=n();B.set(d,A),s(k,e(U,C,i,a,c,l,u,f,"comma"===i&&E&&p(j)?null:m,g,h,w,b,v,x,E,S,B))}}return k};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],l=y.filter;if(("function"==typeof e.filter||p(e.filter))&&(l=e.filter),n=e.arrayFormat in c?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:s,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:l,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):p(l.filter)&&(r=l.filter);var u=[];if("object"!=typeof o||null===o)return"";var f=c[l.arrayFormat],d="comma"===f&&l.commaRoundTrip;r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var g=n(),h=0;h<r.length;++h){var w=r[h],b=o[w];l.skipNulls&&null===b||s(u,m(b,w,f,d,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var v=u.join(l.delimiter),x=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),v.length>0?x+v:""}},44174:(e,t,r)=>{"use strict";var n=r(2439),o=r(16496),i=Object.prototype.hasOwnProperty,a=Array.isArray,c=o(),p=function(e,t){return c.set(e,t),e},l=function(e){return c.has(e)},s=function(e){return c.get(e)},u=function(e,t){c.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),y=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},d=1024;e.exports={arrayToObject:y,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(l(e)){var o=s(e)+1;return e[o]=t,u(e,o),e}var i=[].concat(e,t);return i.length>r?p(y(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],c=Object.keys(i),p=0;p<c.length;++p){var l=c[p],s=i[l];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t[t.length]={obj:i,prop:l},r[r.length]=s)}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&(n[n.length]=r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",p=0;p<a.length;p+=d){for(var l=a.length>=d?a.slice(p,p+d):a,s=[],u=0;u<l.length;++u){var y=l.charCodeAt(u);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===n.RFC1738&&(40===y||41===y)?s[s.length]=l.charAt(u):y<128?s[s.length]=f[y]:y<2048?s[s.length]=f[192|y>>6]+f[128|63&y]:y<55296||y>=57344?s[s.length]=f[224|y>>12]+f[128|y>>6&63]+f[128|63&y]:(u+=1,y=65536+((1023&y)<<10|1023&l.charCodeAt(u)),s[s.length]=f[240|y>>18]+f[128|y>>12&63]+f[128|y>>6&63]+f[128|63&y])}c+=s.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:p,maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(a(t)){var o=t.length;if(n&&"number"==typeof n.arrayLimit&&o>n.arrayLimit)return p(y(t.concat(r),n),o);t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(l(t)){var c=s(t)+1;t[c]=r,u(t,c)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!=typeof t){if(l(r)){for(var f=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<f.length;m++)d[parseInt(f[m],10)+1]=r[f[m]];return p(d,s(r)+1)}var g=[t].concat(r);return n&&"number"==typeof n.arrayLimit&&g.length>n.arrayLimit?p(y(g,n),g.length-1):g}var h=t;return a(t)&&!a(r)&&(h=y(t,n)),a(t)&&a(r)?(r.forEach(function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t[t.length]=r}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];if(i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,l(r)&&!l(t)&&p(t,s(r)),l(t)){var c=parseInt(o,10);String(c)===o&&c>=0&&c>s(t)&&u(t,c)}return t},h)}}},94931:(e,t,r)=>{"use strict";var n=r(51609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};t.Fragment=i,t.jsx=function(e,t,r){var n,i={},l=null,s=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,n)&&!p.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:s,props:i,_owner:c.current}}},39793:(e,t,r)=>{"use strict";e.exports=r(94931)},90488:(e,t,r)=>{"use strict";var n=r(94201),o=r(60084),i=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){var r=function(e,t){if(e)return i(e,t,!0)}(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var r=i(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},79544:(e,t,r)=>{"use strict";var n=r(41886),o=r(27771),i=r(94201),a=r(60084),c=n("%Map%",!0),p=o("Map.prototype.get",!0),l=o("Map.prototype.set",!0),s=o("Map.prototype.has",!0),u=o("Map.prototype.delete",!0),f=o("Map.prototype.size",!0);e.exports=!!c&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=u(e,t);return 0===f(e)&&(e=void 0),r}return!1},get:function(t){if(e)return p(e,t)},has:function(t){return!!e&&s(e,t)},set:function(t,r){e||(e=new c),l(e,t,r)}};return t}},12617:(e,t,r)=>{"use strict";var n=r(41886),o=r(27771),i=r(94201),a=r(79544),c=r(60084),p=n("%WeakMap%",!0),l=o("WeakMap.prototype.get",!0),s=o("WeakMap.prototype.set",!0),u=o("WeakMap.prototype.has",!0),f=o("WeakMap.prototype.delete",!0);e.exports=p?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new c("Side channel does not contain "+i(e))},delete:function(r){if(p&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return p&&r&&("object"==typeof r||"function"==typeof r)&&e?l(e,r):t&&t.get(r)},has:function(r){return p&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):!!t&&t.has(r)},set:function(r,n){p&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new p),s(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},16496:(e,t,r)=>{"use strict";var n=r(60084),o=r(94201),i=r(90488),a=r(79544),c=r(12617)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}},51609:e=>{"use strict";e.exports=window.React},52944:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{Experiment:()=>B,ExperimentWithAuth:()=>q,ProvideExperimentData:()=>$,ProvideExperimentDataWithAuth:()=>V,dangerouslyGetExperimentAssignment:()=>W,dangerouslyGetExperimentAssignmentWithAuth:()=>z,initializeExPlat:()=>F,loadExperimentAssignment:()=>U,loadExperimentAssignmentWithAuth:()=>K,useExperiment:()=>C,useExperimentWithAuth:()=>H});let e=Date.now();function t(){const t=Date.now();return e=e<t?t:e+1,e}function o(e){return t()<1e3*e.ttl+e.retrievedTimestamp}const i=(e,r=60)=>({experimentName:e,variationName:null,retrievedTimestamp:t(),ttl:Math.max(60,r),isFallbackExperimentAssignment:!0});let a={_data:{},setItem:function(e,t){this._data[e]=t},getItem:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null},removeItem:function(e){delete this._data[e]},clear:function(){this._data={}},get length(){return Object.keys(this._data).length},key:function(e){const t=Object.keys(this._data);return e in t?t[e]:null}};try{window.localStorage&&(a=window.localStorage)}catch(e){}const c=a;function p(e){return"object"==typeof e&&null!==e}function l(e){return"string"==typeof e&&""!==e&&/^[a-z0-9_]*$/.test(e)}function s(e){if(!function(e){return p(e)&&l(e.experimentName)&&(l(e.variationName)||null===e.variationName)&&"number"==typeof e.retrievedTimestamp&&"number"==typeof e.ttl&&0!==e.ttl}(e))throw new Error("Invalid ExperimentAssignment");return e}const u="explat-experiment-",f=e=>`${u}-${e}`;function y(e){s(e);const t=d(e.experimentName);if(t&&e.retrievedTimestamp<t.retrievedTimestamp)throw new Error("Trying to store an older experiment assignment than is present in the store, likely a race condition.");c.setItem(f(e.experimentName),JSON.stringify(e))}function d(e){const t=c.getItem(f(e));if(t)return s(JSON.parse(t))}function m(e){return e.startsWith(u)}function g(e){return e.slice(19)}const h="explat-last-anon-id",w="explat-last-anon-id-retrieval-time",b=async e=>{const r=await e();if(r)return c.setItem(h,r),c.setItem(w,String(t())),r;const n=c.getItem(h),o=c.getItem(w);return n&&o&&t()-parseInt(o,10)<864e5?n:null};Error;const v="undefined"==typeof window?function(e){return{loadExperimentAssignment:async t=>(e.logError({message:"Attempting to load ExperimentAssignment in SSR context",experimentName:t}),i(t)),dangerouslyGetExperimentAssignment:t=>(e.logError({message:"Attempting to dangerously get ExperimentAssignment in SSR context",experimentName:t}),i(t)),config:e}}:function(e){if("undefined"==typeof window)throw new Error("Running outside of a browser context.");const r=r=>function(){let n=null;return()=>(n||(n=(async()=>{const n=await async function(e,r){const n=t(),{variations:a,ttl:c}=function(e){if(function(e){return p(e)&&p(e.variations)&&"number"==typeof e.ttl&&0<e.ttl}(e))return e;throw new Error("Invalid FetchExperimentAssignmentResponse")}(await e.fetchExperimentAssignment({anonId:await b(e.getAnonId),experimentName:r})),l=Math.max(60,c),u=Object.entries(a).map(([e,t])=>({experimentName:e,variationName:t,retrievedTimestamp:n,ttl:l})).map(s);if(u.length>1)throw new Error("Received multiple experiment assignments while trying to fetch exactly one.");if(0===u.length)return i(r,l);const f=u[0];if(f.experimentName!==r)throw new Error("Newly fetched ExperimentAssignment's experiment name does not match request.");if(!o(f))throw new Error("Newly fetched experiment isn't alive.");return f}(e,r);return y(n),n})().finally(()=>{n=null})),n)}(),n={},a=(...t)=>{try{e.logError(...t)}catch(e){}};try{(u=c.length,[...Array(u).keys()]).map(e=>c.key(e)).filter(m).map(g).filter(e=>{try{if(o(d(e)))return!1}catch(e){}return!0}).map(f).map(e=>c.removeItem(e))}catch(e){a({message:e.message,source:"removeExpiredExperimentAssignments-error"})}var u;return{loadExperimentAssignment:async e=>{try{if(!l(e))throw new Error(`Invalid experimentName: "${e}"`);const i=d(e);if(i&&o(i))return i;void 0===n[e]&&(n[e]=r(e));let a=1e4;Math.random()>.5&&(a=5e3);const p=await(t=n[e](),c=a,Promise.race([t,new Promise((e,t)=>setTimeout(()=>t(new Error(`Promise has timed-out after ${c}ms.`)),c))]));if(!p)throw new Error("Could not fetch ExperimentAssignment");return p}catch(t){a({message:t.message,experimentName:e,source:"loadExperimentAssignment-initialError"})}var t,c;try{const t=d(e);if(t)return t;const r=i(e);return y(r),r}catch(t){return a({message:t.message,experimentName:e,source:"loadExperimentAssignment-fallbackError"}),i(e)}},dangerouslyGetExperimentAssignment:r=>{try{if(!l(r))throw new Error(`Invalid experimentName: ${r}`);const n=d(r);if(!n)throw new Error("Trying to dangerously get an ExperimentAssignment that hasn't loaded.");return e.isDevelopmentMode&&n&&t()-n.retrievedTimestamp<1e3&&a({message:"Warning: Trying to dangerously get an ExperimentAssignment too soon after loading it.",experimentName:r,source:"dangerouslyGetExperimentAssignment"}),n}catch(t){return e.isDevelopmentMode&&a({message:t.message,experimentName:r,source:"dangerouslyGetExperimentAssignment-error"}),i(r)}},config:e}};var x=r(39793),E=r(51609);const S={isEligible:!0};function A(e){const t=(t,r={})=>{const n={...S,...r},[o]=(0,E.useState)(t),[i,a]=(0,E.useState)([!0,null]);return(0,E.useEffect)(()=>{let r=!0;return n.isEligible&&e.loadExperimentAssignment(t).then(e=>{r&&a([!1,e])}),()=>{r=!1}},[t,n.isEligible]),t===o||o.startsWith("explat_test")||e.config.logError({message:"[ExPlat] useExperiment: experimentName should never change between renders!"}),n.isEligible?i:[!1,null]};return{useExperiment:t,Experiment:({defaultExperience:e,treatmentExperience:r,loadingExperience:n,name:o,options:i})=>{const[a,c]=t(o,i);return a?(0,x.jsx)(x.Fragment,{children:n}):c?.variationName?(0,x.jsx)(x.Fragment,{children:r}):(0,x.jsx)(x.Fragment,{children:e})},ProvideExperimentData:({children:e,name:r,options:n})=>{const[o,i]=t(r,n);return e(o,i)}}}const O=!1,j=e=>{const t=e=>{};try{const{message:r,...n}=e,o={message:r,properties:{...n,context:"explat",explat_client:"woocommerce"}};{if(!window.wcTracks?.isEnabled&&!window?._wca?.push)throw new Error("Tracking is disabled, can't send error to the server");const e=new window.FormData;e.append("error",JSON.stringify(o)),window.fetch("https://public-api.wordpress.com/rest/v1.1/js-error",{method:"POST",body:e}).catch(t)}}catch(e){}};var P=r(8435);const _=window.wp.hooks,I=window.wp.apiFetch;var N=r.n(I);const R=window.wcTracks?.isEnabled||void 0!==window?._wca?.push,k=({experimentName:e,anonId:t})=>{const r=(0,_.applyFilters)("woocommerce_explat_request_args",{experiment_name:e,anon_id:t??void 0,woo_country_code:window.wcSettings?.preloadSettings?.general?.woocommerce_default_country||window.wcSettings?.admin?.preloadSettings?.general?.woocommerce_default_country,woo_wcadmin_install_timestamp:window.wcSettings?.admin?.preloadOptions?.woocommerce_admin_install_timestamp});if(!(e=>e.hasOwnProperty("experiment_name")&&e.hasOwnProperty("woo_country_code")&&e.hasOwnProperty("woo_wcadmin_install_timestamp"))(r))throw new Error(`Invalid query Params: ${JSON.stringify(r)}`);if(!/^[A-Za-z0-9_]+$/.test(r.experiment_name))throw new Error(`Invalid A/B test name: ${r.experiment_name}`);return r};var T=r(29654);let D=null;const M=async()=>R?await D:null,F=()=>{R&&(async()=>{let e=0;return D=new Promise(t=>{const r=()=>{const n=T.parse(document.cookie).tk_ai||null;"string"!=typeof n||""===n?99<=e?t(null):(e+=1,setTimeout(r,50)):t(n)};r()}),D})().catch(e=>j({message:e.message}))};F();const L=v({fetchExperimentAssignment:async({experimentName:e,anonId:t})=>{if(!R)throw new Error("Tracking is disabled, can't fetch experimentAssignment");const r=k({experimentName:e,anonId:t});if(!r.anon_id)throw new Error("Can't fetch experiment assignment without an anonId or auth, please initialize anonId first or use fetchExperimentAssignmentWithAuth instead.");const n=await window.fetch(`https://public-api.wordpress.com/wpcom/v2/experiments/0.1.0/assignments/woocommerce?${(0,P.stringify)(r)}`);return await n.json()},getAnonId:M,logError:j,isDevelopmentMode:O}),{loadExperimentAssignment:U,dangerouslyGetExperimentAssignment:W}=L,{useExperiment:C,Experiment:B,ProvideExperimentData:$}=A(L),G=v({fetchExperimentAssignment:async({experimentName:e,anonId:t})=>{if(!R)throw new Error("Tracking is disabled, can't fetch experimentAssignment");return await N()({path:`/wc-admin/experiments/assignment?${(0,P.stringify)(k({experimentName:e,anonId:t}))}`})},getAnonId:M,logError:j,isDevelopmentMode:O}),{loadExperimentAssignment:K,dangerouslyGetExperimentAssignment:z}=G,{useExperiment:H,Experiment:q,ProvideExperimentData:V}=A(G)})(),(window.wc=window.wc||{}).explat=n})();
Save File
Cancel