@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
1 lines • 37.6 kB
JavaScript
(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[55],{418:function(e,t,n){"use strict";(function(e){var r=n(818);const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,i=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),a=e=>(e=e.toLowerCase(),t=>i(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,l=c("undefined"),f=a("ArrayBuffer"),d=c("string"),p=c("function"),h=c("number"),m=e=>null!==e&&"object"==typeof e,g=e=>{if("object"!==i(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=a("Date"),y=a("File"),w=a("Blob"),O=a("FileList"),E=a("URLSearchParams");function S(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),u(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function R(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,v=e=>!l(e)&&e!==A,T=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&s(Uint8Array)),P=a("HTMLFormElement"),C=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),j=a("RegExp"),N=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};S(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},x="abcdefghijklmnopqrstuvwxyz",U="0123456789",F={DIGIT:U,ALPHA:x,ALPHA_DIGIT:x+x.toUpperCase()+U},L=a("AsyncFunction");t.a={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=i(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:d,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:g,isUndefined:l,isDate:b,isFile:y,isBlob:w,isRegExp:j,isFunction:p,isStream:e=>m(e)&&p(e.pipe),isURLSearchParams:E,isTypedArray:T,isFileList:O,forEach:S,merge:function e(){const{caseless:t}=v(this)&&this||{},n={},r=(r,o)=>{const s=t&&R(n,o)||o;g(n[s])&&g(r)?n[s]=e(n[s],r):g(r)?n[s]=e({},r):u(r)?n[s]=r.slice():n[s]=r};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&S(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(S(t,((t,o)=>{n&&p(t)?e[o]=Object(r.a)(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!h(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:P,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:N,freezeMethods:e=>{N(e,((t,n)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];p(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:R,global:A,isContextDefined:v,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=u(e)?[]:{};return S(e,((e,t)=>{const s=n(e,r+1);!l(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:L,isThenable:e=>e&&(m(e)||p(e))&&p(e.then)&&p(e.catch)}}).call(this,n(53))},454:function(e,t,n){"use strict";var r=n(418);function o(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.a.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const s=o.prototype,i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{i[e]={value:e}})),Object.defineProperties(o,i),Object.defineProperty(s,"isAxiosError",{value:!0}),o.from=(e,t,n,i,a,c)=>{const u=Object.create(s);return r.a.toFlatObject(e,u,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),o.call(u,e.message,t,n,i,a),u.cause=e,u.name=e.name,c&&Object.assign(u,c),u},t.a=o},534:function(e,t,n){"use strict";(function(e){var r=n(418),o=n(454),s=n(819);function i(e){return r.a.isPlainObject(e)||r.a.isArray(e)}function a(e){return r.a.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,n){return e?e.concat(t).map((function(e,t){return e=a(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const u=r.a.toFlatObject(r.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,n,l){if(!r.a.isObject(t))throw new TypeError("target must be an object");n=n||new(s.a||FormData);const f=(l=r.a.toFlatObject(l,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!r.a.isUndefined(t[e])}))).metaTokens,d=l.visitor||b,p=l.dots,h=l.indexes,m=(l.Blob||"undefined"!=typeof Blob&&Blob)&&r.a.isSpecCompliantForm(n);if(!r.a.isFunction(d))throw new TypeError("visitor must be a function");function g(t){if(null===t)return"";if(r.a.isDate(t))return t.toISOString();if(!m&&r.a.isBlob(t))throw new o.a("Blob is not supported. Use a Buffer instead.");return r.a.isArrayBuffer(t)||r.a.isTypedArray(t)?m&&"function"==typeof Blob?new Blob([t]):e.from(t):t}function b(e,t,o){let s=e;if(e&&!o&&"object"==typeof e)if(r.a.endsWith(t,"{}"))t=f?t:t.slice(0,-2),e=JSON.stringify(e);else if(r.a.isArray(e)&&function(e){return r.a.isArray(e)&&!e.some(i)}(e)||(r.a.isFileList(e)||r.a.endsWith(t,"[]"))&&(s=r.a.toArray(e)))return t=a(t),s.forEach((function(e,o){!r.a.isUndefined(e)&&null!==e&&n.append(!0===h?c([t],o,p):null===h?t:t+"[]",g(e))})),!1;return!!i(e)||(n.append(c(o,t,p),g(e)),!1)}const y=[],w=Object.assign(u,{defaultVisitor:b,convertValue:g,isVisitable:i});if(!r.a.isObject(t))throw new TypeError("data must be an object");return function e(t,o){if(!r.a.isUndefined(t)){if(-1!==y.indexOf(t))throw Error("Circular reference detected in "+o.join("."));y.push(t),r.a.forEach(t,(function(t,s){!0===(!(r.a.isUndefined(t)||null===t)&&d.call(n,t,r.a.isString(s)?s.trim():s,o,w))&&e(t,o?o.concat(s):[s])})),y.pop()}}(t),n}}).call(this,n(197).Buffer)},818:function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return r}))},819:function(e,t,n){"use strict";t.a=null},889:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ue})),n.d(t,"b",(function(){return Le}));var r=n(418),o=n(818),s=n(534);function i(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function a(e,t){this._pairs=[],e&&Object(s.a)(e,this,t)}const c=a.prototype;c.append=function(e,t){this._pairs.push([e,t])},c.toString=function(e){const t=e?function(t){return e.call(this,t,i)}:i;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var u=a;function l(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f(e,t,n){if(!t)return e;const o=n&&n.encode||l,s=n&&n.serialize;let i;if(i=s?s(t,n):r.a.isURLSearchParams(t)?t.toString():new u(t,n).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var d=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){r.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},p=n(454),h={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},m={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:u,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},g=function(e){function t(e,n,o,s){let i=e[s++];const a=Number.isFinite(+i),c=s>=e.length;return i=!i&&r.a.isArray(o)?o.length:i,c?(r.a.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):(o[i]&&r.a.isObject(o[i])||(o[i]=[]),t(e,n,o[i],s)&&r.a.isArray(o[i])&&(o[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(o[i])),!a)}if(r.a.isFormData(e)&&r.a.isFunction(e.entries)){const n={};return r.a.forEachEntry(e,((e,o)=>{t(function(e){return r.a.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null};const b={transitional:h,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=r.a.isObject(e);if(i&&r.a.isHTMLForm(e)&&(e=new FormData(e)),r.a.isFormData(e))return o&&o?JSON.stringify(g(e)):e;if(r.a.isArrayBuffer(e)||r.a.isBuffer(e)||r.a.isStream(e)||r.a.isFile(e)||r.a.isBlob(e))return e;if(r.a.isArrayBufferView(e))return e.buffer;if(r.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(s.a)(e,new m.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return m.isNode&&r.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=r.a.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(s.a)(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e){if(r.a.isString(e))try{return(0,JSON.parse)(e),r.a.trim(e)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||b.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&r.a.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(s){if(n){if("SyntaxError"===s.name)throw p.a.from(s,p.a.ERR_BAD_RESPONSE,this,null,this.response);throw s}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:m.classes.FormData,Blob:m.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.a.forEach(["delete","get","head","post","put","patch"],(e=>{b.headers[e]={}}));var y=b;const w=r.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),O=Symbol("internals");function E(e){return e&&String(e).trim().toLowerCase()}function S(e){return!1===e||null==e?e:r.a.isArray(e)?e.map(S):String(e)}function R(e,t,n,o,s){return r.a.isFunction(o)?o.call(this,t,n):(s&&(t=n),r.a.isString(t)?r.a.isString(o)?-1!==t.indexOf(o):r.a.isRegExp(o)?o.test(t):void 0:void 0)}class A{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function s(e,t,n){const s=E(t);if(!s)throw new Error("header name must be a non-empty string");const i=r.a.findKey(o,s);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=S(e))}const i=(e,t)=>r.a.forEach(e,((e,n)=>s(e,n,t)));return r.a.isPlainObject(e)||e instanceof this.constructor?i(e,t):r.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&w[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&s(t,e,n),this}get(e,t){if(e=E(e)){const n=r.a.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(r.a.isFunction(t))return t.call(this,e,n);if(r.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=E(e)){const n=r.a.findKey(this,e);return!(!n||void 0===this[n]||t&&!R(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function s(e){if(e=E(e)){const s=r.a.findKey(n,e);!s||t&&!R(0,n[s],s,t)||(delete n[s],o=!0)}}return r.a.isArray(e)?e.forEach(s):s(e),o}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!R(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return r.a.forEach(this,((o,s)=>{const i=r.a.findKey(n,s);if(i)return t[i]=S(o),void delete t[s];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(s):String(s).trim();a!==s&&delete t[s],t[a]=S(o),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return r.a.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&r.a.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[O]=this[O]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=E(e);t[o]||(function(e,t){const n=r.a.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[o]=!0)}return r.a.isArray(e)?e.forEach(o):o(e),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.a.reduceDescriptors(A.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),r.a.freezeMethods(A);var v=A;function T(e,t){const n=this||y,o=t||n,s=v.from(o.headers);let i=o.data;return r.a.forEach(e,(function(e){i=e.call(n,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function P(e){return!(!e||!e.__CANCEL__)}function C(e,t,n){p.a.call(this,null==e?"canceled":e,p.a.ERR_CANCELED,t,n),this.name="CanceledError"}r.a.inherits(C,p.a,{__CANCEL__:!0});var j=C,N=n(819),x=m.isStandardBrowserEnv?function(){return{write:function(e,t,n,o,s,i){const a=[];a.push(e+"="+encodeURIComponent(t)),r.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.a.isString(o)&&a.push("path="+o),r.a.isString(s)&&a.push("domain="+s),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function U(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var F=m.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function o(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=o(window.location.href),function(e){const t=r.a.isString(e)?o(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function L(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a);n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}var I="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let o=e.data;const s=v.from(e.headers).normalize(),i=e.responseType;let a,c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}r.a.isFormData(o)&&(m.isStandardBrowserEnv||m.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.getContentType(/^\s*multipart\/form-data/)?r.a.isString(c=s.getContentType())&&s.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):s.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(t+":"+n))}const d=U(e.baseURL,e.url);function g(){if(!l)return;const r=v.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new p.a("Request failed with status code "+n.status,[p.a.ERR_BAD_REQUEST,p.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),u()}),(function(e){n(e),u()}),{data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),f(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=g:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(g)},l.onabort=function(){l&&(n(new p.a("Request aborted",p.a.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new p.a("Network Error",p.a.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||h;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new p.a(t,r.clarifyTimeoutError?p.a.ETIMEDOUT:p.a.ECONNABORTED,e,l)),l=null},m.isStandardBrowserEnv){const t=F(d)&&e.xsrfCookieName&&x.read(e.xsrfCookieName);t&&s.set(e.xsrfHeaderName,t)}void 0===o&&s.setContentType(null),"setRequestHeader"in l&&r.a.forEach(s.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),r.a.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",L(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",L(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{l&&(n(!t||t.type?new j(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);b&&-1===m.protocols.indexOf(b)?n(new p.a("Unsupported protocol "+b+":",p.a.ERR_BAD_REQUEST,e)):l.send(o||null)}))};const _={http:N.a,xhr:I};r.a.forEach(_,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const B=e=>`- ${e}`,D=e=>r.a.isFunction(e)||null===e||!1===e;var k=e=>{e=r.a.isArray(e)?e:[e];const{length:t}=e;let n,o;const s={};for(let r=0;r<t;r++){let t;if(n=e[r],o=n,!D(n)&&(o=_[(t=String(n)).toLowerCase()],void 0===o))throw new p.a(`Unknown adapter '${t}'`);if(o)break;s[t||"#"+r]=o}if(!o){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(B).join("\n"):" "+B(e[0]):"as no adapter specified";throw new p.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return o};function z(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new j(null,e)}function J(e){return z(e),e.headers=v.from(e.headers),e.data=T.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),k(e.adapter||y.adapter)(e).then((function(t){return z(e),t.data=T.call(e,e.transformResponse,t),t.headers=v.from(t.headers),t}),(function(t){return P(t)||(z(e),t&&t.response&&(t.response.data=T.call(e,e.transformResponse,t.response),t.response.headers=v.from(t.response.headers))),Promise.reject(t)}))}const q=e=>e instanceof v?e.toJSON():e;function M(e,t){t=t||{};const n={};function o(e,t,n){return r.a.isPlainObject(e)&&r.a.isPlainObject(t)?r.a.merge.call({caseless:n},e,t):r.a.isPlainObject(t)?r.a.merge({},t):r.a.isArray(t)?t.slice():t}function s(e,t,n){return r.a.isUndefined(t)?r.a.isUndefined(e)?void 0:o(void 0,e,n):o(e,t,n)}function i(e,t){if(!r.a.isUndefined(t))return o(void 0,t)}function a(e,t){return r.a.isUndefined(t)?r.a.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function c(n,r,s){return s in t?o(n,r):s in e?o(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(e,t)=>s(q(e),q(t),!0)};return r.a.forEach(Object.keys(Object.assign({},e,t)),(function(o){const i=u[o]||s,a=i(e[o],t[o],o);r.a.isUndefined(a)&&i!==c||(n[o]=a)})),n}const G={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{G[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const H={};G.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new p.a(r(o," has been removed"+(t?" in "+t:"")),p.a.ERR_DEPRECATED);return t&&!H[o]&&(H[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var K={assertOptions:function(e,t,n){if("object"!=typeof e)throw new p.a("options must be an object",p.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new p.a("option "+s+" must be "+n,p.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new p.a("Unknown option "+s,p.a.ERR_BAD_OPTION)}},validators:G};const W=K.validators;class V{constructor(e){this.defaults=e,this.interceptors={request:new d,response:new d}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=M(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:s}=t;void 0!==n&&K.assertOptions(n,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean)},!1),null!=o&&(r.a.isFunction(o)?t.paramsSerializer={serialize:o}:K.assertOptions(o,{encode:W.function,serialize:W.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&r.a.merge(s.common,s[t.method]);s&&r.a.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=v.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let l;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let f,d=0;if(!c){const e=[J.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),f=e.length,l=Promise.resolve(t);d<f;)l=l.then(e[d++],e[d++]);return l}f=a.length;let p=t;for(d=0;d<f;){const e=a[d++],t=a[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{l=J.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,f=u.length;d<f;)l=l.then(u[d++],u[d++]);return l}getUri(e){return f(U((e=M(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}r.a.forEach(["delete","get","head","options"],(function(e){V.prototype[e]=function(t,n){return this.request(M(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(M(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}V.prototype[e]=t(),V.prototype[e+"Form"]=t(!0)}));var $=V;class X{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new j(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new X((function(t){e=t})),cancel:e}}}var Q=X;const Z={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Z).forEach((([e,t])=>{Z[t]=e}));var Y=Z;const ee=function e(t){const n=new $(t),s=Object(o.a)($.prototype.request,n);return r.a.extend(s,$.prototype,n,{allOwnKeys:!0}),r.a.extend(s,n,null,{allOwnKeys:!0}),s.create=function(n){return e(M(t,n))},s}(y);ee.Axios=$,ee.CanceledError=j,ee.CancelToken=Q,ee.isCancel=P,ee.VERSION="1.6.0",ee.toFormData=s.a,ee.AxiosError=p.a,ee.Cancel=ee.CanceledError,ee.all=function(e){return Promise.all(e)},ee.spread=function(e){return function(t){return e.apply(null,t)}},ee.isAxiosError=function(e){return r.a.isObject(e)&&!0===e.isAxiosError},ee.mergeConfig=M,ee.AxiosHeaders=v,ee.formToJSON=e=>g(r.a.isHTMLForm(e)?new FormData(e):e),ee.getAdapter=k,ee.HttpStatusCode=Y,ee.default=ee;var te,ne,re,oe,se,ie,ae,ce,ue,le,fe,de,pe,he,me,ge,be,ye,we,Oe=ee,Ee=Object.defineProperty,Se=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,Pe=(e,t,n)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ce=(e,t)=>{for(var n in t||(t={}))ve.call(t,n)&&Pe(e,n,t[n]);if(Ae)for(var n of Ae(t))Te.call(t,n)&&Pe(e,n,t[n]);return e},je=(e,t)=>Se(e,Re(t)),Ne=(e,t,n)=>Pe(e,"symbol"!=typeof t?t+"":t,n),xe=(e,t,n)=>new Promise(((r,o)=>{var s=e=>{try{a(n.next(e))}catch(t){o(t)}},i=e=>{try{a(n.throw(e))}catch(t){o(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,i);a((n=n.apply(e,t)).next())}));class Ue{constructor(){Ne(this,"apiUrl"),Ne(this,"apiKey",""),Ne(this,"authorizationToken",null)}getAuthorizationToken(){return xe(this,null,(function*(){return this.authorizationToken}))}setAuthorizationToken(e){this.authorizationToken=e}}class Fe{constructor(e){Ne(this,"configuration"),this.configuration=e}transformOptions(e){return xe(this,null,(function*(){const t=yield this.configuration.getAuthorizationToken();return e.headers=je(Ce({},e.headers),null!=t?{authorization:" Bearer "+t}:{"X-API-Key":this.configuration.apiKey}),(e=je(Ce({},e),{transformResponse:e=>e})).responseType||(e.responseType="json"),"blob"==e.responseType&&(e.responseType="arraybuffer"),e}))}getBaseUrl(e){return this.configuration.apiUrl.endsWith("/")?this.configuration.apiUrl.slice(0,-1):this.configuration.apiUrl}transformResult(e,t,n){return n(t)}}class Le extends Fe{constructor(e,t,n){super(e),Ne(this,"instance"),Ne(this,"baseUrl"),Ne(this,"jsonParseReviver"),this.instance=n||Oe.create(),this.baseUrl=null!=t?t:this.getBaseUrl("")}getAttributes(e,t,n,r){let o=this.baseUrl+"/api/atoms/v1/mockups-3d/{id}/attributes?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(o=o.replace("{id}",encodeURIComponent(""+e)),null!=t&&(o+="ownerId="+encodeURIComponent(""+t)+"&"),null===n)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==n&&(o+="tenantId="+encodeURIComponent(""+n)+"&"),o=o.replace(/[?&]$/,"");let s={method:"GET",url:o,headers:{Accept:"application/json"},cancelToken:r};return this.transformOptions(s).then((e=>this.instance.request(e))).catch((e=>{if(Be(e)&&e.response)return e.response;throw e})).then((e=>this.transformResult(o,e,(e=>this.processGetAttributes(e)))))}processGetAttributes(e){const t=e.status;let n={};if(e.headers&&"object"==typeof e.headers)for(let r in e.headers)e.headers.hasOwnProperty(r)&&(n[r]=e.headers[r]);if(200===t){let t=null,n=e.data;return t=JSON.parse(n),Promise.resolve(t)}if(404===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Not Found",t,r,n,o)}if(422===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Client Error",t,r,n,o)}if(401===t)return _e("Unauthorized",t,e.data,n);if(403===t)return _e("Forbidden",t,e.data,n);if(500===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Internal server error",t,r,n,o)}return 200!==t&&204!==t?_e("An unexpected server error occurred.",t,e.data,n):Promise.resolve(null)}getContentAsProtobuf(e,t,n,r){let o=this.baseUrl+"/api/atoms/v1/mockups-3d/{id}/content/as-protobuf?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(o=o.replace("{id}",encodeURIComponent(""+e)),null!=t&&(o+="ownerId="+encodeURIComponent(""+t)+"&"),null===n)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==n&&(o+="tenantId="+encodeURIComponent(""+n)+"&"),o=o.replace(/[?&]$/,"");let s={responseType:"blob",method:"GET",url:o,headers:{Accept:"application/octet-stream"},cancelToken:r};return this.transformOptions(s).then((e=>this.instance.request(e))).catch((e=>{if(Be(e)&&e.response)return e.response;throw e})).then((e=>this.transformResult(o,e,(e=>this.processGetContentAsProtobuf(e)))))}processGetContentAsProtobuf(e){const t=e.status;let n={};if(e.headers&&"object"==typeof e.headers)for(let r in e.headers)e.headers.hasOwnProperty(r)&&(n[r]=e.headers[r]);if(200===t||206===t){const r=e.headers?e.headers["content-disposition"]:void 0,o=r?/filename="?([^"]*?)"?(;|$)/g.exec(r):void 0,s=o&&o.length>1?o[1]:void 0;return Promise.resolve({fileName:s,status:t,data:new Blob([e.data]),headers:n})}if(404===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Not Found",t,r,n,o)}if(422===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Client Error",t,r,n,o)}if(401===t)return _e("Unauthorized",t,e.data,n);if(403===t)return _e("Forbidden",t,e.data,n);if(500===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Internal server error",t,r,n,o)}return 200!==t&&204!==t?_e("An unexpected server error occurred.",t,e.data,n):Promise.resolve(null)}getGeometryFile(e,t,n,r){let o=this.baseUrl+"/api/atoms/v1/mockups-3d/{id}/geometry/file?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(o=o.replace("{id}",encodeURIComponent(""+e)),null!=t&&(o+="ownerId="+encodeURIComponent(""+t)+"&"),null===n)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==n&&(o+="tenantId="+encodeURIComponent(""+n)+"&"),o=o.replace(/[?&]$/,"");let s={responseType:"blob",method:"GET",url:o,headers:{Accept:"application/octet-stream"},cancelToken:r};return this.transformOptions(s).then((e=>this.instance.request(e))).catch((e=>{if(Be(e)&&e.response)return e.response;throw e})).then((e=>this.transformResult(o,e,(e=>this.processGetGeometryFile(e)))))}processGetGeometryFile(e){const t=e.status;let n={};if(e.headers&&"object"==typeof e.headers)for(let r in e.headers)e.headers.hasOwnProperty(r)&&(n[r]=e.headers[r]);if(200===t||206===t){const r=e.headers?e.headers["content-disposition"]:void 0,o=r?/filename="?([^"]*?)"?(;|$)/g.exec(r):void 0,s=o&&o.length>1?o[1]:void 0;return Promise.resolve({fileName:s,status:t,data:new Blob([e.data]),headers:n})}if(404===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Not Found",t,r,n,o)}if(422===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Client Error",t,r,n,o)}if(401===t)return _e("Unauthorized",t,e.data,n);if(403===t)return _e("Forbidden",t,e.data,n);if(500===t){const r=e.data;let o=null,s=r;return o=JSON.parse(s),_e("Internal server error",t,r,n,o)}return 200!==t&&204!==t?_e("An unexpected server error occurred.",t,e.data,n):Promise.resolve(null)}}(ne=te||(te={})).Rgb="Rgb",ne.Cmyk="Cmyk",ne.Grayscale="Grayscale",ne.Lab="Lab",ne.Spot="Spot",(oe=re||(re={})).Jpeg="Jpeg",oe.Png="Png",(ie=se||(se={})).Product="Product",ie.Design="Design",ie.Surface="Surface",ie.Container="Container",ie.PrintArea="PrintArea",ie.Item="Item",(ce=ae||(ae={})).Undefined="Undefined",ce.ReplaceImageItemFile="ReplaceImageItemFile",ce.ReplacePlaceholderItemContent="ReplacePlaceholderItemContent",(ue||(ue={})).Image="Image",(fe=le||(le={})).Image="Image",fe.Shape="Shape",fe.Clipart="Clipart",fe.Group="Group",(pe=de||(de={})).File="File",pe.ImageStorage="ImageStorage",pe.PrivateImageStorage="PrivateImageStorage",(me=he||(he={})).Jpeg="Jpeg",me.Png="Png",(be=ge||(ge={})).Jpeg="Jpeg",be.Png="Png",be.Tiff="Tiff",be.Pdf="Pdf",(we=ye||(ye={})).High="High",we.Medium="Medium",we.Low="Low",we.NearestNeighbour="NearestNeighbour",we.Linear="Linear",we.Cubic="Cubic",we.Supersampling="Supersampling",we.Lanczos="Lanczos",we.Anisotropic4="Anisotropic4",we.Anisotropic9="Anisotropic9",we.Lanczos3="Lanczos3";class Ie extends Error{constructor(e,t,n,r,o){super(),Ne(this,"message"),Ne(this,"status"),Ne(this,"response"),Ne(this,"headers"),Ne(this,"result"),Ne(this,"isApiException",!0),this.message=e,this.status=t,this.response=n,this.headers=r,this.result=o}static isApiException(e){return!0===e.isApiException}}function _e(e,t,n,r,o){throw null!=o?o:new Ie(e,t,n,r,null)}function Be(e){return e&&!0===e.isAxiosError}}}]);