{"size": 80221, "ext": "js", "max_stars_repo_path": "dist/js/bundle.js", "max_stars_repo_name": "crookedneighbor/mtg-deck-price-calculator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/js/bundle.js", "max_issues_repo_name": "crookedneighbor/mtg-deck-price-calculator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/js/bundle.js", "max_forks_repo_name": "crookedneighbor/mtg-deck-price-calculator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 80221.0, "max_line_length": 80221, "alphanum_fraction": 0.6950673764}
(()=>{var t={731:t=>{"use strict";var e="undefined"!=typeof Promise?Promise:null,r=function(){function t(e){var r=this;"function"!=typeof e?(this._promise=new t.Promise((function(t,e){r._resolveFunction=t,r._rejectFunction=e})),e=e||{},this._onResolve=e.onResolve||t.defaultOnResolve,this._onReject=e.onReject||t.defaultOnReject,t.shouldCatchExceptions(e)&&this._promise.catch((function(){})),this._resetState()):this._promise=new t.Promise(e)}return t.defaultOnResolve=function(e){return t.Promise.resolve(e)},t.defaultOnReject=function(e){return t.Promise.reject(e)},t.setPromise=function(e){t.Promise=e},t.shouldCatchExceptions=function(e){return e.hasOwnProperty("suppressUnhandledPromiseMessage")?Boolean(e.suppressUnhandledPromiseMessage):Boolean(t.suppressUnhandledPromiseMessage)},t.all=function(e){return t.Promise.all(e)},t.allSettled=function(e){return t.Promise.allSettled(e)},t.race=function(e){return t.Promise.race(e)},t.reject=function(e){return t.Promise.reject(e)},t.resolve=function(e){return t.Promise.resolve(e)},t.prototype.then=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(t=this._promise).then.apply(t,e)},t.prototype.catch=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(t=this._promise).catch.apply(t,e)},t.prototype.resolve=function(e){var r=this;return this.isFulfilled||(this._setResolved(),t.Promise.resolve().then((function(){return r._onResolve(e)})).then((function(t){r._resolveFunction(t)})).catch((function(t){r._resetState(),r.reject(t)}))),this},t.prototype.reject=function(e){var r=this;return this.isFulfilled||(this._setRejected(),t.Promise.resolve().then((function(){return r._onReject(e)})).then((function(t){r._setResolved(),r._resolveFunction(t)})).catch((function(t){return r._rejectFunction(t)}))),this},t.prototype._resetState=function(){this.isFulfilled=!1,this.isResolved=!1,this.isRejected=!1},t.prototype._setResolved=function(){this.isFulfilled=!0,this.isResolved=!0,this.isRejected=!1},t.prototype._setRejected=function(){this.isFulfilled=!0,this.isResolved=!1,this.isRejected=!0},t.Promise=e,t}();t.exports=r},924:(t,e,r)=>{"use strict";var n=r(210),o=r(559),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},559:(t,e,r)=>{"use strict";var n=r(612),o=r(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var p=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p},767:t=>{function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},445:t=>{t.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var e="[...]",r="[Circular]",n=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(t,e,r,a){var s;void 0===a&&(a=i()),u(t,"",0,[],void 0,0,a);try{s=0===o.length?JSON.stringify(t,e,r):JSON.stringify(t,f(e),r)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var c=n.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function s(t,e,r,i){var a=Object.getOwnPropertyDescriptor(i,r);void 0!==a.get?a.configurable?(Object.defineProperty(i,r,{value:t}),n.push([i,r,e,a])):o.push([e,r,t]):(i[r]=t,n.push([i,r,e]))}function u(t,n,o,i,a,c,l){var p;if(c+=1,"object"==typeof t&&null!==t){for(p=0;p<i.length;p++)if(i[p]===t)return void s(r,t,n,a);if(void 0!==l.depthLimit&&c>l.depthLimit)return void s(e,t,n,a);if(void 0!==l.edgesLimit&&o+1>l.edgesLimit)return void s(e,t,n,a);if(i.push(t),Array.isArray(t))for(p=0;p<t.length;p++)u(t[p],p,p,i,t,c,l);else{var f=Object.keys(t);for(p=0;p<f.length;p++){var y=f[p];u(t[y],y,p,i,t,c,l)}}i.pop()}}function c(t,e){return t<e?-1:t>e?1:0}function l(t,e,r,a){void 0===a&&(a=i());var s,u=p(t,"",0,[],void 0,0,a)||t;try{s=0===o.length?JSON.stringify(u,e,r):JSON.stringify(u,f(e),r)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var c=n.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function p(t,o,i,a,u,l,f){var y;if(l+=1,"object"==typeof t&&null!==t){for(y=0;y<a.length;y++)if(a[y]===t)return void s(r,t,o,u);try{if("function"==typeof t.toJSON)return}catch(t){return}if(void 0!==f.depthLimit&&l>f.depthLimit)return void s(e,t,o,u);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void s(e,t,o,u);if(a.push(t),Array.isArray(t))for(y=0;y<t.length;y++)p(t[y],y,y,a,t,l,f);else{var d={},h=Object.keys(t).sort(c);for(y=0;y<h.length;y++){var m=h[y];p(t[m],m,y,a,t,l,f),d[m]=t[m]}if(void 0===u)return d;n.push([u,o,t]),u[o]=d}a.pop()}}function f(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===e&&i[0]===r){r=i[2],o.splice(n,1);break}}return t.call(this,e,r)}}},648:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var a,s=r.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(r.call(arguments)))},c=Math.max(0,i.length-s.length),l=[],p=0;p<c;p++)l.push("$"+p);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},612:(t,e,r)=>{"use strict";var n=r(648);t.exports=Function.prototype.bind||n},210:(t,e,r)=>{"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,p=r(405)(),f=Object.getPrototypeOf||function(t){return t.__proto__},y={},d="undefined"==typeof Uint8Array?n:f(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},m=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=f(o.prototype))}return h[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(612),b=r(642),_=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),j=v.call(Function.call,String.prototype.slice),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,P=function(t){var e=j(t,0,1),r=j(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return S(t,O,(function(t,e,r,o){n[n.length]=r?S(o,x,"$1"):e||t})),n},T=function(t,e){var r,n=t;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(h,n)){var i=h[n];if(i===y&&(i=m(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=P(t),n=r.length>0?r[0]:"",i=T("%"+n+"%",e),s=i.name,c=i.value,l=!1,p=i.alias;p&&(n=p[0],w(r,_([0,1],p)));for(var f=1,y=!0;f<r.length;f+=1){var d=r[f],m=j(d,0,1),g=j(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(l=!0),b(h,s="%"+(n+="."+d)+"%"))c=h[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&f+1>=r.length){var v=u(c,d);c=(y=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else y=b(c,d),c=c[d];y&&!l&&(h[s]=c)}}return c}},405:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(419);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},419:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},642:(t,e,r)=>{"use strict";var n=r(612);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},280:(t,e,r)=>{"use strict";r.r(e)},631:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,j=Array.prototype.concat,O=Array.prototype.join,x=Array.prototype.slice,P=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function I(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-P(-t):P(t);if(n!==t){var o=String(n),i=v.call(e,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var D=r(654).custom,N=D&&q(D)?D:null;function L(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function F(t){return b.call(String(t),/"/g,"&quot;")}function U(t){return!("[object Array]"!==z(t)||R&&"object"==typeof t&&R in t)}function q(t){if(k)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,o){var s=r||{};if(H(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!H(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return W(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var _=String(e);return h?I(e,_):_}if("bigint"==typeof e){var S=String(e)+"n";return h?I(e,S):S}var P=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof e)return U(e)?"[Array]":"[Object]";var A,D=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(s,n);if(void 0===o)o=[];else if($(o,e)>=0)return"[Circular]";function B(e,r,i){if(r&&(o=x.call(o)).push(r),i){var a={depth:s.depth};return H(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,n+1,o)}return t(e,s,n+1,o)}if("function"==typeof e){var G=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),Y=K(e,B);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(Y.length>0?" { "+O.call(Y,", ")+" }":"")}if(q(e)){var Z=k?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(e);return"object"!=typeof e||k?Z:J(Z)}if((A=e)&&"object"==typeof A&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var tt="<"+w.call(String(e.nodeName)),et=e.attributes||[],rt=0;rt<et.length;rt++)tt+=" "+et[rt].name+"="+L(F(et[rt].value),"double",s);return tt+=">",e.childNodes&&e.childNodes.length&&(tt+="..."),tt+"</"+w.call(String(e.nodeName))+">"}if(U(e)){if(0===e.length)return"[]";var nt=K(e,B);return D&&!function(t){for(var e=0;e<t.length;e++)if($(t[e],"\n")>=0)return!1;return!0}(nt)?"["+V(nt,D)+"]":"[ "+O.call(nt,", ")+" ]"}if(function(t){return!("[object Error]"!==z(t)||R&&"object"==typeof t&&R in t)}(e)){var ot=K(e,B);return"cause"in e&&!C.call(e,"cause")?"{ ["+String(e)+"] "+O.call(j.call("[cause]: "+B(e.cause),ot),", ")+" }":0===ot.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(ot,", ")+" }"}if("object"==typeof e&&u){if(N&&"function"==typeof e[N])return e[N]();if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var it=[];return a.call(e,(function(t,r){it.push(B(r,e,!0)+" => "+B(t,e))})),X("Map",i.call(e),it,D)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var at=[];return l.call(e,(function(t){at.push(B(t,e))})),X("Set",c.call(e),at,D)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Q("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Q("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return Q("WeakRef");if(function(t){return!("[object Number]"!==z(t)||R&&"object"==typeof t&&R in t)}(e))return J(B(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return J(B(T.call(e)));if(function(t){return!("[object Boolean]"!==z(t)||R&&"object"==typeof t&&R in t)}(e))return J(d.call(e));if(function(t){return!("[object String]"!==z(t)||R&&"object"==typeof t&&R in t)}(e))return J(B(String(e)));if(!function(t){return!("[object Date]"!==z(t)||R&&"object"==typeof t&&R in t)}(e)&&!function(t){return!("[object RegExp]"!==z(t)||R&&"object"==typeof t&&R in t)}(e)){var st=K(e,B),ut=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,ct=e instanceof Object?"":"null prototype",lt=!ut&&R&&Object(e)===e&&R in e?v.call(z(e),8,-1):ct?"Object":"",pt=(ut||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(lt||ct?"["+O.call(j.call([],lt||[],ct||[]),": ")+"] ":"");return 0===st.length?pt+"{}":D?pt+"{"+V(st,D)+"}":pt+"{ "+O.call(st,", ")+" }"}return String(e)};var B=Object.prototype.hasOwnProperty||function(t){return t in this};function H(t,e){return B.call(t,e)}function z(t){return h.call(t)}function $(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function W(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return W(v.call(t,0,e.maxStringLength),e)+n}return L(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",e)}function G(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+_.call(e.toString(16))}function J(t){return"Object("+t+")"}function Q(t){return t+" { ? }"}function X(t,e,r,n){return t+" ("+e+") {"+(n?V(r,n):O.call(r,", "))+"}"}function V(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function K(t,e){var r=U(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=H(t,o)?e(t[o],t):""}var i,a="function"==typeof A?A(t):[];if(k){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)H(t,u)&&(r&&String(Number(u))===u&&u<t.length||k&&i["$"+u]instanceof Symbol||(S.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof A)for(var c=0;c<a.length;c++)C.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}},644:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getCard=e.getCardBySetCodeAndCollectorNumber=e.getCollection=e.random=e.autocomplete=e.getCardNamed=e.search=void 0;var i=r(529),a=o(r(755));function s(t,e){var r;void 0===e&&(e={});var n=((r={})[e.kind||"fuzzy"]=t,r);return e.set&&(n.set=e.set),(0,i.get)("/cards/named",n)}e.search=function(t,e){void 0===e&&(e={});var r=n({q:t},e);return(0,i.get)("/cards/search",r)},e.getCardNamed=s,e.autocomplete=function(t,e){void 0===e&&(e={});var r=n({q:t},e);return(0,i.get)("/cards/autocomplete",r)},e.random=function(t){return t?(0,i.get)("/cards/random",{q:t}):(0,i.get)("/cards/random")},e.getCollection=function(t){var e=t.reduce((function(e,r,n){return n%75!=0?e:e.concat([t.slice(n,n+75)])}),[]);return Promise.all(e.map((function(t){return(0,i.post)("/cards/collection",{identifiers:t})}))).then((function(t){var e=[],r=[];t.forEach((function(t){var n=t;e.push.apply(e,n.warnings),r.push.apply(r,n.not_found)}));var n=t.flat();return new a.default({object:"list",warnings:e,not_found:r,data:n})}))},e.getCardBySetCodeAndCollectorNumber=function(t,e,r){var n="/cards/".concat(t,"/").concat(e);return r&&(n+="/".concat(r)),(0,i.get)(n)},e.getCard=function(t,e){void 0===e&&(e="scryfall");var r,n=String(t);switch(e){case"multiverse":return r=n,(0,i.get)("/cards/multiverse/".concat(r));case"arena":return function(t){return(0,i.get)("/cards/arena/".concat(t))}(n);case"mtgo":return function(t){return(0,i.get)("/cards/mtgo/".concat(t))}(n);case"tcg":return function(t){return(0,i.get)("/cards/tcgplayer/".concat(t))}(n);case"exactName":return s(n,{kind:"exact"});case"name":case"fuzzyName":return s(n,{kind:"fuzzy"});default:return function(t){return(0,i.get)("/cards/".concat(t))}(n)}}},854:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCatalog=void 0;var n=r(529);e.getCatalog=function(t){return(0,n.get)("/catalog/".concat(t))}},877:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSetByTcgId=e.getSet=e.getSets=void 0;var n=r(529);e.getSets=function(){return(0,n.get)("/sets")},e.getSet=function(t){return(0,n.get)("/sets/".concat(t))},e.getSetByTcgId=function(t){return(0,n.get)("/sets/tcgplayer/".concat(t))}},933:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=r(529),s=r(71),u=i(r(21)),c=r(918),l=r(644),p=r(877),f=r(854),y="https://c2.scryfall.com/file/scryfall-symbols/card-symbols/";(0,a.get)("/symbology").then((function(t){var e=t[0].svg_uri;y=e.replace(/[^/]*.svg/,"")})),t.exports={setApiRequestDelayTime:function(t){(0,s.setTaskDelayTime)(t)},resetApiRequestDelayTime:function(){(0,s.resetTaskDelayTime)()},setTextTransform:function(t){(0,u.setTextTransform)(t)},slackify:function(){(0,u.setTextTransform)(c.slack)},discordify:function(){(0,u.setTextTransform)(c.discord)},resetTextTransform:function(){(0,u.resetTextTransform)()},getSymbolUrl:function(t){var e=t.match(/{?([^{}]+)}?/),r=e?e[1]:t;return y+r.toUpperCase()+".svg"},get:a.get,post:a.post,wrap:function(t){return(0,u.default)(t)},getSets:p.getSets,getSet:p.getSet,getSetByTcgId:p.getSetByTcgId,search:l.search,autocomplete:l.autocomplete,random:l.random,getCollection:l.getCollection,getCard:l.getCard,getCardNamed:l.getCardNamed,getCardBySetCodeAndCollectorNumber:l.getCardBySetCodeAndCollectorNumber,getCatalog:f.getCatalog}},71:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.resetTaskDelayTime=e.setTaskDelayTime=e.clearQueue=void 0;var o=n(r(782)),i=!1,a=[],s=100;function u(){return new Promise((function(t){setTimeout(t,s)}))}function c(t){if(a.length>0){var e=a.shift();if(!e)return void(i=!1);u().then((function(){i=!0,e.start().then((function(){c()}))}))}else t?i=!1:u().then((function(){c(!0)}))}e.clearQueue=function(){a=[],i=!1},e.setTaskDelayTime=function(t){s=t},e.resetTaskDelayTime=function(){s=100},e.default=function(t){var e=new o.default(t);return i?a.push(e):(i=!0,e.start().then((function(){c()}))),e.getPromise()}},72:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="https://api.scryfall.com/";e.default=function(t,e){var n,o=function(t){return 0===t.indexOf(r)?t:(function(t){return 0===t.indexOf("/")}(t)&&(t=t.substring(1)),r+t)}(t);if(e){var i=(n=e,Object.keys(n).reduce((function(t,e){return t&&(t+="&"),t+"".concat(e,"=").concat(n[e])}),""));o.indexOf("?")>-1?o+="&":o+="?",o+=i}return o}},529:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.post=e.get=void 0;var o=n(r(14));e.get=function(t,e){return(0,o.default)({endpoint:t,method:"get",query:e})},e.post=function(t,e){return(0,o.default)({endpoint:t,method:"post",body:e})}},14:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(21)),i=n(r(72)),a=n(r(71)),s=n(r(864)),u=n(r(965));e.default=function(t){var e=(0,i.default)(t.endpoint,t.query);return(0,a.default)((function(){return(0,s.default)({url:e,method:t.method,body:t.body})})).then((function(t){try{return(0,o.default)(t)}catch(t){return Promise.reject(new u.default({message:"Something went wrong when wrapping the response from Scryfall",thrownError:t}))}})).catch((function(t){return t instanceof u.default||(t=new u.default({message:"An unexpected error occurred when requesting resources from Scryfall.",status:t.status,originalError:t})),Promise.reject(t)}))}},864:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(569),i=n(r(965));e.default=function(t){var e,r,n;return"post"===t.method&&t.body?(r=t.url,n=t.body,e=o.post(r).send(n)):e=function(t){return o.get(t)}(t.url),e.set("Accept","application/json").then((function(t){var e;try{e=JSON.parse(t.text)}catch(t){return Promise.reject(new i.default({message:"Could not parse response from Scryfall.",thrownError:t}))}return"error"===e.object?Promise.reject(new i.default(e)):e}))}},782:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(731)),i=function(){function t(t){this.taskFn=t,this.pendingPromise=new o.default}return t.prototype.getPromise=function(){return this.pendingPromise.then((function(t){return Promise.resolve(t)})).catch((function(t){return Promise.reject(t)}))},t.prototype.start=function(){var t=this;return Promise.resolve().then((function(){return t.taskFn()})).then((function(e){t.pendingPromise.resolve(e)})).catch((function(e){t.pendingPromise.reject(e)}))},t}();e.default=i},918:(t,e)=>{"use strict";function r(t){return function(e){return e.replace(/{(.)(\/(.))?}/g,t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.discord=e.slack=void 0,e.slack=r(":mana-$1$3:"),e.discord=r(":mana$1$3:")},21:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.resetTextTransform=e.setTextTransform=void 0;var o,i=n(r(332)),a=n(r(357)),s=n(r(755)),u=n(r(530)),c=n(r(190)),l=function(t){return t};function p(t){o=t}function f(){p(l)}e.setTextTransform=p,e.resetTextTransform=f,f(),e.default=function t(e){if("string"==typeof e)return o(e);if(!e||"object"!=typeof e)return e;if("list"===e.object||"catalog"===e.object){if(e.data=e.data.map(t),"list"===e.object)return new s.default(e);if("catalog"===e.object)return new a.default(e)}return Object.keys(e).forEach((function(r){e[r]=t(e[r])})),"card"===e.object?new i.default(e):"set"===e.object?new u.default(e):e.object?new c.default(e):e}},390:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var r=this.constructor,n=t.call(this)||this;Object.setPrototypeOf(n,r.prototype);var o=e.data;return n.push.apply(n,o),n}return n(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return Array},enumerable:!1,configurable:!0}),e}(Array);e.default=o},332:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(r(602)),s=r(529),u=function(t){function e(e){var r=t.call(this,e)||this;return r._tokens=(r.all_parts||[]).filter((function(t){return"token"===t.component})),r._hasTokens=Boolean(r._tokens.length),r.card_faces=r.card_faces||[{object:"card_face"}],r.card_faces.forEach((function(t){t.artist=t.artist||r.artist,t.color_indicator=t.color_indicator||r.color_indicator,t.colors=t.colors||r.colors,t.flavor_text=t.flavor_text||r.flavor_text,t.flavor_name=t.flavor_name||r.flavor_name,t.illustration_id=t.illustration_id||r.illustration_id,t.image_uris=t.image_uris||r.image_uris,t.loyalty=t.loyalty||r.loyalty,t.mana_cost=t.mana_cost||r.mana_cost,t.name=t.name||r.name,t.oracle_id=t.oracle_id||r.oracle_id,t.oracle_text=t.oracle_text||r.oracle_text,t.power=t.power||r.power,t.printed_name=t.printed_name||r.printed_name,t.printed_text=t.printed_text||r.printed_text,t.printed_type_line=t.printed_type_line||r.printed_type_line,t.toughness=t.toughness||r.toughness,t.type_line=t.type_line||r.type_line,t.watermark=t.watermark||r.watermark,t.oracle_text&&t.oracle_text.toLowerCase().indexOf("token")>-1&&(r._hasTokens=!0)})),r.booster=r.booster||!1,r.content_warning=r.content_warning||!1,r.card_faces.length>1&&r.card_faces[0].flavor_name&&(r.flavor_name=r.card_faces.map((function(t){return t.flavor_name})).join(" // ")),r._isDoublesided="transform"===r.layout||"double_faced_token"===r.layout,r}return o(e,t),e.prototype.getRulings=function(){return(0,s.get)(this.rulings_uri)},e.prototype.getSet=function(){return(0,s.get)(this.set_uri)},e.prototype.getPrints=function(){return(0,s.get)(this.prints_search_uri)},e.prototype.isLegal=function(t){var e=this.legalities[t];return"legal"===e||"restricted"===e},e.prototype.getImage=function(t){void 0===t&&(t="normal");var e=this.card_faces[0].image_uris;if(!e)throw new Error("Could not find image uris for card.");return e[t]},e.prototype.getBackImage=function(t){if(void 0===t&&(t="normal"),!this._isDoublesided)return"https://c2.scryfall.com/file/scryfall-errors/missing.jpg";var e=this.card_faces[1].image_uris;if(!e)throw new Error("An unexpected error occured when attempting to show back side of card.");return e[t]},e.prototype.getPrice=function(t){var e=this.prices;return t?e[t]||"":e.usd||e.usd_foil||e.usd_etched||e.eur||e.eur_foil||e.tix||""},e.prototype.getTokens=function(){var t=this;return this._hasTokens?Promise.all(this._tokens.map((function(t){return(0,s.get)(t.uri)}))).then((function(e){return e.length>0?e:t.getPrints().then((function(t){var e=t.find((function(t){return t._tokens.length>0}));return e?e.getTokens():[]}))})):Promise.resolve([])},e.prototype.getTaggerUrl=function(){return"https://tagger.scryfall.com/card/"+this.set+"/"+this.collector_number},e}(a.default);e.default=u},357:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(e){var r=t.call(this,e)||this;return r.object=e.object,r.uri=e.uri,r.total_values=e.total_values,r}return o(e,t),e}(i(r(390)).default);e.default=a},190:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(i(r(602)).default);e.default=a},755:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(r(390)),s=r(529),u=function(t){function e(e){var r=t.call(this,e)||this;return r.object=e.object,r.has_more=e.has_more,r.next_page=e.next_page,r.total_cards=e.total_cards,r.warnings=e.warnings||[],r.not_found=e.not_found||[],r}return o(e,t),e.prototype.next=function(){return this.has_more&&this.next_page?(0,s.get)(this.next_page):Promise.reject(new Error("No additional pages."))},e}(a.default);e.default=u},530:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(r(602)),s=r(529),u=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getCards=function(){return(0,s.get)(this.search_uri)},e}(a.default);e.default=u},965:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var r,n=e.message||e.details;return r=t.call(this,n)||this,Object.assign(r,e),r}return n(e,t),e}(function(t){function e(e){var r=this.constructor,n=t.call(this,e)||this;return Object.setPrototypeOf(n,r.prototype),n.name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(n,n.constructor):n.stack=new Error(e).stack,n}return n(e,t),e}(Error));e.default=o},602:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){Object.assign(this,t)}},478:(t,e,r)=>{"use strict";var n=r(210),o=r(924),i=r(631),a=n("%TypeError%"),s=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),h=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return c(t,n)}else if(u){if(e)return f(e,n)}else if(r)return function(t,e){var r=h(t,e);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return p(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!h(t,e)}(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new s),l(t,n,o)):u?(e||(e=new u),y(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=h(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},903:t=>{"use strict";function e(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function n(){this._defaults=[]}for(var o=function(){var t=a[i];n.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this._defaults.push({fn:t,args:r}),this}},i=0,a=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];i<a.length;i++)o();n.prototype._setDefaults=function(t){var n,o,i=function(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=e(t))){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(this._defaults);try{for(i.s();!(n=i.n()).done;){var a=n.value;t[a.fn].apply(t,function(t){if(Array.isArray(t))return r(t)}(o=a.args)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||e(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}catch(t){i.e(t)}finally{i.f()}},t.exports=n},569:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var a=r(767),s=r(445),u=r(784),c=r(899),l=r(506),p=l.isObject,f=l.mixin,y=l.hasOwn,d=r(97),h=r(903);function m(){}t.exports=function(t,r){return"function"==typeof r?new e.Request("GET",t).end(r):1===arguments.length?new e.Request("GET",t):new e.Request(t,r)};var g=e=t.exports;e.Request=O,g.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var v="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function b(t){if(!p(t))return t;var e=[];for(var r in t)y(t,r)&&_(e,r,t[r]);return e.join("&")}function _(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r)){var n,i=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(r);try{for(i.s();!(n=i.n()).done;)_(t,e,n.value)}catch(t){i.e(t)}finally{i.f()}}else if(p(r))for(var a in r)y(r,a)&&_(t,"".concat(e,"[").concat(a,"]"),r[a]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function w(t){for(var e,r,n={},o=t.split("&"),i=0,a=o.length;i<a;++i)-1===(r=(e=o[i]).indexOf("="))?n[decodeURIComponent(e)]="":n[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return n}function S(t){return/[/+]json($|[^-\w])/i.test(t)}function j(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,n,o,i=t.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(e=(r=i[s]).indexOf(":"))&&(n=r.slice(0,e).toLowerCase(),o=v(r.slice(e+1)),a[n]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function O(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,n=null;try{n=new j(r)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",n);try{r._isResponseOK(n)||(t=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=n,t.status=n.status,r.callback(t,n)):r.callback(null,n)}))}g.serializeObject=b,g.parseString=w,g.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},g.serialize={"application/x-www-form-urlencoded":u.stringify,"application/json":s},g.parse={"application/x-www-form-urlencoded":w,"application/json":JSON.parse},f(j.prototype,d.prototype),j.prototype._parseBody=function(t){var e=g.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&S(this.type)&&(e=g.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},j.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,n="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=e,o.url=r,o},g.Response=j,a(O.prototype),f(O.prototype,c.prototype),O.prototype.type=function(t){return this.set("Content-Type",g.types[t]||t),this},O.prototype.accept=function(t){return this.set("Accept",g.types[t]||t),this},O.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"===n(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var o=r.encoder?r.encoder:function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,o)},O.prototype.query=function(t){return"string"!=typeof t&&(t=b(t)),t&&this._query.push(t),this},O.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},O.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},O.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},O.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},O.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},O.prototype.ca=O.prototype.agent,O.prototype.buffer=O.prototype.ca,O.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},O.prototype.pipe=O.prototype.write,O.prototype._isHost=function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},O.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||m,this._finalizeQueryString(),this._end()},O.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},O.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=g.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",(function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var n;try{n=e.status}catch(t){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}}));var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",n.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",n.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||g.serialize[o?o.split(";")[0]:""];!i&&S(o)&&(i=g.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!==this.header[a]&&y(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},g.agent=function(){return new h};for(var x=function(){var t=T[P];h.prototype[t.toLowerCase()]=function(e,r){var n=new g.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}},P=0,T=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];P<T.length;P++)x();function A(t,e,r){var n=g("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}h.prototype.del=h.prototype.delete,g.get=function(t,e,r){var n=g("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},g.head=function(t,e,r){var n=g("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},g.options=function(t,e,r){var n=g("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},g.del=A,g.delete=A,g.patch=function(t,e,r){var n=g("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},g.post=function(t,e,r){var n=g("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},g.put=function(t,e,r){var n=g("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}},899:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(695),i=r(506),a=i.isObject,s=i.hasOwn;function u(){}t.exports=u,u.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},u.prototype.parse=function(t){return this._parser=t,this},u.prototype.responseType=function(t){return this._responseType=t,this},u.prototype.serialize=function(t){return this._serializer=t,this},u.prototype.timeout=function(t){if(!t||"object"!==n(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(s(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},u.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var c=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),l=new Set([408,413,429,500,502,503,504,521,522,524]);u.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&l.has(e.status))return!0;if(t){if(t.code&&c.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},u.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},u.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){n.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}})),n.end((function(r,n){r?e(r):t(n)}))}))}return this._fullfilledPromise.then(t,e)},u.prototype.catch=function(t){return this.then(void 0,t)},u.prototype.use=function(t){return t(this),this},u.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},u.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},u.prototype.get=function(t){return this._header[t.toLowerCase()]},u.prototype.getHeader=u.prototype.get,u.prototype.set=function(t,e){if(a(t)){for(var r in t)s(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},u.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},u.prototype.field=function(t,e,r){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(a(t)){for(var n in t)s(t,n)&&this.field(n,t[n]);return this}if(Array.isArray(e)){for(var o in e)s(e,o)&&this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e,r),this},u.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(o.gte(process.version,"v13.0.0")&&o.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");o.gte(process.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},u.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},u.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},u.prototype.redirects=function(t){return this._maxRedirects=t,this},u.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},u.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},u.prototype.send=function(t){var e=a(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&a(this._data))for(var n in t)s(t,n)&&(this._data[n]=t[n]);else"string"==typeof t?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},u.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},u.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},u.prototype._appendQueryString=function(){console.warn("Unsupported")},u.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error("".concat(t+e,"ms exceeded"));n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},u.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},97:(t,e,r)=>{"use strict";var n=r(506);function o(){}t.exports=o,o.prototype.get=function(t){return this.header[t.toLowerCase()]},o.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=n.type(e);var r=n.params(e);for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(this[o]=r[o]);this.links={};try{t.link&&(this.links=n.parseLinks(t.link))}catch(t){}},o.prototype._setStatusProperties=function(t){var e=Math.trunc(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},506:(t,e)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,r={},o=n(t.split(/ *; */));try{for(o.s();!(e=o.n()).done;){var i=e.value.split(/ *= */),a=i.shift(),s=i.shift();a&&s&&(r[a]=s)}}catch(t){o.e(t)}finally{o.f()}return r},e.parseLinks=function(t){var e,r={},o=n(t.split(/ *, */));try{for(o.s();!(e=o.n()).done;){var i=e.value.split(/ *; */),a=i[0].slice(1,-1);r[i[1].split(/ *= */)[1].slice(1,-1)]=a}}catch(t){o.e(t)}finally{o.f()}return r},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t},e.isObject=function(t){return null!==t&&"object"===r(t)},e.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},e.mixin=function(t,r){for(var n in r)e.hasOwn(r,n)&&(t[n]=r[n])}},737:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},784:(t,e,r)=>{"use strict";var n=r(457),o=r(746),i=r(737);t.exports={formats:i,parse:o,stringify:n}},746:(t,e,r)=>{"use strict";var n=r(52),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var p=0;r.depth>0&&null!==(s=a.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(t,e,r,n){for(var o=n?e:u(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,c={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=l.split(e.delimiter,p),y=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),y=r,r=f.length);for(r=0;r<f.length;++r)if(r!==y){var h,m,g=f[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(h=e.decoder(g,a.decoder,d,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(g.slice(0,b),a.decoder,d,"key"),m=n.maybeMap(u(g.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=s(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(c,h)?c[h]=n.combine(c[h],m):c[h]=m}return c}(t,r):t,p=r.plainObjects?Object.create(null):{},f=Object.keys(l),y=0;y<f.length;++y){var d=f[y],h=c(d,l[d],r,"string"==typeof t);p=n.merge(p,h,r)}return!0===r.allowSparse?p:n.compact(p)}},457:(t,e,r)=>{"use strict";var n=r(478),o=r(52),i=r(737),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=String.prototype.split,l=Array.prototype.push,p=function(t,e){l.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,y=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:y,formatter:i.formatters[y],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},h={},m=function t(e,r,i,a,s,l,f,y,m,g,v,b,_,w,S){for(var j,O=e,x=S,P=0,T=!1;void 0!==(x=x.get(h))&&!T;){var A=x.get(e);if(P+=1,void 0!==A){if(A===P)throw new RangeError("Cyclic object value");T=!0}void 0===x.get(h)&&(P=0)}if("function"==typeof f?O=f(r,O):O instanceof Date?O=g(O):"comma"===i&&u(O)&&(O=o.maybeMap(O,(function(t){return t instanceof Date?g(t):t}))),null===O){if(a)return l&&!_?l(r,d.encoder,w,"key",v):r;O=""}if("string"==typeof(j=O)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(O)){if(l){var E=_?r:l(r,d.encoder,w,"key",v);if("comma"===i&&_){for(var k=c.call(String(O),","),R="",C=0;C<k.length;++C)R+=(0===C?"":",")+b(l(k[C],d.encoder,w,"value",v));return[b(E)+"="+R]}return[b(E)+"="+b(l(O,d.encoder,w,"value",v))]}return[b(r)+"="+b(String(O))]}var M,I=[];if(void 0===O)return I;if("comma"===i&&u(O))M=[{value:O.length>0?O.join(",")||null:void 0}];else if(u(f))M=f;else{var D=Object.keys(O);M=y?D.sort(y):D}for(var N=0;N<M.length;++N){var L=M[N],F="object"==typeof L&&void 0!==L.value?L.value:O[L];if(!s||null!==F){var U=u(O)?"function"==typeof i?i(r,L):r:r+(m?"."+L:"["+L+"]");S.set(e,P);var q=n();q.set(h,S),p(I,t(F,U,i,a,s,l,f,y,m,g,v,b,_,w,q))}}return I};t.exports=function(t,e){var r,o=t,c=function(t){if(!t)return d;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],o=d.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===t.allowDots?d.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,delimiter:void 0===t.delimiter?d.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:d.encode,encoder:"function"==typeof t.encoder?t.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:d.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:d.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof o||null===o)return"";l=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=s[l];r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var h=n(),g=0;g<r.length;++g){var v=r[g];c.skipNulls&&null===o[v]||p(f,m(o[v],v,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,h))}var b=f.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},52:(t,e,r)=>{"use strict";var n=r(737),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:a,prop:c}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,o,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=s(e,n)),i(e)&&i(r)?(r.forEach((function(r,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return o.call(e,i)?e[i]=t(e[i],a,n):e[i]=a,e}),a)}}},654:()=>{},695:()=>{}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{r(280);const t=r(933),e=document.getElementById("tooltip"),n=document.getElementById("tooltip-img"),o=document.getElementById("go-btn"),i=document.getElementById("ignore-basics"),a=document.getElementById("total"),s=document.getElementById("error"),u=document.getElementById("progress"),c=document.querySelector(".table"),l=document.getElementById("decklist");function p(t){t?(l.setAttribute("disabled",!0),o.setAttribute("disabled",!0),l.classList.add("is-loading"),o.classList.add("is-loading")):(l.removeAttribute("disabled"),o.removeAttribute("disabled"),l.classList.remove("is-loading"),o.classList.remove("is-loading"))}e.style.display="none",e.style.pointerEvents="none",e.style.position="fixed",e.style.zIndex="9000000",e.style.borderRadius="4.75% / 3.5%",e.style.height="340px",e.style.width="244px",e.style.overflow="hidden",o.addEventListener("click",(()=>{p(!0);const r=l.value.split("\n").filter((t=>{if(t&&t.trim()&&"/"!==t.charAt(0))return t.trim()})).map((t=>{const e=t.match(/^((\d*)(x?) )?(.*)$/);return{qty:e[2]||"",name:(e[4]||"").split(/[\/\(]/)[0].trim()}})),o=Math.ceil(r.length/18)+1;u.setAttribute("max",o);const f=document.getElementById("card-entries");a.classList.add("is-hidden"),c.classList.add("is-hidden"),f.innerHTML="",s.innerText="",u.value=0,u.innerText=u.value+"%",u.classList.remove("is-hidden"),setTimeout((()=>{u.value,u.innerText=u.value+"%"}),500),t.getCollection(r.map((t=>({name:t.name})))).then((e=>{u.value=1,u.innerText=u.value+"%";const r=[],n=e.map((t=>t.oracle_id));for(;n.length;){const e="("+n.splice(0,18).map((t=>`oracle_id:"${t}"`)).join(" or ")+") prefer:usd-low usd>0";r.push(t.search(e).then((t=>{const e={},r=t.filter((t=>{const r=t.card_faces[0].oracle_id;return!e[r]&&(e[r]=!0,!0)}));return console.log(r),u.value+=1,r})))}return e.warnings.forEach((t=>{s.innerText+=t+"\n"})),e.not_found.forEach((t=>{s.innerText+=t.name+" could not be found. Check your spelling.\n"})),Promise.all(r)})).then((t=>{const o=t.flat();let s=0;const l=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});o.sort(((t,e)=>t.name>e.name?1:-1)).forEach((t=>{let o,a;const u=(r.find((e=>e.name.split(" //")[0]===t.name.split(" //")[0]))||{qty:1}).qty||1,c=t.getImage();switch(t.name.toLowerCase()){case"island":case"forest":case"mountain":case"swamp":case"plains":if(i.checked){o=0;break}default:o=Number(t.getPrice()||0),a=t.purchase_uris.tcgplayer}s+=100*o*u;const p=document.createElement("tr"),y=document.createElement("td");y.innerText=u;const d=document.createElement("td");d.innerHTML=`<a href="${t.scryfall_uri}" target="_blank">${t.name}</a>`;const h=document.createElement("td"),m=l.format(o);a?h.innerHTML=`<a href="${a}">${m}</a>`:h.innerText=m,d.addEventListener("mousemove",(t=>{window.innerWidth<768||("block"!==e.style.display&&(e.style.display="block"),e.style.left=t.clientX+50+"px",e.style.top=t.clientY-30+"px",n.src!==c&&(n.src=c))})),d.addEventListener("mouseout",(()=>{e.style.display="none"})),p.appendChild(y),p.appendChild(d),p.appendChild(h),f.appendChild(p)})),setTimeout((()=>{u.classList.add("is-hidden"),u.value=0,u.innerText=u.value+"%",p(!1),a.innerText="Total: "+l.format(s/100),a.classList.remove("is-hidden"),c.classList.remove("is-hidden")}),750)})).catch((function(t){s.innerText=t.message,p(!1),u.classList.add("is-hidden"),u.value=0,u.innerText=u.value+"%"}))}))})()})();