@verdocs/web-sdk 6.9.10 → 6.9.12

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.
@@ -0,0 +1,4 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{f(n.next(e))}catch(e){a(e)}}function u(e){try{f(n["throw"](e))}catch(e){a(e)}}function f(e){e.done?r(e.value):i(e.value).then(o,u)}f((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return f([e,t])}}function f(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(r=0)),r)try{if(n=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1];a=u;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(u);break}if(a[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,a){r=e[t](r),i(n,a,r.done,r.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:false}:i?i(t):t}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,l)}}function u(e,t){if(n[e]){i[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||f(e,t)}))};if(t)i[e]=t(i[e])}}function f(e,t){try{s(n[e](t))}catch(e){d(a[0][3],e)}}function s(e){e.value instanceof __await?Promise.resolve(e.value.v).then(c,l):d(a[0][2],e)}function c(e){f("next",e)}function l(e){f("throw",e)}function d(e,t){if(e(t),a.shift(),a.length)f(a[0][0],a[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};System.register(["./p-De3fNE_u.system.js","@verdocs/js-sdk","./p-Bzy18UgU.system.js","./p-C9y1KCYV.system.js","./p-EtGQEmqo.system.js","./p-C7pDryJb.system.js","./p-CwIkMPyJ.system.js"],(function(e){"use strict";var t,r,n,i,a,o,u,f,s,c,l,d;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.F},function(e){a=e.VerdocsEndpoint;o=e.formatFullName;u=e.getActiveEntitlements;f=e.isValidEmail},function(e){s=e.c;c=e.g},function(e){l=e.B},function(e){d=e.f},null,null],execute:function(){
2
+ /*! Axios v1.17.0 Copyright (c) 2026 Matt Zabriskie and contributors */
3
+ var v;var h;function p(){var e=this;if(h)return v;h=1;function t(e,t){return function r(){return e.apply(t,arguments)}}var r=Object.prototype.toString;var n=Object.getPrototypeOf;var i=Symbol.iterator,a=Symbol.toStringTag;var o=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));var u=function(e){e=e.toLowerCase();return function(t){return o(t)===e}};var f=function(e){return function(t){return typeof t===e}};var c=Array.isArray;var l=f("undefined");function d(e){return e!==null&&!l(e)&&e.constructor!==null&&!l(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var p=u("ArrayBuffer");function b(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&p(e.buffer)}return t}var m=f("string");var y=f("function");var w=f("number");var g=function(e){return e!==null&&typeof e==="object"};var x=function(e){return e===true||e===false};var _=function(e){if(o(e)!=="object"){return false}var t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(a in e)&&!(i in e)};var k=function(e){if(!g(e)||d(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};var O=u("Date");var R=u("File");var S=function(e){return!!(e&&typeof e.uri!=="undefined")};var E=function(e){return e&&typeof e.getParts!=="undefined"};var j=u("Blob");var T=u("FileList");var A=function(e){return g(e)&&y(e.pipe)};function C(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof s!=="undefined")return s;return{}}var N=C();var F=typeof N.FormData!=="undefined"?N.FormData:undefined;var P=function(e){if(!e)return false;if(F&&e instanceof F)return true;var t=n(e);if(!t||t===Object.prototype)return false;if(!y(e.append))return false;var r=o(e);return r==="formdata"||r==="object"&&y(e.toString)&&e.toString()==="[object FormData]"};var U=u("URLSearchParams");var I=["ReadableStream","Request","Response","Headers"].map(u),B=I[0],D=I[1],z=I[2],L=I[3];var M=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function q(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,a=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var o;var u;if(typeof e!=="object"){e=[e]}if(c(e)){for(o=0,u=e.length;o<u;o++){t.call(null,e[o],o,e)}}else{if(d(e)){return}var f=a?Object.getOwnPropertyNames(e):Object.keys(e);var s=f.length;var l=void 0;for(o=0;o<s;o++){l=f[o];t.call(null,e[l],l,e)}}}function H(e,t){if(d(e)){return null}t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var J=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:s}();var K=function(e){return!l(e)&&e!==J};function V(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=K(this)&&this||{},n=r.caseless,i=r.skipUndefined;var a={};var o=function(e,t){if(t==="__proto__"||t==="constructor"||t==="prototype"){return}var r=n&&typeof t==="string"&&H(a,t)||t;var o=ie(a,r)?a[r]:undefined;if(_(o)&&_(e)){a[r]=V(o,e)}else if(_(e)){a[r]=V({},e)}else if(c(e)){a[r]=e.slice()}else if(!i||!l(e)){a[r]=e}};for(var u=0,f=e.length;u<f;u++){var s=e[u];if(!s||d(s)){continue}q(s,o);if(typeof s!=="object"||c(s)){continue}var v=Object.getOwnPropertySymbols(s);for(var h=0;h<v.length;h++){var p=v[h];if(ae.call(s,p)){o(s[p],p)}}}return a}var G=function(e,r,n,i){var a=i===void 0?{}:i,o=a.allOwnKeys;q(r,(function(r,i){if(n&&y(r)){Object.defineProperty(e,i,{__proto__:null,value:t(r,n),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(e,i,{__proto__:null,value:r,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:o});return e};var W=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var X=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{__proto__:null,value:t.prototype});r&&Object.assign(e.prototype,r)};var $=function(e,t,r,i){var a;var o;var u;var f={};t=t||{};if(e==null)return t;do{a=Object.getOwnPropertyNames(e);o=a.length;while(o-- >0){u=a[o];if((!i||i(u,e,t))&&!f[u]){t[u]=e[u];f[u]=true}}e=r!==false&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var Z=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var Q=function(e){if(!e)return null;if(c(e))return e;var t=e.length;if(!w(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var Y=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&n(Uint8Array));var ee=function(e,t){var r=e&&e[i];var n=r.call(e);var a;while((a=n.next())&&!a.done){var o=a.value;t.call(e,o[0],o[1])}};var te=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var re=u("HTMLFormElement");var ne=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var ie=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var ae=Object.prototype.propertyIsEnumerable;var oe=u("RegExp");var ue=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};q(r,(function(r,i){var a;if((a=t(r,i,e))!==false){n[i]=a||r}}));Object.defineProperties(e,n)};var fe=function(e){ue(e,(function(t,r){if(y(e)&&["arguments","caller","callee"].includes(r)){return false}var n=e[r];if(!y(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var se=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};c(e)?n(e):n(String(e).split(t));return r};var ce=function(){};var le=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};function de(e){return!!(e&&y(e.append)&&e[a]==="FormData"&&e[i])}var ve=function(e){var t=new WeakSet;var r=function(e){if(g(e)){if(t.has(e)){return}if(d(e)){return e}if(!("toJSON"in e)){t.add(e);var n=c(e)?[]:{};q(e,(function(e,t){var i=r(e);!l(i)&&(n[t]=i)}));t.delete(e);return n}}return e};return r(e)};var he=u("AsyncFunction");var pe=function(e){return e&&(g(e)||y(e))&&y(e.then)&&y(e.catch)};var be=function(e,t){if(e){return setImmediate}return t?function(e,t){J.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===J&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);J.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",y(J.postMessage));var me=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(J):typeof process!=="undefined"&&process.nextTick||be;var ye=function(e){return e!=null&&y(e[i])};var we={isArray:c,isArrayBuffer:p,isBuffer:d,isFormData:P,isArrayBufferView:b,isString:m,isNumber:w,isBoolean:x,isObject:g,isPlainObject:_,isEmptyObject:k,isReadableStream:B,isRequest:D,isResponse:z,isHeaders:L,isUndefined:l,isDate:O,isFile:R,isReactNativeBlob:S,isReactNative:E,isBlob:j,isRegExp:oe,isFunction:y,isStream:A,isURLSearchParams:U,isTypedArray:Y,isFileList:T,forEach:q,merge:V,extend:G,trim:M,stripBOM:W,inherits:X,toFlatObject:$,kindOf:o,kindOfTest:u,endsWith:Z,toArray:Q,forEachEntry:ee,matchAll:te,isHTMLForm:re,hasOwnProperty:ie,hasOwnProp:ie,reduceDescriptors:ue,freezeMethods:fe,toObjectSet:se,toCamelCase:ne,noop:ce,toFiniteNumber:le,findKey:H,global:J,isContextDefined:K,isSpecCompliantForm:de,toJSONObject:ve,isAsyncFn:he,isThenable:pe,setImmediate:be,asap:me,isIterable:ye};var ge=we.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var xe=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(a){i=a.indexOf(":");r=a.substring(0,i).trim().toLowerCase();n=a.substring(i+1).trim();if(!r||t[r]&&ge[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};function _e(e){var t=0;var r=e.length;while(t<r){var n=e.charCodeAt(t);if(n!==9&&n!==32){break}t+=1}while(r>t){var n=e.charCodeAt(r-1);if(n!==9&&n!==32){break}r-=1}return t===0&&r===e.length?e:e.slice(t,r)}var ke=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g");var Oe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Re(e,t){if(we.isArray(e)){return e.map((function(e){return Re(e,t)}))}return _e(String(e).replace(t,""))}var Se=function(e){return Re(e,ke)};var Ee=function(e){return Re(e,Oe)};function je(e){var t=Object.create(null);we.forEach(e.toJSON(),(function(e,r){t[r]=Ee(e)}));return t}var Te=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Ce(e){if(e===false||e==null){return e}return we.isArray(e)?e.map(Ce):Se(String(e))}function Ne(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var Fe=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function Pe(e,t,r,n,i){if(we.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!we.isString(t))return;if(we.isString(n)){return t.indexOf(n)!==-1}if(we.isRegExp(n)){return n.test(t)}}function Ue(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function Ie(e,t){var r=we.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var Be=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=Ae(t);if(!i){return}var a=we.findKey(n,i);if(!a||n[a]===undefined||r===true||r===undefined&&n[a]!==false){n[a||t]=Ce(e)}}var a=function(e,t){return we.forEach(e,(function(e,r){return i(e,r,t)}))};if(we.isPlainObject(e)||e instanceof this.constructor){a(e,t)}else if(we.isString(e)&&(e=e.trim())&&!Fe(e)){a(xe(e),t)}else if(we.isObject(e)&&we.isIterable(e)){var o={},u=void 0,f=void 0;for(var s=0,c=e;s<c.length;s++){var l=c[s];if(!we.isArray(l)){throw new TypeError("Object iterator must return a key-value pair")}o[f=l[0]]=(u=o[f])?we.isArray(u)?__spreadArray(__spreadArray([],u,true),[l[1]],false):[u,l[1]]:l[1]}a(o,t)}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=Ae(e);if(e){var r=we.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return Ne(n)}if(we.isFunction(t)){return t.call(this,n,r)}if(we.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=Ae(e);if(e){var r=we.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||Pe(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=Ae(e);if(e){var i=we.findKey(r,e);if(i&&(!t||Pe(r,r[i],i,t))){delete r[i];n=true}}}if(we.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||Pe(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};we.forEach(this,(function(n,i){var a=we.findKey(r,i);if(a){t[a]=Ce(n);delete t[i];return}var o=e?Ue(i):String(i).trim();if(o!==i){delete t[i]}t[o]=Ce(n);r[o]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);we.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&we.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};e.prototype.getSetCookie=function(){return this.get("set-cookie")||[]};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[Te]=this[Te]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=Ae(e);if(!r[t]){Ie(n,e);r[t]=true}}we.isArray(e)?e.forEach(i):i(e);return this};return e}();Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);we.reduceDescriptors(Be.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));we.freezeMethods(Be);var De="[REDACTED ****]";function ze(e){if(we.hasOwnProp(e,"toJSON")){return true}var t=Object.getPrototypeOf(e);while(t&&t!==Object.prototype){if(we.hasOwnProp(t,"toJSON")){return true}t=Object.getPrototypeOf(t)}return false}function Le(e,t){var r=new Set(t.map((function(e){return String(e).toLowerCase()})));var n=[];var i=function(e){if(e===null||typeof e!=="object")return e;if(we.isBuffer(e))return e;if(n.indexOf(e)!==-1)return undefined;if(e instanceof Be){e=e.toJSON()}n.push(e);var t;if(we.isArray(e)){t=[];e.forEach((function(e,r){var n=i(e);if(!we.isUndefined(n)){t[r]=n}}))}else{if(!we.isPlainObject(e)&&ze(e)){n.pop();return e}t=Object.create(null);for(var a=0,o=Object.entries(e);a<o.length;a++){var u=o[a],f=u[0],s=u[1];var c=r.has(f.toLowerCase())?De:i(s);if(!we.isUndefined(c)){t[f]=c}}}n.pop();return t};return i(e)}var Me=function(e){__extends(t,e);function t(t,r,n,i,a){var o=e.call(this,t)||this;Object.defineProperty(o,"message",{__proto__:null,value:t,enumerable:true,writable:true,configurable:true});o.name="AxiosError";o.isAxiosError=true;r&&(o.code=r);n&&(o.config=n);i&&(o.request=i);if(a){o.response=a;o.status=a.status}return o}t.from=function(e,r,n,i,a,o){var u=new t(e.message,r||e.code,n,i,a);u.cause=e;u.name=e.name;if(e.status!=null&&u.status==null){u.status=e.status}o&&Object.assign(u,o);return u};t.prototype.toJSON=function(){var e=this.config;var t=e&&we.hasOwnProp(e,"redact")?e.redact:undefined;var r=we.isArray(t)&&t.length>0?Le(e,t):we.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}};return t}(Error);Me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Me.ERR_BAD_OPTION="ERR_BAD_OPTION";Me.ECONNABORTED="ECONNABORTED";Me.ETIMEDOUT="ETIMEDOUT";Me.ECONNREFUSED="ECONNREFUSED";Me.ERR_NETWORK="ERR_NETWORK";Me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Me.ERR_DEPRECATED="ERR_DEPRECATED";Me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Me.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Me.ERR_CANCELED="ERR_CANCELED";Me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Me.ERR_INVALID_URL="ERR_INVALID_URL";Me.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var qe=null;function He(e){return we.isPlainObject(e)||we.isArray(e)}function Je(e){return we.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=Je(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function Ve(e){return we.isArray(e)&&!e.some(He)}var Ge=we.toFlatObject(we,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function We(e,t,r){if(!we.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=we.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!we.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||l;var a=r.dots;var o=r.indexes;var u=r.Blob||typeof Blob!=="undefined"&&Blob;var f=r.maxDepth===undefined?100:r.maxDepth;var s=u&&we.isSpecCompliantForm(t);if(!we.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(we.isDate(e)){return e.toISOString()}if(we.isBoolean(e)){return e.toString()}if(!s&&we.isBlob(e)){throw new Me("Blob is not supported. Use a Buffer instead.")}if(we.isArrayBuffer(e)||we.isTypedArray(e)){return s&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function l(e,r,i){var u=e;if(we.isReactNative(t)&&we.isReactNativeBlob(e)){t.append(Ke(i,r,a),c(e));return false}if(e&&!i&&typeof e==="object"){if(we.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(we.isArray(e)&&Ve(e)||(we.isFileList(e)||we.endsWith(r,"[]"))&&(u=we.toArray(e))){r=Je(r);u.forEach((function e(n,i){!(we.isUndefined(n)||n===null)&&t.append(o===true?Ke([r],i,a):o===null?r:r+"[]",c(n))}));return false}}if(He(e)){return true}t.append(Ke(i,r,a),c(e));return false}var d=[];var v=Object.assign(Ge,{defaultVisitor:l,convertValue:c,isVisitable:He});function h(e,r,n){if(n===void 0){n=0}if(we.isUndefined(e))return;if(n>f){throw new Me("Object is too deeply nested ("+n+" levels). Max depth: "+f,Me.ERR_FORM_DATA_DEPTH_EXCEEDED)}if(d.indexOf(e)!==-1){throw new Error("Circular reference detected in "+r.join("."))}d.push(e);we.forEach(e,(function e(a,o){var u=!(we.isUndefined(a)||a===null)&&i.call(t,a,we.isString(o)?o.trim():o,r,v);if(u===true){h(a,r?r.concat(o):[o],n+1)}}));d.pop()}if(!we.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function Xe(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function e(r){return t[r]}))}function $e(e,t){this._pairs=[];e&&We(e,this,t)}var Ze=$e.prototype;Ze.append=function e(t,r){this._pairs.push([t,r])};Ze.toString=function e(t){var r=t?function(e){return t.call(this,e,Xe)}:Xe;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function Qe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ye(e,t,r){if(!t){return e}var n=r&&r.encode||Qe;var i=we.isFunction(r)?{serialize:r}:r;var a=i&&i.serialize;var o;if(a){o=a(t,i)}else{o=we.isURLSearchParams(t)?t.toString():new $e(t,i).toString(n)}if(o){var u=e.indexOf("#");if(u!==-1){e=e.slice(0,u)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var et=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){we.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var tt={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true,advertiseZstdAcceptEncoding:false};var rt=typeof URLSearchParams!=="undefined"?URLSearchParams:$e;var nt=typeof FormData!=="undefined"?FormData:null;var it=typeof Blob!=="undefined"?Blob:null;var at={isBrowser:true,classes:{URLSearchParams:rt,FormData:nt,Blob:it},protocols:["http","https","file","blob","url","data"]};var ot=typeof window!=="undefined"&&typeof document!=="undefined";var ut=typeof navigator==="object"&&navigator||undefined;var ft=ot&&(!ut||["ReactNative","NativeScript","NS"].indexOf(ut.product)<0);var st=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var ct=ot&&window.location.href||"http://localhost";var lt=Object.freeze({__proto__:null,hasBrowserEnv:ot,hasStandardBrowserEnv:ft,hasStandardBrowserWebWorkerEnv:st,navigator:ut,origin:ct});var dt=__assign(__assign({},lt),at);function vt(e,t){return We(e,new dt.classes.URLSearchParams,__assign({visitor:function(e,t,r,n){if(dt.isNode&&we.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function ht(e){return we.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function pt(e){var t={};var r=Object.keys(e);var n;var i=r.length;var a;for(n=0;n<i;n++){a=r[n];t[a]=e[a]}return t}function bt(e){function t(e,r,n,i){var a=e[i++];if(a==="__proto__")return true;var o=Number.isFinite(+a);var u=i>=e.length;a=!a&&we.isArray(n)?n.length:a;if(u){if(we.hasOwnProp(n,a)){n[a]=we.isArray(n[a])?n[a].concat(r):[n[a],r]}else{n[a]=r}return!o}if(!we.hasOwnProp(n,a)||!we.isObject(n[a])){n[a]=[]}var f=t(e,r,n[a],i);if(f&&we.isArray(n[a])){n[a]=pt(n[a])}return!o}if(we.isFormData(e)&&we.isFunction(e.entries)){var r={};we.forEachEntry(e,(function(e,n){t(ht(e),n,r,0)}));return r}return null}var mt=function(e,t){return e!=null&&we.hasOwnProp(e,t)?e[t]:undefined};function yt(e,t,r){if(we.isString(e)){try{(0,JSON.parse)(e);return we.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var wt={transitional:tt,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var a=we.isObject(t);if(a&&we.isHTMLForm(t)){t=new FormData(t)}var o=we.isFormData(t);if(o){return i?JSON.stringify(bt(t)):t}if(we.isArrayBuffer(t)||we.isBuffer(t)||we.isStream(t)||we.isFile(t)||we.isBlob(t)||we.isReadableStream(t)){return t}if(we.isArrayBufferView(t)){return t.buffer}if(we.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var u;if(a){var f=mt(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1){return vt(t,f).toString()}if((u=we.isFileList(t))||n.indexOf("multipart/form-data")>-1){var s=mt(this,"env");var c=s&&s.FormData;return We(u?{"files[]":t}:t,c&&new c,f)}}if(a||i){r.setContentType("application/json",false);return yt(t)}return t}],transformResponse:[function e(t){var r=mt(this,"transitional")||wt.transitional;var n=r&&r.forcedJSONParsing;var i=mt(this,"responseType");var a=i==="json";if(we.isResponse(t)||we.isReadableStream(t)){return t}if(t&&we.isString(t)&&(n&&!i||a)){var o=r&&r.silentJSONParsing;var u=!o&&a;try{return JSON.parse(t,mt(this,"parseReviver"))}catch(e){if(u){if(e.name==="SyntaxError"){throw Me.from(e,Me.ERR_BAD_RESPONSE,this,null,mt(this,"response"))}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};we.forEach(["delete","get","head","post","put","patch","query"],(function(e){wt.headers[e]={}}));function gt(e,t){var r=this||wt;var n=t||r;var i=Be.from(n.headers);var a=n.data;we.forEach(e,(function e(n){a=n.call(r,a,i.normalize(),t?t.status:undefined)}));i.normalize();return a}function xt(e){return!!(e&&e.__CANCEL__)}var _t=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t==null?"canceled":t,Me.ERR_CANCELED,r,n)||this;i.name="CanceledError";i.__CANCEL__=true;return i}return t}(Me);function kt(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new Me("Request failed with status code "+r.status,r.status>=400&&r.status<500?Me.ERR_BAD_REQUEST:Me.ERR_BAD_RESPONSE,r.config,r.request,r))}}function Ot(e){var t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Rt(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var a=0;var o;t=t!==undefined?t:1e3;return function u(f){var s=Date.now();var c=n[a];if(!o){o=s}r[i]=f;n[i]=s;var l=a;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===a){a=(a+1)%e}if(s-o<t){return}var v=c&&s-c;return v?Math.round(d*1e3/v):undefined}}function St(e,t){var r=0;var n=1e3/t;var i;var a;var o=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(a){clearTimeout(a);a=null}e.apply(void 0,t)};var u=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var u=Date.now();var f=u-r;if(f>=n){o(e,u)}else{i=e;if(!a){a=setTimeout((function(){a=null;o(i)}),n-f)}}};var f=function(){return i&&o(i)};return[u,f]}var Et=function(e,t,r){if(r===void 0){r=3}var n=0;var i=Rt(50,250);return St((function(r){var a;if(!r||typeof r.loaded!=="number"){return}var o=r.loaded;var u=r.lengthComputable?r.total:undefined;var f=u!=null?Math.min(o,u):o;var s=Math.max(0,f-n);var c=i(s);n=Math.max(n,f);var l=(a={loaded:f,total:u,progress:u?f/u:undefined,bytes:s,rate:c?c:undefined,estimated:c&&u?(u-f)/c:undefined,event:r,lengthComputable:u!=null},a[t?"download":"upload"]=true,a);e(l)}),r)};var jt=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var Tt=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return we.asap((function(){return e.apply(void 0,t)}))}};var At=dt.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,dt.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):function(){return true};var Ct=dt.hasStandardBrowserEnv?{write:function(e,t,r,n,i,a,o){if(typeof document==="undefined")return;var u=["".concat(e,"=").concat(encodeURIComponent(t))];if(we.isNumber(r)){u.push("expires=".concat(new Date(r).toUTCString()))}if(we.isString(n)){u.push("path=".concat(n))}if(we.isString(i)){u.push("domain=".concat(i))}if(a===true){u.push("secure")}if(we.isString(o)){u.push("SameSite=".concat(o))}document.cookie=u.join("; ")},read:function(e){if(typeof document==="undefined")return null;var t=document.cookie.split(";");for(var r=0;r<t.length;r++){var n=t[r].replace(/^\s+/,"");var i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===e){return decodeURIComponent(n.slice(i+1))}}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};function Nt(e){if(typeof e!=="string"){return false}return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ft(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pt(e,t,r){var n=!Nt(t);if(e&&(n||r===false)){return Ft(e,t)}return t}var Ut=function(e){return e instanceof Be?__assign({},e):e};function It(e,t){t=t||{};var r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:false,writable:true,configurable:true});function n(e,t,r,n){if(we.isPlainObject(e)&&we.isPlainObject(t)){return we.merge.call({caseless:n},e,t)}else if(we.isPlainObject(t)){return we.merge({},t)}else if(we.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!we.isUndefined(t)){return n(e,t,r,i)}else if(!we.isUndefined(e)){return n(undefined,e,r,i)}}function a(e,t){if(!we.isUndefined(t)){return n(undefined,t)}}function o(e,t){if(!we.isUndefined(t)){return n(undefined,t)}else if(!we.isUndefined(e)){return n(undefined,e)}}function u(r,i,a){if(we.hasOwnProp(t,a)){return n(r,i)}else if(we.hasOwnProp(e,a)){return n(undefined,r)}}var f={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:u,headers:function(e,t,r){return i(Ut(e),Ut(t),r,true)}};we.forEach(Object.keys(__assign(__assign({},e),t)),(function n(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;var o=we.hasOwnProp(f,a)?f[a]:i;var s=we.hasOwnProp(e,a)?e[a]:undefined;var c=we.hasOwnProp(t,a)?t[a]:undefined;var l=o(s,c,a);we.isUndefined(l)&&o!==u||(r[a]=l)}));return r}var Bt=["content-type","content-length"];function Dt(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach((function(t){var r=t[0],n=t[1];if(Bt.includes(r.toLowerCase())){e.set(r,n)}}))}var zt=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))};function Lt(e){var t=It({},e);var r=function(e){return we.hasOwnProp(t,e)?t[e]:undefined};var n=r("data");var i=r("withXSRFToken");var a=r("xsrfHeaderName");var o=r("xsrfCookieName");var u=r("headers");var f=r("auth");var s=r("baseURL");var c=r("allowAbsoluteUrls");var l=r("url");t.headers=u=Be.from(u);t.url=Ye(Pt(s,l,c),r("params"),r("paramsSerializer"));if(f){u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?zt(f.password):"")))}if(we.isFormData(n)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv||we.isReactNative(n)){u.setContentType(undefined)}else if(we.isFunction(n.getHeaders)){Dt(u,n.getHeaders(),r("formDataHeaderPolicy"))}}if(dt.hasStandardBrowserEnv){if(we.isFunction(i)){i=i(t)}var d=i===true||i==null&&At(t.url);if(d){var v=a&&o&&Ct.read(o);if(v){u.set(a,v)}}}return t}var Mt=typeof XMLHttpRequest!=="undefined";var qt=Mt&&function(e){return new Promise((function t(r,n){var i,a;var o=Lt(e);var u=o.data;var f=Be.from(o.headers).normalize();var s=o.responseType,c=o.onUploadProgress,l=o.onDownloadProgress;var d;var v,h;var p,b;function m(){p&&p();b&&b();o.cancelToken&&o.cancelToken.unsubscribe(d);o.signal&&o.signal.removeEventListener("abort",d)}var y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,true);y.timeout=o.timeout;function w(){if(!y){return}var t=Be.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());var i=!s||s==="text"||s==="json"?y.responseText:y.response;var a={data:i,status:y.status,statusText:y.statusText,headers:t,config:e,request:y};kt((function e(t){r(t);m()}),(function e(t){n(t);m()}),a);y=null}if("onloadend"in y){y.onloadend=w}else{y.onreadystatechange=function e(){if(!y||y.readyState!==4){return}if(y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))){return}setTimeout(w)}}y.onabort=function t(){if(!y){return}n(new Me("Request aborted",Me.ECONNABORTED,e,y));m();y=null};y.onerror=function t(r){var i=r&&r.message?r.message:"Network Error";var a=new Me(i,Me.ERR_NETWORK,e,y);a.event=r||null;n(a);m();y=null};y.ontimeout=function t(){var r=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";var i=o.transitional||tt;if(o.timeoutErrorMessage){r=o.timeoutErrorMessage}n(new Me(r,i.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,y));m();y=null};u===undefined&&f.setContentType(null);if("setRequestHeader"in y){we.forEach(je(f),(function e(t,r){y.setRequestHeader(r,t)}))}if(!we.isUndefined(o.withCredentials)){y.withCredentials=!!o.withCredentials}if(s&&s!=="json"){y.responseType=o.responseType}if(l){i=Et(l,true),h=i[0],b=i[1];y.addEventListener("progress",h)}if(c&&y.upload){a=Et(c),v=a[0],p=a[1];y.upload.addEventListener("progress",v);y.upload.addEventListener("loadend",p)}if(o.cancelToken||o.signal){d=function(t){if(!y){return}n(!t||t.type?new _t(null,e,y):t);y.abort();m();y=null};o.cancelToken&&o.cancelToken.subscribe(d);if(o.signal){o.signal.aborted?d():o.signal.addEventListener("abort",d)}}var g=Ot(o.url);if(g&&!dt.protocols.includes(g)){n(new Me("Unsupported protocol "+g+":",Me.ERR_BAD_REQUEST,e));return}y.send(u||null)}))};var Ht=function(e,t){e=e?e.filter(Boolean):[];if(!t&&!e.length){return}var r=new AbortController;var n=false;var i=function(e){if(!n){n=true;o();var t=e instanceof Error?e:this.reason;r.abort(t instanceof Me?t:new _t(t instanceof Error?t.message:t))}};var a=t&&setTimeout((function(){a=null;i(new Me("timeout of ".concat(t,"ms exceeded"),Me.ETIMEDOUT))}),t);var o=function(){if(!e){return}a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null};e.forEach((function(e){return e.addEventListener("abort",i)}));var u=r.signal;u.unsubscribe=function(){return we.asap(o)};return u};var Jt=function(e,t){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:r=e.byteLength;if(!(r<t))return[3,2];return[4,e];case 1:a.sent();return[2];case 2:n=0;a.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:a.sent();n=i;return[3,3];case 5:return[2]}}))};var Kt=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,a,o;var u,f,s,c;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(Vt(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),u=i.done,!u))return[3,6];c=i.value;r=false;a=c;return[5,__values(__asyncDelegator(__asyncValues(Jt(a,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:o=l.sent();f={error:o};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!u&&(s=n.return)))return[3,10];return[4,__await(s.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(f)throw f.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var Vt=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(a){switch(a.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[a.sent()])];case 2:a.sent();return[4,__await(void 0)];case 3:return[2,a.sent()];case 4:t=e.getReader();a.label=5;case 5:a.trys.push([5,,12,14]);a.label=6;case 6:return[4,__await(t.read())];case 7:r=a.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,a.sent()];case 9:a.sent();a.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:a.sent();return[7];case 14:return[2]}}))}))};var Gt=function(e,t,r,n){var i=Kt(e,t);var a=0;var o;var u=function(e){if(!o){o=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,f,s,c;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,o=t.value;if(n){u();e.close();return[2]}f=o.byteLength;if(r){s=a+=f;r(s)}e.enqueue(new Uint8Array(o));return[3,3];case 2:c=l.sent();u(c);throw c;case 3:return[2]}}))}))},cancel:function(e){u(e);return i.return()}},{highWaterMark:2})};function Wt(e){if(!e||typeof e!=="string")return 0;if(!e.startsWith("data:"))return 0;var t=e.indexOf(",");if(t<0)return 0;var r=e.slice(5,t);var n=e.slice(t+1);var i=/;base64/i.test(r);if(i){var a=n.length;var o=n.length;for(var u=0;u<o;u++){if(n.charCodeAt(u)===37&&u+2<o){var f=n.charCodeAt(u+1);var s=n.charCodeAt(u+2);var c=(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102)&&(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102);if(c){a-=2;u+=2}}}var l=0;var d=o-1;var v=function(e){return e>=2&&n.charCodeAt(e-2)===37&&n.charCodeAt(e-1)===51&&(n.charCodeAt(e)===68||n.charCodeAt(e)===100)};if(d>=0){if(n.charCodeAt(d)===61){l++;d--}else if(v(d)){l++;d-=3}}if(l===1&&d>=0){if(n.charCodeAt(d)===61){l++}else if(v(d)){l++}}var h=Math.floor(a/4);var p=h*3-(l||0);return p>0?p:0}if(typeof Buffer!=="undefined"&&typeof Buffer.byteLength==="function"){return Buffer.byteLength(n,"utf8")}var b=0;for(var u=0,o=n.length;u<o;u++){var m=n.charCodeAt(u);if(m<128){b+=1}else if(m<2048){b+=2}else if(m>=55296&&m<=56319&&u+1<o){var y=n.charCodeAt(u+1);if(y>=56320&&y<=57343){b+=4;u++}else{b+=3}}else{b+=3}}return b}var Xt="1.17.0";var $t=64*1024;var Zt=we.isFunction;var Qt=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))};var Yt=function(e){if(!we.isString(e)){return e}try{return decodeURIComponent(e)}catch(t){return e}};var er=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var tr=function(e){var t=e.indexOf("://");var r=e;if(t!==-1){r=r.slice(t+3)}return r.includes("@")||r.includes(":")};var rr=function(t){var r=we.global!==undefined&&we.global!==null?we.global:globalThis;var n=r.ReadableStream,i=r.TextEncoder;t=we.merge.call({skipUndefined:true},{Request:r.Request,Response:r.Response},t);var a=t.fetch,o=t.Request,u=t.Response;var f=a?Zt(a):typeof fetch==="function";var s=Zt(o);var c=Zt(u);if(!f){return false}var l=f&&Zt(n);var d=f&&(typeof i==="function"?function(e){return function(t){return e.encode(t)}}(new i):function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:e=Uint8Array.bind;return[4,new o(t).arrayBuffer()];case 1:return[2,new(e.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var v=s&&l&&er((function(){var e=false;var t=new o(dt.origin,{body:new n,method:"POST",get duplex(){e=true;return"half"}});var r=t.headers.has("Content-Type");if(t.body!=null){t.body.cancel()}return e&&!r}));var h=c&&l&&er((function(){return we.isReadableStream(new u("").body)}));var p={stream:h&&function(e){return e.body}};f&&function(){["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!p[e]&&(p[e]=function(t,r){var n=t&&t[e];if(n){return n.call(t)}throw new Me("Response type '".concat(e,"' is not supported"),Me.ERR_NOT_SUPPORT,r)})}))}();var b=function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(t==null){return[2,0]}if(we.isBlob(t)){return[2,t.size]}if(!we.isSpecCompliantForm(t))return[3,2];e=new o(dt.origin,{method:"POST",body:t});return[4,e.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(we.isArrayBufferView(t)||we.isArrayBuffer(t)){return[2,t.byteLength]}if(we.isURLSearchParams(t)){t=t+""}if(!we.isString(t))return[3,4];return[4,d(t)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var m=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=we.toFiniteNumber(t.getContentLength());return[2,e==null?b(r):e]}))}))};return function(t){return __awaiter(e,void 0,void 0,(function(){var e,r,n,f,c,l,d,b,y,w,g,x,_,k,O,R,S,E,j,T,A,C,N,F,P,U,I,B,D,z,L,M,q,H,J,K,V,G,W,X,$,Z,Q,Y,ee,te,re,ne,ie,ae,oe,ue,fe,se,ce,le;return __generator(this,(function(de){switch(de.label){case 0:e=Lt(t),r=e.url,n=e.method,f=e.data,c=e.signal,l=e.cancelToken,d=e.timeout,b=e.onDownloadProgress,y=e.onUploadProgress,w=e.responseType,g=e.headers,x=e.withCredentials,_=x===void 0?"same-origin":x,k=e.fetchOptions,O=e.maxContentLength,R=e.maxBodyLength;S=we.isNumber(O)&&O>-1;E=we.isNumber(R)&&R>-1;j=function(e){return we.hasOwnProp(t,e)?t[e]:undefined};T=a||fetch;w=w?(w+"").toLowerCase():"text";A=Ht([c,l&&l.toAbortSignal()],d);C=null;N=A&&A.unsubscribe&&function(){A.unsubscribe()};de.label=1;case 1:de.trys.push([1,9,,10]);P=undefined;U=j("auth");if(U){I=U.username||"";B=U.password||"";P={username:I,password:B}}if(tr(r)){D=new URL(r,dt.origin);if(!P&&(D.username||D.password)){z=Yt(D.username);L=Yt(D.password);P={username:z,password:L}}if(D.username||D.password){D.username="";D.password="";r=D.href}}if(P){g.delete("authorization");g.set("Authorization","Basic "+btoa(Qt((P.username||"")+":"+(P.password||""))))}if(S&&typeof r==="string"&&r.startsWith("data:")){M=Wt(r);if(M>O){throw new Me("maxContentLength size of "+O+" exceeded",Me.ERR_BAD_RESPONSE,t,C)}}if(!(E&&n!=="get"&&n!=="head"))return[3,3];return[4,m(g,f)];case 2:q=de.sent();if(typeof q==="number"&&isFinite(q)&&q>R){throw new Me("Request body larger than maxBodyLength limit",Me.ERR_BAD_REQUEST,t,C)}de.label=3;case 3:H=y&&v&&n!=="get"&&n!=="head";if(!H)return[3,5];return[4,m(g,f)];case 4:H=(F=de.sent())!==0;de.label=5;case 5:if(H){J=new o(r,{method:"POST",body:f,duplex:"half"});K=void 0;if(we.isFormData(f)&&(K=J.headers.get("content-type"))){g.setContentType(K)}if(J.body){V=jt(F,Et(Tt(y))),G=V[0],W=V[1];f=Gt(J.body,$t,G,W)}}if(!we.isString(_)){_=_?"include":"omit"}X=s&&"credentials"in o.prototype;if(we.isFormData(f)){$=g.getContentType();if($&&/^multipart\/form-data/i.test($)&&!/boundary=/i.test($)){g.delete("content-type")}}g.set("User-Agent","axios/"+Xt,false);Z=__assign(__assign({},k),{signal:A,method:n.toUpperCase(),headers:je(g.normalize()),body:f,duplex:"half",credentials:X?_:undefined});C=s&&new o(r,Z);return[4,s?T(C,k):T(r,Z)];case 6:Q=de.sent();if(S){Y=we.toFiniteNumber(Q.headers.get("content-length"));if(Y!=null&&Y>O){throw new Me("maxContentLength size of "+O+" exceeded",Me.ERR_BAD_RESPONSE,t,C)}}ee=h&&(w==="stream"||w==="response");if(h&&Q.body&&(b||S||ee&&N)){te={};["status","statusText","headers"].forEach((function(e){te[e]=Q[e]}));re=we.toFiniteNumber(Q.headers.get("content-length"));ne=b&&jt(re,Et(Tt(b),true))||[],ie=ne[0],ae=ne[1];oe=0;ue=function(e){if(S){oe=e;if(oe>O){throw new Me("maxContentLength size of "+O+" exceeded",Me.ERR_BAD_RESPONSE,t,C)}}ie&&ie(e)};Q=new u(Gt(Q.body,$t,ue,(function(){ae&&ae();N&&N()})),te)}w=w||"text";return[4,p[we.findKey(p,w)||"text"](Q,t)];case 7:fe=de.sent();if(S&&!h&&!ee){se=void 0;if(fe!=null){if(typeof fe.byteLength==="number"){se=fe.byteLength}else if(typeof fe.size==="number"){se=fe.size}else if(typeof fe==="string"){se=typeof i==="function"?(new i).encode(fe).byteLength:fe.length}}if(typeof se==="number"&&se>O){throw new Me("maxContentLength size of "+O+" exceeded",Me.ERR_BAD_RESPONSE,t,C)}}!ee&&N&&N();return[4,new Promise((function(e,r){kt(e,r,{data:fe,headers:Be.from(Q.headers),status:Q.status,statusText:Q.statusText,config:t,request:C})}))];case 8:return[2,de.sent()];case 9:ce=de.sent();N&&N();if(A&&A.aborted&&A.reason instanceof Me){le=A.reason;le.config=t;C&&(le.request=C);ce!==le&&(le.cause=ce);throw le}if(ce&&ce.name==="TypeError"&&/Load failed|fetch/i.test(ce.message)){throw Object.assign(new Me("Network Error",Me.ERR_NETWORK,t,C,ce&&ce.response),{cause:ce.cause||ce})}throw Me.from(ce,ce&&ce.code,t,C,ce&&ce.response);case 10:return[2]}}))}))}};var nr=new Map;var ir=function(e){var t=e&&e.env||{};var r=t.fetch,n=t.Request,i=t.Response;var a=[n,i,r];var o=a.length,u=o,f,s,c=nr;while(u--){f=a[u];s=c.get(f);s===undefined&&c.set(f,s=u?new Map:rr(t));c=s}return s};ir();var ar={http:qe,xhr:qt,fetch:{get:ir}};we.forEach(ar,(function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));var or=function(e){return"- ".concat(e)};var ur=function(e){return we.isFunction(e)||e===null||e===false};function fr(e,t){e=we.isArray(e)?e:[e];var r=e.length;var n;var i;var a={};for(var o=0;o<r;o++){n=e[o];var u=void 0;i=n;if(!ur(n)){i=ar[(u=String(n)).toLowerCase()];if(i===undefined){throw new Me("Unknown adapter '".concat(u,"'"))}}if(i&&(we.isFunction(i)||(i=i.get(t)))){break}a[u||"#"+o]=i}if(!i){var f=Object.entries(a).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var s=r?f.length>1?"since :\n"+f.map(or).join("\n"):" "+or(f[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}var sr={getAdapter:fr,adapters:ar};function cr(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new _t(null,e)}}function lr(e){cr(e);e.headers=Be.from(e.headers);e.data=gt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=sr.getAdapter(e.adapter||wt.adapter,e);return t(e).then((function t(r){cr(e);e.response=r;try{r.data=gt.call(e,e.transformResponse,r)}finally{delete e.response}r.headers=Be.from(r.headers);return r}),(function t(r){if(!xt(r)){cr(e);if(r&&r.response){e.response=r.response;try{r.response.data=gt.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Be.from(r.response.headers)}}return Promise.reject(r)}))}var dr={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){dr[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var vr={};dr.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+Xt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,a){if(t===false){throw new Me(i(n," has been removed"+(r?" in "+r:"")),Me.ERR_DEPRECATED)}if(r&&!vr[n]){vr[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,a):true}};dr.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function hr(e,t,r){if(typeof e!=="object"){throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var a=n[i];var o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:undefined;if(o){var u=e[a];var f=u===undefined||o(u,a,e);if(f!==true){throw new Me("option "+a+" must be "+f,Me.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new Me("Unknown option "+a,Me.ERR_BAD_OPTION)}}}var pr={assertOptions:hr,validators:dr};var br=pr.validators;var mr=function(){function e(e){this.defaults=e||{};this.interceptors={request:new et,response:new et}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,a,o,u;return __generator(this,(function(f){switch(f.label){case 0:f.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,f.sent()];case 2:r=f.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=function(){if(!n.stack){return""}var e=n.stack.indexOf("\n");return e===-1?"":n.stack.slice(e+1)}();try{if(!r.stack){r.stack=i}else if(i){a=i.indexOf("\n");o=a===-1?-1:i.indexOf("\n",a+1);u=o===-1?"":i.slice(o+1);if(!String(r.stack).endsWith(u)){r.stack+="\n"+i}}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=It(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){pr.assertOptions(r,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean),legacyInterceptorReqResOrdering:br.transitional(br.boolean),advertiseZstdAcceptEncoding:br.transitional(br.boolean)},false)}if(n!=null){if(we.isFunction(n)){t.paramsSerializer={serialize:n}}else{pr.assertOptions(n,{encode:br.function,serialize:br.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}pr.assertOptions(t,{baseUrl:br.spelling("baseURL"),withXsrfToken:br.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&we.merge(i.common,i[t.method]);i&&we.forEach(["delete","get","head","post","put","patch","query","common"],(function(e){delete i[e]}));t.headers=Be.concat(a,i);var o=[];var u=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}u=u&&r.synchronous;var n=t.transitional||tt;var i=n&&n.legacyInterceptorReqResOrdering;if(i){o.unshift(r.fulfilled,r.rejected)}else{o.push(r.fulfilled,r.rejected)}}));var f=[];this.interceptors.response.forEach((function e(t){f.push(t.fulfilled,t.rejected)}));var s;var c=0;var l;if(!u){var d=[lr.bind(this),undefined];d.unshift.apply(d,o);d.push.apply(d,f);l=d.length;s=Promise.resolve(t);while(c<l){s=s.then(d[c++],d[c++])}return s}l=o.length;var v=t;while(c<l){var h=o[c++];var p=o[c++];try{v=h(v)}catch(e){p.call(this,e);break}}try{s=lr.call(this,v)}catch(e){return Promise.reject(e)}c=0;l=f.length;while(c<l){s=s.then(f[c++],f[c++])}return s};e.prototype.getUri=function(e){e=It(this.defaults,e);var t=Pt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ye(t,e.params,e.paramsSerializer)};return e}();we.forEach(["delete","get","head","options"],(function e(t){mr.prototype[t]=function(e,r){return this.request(It(r||{},{method:t,url:e,data:(r||{}).data}))}}));we.forEach(["post","put","patch","query"],(function e(t){function r(e){return function r(n,i,a){return this.request(It(a||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}mr.prototype[t]=r();if(t!=="query"){mr.prototype[t+"Form"]=r(true)}}));var yr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,a){if(r.reason){return}r.reason=new _t(n,i,a);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();function wr(e){return function t(r){return e.apply(null,r)}}function gr(e){return we.isObject(e)&&e.isAxiosError===true}var xr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xr).forEach((function(e){var t=e[0],r=e[1];xr[r]=t}));function _r(e){var r=new mr(e);var n=t(mr.prototype.request,r);we.extend(n,mr.prototype,r,{allOwnKeys:true});we.extend(n,r,null,{allOwnKeys:true});n.create=function t(r){return _r(It(e,r))};return n}var kr=_r(wt);kr.Axios=mr;kr.CanceledError=_t;kr.CancelToken=yr;kr.isCancel=xt;kr.VERSION=Xt;kr.toFormData=We;kr.AxiosError=Me;kr.Cancel=kr.CanceledError;kr.all=function e(t){return Promise.all(t)};kr.spread=wr;kr.isAxiosError=gr;kr.mergeConfig=It;kr.AxiosHeaders=Be;kr.formToJSON=function(e){return bt(we.isHTMLForm(e)?new FormData(e):e)};kr.getAdapter=sr.getAdapter;kr.HttpStatusCode=xr;kr.default=kr;v=kr;return v}var b=p();var m=c(b);var y=l.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var w=function(){return m.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:y}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var g=function(){return'verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}'};var x='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var _=e("verdocs_contact_picker",function(){function e(e){t(this,e);this.searchContacts=r(this,"searchContacts");this.exit=r(this,"exit");this.next=r(this,"next");this.endpoint=a.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.name_locked=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=o(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.name_locked=this.delegator?false:this.templateRole.name_locked||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}u(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));w().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,name_locked:this.name_locked,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,a,u,s,c,l,v,h,p,b,m,y,w,g,_,k,O;var R=this.first_name&&this.last_name&&f(this.email);var S=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var E=R&&S;var j=((a=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||a===void 0?void 0:a.enabled)===true;var T=[];if(((c=(s=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||s===void 0?void 0:s.find((function(e){return e.name==="passcode-verification"})))===null||c===void 0?void 0:c.enabled)===true){T.push({label:"Passcode",value:"passcode"})}if(((h=(v=(l=this.featureFlags)===null||l===void 0?void 0:l.toggles)===null||v===void 0?void 0:v.find((function(e){return e.name==="email-verification"})))===null||h===void 0?void 0:h.enabled)===true){T.push({label:"Email",value:"email"})}if(j&&((m=(b=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||b===void 0?void 0:b.find((function(e){return e.name==="sms-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.sms_auth){T.push({label:"SMS (One-Time Code)",value:"sms"})}if(((g=(w=(y=this.featureFlags)===null||y===void 0?void 0:y.toggles)===null||w===void 0?void 0:w.find((function(e){return e.name==="kba-verification"})))===null||g===void 0?void 0:g.enabled)===true&&!!this.activeEntitlements.kba_auth){T.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((O=(k=(_=this.featureFlags)===null||_===void 0?void 0:_.toggles)===null||k===void 0?void 0:k.find((function(e){return e.name==="id-verification"})))===null||O===void 0?void 0:O.enabled)===true&&!!this.activeEntitlements.id_auth){T.push({label:"ID Check",value:"id"})}return n("form",{key:"374d6f0907e09a4c312bcd666eaabf578f8671b5",onSubmit:function(e){return e.preventDefault()},autocomplete:"off"},n("div",{key:"bbdb01e7229992ff75b3b124fde6a8606769d53c",class:"row"},n("label",{key:"546da7ec599b17cc2e514dcaf47fe41d7107ec11",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"e5819a8cb2c261c302a4923561578c5928063e64",class:"names-row"},n("input",{key:"05a471f19b8018993d50f4ba9776864392c13c9d",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),n("input",{key:"4e56ab4161e6bd7894c636619282915243c8aeec",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&n("verdocs-portal",{key:"0a856517832b4dc417627675a0327e5a5e9e4710",anchor:this.firstNameFieldId,onClickAway:function(){e.showSuggestions=false;document.querySelectorAll(".verdocs-portal-wrapper").forEach((function(e){return e.remove()}))},id:"verdocs-contact-picker-suggestions"},n("div",{key:"6c0c1747e5ed512ad463c26f220b34db395e8f2c",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return n("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?n("img",{alt:"Avatar",class:"avatar",src:t.picture}):n("div",{class:"avatar",innerHTML:x}),n("div",{class:"details"},n("div",{class:"name"},o(t)),t.email&&n("div",{class:"destination"},t.email),t.phone&&n("div",{class:"destination"},t.phone)))}))))),n("div",{key:"85552b20424fb4884fa88d22c78375fe5c6513e0",class:"row"},n("label",{key:"2b438ee30f3c0115d0445e3f5bfe4ae8b7635073",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"a349fb9e534ed7786268d9aac9184fc38a8a102e",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),j&&n("div",{key:"f015a535d0a37d94eb73b145342d00dde7b63a50",class:"row"},n("label",{key:"eff877e183e38de65ca11e535b81e11b5ee1bd92",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"41db6e4607189c0b0da0ef658b1fbafcfeab92ba",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=d(t.target.value)}})),n(i,{key:"c037e234e206b1cd45bf91649f211ebe42f885fe"},T.length>0&&n("div",{key:"23fa9db672498199d7c053b258669e0676852322",class:"row pin-code"},n("label",{key:"d5208d3cd083716589aa6c18dbd85ba88ca208b3"},"Verification Methods:"),n("div",{key:"f239551b28d2ca51b8f9ab5ec64bfdfdce4bf823"},T.map((function(t,r){return n("div",{class:"option"},n("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(r),value:t.value,checked:e.auth_methods.includes(t.value),onInput:function(r){if(r.target.checked){e.auth_methods=__spreadArray(__spreadArray([],e.auth_methods,true),[t.value],false)}else{e.auth_methods=e.auth_methods.filter((function(e){return e!==t.value}))}}}),n("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))})))),this.auth_methods.includes("passcode")&&n("div",{key:"d57e7078dfefb1c816a15c52a8aa44eae62a5557",class:"row pin-code"},n("label",{key:"df97978ae0e4c176c7d6ca38850537d3d6db5ce3",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"7791e5a2d856bdd9dbbfcf8c339531e3e5c5e52b",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),n("div",{key:"7de2d50963399db273bd1d38941ea967a2d92827",class:"row pin-code"},n("label",{key:"d0202a6e0969b405d303cdc291dee95048460b43",style:{marginTop:"6px"}},"Options:"),n("div",{key:"52f68972a5fee697972fa9baa284ca6a37830ab9"},n("div",{key:"8e15a3caa1e4ce0cbb943fb7bfaaf274d4410de3",class:"option"},n("verdocs-checkbox",{key:"7d21cafec340458f1c6a06b577fad30bbd5680eb",size:"small",id:"verdocs-delegator",checked:this.delegator,disabled:this.name_locked,onInput:function(t){e.delegator=t.target.checked;if(e.delegator)e.name_locked=false}}),n("label",{key:"2b96fb477ce41038cf9d115e9fabf102d670d801",htmlFor:"verdocs-delegator"},"May delegate signing")),n("div",{key:"7f616562ee03e6026bf09b355ae20720b45655b0",class:"option"},n("verdocs-checkbox",{key:"47bfa40e403ddf6da8cba33fda8ebff05625d353",size:"small",id:"verdocs-name-locked",checked:this.name_locked,disabled:this.delegator,onInput:function(t){e.name_locked=t.target.checked;if(e.name_locked)e.delegator=false}}),n("label",{key:"382d0b92f8999dc1a0adaa91d00c6c0f95a17552",htmlFor:"verdocs-name-locked"},"Name locked")))),n("div",{key:"6797886d95d1e08dc0c018e89cf6040aa60b02ff",class:"row message"},n("label",{key:"cb6f04c40e1b6601d0292e248b26cb4f2519e7d9",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"018a9162f52e73650283a7f2271a99352008085c",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),n("div",{key:"d2f04563ad450f4c6c0c19735a064d01182cf458",class:"buttons"},n("div",{key:"43f240077f3c5b3e252c60a277668c94c9163b24",class:"flex-fill"}),n("verdocs-button",{key:"f758cb6d10b3deb58d13aaf54c212e6455933104",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),n("verdocs-button",{key:"3aa451a2d6d23ada4a7a5ddb5843b22954b69161",label:"OK",size:"small",disabled:!E,onClick:!E?function(){}:function(t){return e.handleSubmit(t)}})))};return e}());_.style=g()}}}));
4
+ //# sourceMappingURL=p-3a542ed0.system.entry.js.map