@syncfy/authentication-widget 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Sync Widget
2
2
 
3
- User friendly web interface to make use of Paybook's Sync services.
3
+ User friendly web interface to make use of Syncfy services.
4
4
 
5
5
  # Quick Start
6
6
 
7
7
  ## Installation
8
8
 
9
- Sync Widget can be installed via npm. It is recommended to get Sync Widget this way.
9
+ Syncfy authentication widget can be installed via npm. It is recommended to get Syncfy authentication widget this way.
10
10
 
11
11
  ```
12
- npm install --save @paybook/sync-widget
12
+ npm install --save @syncfy/authentication-widget
13
13
  ```
14
14
 
15
15
  **Note**: You'll need to have npm 2.7.0 or greater installed, since this library is hosted as a [scoped package](https://docs.npmjs.com/getting-started/scoped-packages).
@@ -21,13 +21,13 @@ npm install --save @paybook/sync-widget
21
21
  Import styles
22
22
 
23
23
  ```
24
- import "@paybook/sync-widget/dist/widget.css";
24
+ import "@syncfy/authentication-widget/dist/style.css";
25
25
  ```
26
26
 
27
27
  Import SyncfyWidget class
28
28
 
29
29
  ```
30
- import SyncfyWidget from "@paybook/sync-widget";
30
+ import SyncfyWidget from "@syncfy/authentication-widget";
31
31
  ```
32
32
 
33
33
  ## Usage
@@ -40,21 +40,19 @@ To create an instance of SyncfyWidget, you need to create an element in the DOM
40
40
  <div id="widget"></div>
41
41
  ```
42
42
 
43
- **Note**: The widget will replace this element.
44
-
45
43
  Once you have the element, you're ready to instantiate a new SyncfyWidget with your desired configuration.
46
44
 
47
45
  ```
48
46
  // Any of the following formats may be used
49
47
 
50
- var syncfyWidget = new SyncfyWidget("sync_token");
48
+ var syncfyWidget = new SyncfyWidget("syncfy_token");
51
49
 
52
50
  var syncfyWidget = new SyncfyWidget({
53
- token: "sync_token"
51
+ token: "syncfy_token"
54
52
  });
55
53
 
56
54
  var syncfyWidget = new SyncfyWidget({
57
- token: "sync_token",
55
+ token: "syncfy_token",
58
56
  element: "#widget",
59
57
  config: {
60
58
  locale: "es",
@@ -65,7 +63,3 @@ var syncfyWidget = new SyncfyWidget({
65
63
  });
66
64
 
67
65
  ```
68
-
69
- ## Documentation
70
-
71
- - [Widget Documentation](https://github.com/Paybook/sync-widget)
@@ -8326,26 +8326,26 @@ const jb = ga().noUnknown().shape({
8326
8326
  let jm = {
8327
8327
  git: {
8328
8328
  dirty: !1,
8329
- raw: "v0.0.0-0-g476eba6",
8330
- hash: "g476eba6",
8329
+ raw: "v0.0.1-0-ga853e5d",
8330
+ hash: "ga853e5d",
8331
8331
  distance: 0,
8332
- tag: "v0.0.0",
8332
+ tag: "v0.0.1",
8333
8333
  semver: {
8334
8334
  options: {
8335
8335
  loose: !1,
8336
8336
  includePrerelease: !1
8337
8337
  },
8338
8338
  loose: !1,
8339
- raw: "v0.0.0",
8339
+ raw: "v0.0.1",
8340
8340
  major: 0,
8341
8341
  minor: 0,
8342
- patch: 0,
8342
+ patch: 1,
8343
8343
  prerelease: [],
8344
8344
  build: [],
8345
- version: "0.0.0"
8345
+ version: "0.0.1"
8346
8346
  },
8347
- suffix: "0-g476eba6",
8348
- semverString: "0.0.0"
8347
+ suffix: "0-ga853e5d",
8348
+ semverString: "0.0.1"
8349
8349
  }
8350
8350
  };
8351
8351
  function Kc() {
@@ -681,7 +681,7 @@
681
681
  */os(ez,tz,"app");function rz(){const t=kx({apiKey:"AIzaSyC9JxQ4ULW2nC-tBNwsZ52OTQnS9mIeeS8",authDomain:"syncfy-widget.firebaseapp.com",projectId:"syncfy-widget",storageBucket:"syncfy-widget.appspot.com",messagingSenderId:"406921126981",appId:"1:406921126981:web:788d7d85203868101aaf2c",measurementId:"G-FYDLPN68N8"});v4(t),dr("load")}function dr(e,t){const r=v4();m4(r,e,{environment:{}.NODE_ENV,eventAction:e,...t||{}})}const Mo={prefix:"$",suffix:"",thousands:",",decimal:".",precision:2,allowBlank:!1,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER};function nz(e,t=Mo){typeof e=="number"&&(e=e.toFixed(_4(t.precision)));const r=e.indexOf("-")>=0?"-":"",n=b4(e),a=w4(n,t.precision),i=E4(a).split(".");let o=i[0];const l=i[1];return o=oz(o,t.thousands),t.prefix+r+sz(o,l,t.decimal)+t.suffix}function iz(e,t){const r=e.indexOf("-")>=0?-1:1,n=b4(e),a=w4(n,t);return parseFloat(a)*r}function b4(e){return E4(e).replace(/\D+/g,"")||"0"}function _4(e){return az(0,e,20)}function az(e,t,r){return Math.max(e,Math.min(t,r))}function w4(e,t){const r=Math.pow(10,t);return(parseFloat(e)/r).toFixed(_4(t))}function oz(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${t}`)}function sz(e,t,r){return t?e+r+t:e}function E4(e){return e?e.toString():""}function ul(e){this._maxSize=e,this.clear()}ul.prototype.clear=function(){this._size=0,this._values=Object.create(null)},ul.prototype.get=function(e){return this._values[e]},ul.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var lz=/[^.^\]^[]+|(?=\[\]|\.\.)/g,x4=/^\d+$/,fz=/^\d/,uz=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,cz=/^\s*(['"]?)(.*?)(\1)\s*$/,fg=512,S4=new ul(fg),M4=new ul(fg),C4=new ul(fg),cl={Cache:ul,split:cg,normalizePath:ug,setter:function(e){var t=ug(e);return M4.get(e)||M4.set(e,function(n,a){for(var i=0,o=t.length,l=n;i<o-1;){var f=t[i];if(f==="__proto__"||f==="constructor"||f==="prototype")return n;l=l[t[i++]]}l[t[i]]=a})},getter:function(e,t){var r=ug(e);return C4.get(e)||C4.set(e,function(a){for(var i=0,o=r.length;i<o;)if(a!=null||!t)a=a[r[i++]];else return;return a})},join:function(e){return e.reduce(function(t,r){return t+(hg(r)||x4.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){hz(Array.isArray(e)?e:cg(e),t,r)}};function ug(e){return S4.get(e)||S4.set(e,cg(e).map(function(t){return t.replace(cz,"$2")}))}function cg(e){return e.match(lz)||[""]}function hz(e,t,r){var n=e.length,a,i,o,l;for(i=0;i<n;i++)a=e[i],a&&(vz(a)&&(a='"'+a+'"'),l=hg(a),o=!l&&/^\d+$/.test(a),t.call(r,a,l,o,i,e))}function hg(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function dz(e){return e.match(fz)&&!e.match(x4)}function pz(e){return uz.test(e)}function vz(e){return!hg(e)&&(dz(e)||pz(e))}const mz=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,md=e=>e.match(mz)||[],gd=e=>e[0].toUpperCase()+e.slice(1),dg=(e,t)=>md(e).join(t).toLowerCase(),A4=e=>md(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var pg={words:md,upperFirst:gd,camelCase:A4,pascalCase:e=>gd(A4(e)),snakeCase:e=>dg(e,"_"),kebabCase:e=>dg(e,"-"),sentenceCase:e=>gd(dg(e," ")),titleCase:e=>md(e).map(gd).join(" ")},vg={exports:{}};vg.exports=function(e){return T4(gz(e),e)},vg.exports.array=T4;function T4(e,t){var r=e.length,n=new Array(r),a={},i=r,o=yz(t),l=bz(e);for(t.forEach(function(u){if(!l.has(u[0])||!l.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)a[i]||f(e[i],i,new Set);return n;function f(u,d,v){if(v.has(u)){var m;try{m=", node was:"+JSON.stringify(u)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!l.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!a[d]){a[d]=!0;var y=o.get(u)||new Set;if(y=Array.from(y),d=y.length){v.add(u);do{var _=y[--d];f(_,l.get(_),v)}while(d);v.delete(u)}n[--r]=u}}}function gz(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var a=e[r];t.add(a[0]),t.add(a[1])}return Array.from(t)}function yz(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var a=e[r];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}function bz(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var _z=vg.exports;const wz=ad(_z),Ez=Object.prototype.toString,xz=Error.prototype.toString,Sz=RegExp.prototype.toString,Mz=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Cz=/^Symbol\((.*)\)(.*)$/;function Az(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function I4(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return Az(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return Mz.call(e).replace(Cz,"Symbol($1)");const n=Ez.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+xz.call(e)+"]":n==="RegExp"?Sz.call(e):null}function hl(e,t){let r=I4(e,t);return r!==null?r:JSON.stringify(e,function(n,a){let i=I4(this[n],t);return i!==null?i:a},2)}function k4(e){return e==null?[]:[].concat(e)}let Tz=/\$\{\s*(\w+)\s*\}/g;class Wn extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(Tz,(a,i)=>hl(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,a){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=r,this.path=n,this.type=a,this.errors=[],this.inner=[],k4(t).forEach(i=>{Wn.isError(i)?(this.errors.push(...i.errors),this.inner=this.inner.concat(i.inner.length?i.inner:i)):this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Wn)}}let Co={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const a=n!=null&&n!==r?` (cast from the value \`${hl(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${hl(r,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${hl(r,!0)}\``+a}},ca={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ls={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},mg={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},gg={isValue:"${path} field must be ${value}"},yg={noUnknown:"${path} field has unspecified keys: ${unknown}"},yd={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Co,string:ca,number:ls,date:mg,object:yg,array:yd,boolean:gg});const ic=e=>e&&e.__isYupSchema__;class bd{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:a,otherwise:i}=r,o=typeof n=="function"?n:(...l)=>l.every(f=>f===n);return new bd(t,(l,f)=>{var u;let d=o(...l)?a:i;return(u=d==null?void 0:d(f))!=null?u:f})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),a=this.fn(n,t,r);if(a===void 0||a===t)return t;if(!ic(a))throw new TypeError("conditions must return a schema object");return a.resolve(r)}}const _d={context:"$",value:"."};class dl{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===_d.context,this.isValue=this.key[0]===_d.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?_d.context:this.isValue?_d.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&cl.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let a=this.isContext?n:this.isValue?t:r;return this.getter&&(a=this.getter(a||{})),this.map&&(a=this.map(a)),a}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}dl.prototype.__isYupRef=!0;const ha=e=>e==null;function Tf(e){function t({value:r,path:n="",options:a,originalValue:i,schema:o},l,f){const{name:u,test:d,params:v,message:m,skipAbsent:y}=e;let{parent:_,context:w,abortEarly:C=o.spec.abortEarly}=a;function A(z){return dl.isRef(z)?z.getValue(r,_,w):z}function I(z={}){const M=Object.assign({value:r,originalValue:i,label:o.spec.label,path:z.path||n,spec:o.spec},v,z.params);for(const h of Object.keys(M))M[h]=A(M[h]);const s=new Wn(Wn.formatError(z.message||m,M),r,M.path,z.type||u);return s.params=M,s}const B=C?l:f;let N={path:n,parent:_,type:u,from:a.from,createError:I,resolve:A,options:a,originalValue:i,schema:o};const O=z=>{Wn.isError(z)?B(z):z?f(null):B(I())},P=z=>{Wn.isError(z)?B(z):l(z)},U=y&&ha(r);if(!a.sync){try{Promise.resolve(U?!0:d.call(N,r,N)).then(O,P)}catch(z){P(z)}return}let V;try{var F;if(V=U?!0:d.call(N,r,N),typeof((F=V)==null?void 0:F.then)=="function")throw new Error(`Validation test of type: "${N.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(z){P(z);return}O(V)}return t.OPTIONS=e,t}function Iz(e,t,r,n=r){let a,i,o;return t?(cl.forEach(t,(l,f,u)=>{let d=f?l.slice(1,l.length-1):l;e=e.resolve({context:n,parent:a,value:r});let v=e.type==="tuple",m=u?parseInt(d,10):0;if(e.innerType||v){if(v&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&m>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[m],e=v?e.spec.types[m]:e.innerType}if(!u){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);a=r,r=r&&r[d],e=e.fields[d]}i=d,o=f?"["+l+"]":"."+l}),{schema:e,parent:a,parentPath:i}):{parent:a,parentPath:t,schema:e}}class wd extends Set{describe(){const t=[];for(const r of this.values())t.push(dl.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new wd(this.values())}merge(t,r){const n=this.clone();return t.forEach(a=>n.add(a)),r.forEach(a=>n.delete(a)),n}}function If(e,t=new Map){if(ic(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=If(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,a]of e.entries())r.set(n,If(a,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(If(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,a]of Object.entries(e))r[n]=If(a,t)}else throw Error(`Unable to clone ${e}`);return r}let li=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new wd,this._blacklist=new wd,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Co.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=If(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const a=Object.assign({},r.spec,n.spec);return n.spec=a,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(i=>{t.tests.forEach(o=>{i.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((a,i)=>i.resolve(a,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,a;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(a=t.recursive)!=null?a:this.spec.recursive})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),a=r.assert==="ignore-optionality",i=n._cast(t,r);if(r.assert!==!1&&!n.isType(i)){if(a&&ha(i))return i;let o=hl(t),l=hl(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
682
682
 
683
683
  attempted value: ${o}
684
- `+(l!==o?`result of cast: ${l}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((a,i)=>i.call(this,a,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,a){let{path:i,originalValue:o=t,strict:l=this.spec.strict}=r,f=t;l||(f=this._cast(f,Object.assign({assert:!1},r)));let u=[];for(let d of Object.values(this.internalTests))d&&u.push(d);this.runTests({path:i,value:f,originalValue:o,options:r,tests:u},n,d=>{if(d.length)return a(d,f);this.runTests({path:i,value:f,originalValue:o,options:r,tests:this.tests},n,a)})}runTests(t,r,n){let a=!1,{tests:i,value:o,originalValue:l,path:f,options:u}=t,d=w=>{a||(a=!0,r(w,o))},v=w=>{a||(a=!0,n(w,o))},m=i.length,y=[];if(!m)return v([]);let _={value:o,originalValue:l,path:f,options:u,schema:this};for(let w=0;w<i.length;w++){const C=i[w];C(_,d,function(I){I&&(y=y.concat(I)),--m<=0&&v(y)})}}asNestedTest({key:t,index:r,parent:n,parentPath:a,originalParent:i,options:o}){const l=t??r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const f=typeof l=="number";let u=n[l];const d=Object.assign({},o,{strict:!0,parent:n,value:u,originalValue:i[l],key:void 0,[f?"index":"key"]:l,path:f||l.includes(".")?`${a||""}[${u?l:`"${l}"`}]`:(a?`${a}.`:"")+t});return(v,m,y)=>this.resolve(d)._validate(u,d,m,y)}validate(t,r){let n=this.resolve(Object.assign({},r,{value:t}));return new Promise((a,i)=>n._validate(t,r,(o,l)=>{Wn.isError(o)&&(o.value=l),i(o)},(o,l)=>{o.length?i(new Wn(o,l)):a(l)}))}validateSync(t,r){let n=this.resolve(Object.assign({},r,{value:t})),a;return n._validate(t,Object.assign({},r,{sync:!0}),(i,o)=>{throw Wn.isError(i)&&(i.value=o),i},(i,o)=>{if(i.length)throw new Wn(i,t);a=o}),a}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Wn.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Wn.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):If(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Tf({message:r,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Tf({message:r,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=Co.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Co.notNull){return this.nullability(!1,t)}required(t=Co.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Co.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),a=Tf(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(i||o.OPTIONS.test===a.OPTIONS.test))),n.tests.push(a),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),a=k4(t).map(i=>new dl(i));return a.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(typeof r=="function"?new bd(a,r):bd.fromOptions(a,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Tf({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=Co.oneOf){let n=this.clone();return t.forEach(a=>{n._whitelist.add(a),n._blacklist.delete(a)}),n.internalTests.whiteList=Tf({message:r,name:"oneOf",skipAbsent:!0,test(a){let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(a)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:o}})}}),n}notOneOf(t,r=Co.notOneOf){let n=this.clone();return t.forEach(a=>{n._blacklist.add(a),n._whitelist.delete(a)}),n.internalTests.blacklist=Tf({message:r,name:"notOneOf",test(a){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(a)?this.createError({params:{values:Array.from(i).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:a,optional:i,nullable:o}=r.spec;return{meta:a,label:n,optional:i,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(f=>({name:f.OPTIONS.name,params:f.OPTIONS.params})).filter((f,u,d)=>d.findIndex(v=>v.name===f.name)===u)}}};li.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])li.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:i,schema:o}=Iz(this,t,r,n.context);return o[e](a&&a[i],Object.assign({},n,{parent:a,path:t}))};for(const e of["equals","is"])li.prototype[e]=li.prototype.oneOf;for(const e of["not","nope"])li.prototype[e]=li.prototype.notOneOf;const kz=()=>!0;function B4(e){return new N4(e)}class N4 extends li{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:kz},t))}}B4.prototype=N4.prototype;function In(){return new O4}class O4 extends li{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=gg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return ha(r)||r===!0}})}isFalse(t=gg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return ha(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}In.prototype=O4.prototype;let Bz=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Nz=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Oz=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Rz=e=>ha(e)||e===e.trim(),Pz={}.toString();function wr(){return new R4}class R4 extends li{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const a=t!=null&&t.toString?t.toString():t;return a===Pz?t:a})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Co.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=ca.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=ca.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=ca.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,a,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:a,name:i}=r:a=r),this.test({name:i||"matches",message:a||ca.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=ca.email){return this.matches(Bz,{name:"email",message:t,excludeEmptyString:!0})}url(t=ca.url){return this.matches(Nz,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ca.uuid){return this.matches(Oz,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ca.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Rz})}lowercase(t=ca.lowercase){return this.transform(r=>ha(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ha(r)||r===r.toLowerCase()})}uppercase(t=ca.uppercase){return this.transform(r=>ha(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ha(r)||r===r.toUpperCase()})}}wr.prototype=R4.prototype;let Lz=e=>e!=+e;function Ed(){return new P4}class P4 extends li{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Lz(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let a=t;if(typeof a=="string"){if(a=a.replace(/\s/g,""),a==="")return NaN;a=+a}return n.isType(a)||a===null?a:parseFloat(a)})})}min(t,r=ls.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=ls.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=ls.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=ls.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=ls.positive){return this.moreThan(0,t)}negative(t=ls.negative){return this.lessThan(0,t)}integer(t=ls.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>ha(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(a=>ha(a)?a:Math[t](a))}}Ed.prototype=P4.prototype;var Fz=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Dz(e){var t=[1,4,5,6,7,10,11],r=0,n,a;if(a=Fz.exec(e)){for(var i=0,o;o=t[i];++i)a[o]=+a[o]||0;a[2]=(+a[2]||1)-1,a[3]=+a[3]||1,a[7]=a[7]?String(a[7]).substr(0,3):0,(a[8]===void 0||a[8]==="")&&(a[9]===void 0||a[9]==="")?n=+new Date(a[1],a[2],a[3],a[4],a[5],a[6],a[7]):(a[8]!=="Z"&&a[9]!==void 0&&(r=a[10]*60+a[11],a[9]==="+"&&(r=0-r)),n=Date.UTC(a[1],a[2],a[3],a[4],a[5]+r,a[6],a[7]))}else n=Date.parse?Date.parse(e):NaN;return n}let $z=new Date(""),zz=e=>Object.prototype.toString.call(e)==="[object Date]";class xd extends li{constructor(){super({type:"date",check(t){return zz(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=Dz(t),isNaN(t)?xd.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(dl.isRef(t))n=t;else{let a=this.cast(t);if(!this._typeCheck(a))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=a}return n}min(t,r=mg.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(n)}})}max(t,r=mg.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(n)}})}}xd.INVALID_DATE=$z,xd.prototype;function Uz(e,t=[]){let r=[],n=new Set,a=new Set(t.map(([o,l])=>`${o}-${l}`));function i(o,l){let f=cl.split(o)[0];n.add(f),a.has(`${l}-${f}`)||r.push([l,f])}for(const o of Object.keys(e)){let l=e[o];n.add(o),dl.isRef(l)&&l.isSibling?i(l.path,o):ic(l)&&"deps"in l&&l.deps.forEach(f=>i(f,o))}return wz.array(Array.from(n),r).reverse()}function L4(e,t){let r=1/0;return e.some((n,a)=>{var i;if((i=t.path)!=null&&i.includes(n))return r=a,!0}),r}function F4(e){return(t,r)=>L4(e,t)-L4(e,r)}const D4=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function Sd(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Sd(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Sd(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Sd)}):"optional"in e?e.optional():e}const qz=(e,t)=>{const r=[...cl.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),a=cl.getter(cl.join(r),!0)(e);return!!(a&&n in a)};let $4=e=>Object.prototype.toString.call(e)==="[object Object]";function Vz(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Hz=F4([]);function da(e){return new z4(e)}class z4 extends li{constructor(t){super({type:"object",check(r){return $4(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Hz,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let a=super._cast(t,r);if(a===void 0)return this.getDefault(r);if(!this._typeCheck(a))return a;let i=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(a).filter(v=>!this._nodes.includes(v))),f={},u=Object.assign({},r,{parent:f,__validating:r.__validating||!1}),d=!1;for(const v of l){let m=i[v],y=v in a;if(m){let _,w=a[v];u.path=(r.path?`${r.path}.`:"")+v,m=m.resolve({value:w,context:r.context,parent:f});let C=m instanceof li?m.spec:void 0,A=C==null?void 0:C.strict;if(C!=null&&C.strip){d=d||v in a;continue}_=!r.__validating||!A?m.cast(a[v],u):a[v],_!==void 0&&(f[v]=_)}else y&&!o&&(f[v]=a[v]);(y!==v in f||f[v]!==a[v])&&(d=!0)}return d?f:a}_validate(t,r={},n,a){let{from:i=[],originalValue:o=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:o},...i],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(f,u)=>{if(!l||!$4(u)){a(f,u);return}o=o||u;let d=[];for(let v of this._nodes){let m=this.fields[v];!m||dl.isRef(m)||d.push(m.asNestedTest({options:r,key:v,parent:u,parentPath:r.path,originalParent:o}))}this.runTests({tests:d,value:u,originalValue:o,options:r},n,v=>{a(v.sort(this._sortErrors).concat(f),u)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[a,i]of Object.entries(this.fields)){const o=n[a];n[a]=o===void 0?i:o}return r.withMutation(a=>a.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var a;const i=this.fields[n];let o=t;(a=o)!=null&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=i&&"getDefault"in i?i.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=Uz(t,r),n._sortErrors=F4(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let a=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),a=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),a)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return Sd(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r)}omit(t){const r=Object.assign({},this.fields);for(const n of t)delete r[n];return this.setFields(r)}from(t,r,n){let a=cl.getter(t,!0);return this.transform(i=>{if(!i)return i;let o=i;return qz(i,t)&&(o=Object.assign({},i),n||delete o[t],o[r]=a(i)),o})}json(){return this.transform(D4)}noUnknown(t=!0,r=yg.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(a){if(a==null)return!0;const i=Vz(this.schema,a);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=yg.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const a of Object.keys(r))n[t(a)]=r[a];return n})}camelCase(){return this.transformKeys(pg.camelCase)}snakeCase(){return this.transformKeys(pg.snakeCase)}constantCase(){return this.transformKeys(t=>pg.snakeCase(t).toUpperCase())}describe(t){let r=super.describe(t);r.fields={};for(const[a,i]of Object.entries(this.fields)){var n;let o=t;(n=o)!=null&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[a]})),r.fields[a]=i.describe(o)}return r}}da.prototype=z4.prototype;function fs(e){return new U4(e)}class U4 extends li{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let a=!1;const i=n.map((o,l)=>{const f=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return f!==o&&(a=!0),f});return a?i:n}_validate(t,r={},n,a){var i;let o=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(f,u)=>{var d;if(!l||!o||!this._typeCheck(u)){a(f,u);return}let v=new Array(u.length);for(let y=0;y<u.length;y++){var m;v[y]=o.asNestedTest({options:r,index:y,parent:u,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:t})}this.runTests({value:u,tests:v,originalValue:(d=r.originalValue)!=null?d:t,options:r},n,y=>a(y.concat(f),u))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(D4)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!ic(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+hl(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=yd.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||yd.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||yd.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,a,i)=>!t(n,a,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){let r=super.describe(t);if(this.innerType){var n;let a=t;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),r.innerType=this.innerType.describe(a)}return r}}fs.prototype=U4.prototype;function q4(e){return new bg(e)}class bg{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let a=this.builder(r,n);if(!ic(a))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(a=a.optional()),a.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new bg(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:a,options:i}=t,o=a[n??r];return this._resolve(o,Object.assign({},i,{value:o,parent:a})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}const _g=da().noUnknown().shape({locale:wr().oneOf(["es","en"]),navigation:da().noUnknown().shape({disableFormAutocomplete:In(),displayBusinessSites:In(),displayErrorsInToast:In(),displayLogoImages:In(),displayLongDescription:In(),displayPersonalSites:In(),displaySiteOrganizations:fs().of(wr()),displaySiteOrganizationTypes:fs().of(wr()),displaySites:fs().of(wr()),displayStatusInToast:In(),enableBackNavigation:In(),enableTwofaBackNavigation:In(),formButtonsDisabledStyle:In(),formShowPasswordStyle:wr().oneOf(["icon","none","text"]),hideSelectCountry:In(),hideSiteOrganizations:fs().of(wr()),hideSiteOrganizationTypes:fs().of(wr()),hideSites:fs().of(wr()),oneSiteFlow:In(),quickAnswer:In(),returnToSiteFormOnUserError:q4(e=>typeof e=="object"?fs().of(Ed().oneOf([401,403,411])):In()),selectClass:wr(),socketTimeout:Ed().min(1),toastDuration:Ed().min(0),toastPosition:wr().oneOf(["bottom-left","bottom-right","top-left","top-right"])}),entrypoint:da().noUnknown().shape({account:wr(),country:wr(),credential:wr(),site:wr(),siteOrganizationType:wr(),transfer:wr()}),__internal__:da().noUnknown().shape({apiBaseUrl:wr(),apiEnv:wr().oneOf(["development","production"]),assetsBaseUrl:wr(),plaidSites:In(),defaultHttpParams:da()})}),Kz=da().shape({token:wr().required(),element:q4(e=>{switch(typeof e){case"string":return wr().test("isElement","${path} is not an Element",t=>{if(!document.querySelector(t))throw new Wn(`Invalid selector: Element "${t}" not found.`);return!0});case"object":return da().test("isElement","${path} is not an Element",t=>{if(!HL(t))throw new Wn("Invalid element: Object should be a valid HtmlElement.");return!0});default:wr()}}),refreshTokenFunction:B4().test("isFunction","${path} is not a function",e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!0),enableTestMode:In(),strict:da().noUnknown().nullable().shape({authorization:da().noUnknown().required().shape({type:wr().oneOf(["jwk"]).required(),key:wr().required()}),body:da().noUnknown().required().shape({type:wr().oneOf(["jwk"]).required(),key:wr().required().test("isBase64","${path} is not a base64 encoded",e=>e&&/^(?:[A-Za-z0-9+/]{2}[A-Za-z0-9+/]{2})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))})}),config:_g}).strict().noUnknown();let wg={git:{dirty:!1,raw:"v0.0.0-0-g476eba6",hash:"g476eba6",distance:0,tag:"v0.0.0",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v0.0.0",major:0,minor:0,patch:0,prerelease:[],build:[],version:"0.0.0"},suffix:"0-g476eba6",semverString:"0.0.0"}};function ac(){let e=`${wg.git.tag}.${wg.git.distance}`;return{}.NODE_ENV==="production"?e=`${e}-beta`:e=`${e}-${wg.git.hash}`,e}function jz(e,t){const r=parseInt("0x4",16),n="38060000000000000000000000000000000000000000000F00000000000000000000000000000000000D9802010000010101000000000000";let a;return console.log("OBTEINING BRIDGE SCRIPTS"),console.log("TOKEN",e),console.log("CHALLENGE",t),Wz().then(()=>(console.log("BRIDGE SCRIPTS OK"),a=new digipass.nativebridge.DP110,new Promise((o,l)=>{console.log(" PROCESSING BRIDGE CONNECTION"),a.onError(()=>(console.log(" ERROR ON BRIDGE CONNECTION"),l("bridge.not_ready"))),a.onReady(f=>{console.log("BRIDGE CONNECTION READY"),console.log("DATA VERSION",f.versionCode),console.log("BRIDGE VERSION",a.versionCode),f.versionCode<a.versionCode&&l("bridge.host_update_available");const u=a.isReady();if(console.log("BRIDGE CONNECTION READY VERIFICATION",u),u)console.log("COMMAND_ID",r),a.getTokenInfo(r,function(d){if(console.log("BRIDGE CONNECTION getTokenInfo",d,d.returnCode),d.returnCode!==0)return l(`bridge.${Math.abs(d.returnCode)}`);console.log("STATIC_VECTOR",n),a.generateOTP(n,t,function(v){if(console.log("BRIDGE CONNECTION generateOTP",v,v.returnCode),v.returnCode!==0)return l(`bridge.${Math.abs(v.returnCode)}`);o({token:`${e}XX${v.otp}XX${d.info}XX${f.versionCode}`,challenge:t})})});else return Promise.reject("bridge.not_ready")})})))}function Wz(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridge1"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridge1"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.config.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridge2"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridge2"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.dp110.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}function Gz(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Eg={exports:{}},V4;function H4(){return V4||(V4=1,function(e,t){(function(r,n){e.exports=n()})(Ct,function(){function r(le){var Z=typeof le;return le!==null&&(Z==="object"||Z==="function")}function n(le){return typeof le=="function"}var a=void 0;Array.isArray?a=Array.isArray:a=function(le){return Object.prototype.toString.call(le)==="[object Array]"};var i=a,o=0,l=void 0,f=void 0,u=function(Z,j){P[o]=Z,P[o+1]=j,o+=2,o===2&&(f?f(U):F())};function d(le){f=le}function v(le){u=le}var m=typeof window<"u"?window:void 0,y=m||{},_=y.MutationObserver||y.WebKitMutationObserver,w=typeof self>"u"&&typeof fe<"u"&&{}.toString.call(fe)==="[object process]",C=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function A(){return function(){return fe.nextTick(U)}}function I(){return typeof l<"u"?function(){l(U)}:O()}function B(){var le=0,Z=new _(U),j=document.createTextNode("");return Z.observe(j,{characterData:!0}),function(){j.data=le=++le%2}}function N(){var le=new MessageChannel;return le.port1.onmessage=U,function(){return le.port2.postMessage(0)}}function O(){var le=setTimeout;return function(){return le(U,1)}}var P=new Array(1e3);function U(){for(var le=0;le<o;le+=2){var Z=P[le],j=P[le+1];Z(j),P[le]=void 0,P[le+1]=void 0}o=0}function V(){try{var le=Function("return this")().require("vertx");return l=le.runOnLoop||le.runOnContext,I()}catch{return O()}}var F=void 0;w?F=A():_?F=B():C?F=N():m===void 0&&typeof Gz=="function"?F=V():F=O();function z(le,Z){var j=this,pe=new this.constructor(h);pe[s]===void 0&&K(pe);var ie=j._state;if(ie){var ve=arguments[ie-1];u(function(){return oe(ie,pe,ve,j._result)})}else Y(j,pe,le,Z);return pe}function M(le){var Z=this;if(le&&typeof le=="object"&&le.constructor===Z)return le;var j=new Z(h);return R(j,le),j}var s=Math.random().toString(36).substring(2);function h(){}var p=void 0,g=1,b=2;function E(){return new TypeError("You cannot resolve a promise with itself")}function T(){return new TypeError("A promises callback cannot return that same promise.")}function x(le,Z,j,pe){try{le.call(Z,j,pe)}catch(ie){return ie}}function c(le,Z,j){u(function(pe){var ie=!1,ve=x(j,Z,function(Ye){ie||(ie=!0,Z!==Ye?R(pe,Ye):X(pe,Ye))},function(Ye){ie||(ie=!0,G(pe,Ye))},"Settle: "+(pe._label||" unknown promise"));!ie&&ve&&(ie=!0,G(pe,ve))},le)}function S(le,Z){Z._state===g?X(le,Z._result):Z._state===b?G(le,Z._result):Y(Z,void 0,function(j){return R(le,j)},function(j){return G(le,j)})}function k(le,Z,j){Z.constructor===le.constructor&&j===z&&Z.constructor.resolve===M?S(le,Z):j===void 0?X(le,Z):n(j)?c(le,Z,j):X(le,Z)}function R(le,Z){if(le===Z)G(le,E());else if(r(Z)){var j=void 0;try{j=Z.then}catch(pe){G(le,pe);return}k(le,Z,j)}else X(le,Z)}function H(le){le._onerror&&le._onerror(le._result),ue(le)}function X(le,Z){le._state===p&&(le._result=Z,le._state=g,le._subscribers.length!==0&&u(ue,le))}function G(le,Z){le._state===p&&(le._state=b,le._result=Z,u(H,le))}function Y(le,Z,j,pe){var ie=le._subscribers,ve=ie.length;le._onerror=null,ie[ve]=Z,ie[ve+g]=j,ie[ve+b]=pe,ve===0&&le._state&&u(ue,le)}function ue(le){var Z=le._subscribers,j=le._state;if(Z.length!==0){for(var pe=void 0,ie=void 0,ve=le._result,Ye=0;Ye<Z.length;Ye+=3)pe=Z[Ye],ie=Z[Ye+j],pe?oe(j,pe,ie,ve):ie(ve);le._subscribers.length=0}}function oe(le,Z,j,pe){var ie=n(j),ve=void 0,Ye=void 0,Se=!0;if(ie){try{ve=j(pe)}catch(Ce){Se=!1,Ye=Ce}if(Z===ve){G(Z,T());return}}else ve=pe;Z._state!==p||(ie&&Se?R(Z,ve):Se===!1?G(Z,Ye):le===g?X(Z,ve):le===b&&G(Z,ve))}function ce(le,Z){try{Z(function(pe){R(le,pe)},function(pe){G(le,pe)})}catch(j){G(le,j)}}var ne=0;function J(){return ne++}function K(le){le[s]=ne++,le._state=void 0,le._result=void 0,le._subscribers=[]}function ae(){return new Error("Array Methods must be provided an Array")}var se=function(){function le(Z,j){this._instanceConstructor=Z,this.promise=new Z(h),this.promise[s]||K(this.promise),i(j)?(this.length=j.length,this._remaining=j.length,this._result=new Array(this.length),this.length===0?X(this.promise,this._result):(this.length=this.length||0,this._enumerate(j),this._remaining===0&&X(this.promise,this._result))):G(this.promise,ae())}return le.prototype._enumerate=function(j){for(var pe=0;this._state===p&&pe<j.length;pe++)this._eachEntry(j[pe],pe)},le.prototype._eachEntry=function(j,pe){var ie=this._instanceConstructor,ve=ie.resolve;if(ve===M){var Ye=void 0,Se=void 0,Ce=!1;try{Ye=j.then}catch(he){Ce=!0,Se=he}if(Ye===z&&j._state!==p)this._settledAt(j._state,pe,j._result);else if(typeof Ye!="function")this._remaining--,this._result[pe]=j;else if(ie===Q){var Je=new ie(h);Ce?G(Je,Se):k(Je,j,Ye),this._willSettleAt(Je,pe)}else this._willSettleAt(new ie(function(he){return he(j)}),pe)}else this._willSettleAt(ve(j),pe)},le.prototype._settledAt=function(j,pe,ie){var ve=this.promise;ve._state===p&&(this._remaining--,j===b?G(ve,ie):this._result[pe]=ie),this._remaining===0&&X(ve,this._result)},le.prototype._willSettleAt=function(j,pe){var ie=this;Y(j,void 0,function(ve){return ie._settledAt(g,pe,ve)},function(ve){return ie._settledAt(b,pe,ve)})},le}();function q(le){return new se(this,le).promise}function D(le){var Z=this;return i(le)?new Z(function(j,pe){for(var ie=le.length,ve=0;ve<ie;ve++)Z.resolve(le[ve]).then(j,pe)}):new Z(function(j,pe){return pe(new TypeError("You must pass an array to race."))})}function L(le){var Z=this,j=new Z(h);return G(j,le),j}function $(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function re(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Q=function(){function le(Z){this[s]=J(),this._result=this._state=void 0,this._subscribers=[],h!==Z&&(typeof Z!="function"&&$(),this instanceof le?ce(this,Z):re())}return le.prototype.catch=function(j){return this.then(null,j)},le.prototype.finally=function(j){var pe=this,ie=pe.constructor;return n(j)?pe.then(function(ve){return ie.resolve(j()).then(function(){return ve})},function(ve){return ie.resolve(j()).then(function(){throw ve})}):pe.then(j,j)},le}();Q.prototype.then=z,Q.all=q,Q.race=D,Q.resolve=M,Q.reject=L,Q._setScheduler=d,Q._setAsap=v,Q._asap=u;function te(){var le=void 0;if(typeof Ct<"u")le=Ct;else if(typeof self<"u")le=self;else try{le=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var Z=le.Promise;if(Z){var j=null;try{j=Object.prototype.toString.call(Z.resolve())}catch{}if(j==="[object Promise]"&&!Z.cast)return}le.Promise=Q}return Q.polyfill=te,Q.Promise=Q,Q})}(Eg)),Eg.exports}function Zz(e){return e}var xg=Zz;function Yz(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Sg=Yz,Jz=Sg,K4=Math.max;function Xz(e,t,r){return t=K4(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=K4(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),Jz(e,this,l)}}var j4=Xz;function Qz(e){return function(){return e}}var eU=Qz,tU=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct,W4=tU,rU=W4,nU=typeof self=="object"&&self&&self.Object===Object&&self,iU=rU||nU||Function("return this")(),fi=iU,aU=fi,oU=aU.Symbol,oc=oU,G4=oc,Z4=Object.prototype,sU=Z4.hasOwnProperty,lU=Z4.toString,sc=G4?G4.toStringTag:void 0;function fU(e){var t=sU.call(e,sc),r=e[sc];try{e[sc]=void 0;var n=!0}catch{}var a=lU.call(e);return n&&(t?e[sc]=r:delete e[sc]),a}var uU=fU,cU=Object.prototype,hU=cU.toString;function dU(e){return hU.call(e)}var pU=dU,Y4=oc,vU=uU,mU=pU,gU="[object Null]",yU="[object Undefined]",J4=Y4?Y4.toStringTag:void 0;function bU(e){return e==null?e===void 0?yU:gU:J4&&J4 in Object(e)?vU(e):mU(e)}var kf=bU;function _U(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pa=_U,wU=kf,EU=pa,xU="[object AsyncFunction]",SU="[object Function]",MU="[object GeneratorFunction]",CU="[object Proxy]";function AU(e){if(!EU(e))return!1;var t=wU(e);return t==SU||t==MU||t==xU||t==CU}var Mg=AU,TU=fi,IU=TU["__core-js_shared__"],kU=IU,Cg=kU,X4=function(){var e=/[^.]+$/.exec(Cg&&Cg.keys&&Cg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BU(e){return!!X4&&X4 in e}var NU=BU,OU=Function.prototype,RU=OU.toString;function PU(e){if(e!=null){try{return RU.call(e)}catch{}try{return e+""}catch{}}return""}var Q4=PU,LU=Mg,FU=NU,DU=pa,$U=Q4,zU=/[\\^$.*+?()[\]{}|]/g,UU=/^\[object .+?Constructor\]$/,qU=Function.prototype,VU=Object.prototype,HU=qU.toString,KU=VU.hasOwnProperty,jU=RegExp("^"+HU.call(KU).replace(zU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WU(e){if(!DU(e)||FU(e))return!1;var t=LU(e)?jU:UU;return t.test($U(e))}var GU=WU;function ZU(e,t){return e==null?void 0:e[t]}var YU=ZU,JU=GU,XU=YU;function QU(e,t){var r=XU(e,t);return JU(r)?r:void 0}var pl=QU,eq=pl,tq=function(){try{var e=eq(Object,"defineProperty");return e({},"",{}),e}catch{}}(),e6=tq,rq=eU,t6=e6,nq=xg,iq=t6?function(e,t){return t6(e,"toString",{configurable:!0,enumerable:!1,value:rq(t),writable:!0})}:nq,aq=iq,oq=800,sq=16,lq=Date.now;function fq(e){var t=0,r=0;return function(){var n=lq(),a=sq-(n-r);if(r=n,a>0){if(++t>=oq)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r6=fq,uq=aq,cq=r6,hq=cq(uq),Ag=hq,dq=xg,pq=j4,vq=Ag;function mq(e,t){return vq(pq(e,t,dq),e+"")}var Tg=mq,gq=pl,yq=fi,bq=gq(yq,"WeakMap"),n6=bq,i6=n6,_q=i6&&new i6,a6=_q,wq=xg,o6=a6,Eq=o6?function(e,t){return o6.set(e,t),e}:wq,s6=Eq,xq=pa,l6=Object.create,Sq=function(){function e(){}return function(t){if(!xq(t))return{};if(l6)return l6(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Md=Sq,Mq=Md,Cq=pa;function Aq(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Mq(e.prototype),n=e.apply(r,t);return Cq(n)?n:r}}var Cd=Aq,Tq=Cd,Iq=fi,kq=1;function Bq(e,t,r){var n=t&kq,a=Tq(e);function i(){var o=this&&this!==Iq&&this instanceof i?a:e;return o.apply(n?r:this,arguments)}return i}var Nq=Bq,Oq=Math.max;function Rq(e,t,r,n){for(var a=-1,i=e.length,o=r.length,l=-1,f=t.length,u=Oq(i-o,0),d=Array(f+u),v=!n;++l<f;)d[l]=t[l];for(;++a<o;)(v||a<i)&&(d[r[a]]=e[a]);for(;u--;)d[l++]=e[a++];return d}var f6=Rq,Pq=Math.max;function Lq(e,t,r,n){for(var a=-1,i=e.length,o=-1,l=r.length,f=-1,u=t.length,d=Pq(i-l,0),v=Array(d+u),m=!n;++a<d;)v[a]=e[a];for(var y=a;++f<u;)v[y+f]=t[f];for(;++o<l;)(m||a<i)&&(v[y+r[o]]=e[a++]);return v}var u6=Lq;function Fq(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Dq=Fq;function $q(){}var Ig=$q,zq=Md,Uq=Ig,qq=4294967295;function Ad(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=qq,this.__views__=[]}Ad.prototype=zq(Uq.prototype),Ad.prototype.constructor=Ad;var kg=Ad;function Vq(){}var c6=Vq,h6=a6,Hq=c6,Kq=h6?function(e){return h6.get(e)}:Hq,d6=Kq,jq={},Wq=jq,p6=Wq,Gq=Object.prototype,Zq=Gq.hasOwnProperty;function Yq(e){for(var t=e.name+"",r=p6[t],n=Zq.call(p6,t)?r.length:0;n--;){var a=r[n],i=a.func;if(i==null||i==e)return a.name}return t}var Jq=Yq,Xq=Md,Qq=Ig;function Td(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Td.prototype=Xq(Qq.prototype),Td.prototype.constructor=Td;var v6=Td,eV=Array.isArray,Va=eV;function tV(e){return e!=null&&typeof e=="object"}var Ao=tV;function rV(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Id=rV,nV=kg,iV=v6,aV=Id;function oV(e){if(e instanceof nV)return e.clone();var t=new iV(e.__wrapped__,e.__chain__);return t.__actions__=aV(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var sV=oV,lV=kg,m6=v6,fV=Ig,uV=Va,cV=Ao,hV=sV,dV=Object.prototype,pV=dV.hasOwnProperty;function kd(e){if(cV(e)&&!uV(e)&&!(e instanceof lV)){if(e instanceof m6)return e;if(pV.call(e,"__wrapped__"))return hV(e)}return new m6(e)}kd.prototype=fV.prototype,kd.prototype.constructor=kd;var vV=kd,mV=kg,gV=d6,yV=Jq,bV=vV;function _V(e){var t=yV(e),r=bV[t];if(typeof r!="function"||!(t in mV.prototype))return!1;if(e===r)return!0;var n=gV(r);return!!n&&e===n[0]}var wV=_V,EV=s6,xV=r6,SV=xV(EV),g6=SV,MV=/\{\n\/\* \[wrapped with (.+)\] \*/,CV=/,? & /;function AV(e){var t=e.match(MV);return t?t[1].split(CV):[]}var TV=AV,IV=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function kV(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(IV,`{
684
+ `+(l!==o?`result of cast: ${l}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((a,i)=>i.call(this,a,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,a){let{path:i,originalValue:o=t,strict:l=this.spec.strict}=r,f=t;l||(f=this._cast(f,Object.assign({assert:!1},r)));let u=[];for(let d of Object.values(this.internalTests))d&&u.push(d);this.runTests({path:i,value:f,originalValue:o,options:r,tests:u},n,d=>{if(d.length)return a(d,f);this.runTests({path:i,value:f,originalValue:o,options:r,tests:this.tests},n,a)})}runTests(t,r,n){let a=!1,{tests:i,value:o,originalValue:l,path:f,options:u}=t,d=w=>{a||(a=!0,r(w,o))},v=w=>{a||(a=!0,n(w,o))},m=i.length,y=[];if(!m)return v([]);let _={value:o,originalValue:l,path:f,options:u,schema:this};for(let w=0;w<i.length;w++){const C=i[w];C(_,d,function(I){I&&(y=y.concat(I)),--m<=0&&v(y)})}}asNestedTest({key:t,index:r,parent:n,parentPath:a,originalParent:i,options:o}){const l=t??r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const f=typeof l=="number";let u=n[l];const d=Object.assign({},o,{strict:!0,parent:n,value:u,originalValue:i[l],key:void 0,[f?"index":"key"]:l,path:f||l.includes(".")?`${a||""}[${u?l:`"${l}"`}]`:(a?`${a}.`:"")+t});return(v,m,y)=>this.resolve(d)._validate(u,d,m,y)}validate(t,r){let n=this.resolve(Object.assign({},r,{value:t}));return new Promise((a,i)=>n._validate(t,r,(o,l)=>{Wn.isError(o)&&(o.value=l),i(o)},(o,l)=>{o.length?i(new Wn(o,l)):a(l)}))}validateSync(t,r){let n=this.resolve(Object.assign({},r,{value:t})),a;return n._validate(t,Object.assign({},r,{sync:!0}),(i,o)=>{throw Wn.isError(i)&&(i.value=o),i},(i,o)=>{if(i.length)throw new Wn(i,t);a=o}),a}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Wn.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Wn.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):If(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Tf({message:r,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Tf({message:r,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=Co.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Co.notNull){return this.nullability(!1,t)}required(t=Co.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Co.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),a=Tf(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(i||o.OPTIONS.test===a.OPTIONS.test))),n.tests.push(a),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),a=k4(t).map(i=>new dl(i));return a.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(typeof r=="function"?new bd(a,r):bd.fromOptions(a,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Tf({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=Co.oneOf){let n=this.clone();return t.forEach(a=>{n._whitelist.add(a),n._blacklist.delete(a)}),n.internalTests.whiteList=Tf({message:r,name:"oneOf",skipAbsent:!0,test(a){let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(a)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:o}})}}),n}notOneOf(t,r=Co.notOneOf){let n=this.clone();return t.forEach(a=>{n._blacklist.add(a),n._whitelist.delete(a)}),n.internalTests.blacklist=Tf({message:r,name:"notOneOf",test(a){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(a)?this.createError({params:{values:Array.from(i).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:a,optional:i,nullable:o}=r.spec;return{meta:a,label:n,optional:i,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(f=>({name:f.OPTIONS.name,params:f.OPTIONS.params})).filter((f,u,d)=>d.findIndex(v=>v.name===f.name)===u)}}};li.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])li.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:i,schema:o}=Iz(this,t,r,n.context);return o[e](a&&a[i],Object.assign({},n,{parent:a,path:t}))};for(const e of["equals","is"])li.prototype[e]=li.prototype.oneOf;for(const e of["not","nope"])li.prototype[e]=li.prototype.notOneOf;const kz=()=>!0;function B4(e){return new N4(e)}class N4 extends li{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:kz},t))}}B4.prototype=N4.prototype;function In(){return new O4}class O4 extends li{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=gg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return ha(r)||r===!0}})}isFalse(t=gg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return ha(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}In.prototype=O4.prototype;let Bz=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Nz=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Oz=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Rz=e=>ha(e)||e===e.trim(),Pz={}.toString();function wr(){return new R4}class R4 extends li{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const a=t!=null&&t.toString?t.toString():t;return a===Pz?t:a})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Co.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=ca.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=ca.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=ca.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,a,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:a,name:i}=r:a=r),this.test({name:i||"matches",message:a||ca.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=ca.email){return this.matches(Bz,{name:"email",message:t,excludeEmptyString:!0})}url(t=ca.url){return this.matches(Nz,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ca.uuid){return this.matches(Oz,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ca.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Rz})}lowercase(t=ca.lowercase){return this.transform(r=>ha(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ha(r)||r===r.toLowerCase()})}uppercase(t=ca.uppercase){return this.transform(r=>ha(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ha(r)||r===r.toUpperCase()})}}wr.prototype=R4.prototype;let Lz=e=>e!=+e;function Ed(){return new P4}class P4 extends li{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Lz(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let a=t;if(typeof a=="string"){if(a=a.replace(/\s/g,""),a==="")return NaN;a=+a}return n.isType(a)||a===null?a:parseFloat(a)})})}min(t,r=ls.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=ls.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=ls.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=ls.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=ls.positive){return this.moreThan(0,t)}negative(t=ls.negative){return this.lessThan(0,t)}integer(t=ls.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>ha(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(a=>ha(a)?a:Math[t](a))}}Ed.prototype=P4.prototype;var Fz=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Dz(e){var t=[1,4,5,6,7,10,11],r=0,n,a;if(a=Fz.exec(e)){for(var i=0,o;o=t[i];++i)a[o]=+a[o]||0;a[2]=(+a[2]||1)-1,a[3]=+a[3]||1,a[7]=a[7]?String(a[7]).substr(0,3):0,(a[8]===void 0||a[8]==="")&&(a[9]===void 0||a[9]==="")?n=+new Date(a[1],a[2],a[3],a[4],a[5],a[6],a[7]):(a[8]!=="Z"&&a[9]!==void 0&&(r=a[10]*60+a[11],a[9]==="+"&&(r=0-r)),n=Date.UTC(a[1],a[2],a[3],a[4],a[5]+r,a[6],a[7]))}else n=Date.parse?Date.parse(e):NaN;return n}let $z=new Date(""),zz=e=>Object.prototype.toString.call(e)==="[object Date]";class xd extends li{constructor(){super({type:"date",check(t){return zz(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=Dz(t),isNaN(t)?xd.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(dl.isRef(t))n=t;else{let a=this.cast(t);if(!this._typeCheck(a))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=a}return n}min(t,r=mg.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(n)}})}max(t,r=mg.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(n)}})}}xd.INVALID_DATE=$z,xd.prototype;function Uz(e,t=[]){let r=[],n=new Set,a=new Set(t.map(([o,l])=>`${o}-${l}`));function i(o,l){let f=cl.split(o)[0];n.add(f),a.has(`${l}-${f}`)||r.push([l,f])}for(const o of Object.keys(e)){let l=e[o];n.add(o),dl.isRef(l)&&l.isSibling?i(l.path,o):ic(l)&&"deps"in l&&l.deps.forEach(f=>i(f,o))}return wz.array(Array.from(n),r).reverse()}function L4(e,t){let r=1/0;return e.some((n,a)=>{var i;if((i=t.path)!=null&&i.includes(n))return r=a,!0}),r}function F4(e){return(t,r)=>L4(e,t)-L4(e,r)}const D4=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function Sd(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Sd(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Sd(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Sd)}):"optional"in e?e.optional():e}const qz=(e,t)=>{const r=[...cl.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),a=cl.getter(cl.join(r),!0)(e);return!!(a&&n in a)};let $4=e=>Object.prototype.toString.call(e)==="[object Object]";function Vz(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Hz=F4([]);function da(e){return new z4(e)}class z4 extends li{constructor(t){super({type:"object",check(r){return $4(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Hz,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let a=super._cast(t,r);if(a===void 0)return this.getDefault(r);if(!this._typeCheck(a))return a;let i=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(a).filter(v=>!this._nodes.includes(v))),f={},u=Object.assign({},r,{parent:f,__validating:r.__validating||!1}),d=!1;for(const v of l){let m=i[v],y=v in a;if(m){let _,w=a[v];u.path=(r.path?`${r.path}.`:"")+v,m=m.resolve({value:w,context:r.context,parent:f});let C=m instanceof li?m.spec:void 0,A=C==null?void 0:C.strict;if(C!=null&&C.strip){d=d||v in a;continue}_=!r.__validating||!A?m.cast(a[v],u):a[v],_!==void 0&&(f[v]=_)}else y&&!o&&(f[v]=a[v]);(y!==v in f||f[v]!==a[v])&&(d=!0)}return d?f:a}_validate(t,r={},n,a){let{from:i=[],originalValue:o=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:o},...i],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(f,u)=>{if(!l||!$4(u)){a(f,u);return}o=o||u;let d=[];for(let v of this._nodes){let m=this.fields[v];!m||dl.isRef(m)||d.push(m.asNestedTest({options:r,key:v,parent:u,parentPath:r.path,originalParent:o}))}this.runTests({tests:d,value:u,originalValue:o,options:r},n,v=>{a(v.sort(this._sortErrors).concat(f),u)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[a,i]of Object.entries(this.fields)){const o=n[a];n[a]=o===void 0?i:o}return r.withMutation(a=>a.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var a;const i=this.fields[n];let o=t;(a=o)!=null&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=i&&"getDefault"in i?i.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=Uz(t,r),n._sortErrors=F4(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let a=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),a=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),a)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return Sd(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r)}omit(t){const r=Object.assign({},this.fields);for(const n of t)delete r[n];return this.setFields(r)}from(t,r,n){let a=cl.getter(t,!0);return this.transform(i=>{if(!i)return i;let o=i;return qz(i,t)&&(o=Object.assign({},i),n||delete o[t],o[r]=a(i)),o})}json(){return this.transform(D4)}noUnknown(t=!0,r=yg.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(a){if(a==null)return!0;const i=Vz(this.schema,a);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=yg.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const a of Object.keys(r))n[t(a)]=r[a];return n})}camelCase(){return this.transformKeys(pg.camelCase)}snakeCase(){return this.transformKeys(pg.snakeCase)}constantCase(){return this.transformKeys(t=>pg.snakeCase(t).toUpperCase())}describe(t){let r=super.describe(t);r.fields={};for(const[a,i]of Object.entries(this.fields)){var n;let o=t;(n=o)!=null&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[a]})),r.fields[a]=i.describe(o)}return r}}da.prototype=z4.prototype;function fs(e){return new U4(e)}class U4 extends li{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let a=!1;const i=n.map((o,l)=>{const f=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return f!==o&&(a=!0),f});return a?i:n}_validate(t,r={},n,a){var i;let o=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(f,u)=>{var d;if(!l||!o||!this._typeCheck(u)){a(f,u);return}let v=new Array(u.length);for(let y=0;y<u.length;y++){var m;v[y]=o.asNestedTest({options:r,index:y,parent:u,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:t})}this.runTests({value:u,tests:v,originalValue:(d=r.originalValue)!=null?d:t,options:r},n,y=>a(y.concat(f),u))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(D4)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!ic(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+hl(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=yd.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||yd.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||yd.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,a,i)=>!t(n,a,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){let r=super.describe(t);if(this.innerType){var n;let a=t;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),r.innerType=this.innerType.describe(a)}return r}}fs.prototype=U4.prototype;function q4(e){return new bg(e)}class bg{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let a=this.builder(r,n);if(!ic(a))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(a=a.optional()),a.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new bg(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:a,options:i}=t,o=a[n??r];return this._resolve(o,Object.assign({},i,{value:o,parent:a})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}const _g=da().noUnknown().shape({locale:wr().oneOf(["es","en"]),navigation:da().noUnknown().shape({disableFormAutocomplete:In(),displayBusinessSites:In(),displayErrorsInToast:In(),displayLogoImages:In(),displayLongDescription:In(),displayPersonalSites:In(),displaySiteOrganizations:fs().of(wr()),displaySiteOrganizationTypes:fs().of(wr()),displaySites:fs().of(wr()),displayStatusInToast:In(),enableBackNavigation:In(),enableTwofaBackNavigation:In(),formButtonsDisabledStyle:In(),formShowPasswordStyle:wr().oneOf(["icon","none","text"]),hideSelectCountry:In(),hideSiteOrganizations:fs().of(wr()),hideSiteOrganizationTypes:fs().of(wr()),hideSites:fs().of(wr()),oneSiteFlow:In(),quickAnswer:In(),returnToSiteFormOnUserError:q4(e=>typeof e=="object"?fs().of(Ed().oneOf([401,403,411])):In()),selectClass:wr(),socketTimeout:Ed().min(1),toastDuration:Ed().min(0),toastPosition:wr().oneOf(["bottom-left","bottom-right","top-left","top-right"])}),entrypoint:da().noUnknown().shape({account:wr(),country:wr(),credential:wr(),site:wr(),siteOrganizationType:wr(),transfer:wr()}),__internal__:da().noUnknown().shape({apiBaseUrl:wr(),apiEnv:wr().oneOf(["development","production"]),assetsBaseUrl:wr(),plaidSites:In(),defaultHttpParams:da()})}),Kz=da().shape({token:wr().required(),element:q4(e=>{switch(typeof e){case"string":return wr().test("isElement","${path} is not an Element",t=>{if(!document.querySelector(t))throw new Wn(`Invalid selector: Element "${t}" not found.`);return!0});case"object":return da().test("isElement","${path} is not an Element",t=>{if(!HL(t))throw new Wn("Invalid element: Object should be a valid HtmlElement.");return!0});default:wr()}}),refreshTokenFunction:B4().test("isFunction","${path} is not a function",e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!0),enableTestMode:In(),strict:da().noUnknown().nullable().shape({authorization:da().noUnknown().required().shape({type:wr().oneOf(["jwk"]).required(),key:wr().required()}),body:da().noUnknown().required().shape({type:wr().oneOf(["jwk"]).required(),key:wr().required().test("isBase64","${path} is not a base64 encoded",e=>e&&/^(?:[A-Za-z0-9+/]{2}[A-Za-z0-9+/]{2})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))})}),config:_g}).strict().noUnknown();let wg={git:{dirty:!1,raw:"v0.0.1-0-ga853e5d",hash:"ga853e5d",distance:0,tag:"v0.0.1",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v0.0.1",major:0,minor:0,patch:1,prerelease:[],build:[],version:"0.0.1"},suffix:"0-ga853e5d",semverString:"0.0.1"}};function ac(){let e=`${wg.git.tag}.${wg.git.distance}`;return{}.NODE_ENV==="production"?e=`${e}-beta`:e=`${e}-${wg.git.hash}`,e}function jz(e,t){const r=parseInt("0x4",16),n="38060000000000000000000000000000000000000000000F00000000000000000000000000000000000D9802010000010101000000000000";let a;return console.log("OBTEINING BRIDGE SCRIPTS"),console.log("TOKEN",e),console.log("CHALLENGE",t),Wz().then(()=>(console.log("BRIDGE SCRIPTS OK"),a=new digipass.nativebridge.DP110,new Promise((o,l)=>{console.log(" PROCESSING BRIDGE CONNECTION"),a.onError(()=>(console.log(" ERROR ON BRIDGE CONNECTION"),l("bridge.not_ready"))),a.onReady(f=>{console.log("BRIDGE CONNECTION READY"),console.log("DATA VERSION",f.versionCode),console.log("BRIDGE VERSION",a.versionCode),f.versionCode<a.versionCode&&l("bridge.host_update_available");const u=a.isReady();if(console.log("BRIDGE CONNECTION READY VERIFICATION",u),u)console.log("COMMAND_ID",r),a.getTokenInfo(r,function(d){if(console.log("BRIDGE CONNECTION getTokenInfo",d,d.returnCode),d.returnCode!==0)return l(`bridge.${Math.abs(d.returnCode)}`);console.log("STATIC_VECTOR",n),a.generateOTP(n,t,function(v){if(console.log("BRIDGE CONNECTION generateOTP",v,v.returnCode),v.returnCode!==0)return l(`bridge.${Math.abs(v.returnCode)}`);o({token:`${e}XX${v.otp}XX${d.info}XX${f.versionCode}`,challenge:t})})});else return Promise.reject("bridge.not_ready")})})))}function Wz(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridge1"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridge1"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.config.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridge2"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridge2"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.dp110.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}function Gz(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Eg={exports:{}},V4;function H4(){return V4||(V4=1,function(e,t){(function(r,n){e.exports=n()})(Ct,function(){function r(le){var Z=typeof le;return le!==null&&(Z==="object"||Z==="function")}function n(le){return typeof le=="function"}var a=void 0;Array.isArray?a=Array.isArray:a=function(le){return Object.prototype.toString.call(le)==="[object Array]"};var i=a,o=0,l=void 0,f=void 0,u=function(Z,j){P[o]=Z,P[o+1]=j,o+=2,o===2&&(f?f(U):F())};function d(le){f=le}function v(le){u=le}var m=typeof window<"u"?window:void 0,y=m||{},_=y.MutationObserver||y.WebKitMutationObserver,w=typeof self>"u"&&typeof fe<"u"&&{}.toString.call(fe)==="[object process]",C=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function A(){return function(){return fe.nextTick(U)}}function I(){return typeof l<"u"?function(){l(U)}:O()}function B(){var le=0,Z=new _(U),j=document.createTextNode("");return Z.observe(j,{characterData:!0}),function(){j.data=le=++le%2}}function N(){var le=new MessageChannel;return le.port1.onmessage=U,function(){return le.port2.postMessage(0)}}function O(){var le=setTimeout;return function(){return le(U,1)}}var P=new Array(1e3);function U(){for(var le=0;le<o;le+=2){var Z=P[le],j=P[le+1];Z(j),P[le]=void 0,P[le+1]=void 0}o=0}function V(){try{var le=Function("return this")().require("vertx");return l=le.runOnLoop||le.runOnContext,I()}catch{return O()}}var F=void 0;w?F=A():_?F=B():C?F=N():m===void 0&&typeof Gz=="function"?F=V():F=O();function z(le,Z){var j=this,pe=new this.constructor(h);pe[s]===void 0&&K(pe);var ie=j._state;if(ie){var ve=arguments[ie-1];u(function(){return oe(ie,pe,ve,j._result)})}else Y(j,pe,le,Z);return pe}function M(le){var Z=this;if(le&&typeof le=="object"&&le.constructor===Z)return le;var j=new Z(h);return R(j,le),j}var s=Math.random().toString(36).substring(2);function h(){}var p=void 0,g=1,b=2;function E(){return new TypeError("You cannot resolve a promise with itself")}function T(){return new TypeError("A promises callback cannot return that same promise.")}function x(le,Z,j,pe){try{le.call(Z,j,pe)}catch(ie){return ie}}function c(le,Z,j){u(function(pe){var ie=!1,ve=x(j,Z,function(Ye){ie||(ie=!0,Z!==Ye?R(pe,Ye):X(pe,Ye))},function(Ye){ie||(ie=!0,G(pe,Ye))},"Settle: "+(pe._label||" unknown promise"));!ie&&ve&&(ie=!0,G(pe,ve))},le)}function S(le,Z){Z._state===g?X(le,Z._result):Z._state===b?G(le,Z._result):Y(Z,void 0,function(j){return R(le,j)},function(j){return G(le,j)})}function k(le,Z,j){Z.constructor===le.constructor&&j===z&&Z.constructor.resolve===M?S(le,Z):j===void 0?X(le,Z):n(j)?c(le,Z,j):X(le,Z)}function R(le,Z){if(le===Z)G(le,E());else if(r(Z)){var j=void 0;try{j=Z.then}catch(pe){G(le,pe);return}k(le,Z,j)}else X(le,Z)}function H(le){le._onerror&&le._onerror(le._result),ue(le)}function X(le,Z){le._state===p&&(le._result=Z,le._state=g,le._subscribers.length!==0&&u(ue,le))}function G(le,Z){le._state===p&&(le._state=b,le._result=Z,u(H,le))}function Y(le,Z,j,pe){var ie=le._subscribers,ve=ie.length;le._onerror=null,ie[ve]=Z,ie[ve+g]=j,ie[ve+b]=pe,ve===0&&le._state&&u(ue,le)}function ue(le){var Z=le._subscribers,j=le._state;if(Z.length!==0){for(var pe=void 0,ie=void 0,ve=le._result,Ye=0;Ye<Z.length;Ye+=3)pe=Z[Ye],ie=Z[Ye+j],pe?oe(j,pe,ie,ve):ie(ve);le._subscribers.length=0}}function oe(le,Z,j,pe){var ie=n(j),ve=void 0,Ye=void 0,Se=!0;if(ie){try{ve=j(pe)}catch(Ce){Se=!1,Ye=Ce}if(Z===ve){G(Z,T());return}}else ve=pe;Z._state!==p||(ie&&Se?R(Z,ve):Se===!1?G(Z,Ye):le===g?X(Z,ve):le===b&&G(Z,ve))}function ce(le,Z){try{Z(function(pe){R(le,pe)},function(pe){G(le,pe)})}catch(j){G(le,j)}}var ne=0;function J(){return ne++}function K(le){le[s]=ne++,le._state=void 0,le._result=void 0,le._subscribers=[]}function ae(){return new Error("Array Methods must be provided an Array")}var se=function(){function le(Z,j){this._instanceConstructor=Z,this.promise=new Z(h),this.promise[s]||K(this.promise),i(j)?(this.length=j.length,this._remaining=j.length,this._result=new Array(this.length),this.length===0?X(this.promise,this._result):(this.length=this.length||0,this._enumerate(j),this._remaining===0&&X(this.promise,this._result))):G(this.promise,ae())}return le.prototype._enumerate=function(j){for(var pe=0;this._state===p&&pe<j.length;pe++)this._eachEntry(j[pe],pe)},le.prototype._eachEntry=function(j,pe){var ie=this._instanceConstructor,ve=ie.resolve;if(ve===M){var Ye=void 0,Se=void 0,Ce=!1;try{Ye=j.then}catch(he){Ce=!0,Se=he}if(Ye===z&&j._state!==p)this._settledAt(j._state,pe,j._result);else if(typeof Ye!="function")this._remaining--,this._result[pe]=j;else if(ie===Q){var Je=new ie(h);Ce?G(Je,Se):k(Je,j,Ye),this._willSettleAt(Je,pe)}else this._willSettleAt(new ie(function(he){return he(j)}),pe)}else this._willSettleAt(ve(j),pe)},le.prototype._settledAt=function(j,pe,ie){var ve=this.promise;ve._state===p&&(this._remaining--,j===b?G(ve,ie):this._result[pe]=ie),this._remaining===0&&X(ve,this._result)},le.prototype._willSettleAt=function(j,pe){var ie=this;Y(j,void 0,function(ve){return ie._settledAt(g,pe,ve)},function(ve){return ie._settledAt(b,pe,ve)})},le}();function q(le){return new se(this,le).promise}function D(le){var Z=this;return i(le)?new Z(function(j,pe){for(var ie=le.length,ve=0;ve<ie;ve++)Z.resolve(le[ve]).then(j,pe)}):new Z(function(j,pe){return pe(new TypeError("You must pass an array to race."))})}function L(le){var Z=this,j=new Z(h);return G(j,le),j}function $(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function re(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Q=function(){function le(Z){this[s]=J(),this._result=this._state=void 0,this._subscribers=[],h!==Z&&(typeof Z!="function"&&$(),this instanceof le?ce(this,Z):re())}return le.prototype.catch=function(j){return this.then(null,j)},le.prototype.finally=function(j){var pe=this,ie=pe.constructor;return n(j)?pe.then(function(ve){return ie.resolve(j()).then(function(){return ve})},function(ve){return ie.resolve(j()).then(function(){throw ve})}):pe.then(j,j)},le}();Q.prototype.then=z,Q.all=q,Q.race=D,Q.resolve=M,Q.reject=L,Q._setScheduler=d,Q._setAsap=v,Q._asap=u;function te(){var le=void 0;if(typeof Ct<"u")le=Ct;else if(typeof self<"u")le=self;else try{le=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var Z=le.Promise;if(Z){var j=null;try{j=Object.prototype.toString.call(Z.resolve())}catch{}if(j==="[object Promise]"&&!Z.cast)return}le.Promise=Q}return Q.polyfill=te,Q.Promise=Q,Q})}(Eg)),Eg.exports}function Zz(e){return e}var xg=Zz;function Yz(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Sg=Yz,Jz=Sg,K4=Math.max;function Xz(e,t,r){return t=K4(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=K4(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),Jz(e,this,l)}}var j4=Xz;function Qz(e){return function(){return e}}var eU=Qz,tU=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct,W4=tU,rU=W4,nU=typeof self=="object"&&self&&self.Object===Object&&self,iU=rU||nU||Function("return this")(),fi=iU,aU=fi,oU=aU.Symbol,oc=oU,G4=oc,Z4=Object.prototype,sU=Z4.hasOwnProperty,lU=Z4.toString,sc=G4?G4.toStringTag:void 0;function fU(e){var t=sU.call(e,sc),r=e[sc];try{e[sc]=void 0;var n=!0}catch{}var a=lU.call(e);return n&&(t?e[sc]=r:delete e[sc]),a}var uU=fU,cU=Object.prototype,hU=cU.toString;function dU(e){return hU.call(e)}var pU=dU,Y4=oc,vU=uU,mU=pU,gU="[object Null]",yU="[object Undefined]",J4=Y4?Y4.toStringTag:void 0;function bU(e){return e==null?e===void 0?yU:gU:J4&&J4 in Object(e)?vU(e):mU(e)}var kf=bU;function _U(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pa=_U,wU=kf,EU=pa,xU="[object AsyncFunction]",SU="[object Function]",MU="[object GeneratorFunction]",CU="[object Proxy]";function AU(e){if(!EU(e))return!1;var t=wU(e);return t==SU||t==MU||t==xU||t==CU}var Mg=AU,TU=fi,IU=TU["__core-js_shared__"],kU=IU,Cg=kU,X4=function(){var e=/[^.]+$/.exec(Cg&&Cg.keys&&Cg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BU(e){return!!X4&&X4 in e}var NU=BU,OU=Function.prototype,RU=OU.toString;function PU(e){if(e!=null){try{return RU.call(e)}catch{}try{return e+""}catch{}}return""}var Q4=PU,LU=Mg,FU=NU,DU=pa,$U=Q4,zU=/[\\^$.*+?()[\]{}|]/g,UU=/^\[object .+?Constructor\]$/,qU=Function.prototype,VU=Object.prototype,HU=qU.toString,KU=VU.hasOwnProperty,jU=RegExp("^"+HU.call(KU).replace(zU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WU(e){if(!DU(e)||FU(e))return!1;var t=LU(e)?jU:UU;return t.test($U(e))}var GU=WU;function ZU(e,t){return e==null?void 0:e[t]}var YU=ZU,JU=GU,XU=YU;function QU(e,t){var r=XU(e,t);return JU(r)?r:void 0}var pl=QU,eq=pl,tq=function(){try{var e=eq(Object,"defineProperty");return e({},"",{}),e}catch{}}(),e6=tq,rq=eU,t6=e6,nq=xg,iq=t6?function(e,t){return t6(e,"toString",{configurable:!0,enumerable:!1,value:rq(t),writable:!0})}:nq,aq=iq,oq=800,sq=16,lq=Date.now;function fq(e){var t=0,r=0;return function(){var n=lq(),a=sq-(n-r);if(r=n,a>0){if(++t>=oq)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r6=fq,uq=aq,cq=r6,hq=cq(uq),Ag=hq,dq=xg,pq=j4,vq=Ag;function mq(e,t){return vq(pq(e,t,dq),e+"")}var Tg=mq,gq=pl,yq=fi,bq=gq(yq,"WeakMap"),n6=bq,i6=n6,_q=i6&&new i6,a6=_q,wq=xg,o6=a6,Eq=o6?function(e,t){return o6.set(e,t),e}:wq,s6=Eq,xq=pa,l6=Object.create,Sq=function(){function e(){}return function(t){if(!xq(t))return{};if(l6)return l6(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Md=Sq,Mq=Md,Cq=pa;function Aq(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Mq(e.prototype),n=e.apply(r,t);return Cq(n)?n:r}}var Cd=Aq,Tq=Cd,Iq=fi,kq=1;function Bq(e,t,r){var n=t&kq,a=Tq(e);function i(){var o=this&&this!==Iq&&this instanceof i?a:e;return o.apply(n?r:this,arguments)}return i}var Nq=Bq,Oq=Math.max;function Rq(e,t,r,n){for(var a=-1,i=e.length,o=r.length,l=-1,f=t.length,u=Oq(i-o,0),d=Array(f+u),v=!n;++l<f;)d[l]=t[l];for(;++a<o;)(v||a<i)&&(d[r[a]]=e[a]);for(;u--;)d[l++]=e[a++];return d}var f6=Rq,Pq=Math.max;function Lq(e,t,r,n){for(var a=-1,i=e.length,o=-1,l=r.length,f=-1,u=t.length,d=Pq(i-l,0),v=Array(d+u),m=!n;++a<d;)v[a]=e[a];for(var y=a;++f<u;)v[y+f]=t[f];for(;++o<l;)(m||a<i)&&(v[y+r[o]]=e[a++]);return v}var u6=Lq;function Fq(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Dq=Fq;function $q(){}var Ig=$q,zq=Md,Uq=Ig,qq=4294967295;function Ad(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=qq,this.__views__=[]}Ad.prototype=zq(Uq.prototype),Ad.prototype.constructor=Ad;var kg=Ad;function Vq(){}var c6=Vq,h6=a6,Hq=c6,Kq=h6?function(e){return h6.get(e)}:Hq,d6=Kq,jq={},Wq=jq,p6=Wq,Gq=Object.prototype,Zq=Gq.hasOwnProperty;function Yq(e){for(var t=e.name+"",r=p6[t],n=Zq.call(p6,t)?r.length:0;n--;){var a=r[n],i=a.func;if(i==null||i==e)return a.name}return t}var Jq=Yq,Xq=Md,Qq=Ig;function Td(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Td.prototype=Xq(Qq.prototype),Td.prototype.constructor=Td;var v6=Td,eV=Array.isArray,Va=eV;function tV(e){return e!=null&&typeof e=="object"}var Ao=tV;function rV(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Id=rV,nV=kg,iV=v6,aV=Id;function oV(e){if(e instanceof nV)return e.clone();var t=new iV(e.__wrapped__,e.__chain__);return t.__actions__=aV(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var sV=oV,lV=kg,m6=v6,fV=Ig,uV=Va,cV=Ao,hV=sV,dV=Object.prototype,pV=dV.hasOwnProperty;function kd(e){if(cV(e)&&!uV(e)&&!(e instanceof lV)){if(e instanceof m6)return e;if(pV.call(e,"__wrapped__"))return hV(e)}return new m6(e)}kd.prototype=fV.prototype,kd.prototype.constructor=kd;var vV=kd,mV=kg,gV=d6,yV=Jq,bV=vV;function _V(e){var t=yV(e),r=bV[t];if(typeof r!="function"||!(t in mV.prototype))return!1;if(e===r)return!0;var n=gV(r);return!!n&&e===n[0]}var wV=_V,EV=s6,xV=r6,SV=xV(EV),g6=SV,MV=/\{\n\/\* \[wrapped with (.+)\] \*/,CV=/,? & /;function AV(e){var t=e.match(MV);return t?t[1].split(CV):[]}var TV=AV,IV=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function kV(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(IV,`{
685
685
  /* [wrapped with `+t+`] */
686
686
  `)}var BV=kV;function NV(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var y6=NV;function OV(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var RV=OV;function PV(e){return e!==e}var LV=PV;function FV(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var DV=FV,$V=RV,zV=LV,UV=DV;function qV(e,t,r){return t===t?UV(e,t,r):$V(e,zV,r)}var VV=qV,HV=VV;function KV(e,t){var r=e==null?0:e.length;return!!r&&HV(e,t,0)>-1}var Bg=KV,jV=y6,WV=Bg,GV=1,ZV=2,YV=8,JV=16,XV=32,QV=64,eH=128,tH=256,rH=512,nH=[["ary",eH],["bind",GV],["bindKey",ZV],["curry",YV],["curryRight",JV],["flip",rH],["partial",XV],["partialRight",QV],["rearg",tH]];function iH(e,t){return jV(nH,function(r){var n="_."+r[0];t&r[1]&&!WV(e,n)&&e.push(n)}),e.sort()}var aH=iH,oH=TV,sH=BV,lH=Ag,fH=aH;function uH(e,t,r){var n=t+"";return lH(e,sH(n,fH(oH(n),r)))}var b6=uH,cH=wV,hH=g6,dH=b6,pH=1,vH=2,mH=4,gH=8,_6=32,w6=64;function yH(e,t,r,n,a,i,o,l,f,u){var d=t&gH,v=d?o:void 0,m=d?void 0:o,y=d?i:void 0,_=d?void 0:i;t|=d?_6:w6,t&=~(d?w6:_6),t&mH||(t&=~(pH|vH));var w=[e,t,a,y,v,_,m,l,f,u],C=r.apply(void 0,w);return cH(e)&&hH(C,w),C.placeholder=n,dH(C,e,t)}var E6=yH;function bH(e){var t=e;return t.placeholder}var Ng=bH,_H=9007199254740991,wH=/^(?:0|[1-9]\d*)$/;function EH(e,t){var r=typeof e;return t=t??_H,!!t&&(r=="number"||r!="symbol"&&wH.test(e))&&e>-1&&e%1==0&&e<t}var lc=EH,xH=Id,SH=lc,MH=Math.min;function CH(e,t){for(var r=e.length,n=MH(t.length,r),a=xH(e);n--;){var i=t[n];e[n]=SH(i,r)?a[i]:void 0}return e}var AH=CH,x6="__lodash_placeholder__";function TH(e,t){for(var r=-1,n=e.length,a=0,i=[];++r<n;){var o=e[r];(o===t||o===x6)&&(e[r]=x6,i[a++]=r)}return i}var Bd=TH,IH=f6,kH=u6,BH=Dq,S6=Cd,NH=E6,OH=Ng,RH=AH,PH=Bd,LH=fi,FH=1,DH=2,$H=8,zH=16,UH=128,qH=512;function M6(e,t,r,n,a,i,o,l,f,u){var d=t&UH,v=t&FH,m=t&DH,y=t&($H|zH),_=t&qH,w=m?void 0:S6(e);function C(){for(var A=arguments.length,I=Array(A),B=A;B--;)I[B]=arguments[B];if(y)var N=OH(C),O=BH(I,N);if(n&&(I=IH(I,n,a,y)),i&&(I=kH(I,i,o,y)),A-=O,y&&A<u){var P=PH(I,N);return NH(e,t,M6,C.placeholder,r,I,P,l,f,u-A)}var U=v?r:this,V=m?U[e]:e;return A=I.length,l?I=RH(I,l):_&&A>1&&I.reverse(),d&&f<A&&(I.length=f),this&&this!==LH&&this instanceof C&&(V=w||S6(V)),V.apply(U,I)}return C}var C6=M6,VH=Sg,HH=Cd,KH=C6,jH=E6,WH=Ng,GH=Bd,ZH=fi;function YH(e,t,r){var n=HH(e);function a(){for(var i=arguments.length,o=Array(i),l=i,f=WH(a);l--;)o[l]=arguments[l];var u=i<3&&o[0]!==f&&o[i-1]!==f?[]:GH(o,f);if(i-=u.length,i<r)return jH(e,t,KH,a.placeholder,void 0,o,u,void 0,void 0,r-i);var d=this&&this!==ZH&&this instanceof a?n:e;return VH(d,this,o)}return a}var JH=YH,XH=Sg,QH=Cd,eK=fi,tK=1;function rK(e,t,r,n){var a=t&tK,i=QH(e);function o(){for(var l=-1,f=arguments.length,u=-1,d=n.length,v=Array(d+f),m=this&&this!==eK&&this instanceof o?i:e;++u<d;)v[u]=n[u];for(;f--;)v[u++]=arguments[++l];return XH(m,a?r:this,v)}return o}var nK=rK,iK=f6,aK=u6,A6=Bd,T6="__lodash_placeholder__",Og=1,oK=2,sK=4,I6=8,fc=128,k6=256,lK=Math.min;function fK(e,t){var r=e[1],n=t[1],a=r|n,i=a<(Og|oK|fc),o=n==fc&&r==I6||n==fc&&r==k6&&e[7].length<=t[8]||n==(fc|k6)&&t[7].length<=t[8]&&r==I6;if(!(i||o))return e;n&Og&&(e[2]=t[2],a|=r&Og?0:sK);var l=t[3];if(l){var f=e[3];e[3]=f?iK(f,l,t[4]):l,e[4]=f?A6(e[3],T6):t[4]}return l=t[5],l&&(f=e[5],e[5]=f?aK(f,l,t[6]):l,e[6]=f?A6(e[5],T6):t[6]),l=t[7],l&&(e[7]=l),n&fc&&(e[8]=e[8]==null?t[8]:lK(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var uK=fK,cK=/\s/;function hK(e){for(var t=e.length;t--&&cK.test(e.charAt(t)););return t}var dK=hK,pK=dK,vK=/^\s+/;function mK(e){return e&&e.slice(0,pK(e)+1).replace(vK,"")}var gK=mK,yK=kf,bK=Ao,_K="[object Symbol]";function wK(e){return typeof e=="symbol"||bK(e)&&yK(e)==_K}var Nd=wK,EK=gK,B6=pa,xK=Nd,N6=0/0,SK=/^[-+]0x[0-9a-f]+$/i,MK=/^0b[01]+$/i,CK=/^0o[0-7]+$/i,AK=parseInt;function TK(e){if(typeof e=="number")return e;if(xK(e))return N6;if(B6(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=B6(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=EK(e);var r=MK.test(e);return r||CK.test(e)?AK(e.slice(2),r?2:8):SK.test(e)?N6:+e}var IK=TK,kK=IK,O6=1/0,BK=17976931348623157e292;function NK(e){if(!e)return e===0?e:0;if(e=kK(e),e===O6||e===-O6){var t=e<0?-1:1;return t*BK}return e===e?e:0}var OK=NK,RK=OK;function PK(e){var t=RK(e),r=t%1;return t===t?r?t-r:t:0}var Rg=PK,LK=s6,FK=Nq,DK=JH,$K=C6,zK=nK,UK=d6,qK=uK,VK=g6,HK=b6,R6=Rg,KK="Expected a function",P6=1,jK=2,Pg=8,Lg=16,Fg=32,L6=64,F6=Math.max;function WK(e,t,r,n,a,i,o,l){var f=t&jK;if(!f&&typeof e!="function")throw new TypeError(KK);var u=n?n.length:0;if(u||(t&=~(Fg|L6),n=a=void 0),o=o===void 0?o:F6(R6(o),0),l=l===void 0?l:R6(l),u-=a?a.length:0,t&L6){var d=n,v=a;n=a=void 0}var m=f?void 0:UK(e),y=[e,t,r,n,a,d,v,i,o,l];if(m&&qK(y,m),e=y[0],t=y[1],r=y[2],n=y[3],a=y[4],l=y[9]=y[9]===void 0?f?0:e.length:F6(y[9]-u,0),!l&&t&(Pg|Lg)&&(t&=~(Pg|Lg)),!t||t==P6)var _=FK(e,t,r);else t==Pg||t==Lg?_=DK(e,t,l):(t==Fg||t==(P6|Fg))&&!a.length?_=zK(e,t,r,n):_=$K.apply(void 0,y);var w=m?LK:VK;return HK(w(_,y),e,t)}var GK=WK,ZK=Tg,YK=GK,JK=Ng,XK=Bd,QK=64,Dg=ZK(function(e,t){var r=XK(t,JK(Dg));return YK(e,QK,void 0,t,r)});Dg.placeholder={};var ej=Dg;function tj(){this.__data__=[],this.size=0}var rj=tj;function nj(e,t){return e===t||e!==e&&t!==t}var Od=nj,ij=Od;function aj(e,t){for(var r=e.length;r--;)if(ij(e[r][0],t))return r;return-1}var Rd=aj,oj=Rd,sj=Array.prototype,lj=sj.splice;function fj(e){var t=this.__data__,r=oj(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():lj.call(t,r,1),--this.size,!0}var uj=fj,cj=Rd;function hj(e){var t=this.__data__,r=cj(t,e);return r<0?void 0:t[r][1]}var dj=hj,pj=Rd;function vj(e){return pj(this.__data__,e)>-1}var mj=vj,gj=Rd;function yj(e,t){var r=this.__data__,n=gj(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var bj=yj,_j=rj,wj=uj,Ej=dj,xj=mj,Sj=bj;function Bf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Bf.prototype.clear=_j,Bf.prototype.delete=wj,Bf.prototype.get=Ej,Bf.prototype.has=xj,Bf.prototype.set=Sj;var Pd=Bf,Mj=Pd;function Cj(){this.__data__=new Mj,this.size=0}var Aj=Cj;function Tj(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ij=Tj;function kj(e){return this.__data__.get(e)}var Bj=kj;function Nj(e){return this.__data__.has(e)}var Oj=Nj,Rj=pl,Pj=fi,Lj=Rj(Pj,"Map"),$g=Lj,Fj=pl,Dj=Fj(Object,"create"),Ld=Dj,D6=Ld;function $j(){this.__data__=D6?D6(null):{},this.size=0}var zj=$j;function Uj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qj=Uj,Vj=Ld,Hj="__lodash_hash_undefined__",Kj=Object.prototype,jj=Kj.hasOwnProperty;function Wj(e){var t=this.__data__;if(Vj){var r=t[e];return r===Hj?void 0:r}return jj.call(t,e)?t[e]:void 0}var Gj=Wj,Zj=Ld,Yj=Object.prototype,Jj=Yj.hasOwnProperty;function Xj(e){var t=this.__data__;return Zj?t[e]!==void 0:Jj.call(t,e)}var Qj=Xj,eW=Ld,tW="__lodash_hash_undefined__";function rW(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eW&&t===void 0?tW:t,this}var nW=rW,iW=zj,aW=qj,oW=Gj,sW=Qj,lW=nW;function Nf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Nf.prototype.clear=iW,Nf.prototype.delete=aW,Nf.prototype.get=oW,Nf.prototype.has=sW,Nf.prototype.set=lW;var fW=Nf,$6=fW,uW=Pd,cW=$g;function hW(){this.size=0,this.__data__={hash:new $6,map:new(cW||uW),string:new $6}}var dW=hW;function pW(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var vW=pW,mW=vW;function gW(e,t){var r=e.__data__;return mW(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Fd=gW,yW=Fd;function bW(e){var t=yW(this,e).delete(e);return this.size-=t?1:0,t}var _W=bW,wW=Fd;function EW(e){return wW(this,e).get(e)}var xW=EW,SW=Fd;function MW(e){return SW(this,e).has(e)}var CW=MW,AW=Fd;function TW(e,t){var r=AW(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var IW=TW,kW=dW,BW=_W,NW=xW,OW=CW,RW=IW;function Of(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Of.prototype.clear=kW,Of.prototype.delete=BW,Of.prototype.get=NW,Of.prototype.has=OW,Of.prototype.set=RW;var zg=Of,PW=Pd,LW=$g,FW=zg,DW=200;function $W(e,t){var r=this.__data__;if(r instanceof PW){var n=r.__data__;if(!LW||n.length<DW-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new FW(n)}return r.set(e,t),this.size=r.size,this}var zW=$W,UW=Pd,qW=Aj,VW=Ij,HW=Bj,KW=Oj,jW=zW;function Rf(e){var t=this.__data__=new UW(e);this.size=t.size}Rf.prototype.clear=qW,Rf.prototype.delete=VW,Rf.prototype.get=HW,Rf.prototype.has=KW,Rf.prototype.set=jW;var z6=Rf,U6=e6;function WW(e,t,r){t=="__proto__"&&U6?U6(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ug=WW,GW=Ug,ZW=Od;function YW(e,t,r){(r!==void 0&&!ZW(e[t],r)||r===void 0&&!(t in e))&&GW(e,t,r)}var q6=YW;function JW(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),l=o.length;l--;){var f=o[e?l:++a];if(r(i[f],f,i)===!1)break}return t}}var XW=JW,QW=XW,eG=QW(),tG=eG,Dd={exports:{}};Dd.exports,function(e,t){var r=fi,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,l=o?o.allocUnsafe:void 0;function f(u,d){if(d)return u.slice();var v=u.length,m=l?l(v):new u.constructor(v);return u.copy(m),m}e.exports=f}(Dd,Dd.exports);var V6=Dd.exports,rG=fi,nG=rG.Uint8Array,iG=nG,H6=iG;function aG(e){var t=new e.constructor(e.byteLength);return new H6(t).set(new H6(e)),t}var qg=aG,oG=qg;function sG(e,t){var r=t?oG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var K6=sG;function lG(e,t){return function(r){return e(t(r))}}var j6=lG,fG=j6,uG=fG(Object.getPrototypeOf,Object),Vg=uG,cG=Object.prototype;function hG(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||cG;return e===r}var $d=hG,dG=Md,pG=Vg,vG=$d;function mG(e){return typeof e.constructor=="function"&&!vG(e)?dG(pG(e)):{}}var W6=mG,gG=kf,yG=Ao,bG="[object Arguments]";function _G(e){return yG(e)&&gG(e)==bG}var wG=_G,G6=wG,EG=Ao,Z6=Object.prototype,xG=Z6.hasOwnProperty,SG=Z6.propertyIsEnumerable,MG=G6(function(){return arguments}())?G6:function(e){return EG(e)&&xG.call(e,"callee")&&!SG.call(e,"callee")},zd=MG,CG=9007199254740991;function AG(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CG}var Hg=AG,TG=Mg,IG=Hg;function kG(e){return e!=null&&IG(e.length)&&!TG(e)}var uc=kG,BG=uc,NG=Ao;function OG(e){return NG(e)&&BG(e)}var Y6=OG,Ud={exports:{}};function RG(){return!1}var PG=RG;Ud.exports,function(e,t){var r=fi,n=PG,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?r.Buffer:void 0,f=l?l.isBuffer:void 0,u=f||n;e.exports=u}(Ud,Ud.exports);var Kg=Ud.exports,LG=kf,FG=Vg,DG=Ao,$G="[object Object]",zG=Function.prototype,UG=Object.prototype,J6=zG.toString,qG=UG.hasOwnProperty,VG=J6.call(Object);function HG(e){if(!DG(e)||LG(e)!=$G)return!1;var t=FG(e);if(t===null)return!0;var r=qG.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&J6.call(r)==VG}var X6=HG,KG=kf,jG=Hg,WG=Ao,GG="[object Arguments]",ZG="[object Array]",YG="[object Boolean]",JG="[object Date]",XG="[object Error]",QG="[object Function]",eZ="[object Map]",tZ="[object Number]",rZ="[object Object]",nZ="[object RegExp]",iZ="[object Set]",aZ="[object String]",oZ="[object WeakMap]",sZ="[object ArrayBuffer]",lZ="[object DataView]",fZ="[object Float32Array]",uZ="[object Float64Array]",cZ="[object Int8Array]",hZ="[object Int16Array]",dZ="[object Int32Array]",pZ="[object Uint8Array]",vZ="[object Uint8ClampedArray]",mZ="[object Uint16Array]",gZ="[object Uint32Array]",Gr={};Gr[fZ]=Gr[uZ]=Gr[cZ]=Gr[hZ]=Gr[dZ]=Gr[pZ]=Gr[vZ]=Gr[mZ]=Gr[gZ]=!0,Gr[GG]=Gr[ZG]=Gr[sZ]=Gr[YG]=Gr[lZ]=Gr[JG]=Gr[XG]=Gr[QG]=Gr[eZ]=Gr[tZ]=Gr[rZ]=Gr[nZ]=Gr[iZ]=Gr[aZ]=Gr[oZ]=!1;function yZ(e){return WG(e)&&jG(e.length)&&!!Gr[KG(e)]}var bZ=yZ;function _Z(e){return function(t){return e(t)}}var qd=_Z,Vd={exports:{}};Vd.exports,function(e,t){var r=W4,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,l=function(){try{var f=a&&a.require&&a.require("util").types;return f||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l}(Vd,Vd.exports);var jg=Vd.exports,wZ=bZ,EZ=qd,Q6=jg,eS=Q6&&Q6.isTypedArray,xZ=eS?EZ(eS):wZ,tS=xZ;function SZ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var rS=SZ,MZ=Ug,CZ=Od,AZ=Object.prototype,TZ=AZ.hasOwnProperty;function IZ(e,t,r){var n=e[t];(!(TZ.call(e,t)&&CZ(n,r))||r===void 0&&!(t in e))&&MZ(e,t,r)}var Hd=IZ,kZ=Hd,BZ=Ug;function NZ(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var l=t[i],f=n?n(r[l],e[l],l,r,e):void 0;f===void 0&&(f=e[l]),a?BZ(r,l,f):kZ(r,l,f)}return r}var vl=NZ;function OZ(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var RZ=OZ,PZ=RZ,LZ=zd,FZ=Va,DZ=Kg,$Z=lc,zZ=tS,UZ=Object.prototype,qZ=UZ.hasOwnProperty;function VZ(e,t){var r=FZ(e),n=!r&&LZ(e),a=!r&&!n&&DZ(e),i=!r&&!n&&!a&&zZ(e),o=r||n||a||i,l=o?PZ(e.length,String):[],f=l.length;for(var u in e)(t||qZ.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||$Z(u,f)))&&l.push(u);return l}var nS=VZ;function HZ(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var KZ=HZ,jZ=pa,WZ=$d,GZ=KZ,ZZ=Object.prototype,YZ=ZZ.hasOwnProperty;function JZ(e){if(!jZ(e))return GZ(e);var t=WZ(e),r=[];for(var n in e)n=="constructor"&&(t||!YZ.call(e,n))||r.push(n);return r}var XZ=JZ,QZ=nS,eY=XZ,tY=uc;function rY(e){return tY(e)?QZ(e,!0):eY(e)}var cc=rY,nY=vl,iY=cc;function aY(e){return nY(e,iY(e))}var oY=aY,iS=q6,sY=V6,lY=K6,fY=Id,uY=W6,aS=zd,oS=Va,cY=Y6,hY=Kg,dY=Mg,pY=pa,vY=X6,mY=tS,sS=rS,gY=oY;function yY(e,t,r,n,a,i,o){var l=sS(e,r),f=sS(t,r),u=o.get(f);if(u){iS(e,r,u);return}var d=i?i(l,f,r+"",e,t,o):void 0,v=d===void 0;if(v){var m=oS(f),y=!m&&hY(f),_=!m&&!y&&mY(f);d=f,m||y||_?oS(l)?d=l:cY(l)?d=fY(l):y?(v=!1,d=sY(f,!0)):_?(v=!1,d=lY(f,!0)):d=[]:vY(f)||aS(f)?(d=l,aS(l)?d=gY(l):(!pY(l)||dY(l))&&(d=uY(f))):v=!1}v&&(o.set(f,d),a(d,f,n,i,o),o.delete(f)),iS(e,r,d)}var bY=yY,_Y=z6,wY=q6,EY=tG,xY=bY,SY=pa,MY=cc,CY=rS;function lS(e,t,r,n,a){e!==t&&EY(t,function(i,o){if(a||(a=new _Y),SY(i))xY(e,t,o,r,lS,n,a);else{var l=n?n(CY(e,o),i,o+"",e,t,a):void 0;l===void 0&&(l=i),wY(e,o,l)}},MY)}var AY=lS,TY=Od,IY=uc,kY=lc,BY=pa;function NY(e,t,r){if(!BY(r))return!1;var n=typeof t;return(n=="number"?IY(r)&&kY(t,r.length):n=="string"&&t in r)?TY(r[t],e):!1}var fS=NY,OY=Tg,RY=fS;function PY(e){return OY(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&RY(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,i)}return t})}var uS=PY,LY=AY,FY=uS,DY=FY(function(e,t,r){LY(e,t,r)}),$Y=DY,zY=ej,UY=$Y,Wg=function(){var e=[];return typeof Uint8ClampedArray<"u"&&e.push(Uint8ClampedArray),typeof Uint8Array<"u"&&e.push(Uint8Array),typeof Uint16Array<"u"&&e.push(Uint16Array),typeof Uint32Array<"u"&&e.push(Uint32Array),typeof Float32Array<"u"&&e.push(Float32Array),typeof Float64Array<"u"&&e.push(Float64Array),e}();function qY(e){for(var t,r=0;!t&&Wg.length>r;r++)e instanceof Wg[r]&&(t=Wg[r]);return t}function VY(e,t){if(ge.Buffer.isBuffer(t))t=ge.Buffer.from(t);else{var r=qY(t);t=r?new r(t,t.byteOffset,t.byteLength):void 0}return t}var us=zY(UY,VY),ur={options:{usePureJavaScript:!1}},Gg={},HY=Gg,cS={};Gg.encode=function(e,t,r){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(r!==void 0&&typeof r!="number")throw new TypeError('"maxline" must be a number.');var n="";if(!(e instanceof Uint8Array))n=KY(e,t);else{var a=0,i=t.length,o=t.charAt(0),l=[0];for(a=0;a<e.length;++a){for(var f=0,u=e[a];f<l.length;++f)u+=l[f]<<8,l[f]=u%i,u=u/i|0;for(;u>0;)l.push(u%i),u=u/i|0}for(a=0;e[a]===0&&a<e.length-1;++a)n+=o;for(a=l.length-1;a>=0;--a)n+=t[l[a]]}if(r){var d=new RegExp(".{1,"+r+"}","g");n=n.match(d).join(`\r
687
687
  `)}return n},Gg.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var r=cS[t];if(!r){r=cS[t]=[];for(var n=0;n<t.length;++n)r[t.charCodeAt(n)]=n}e=e.replace(/\s/g,"");for(var a=t.length,i=t.charAt(0),o=[0],n=0;n<e.length;n++){var l=r[e.charCodeAt(n)];if(l===void 0)return;for(var f=0,u=l;f<o.length;++f)u+=o[f]*a,o[f]=u&255,u>>=8;for(;u>0;)o.push(u&255),u>>=8}for(var d=0;e[d]===i&&d<e.length-1;++d)o.push(0);return typeof ge.Buffer<"u"?ge.Buffer.from(o.reverse()):new Uint8Array(o.reverse())};function KY(e,t){var r=0,n=t.length,a=t.charAt(0),i=[0];for(r=0;r<e.length();++r){for(var o=0,l=e.at(r);o<i.length;++o)l+=i[o]<<8,i[o]=l%n,l=l/n|0;for(;l>0;)i.push(l%n),l=l/n|0}var f="";for(r=0;e.at(r)===0&&r<e.length()-1;++r)f+=a;for(r=i.length-1;r>=0;--r)f+=t[i[r]];return f}var hS=ur,dS=HY,Me=hS.util=hS.util||{};(function(){if(typeof fe<"u"&&fe.nextTick&&!fe.browser){Me.nextTick=fe.nextTick,typeof setImmediate=="function"?Me.setImmediate=setImmediate:Me.setImmediate=Me.nextTick;return}if(typeof setImmediate=="function"){Me.setImmediate=function(){return setImmediate.apply(void 0,arguments)},Me.nextTick=function(o){return setImmediate(o)};return}if(Me.setImmediate=function(o){setTimeout(o,0)},typeof window<"u"&&typeof window.postMessage=="function"){let o=function(l){if(l.source===window&&l.data===e){l.stopPropagation();var f=t.slice();t.length=0,f.forEach(function(u){u()})}};var e="forge.setImmediate",t=[];Me.setImmediate=function(l){t.push(l),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",o,!0)}if(typeof MutationObserver<"u"){var r=Date.now(),n=!0,a=document.createElement("div"),t=[];new MutationObserver(function(){var l=t.slice();t.length=0,l.forEach(function(f){f()})}).observe(a,{attributes:!0});var i=Me.setImmediate;Me.setImmediate=function(l){Date.now()-r>15?(r=Date.now(),i(l)):(t.push(l),t.length===1&&a.setAttribute("a",n=!n))}}Me.nextTick=Me.setImmediate})(),Me.isNodejs=typeof fe<"u"&&fe.versions&&fe.versions.node,Me.globalScope=function(){return Me.isNodejs?Ct:typeof self>"u"?window:self}(),Me.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},Me.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer},Me.isArrayBufferView=function(e){return e&&Me.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function hc(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}Me.ByteBuffer=Zg;function Zg(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(Me.isArrayBuffer(e)||Me.isArrayBufferView(e))if(typeof ge.Buffer<"u"&&e instanceof ge.Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof Zg||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}Me.ByteStringBuffer=Zg;var jY=4096;Me.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>jY&&(this.data.substr(0,1),this._constructedStringLength=0)},Me.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},Me.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},Me.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},Me.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},Me.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},Me.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(Me.encodeUtf8(e))},Me.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},Me.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},Me.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},Me.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))},Me.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},Me.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},Me.ByteStringBuffer.prototype.putInt=function(e,t){hc(t);var r="";do t-=8,r+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(r)},Me.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},Me.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},Me.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},Me.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},Me.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},Me.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},Me.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},Me.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},Me.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},Me.ByteStringBuffer.prototype.getInt=function(e){hc(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t},Me.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},Me.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},Me.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},Me.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},Me.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},Me.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},Me.ByteStringBuffer.prototype.copy=function(){var e=Me.createBuffer(this.data);return e.read=this.read,e},Me.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},Me.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},Me.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},Me.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e},Me.ByteStringBuffer.prototype.toString=function(){return Me.decodeUtf8(this.bytes())};function WY(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=Me.isArrayBuffer(e),n=Me.isArrayBufferView(e);if(r||n){r?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}Me.DataBuffer=WY,Me.DataBuffer.prototype.length=function(){return this.write-this.read},Me.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},Me.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+t);return n.set(r),this.data=new DataView(n.buffer),this},Me.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},Me.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this},Me.DataBuffer.prototype.putBytes=function(e,t){if(Me.isArrayBufferView(e)){var r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=r.byteLength-r.byteOffset;this.accommodate(n);var a=new Uint8Array(this.data.buffer,this.write);return a.set(r),this.write+=n,this}if(Me.isArrayBuffer(e)){var r=new Uint8Array(e);this.accommodate(r.byteLength);var a=new Uint8Array(this.data.buffer);return a.set(r,this.write),this.write+=r.byteLength,this}if(e instanceof Me.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&Me.isArrayBufferView(e.data)){var r=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(r.byteLength);var a=new Uint8Array(e.data.byteLength,this.write);return a.set(r),this.write+=r.byteLength,this}if(e instanceof Me.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var i;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),i=new Uint8Array(this.data.buffer,this.write),this.write+=Me.binary.hex.decode(e,i,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),i=new Uint8Array(this.data.buffer,this.write),this.write+=Me.binary.base64.decode(e,i,this.write),this;if(t==="utf8"&&(e=Me.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),i=new Uint8Array(this.data.buffer,this.write),this.write+=Me.binary.raw.decode(i),this;if(t==="utf16")return this.accommodate(e.length*2),i=new Uint16Array(this.data.buffer,this.write),this.write+=Me.text.utf16.encode(i),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},Me.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},Me.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},Me.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},Me.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},Me.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},Me.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},Me.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},Me.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},Me.DataBuffer.prototype.putInt=function(e,t){hc(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this},Me.DataBuffer.prototype.putSignedInt=function(e,t){return hc(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},Me.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},Me.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},Me.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},Me.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},Me.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},Me.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},Me.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},Me.DataBuffer.prototype.getInt=function(e){hc(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t},Me.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},Me.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},Me.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},Me.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},Me.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},Me.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},Me.DataBuffer.prototype.copy=function(){return new Me.DataBuffer(this)},Me.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},Me.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},Me.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},Me.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e},Me.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return Me.binary.raw.encode(t);if(e==="hex")return Me.binary.hex.encode(t);if(e==="base64")return Me.binary.base64.encode(t);if(e==="utf8")return Me.text.utf8.decode(t);if(e==="utf16")return Me.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},Me.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=Me.encodeUtf8(e)),new Me.ByteBuffer(e)},Me.fillString=function(e,t){for(var r="";t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return r},Me.xorBytes=function(e,t,r){for(var n="",a="",i="",o=0,l=0;r>0;--r,++o)a=e.charCodeAt(o)^t.charCodeAt(o),l>=10&&(n+=i,i="",l=0),i+=String.fromCharCode(a),++l;return n+=i,n},Me.hexToBytes=function(e){var t="",r=0;for(e.length&!0&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t},Me.bytesToHex=function(e){return Me.createBuffer(e).toHex()},Me.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var cs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",hs=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],pS="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Me.encode64=function(e,t){for(var r="",n="",a,i,o,l=0;l<e.length;)a=e.charCodeAt(l++),i=e.charCodeAt(l++),o=e.charCodeAt(l++),r+=cs.charAt(a>>2),r+=cs.charAt((a&3)<<4|i>>4),isNaN(i)?r+="==":(r+=cs.charAt((i&15)<<2|o>>6),r+=isNaN(o)?"=":cs.charAt(o&63)),t&&r.length>t&&(n+=r.substr(0,t)+`\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfy/authentication-widget",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "author": {
5
5
  "email": "chipi@syncfy.com",
6
6
  "name": "Edgar Martinez"