@konfuzio/document-validation-ui 0.2.0-dev.2 → 0.2.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/app.css +1 -1
- package/dist/index.html +1 -1
- package/dist/js/app.js +1 -1
- package/dist/js/app.js.map +1 -1
- package/dist/js/chunk-vendors.js +10 -10
- package/dist/js/chunk-vendors.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DocumentPage/DocumentToolbar.vue +14 -5
- package/src/components/DocumentPage/ScrollingPage.vue +10 -2
- package/src/store/display.js +2 -5
- package/src/store/document.js +9 -0
package/dist/js/chunk-vendors.js
CHANGED
|
@@ -13,25 +13,25 @@ function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Obje
|
|
|
13
13
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
14
14
|
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
15
15
|
* @license MIT
|
|
16
|
-
*/(function(){"use strict";var t="input is invalid type",r="object"===typeof window,o=r?window:{};o.JS_SHA256_NO_WINDOW&&(r=!1);var s=!r&&"object"===typeof self,a=!o.JS_SHA256_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;a?o=n.g:s&&(o=self);var l=!o.JS_SHA256_NO_COMMON_JS&&e.exports,c=n.amdO,u=!o.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],p=[24,16,8,0],f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=["hex","array","digest","arrayBuffer"],g=[];!o.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var v=function(e,t){return function(n){return new _(t,!0).update(n)[e]()}},y=function(e){var t=v("hex",e);a&&(t=b(t,e)),t.create=function(){return new _(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<m.length;++n){var i=m[n];t[i]=v(i,e)}return t},b=function(e,i){var r,s=n(4394),a=n(1903).Buffer,l=i?"sha224":"sha256";r=a.from&&!o.JS_SHA256_NO_BUFFER_FROM?a.from:function(e){return new a(e)};var c=function(n){if("string"===typeof n)return s.createHash(l).update(n,"utf8").digest("hex");if(null===n||void 0===n)throw new Error(t);return n.constructor===ArrayBuffer&&(n=new Uint8Array(n)),Array.isArray(n)||ArrayBuffer.isView(n)||n.constructor===a?s.createHash(l).update(r(n)).digest("hex"):e(n)};return c},w=function(e,t){return function(n,i){return new S(n,t,!0).update(i)[e]()}},k=function(e){var t=w("hex",e);t.create=function(t){return new S(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<m.length;++n){var i=m[n];t[i]=w(i,e)}return t};function _(e,t){t?(g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function S(e,n,i){var r,o=typeof e;if("string"===o){var s,a=[],l=e.length,c=0;for(r=0;r<l;++r)s=e.charCodeAt(r),s<128?a[c++]=s:s<2048?(a[c++]=192|s>>>6,a[c++]=128|63&s):s<55296||s>=57344?(a[c++]=224|s>>>12,a[c++]=128|s>>>6&63,a[c++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++r)),a[c++]=240|s>>>18,a[c++]=128|s>>>12&63,a[c++]=128|s>>>6&63,a[c++]=128|63&s);e=a}else{if("object"!==o)throw new Error(t);if(null===e)throw new Error(t);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(t)}e.length>64&&(e=new _(n,!0).update(e).array());var d=[],h=[];for(r=0;r<64;++r){var p=e[r]||0;d[r]=92^p,h[r]=54^p}_.call(this,n,i),this.update(h),this.oKeyPad=d,this.inner=!0,this.sharedMemory=i}_.prototype.update=function(e){if(!this.finalized){var n,i=typeof e;if("string"!==i){if("object"!==i)throw new Error(t);if(null===e)throw new Error(t);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(t);n=!0}var r,o,s=0,a=e.length,l=this.blocks;while(s<a){if(this.hashed&&(this.hashed=!1,l[0]=this.block,this.block=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),n)for(o=this.start;s<a&&o<64;++s)l[o>>>2]|=e[s]<<p[3&o++];else for(o=this.start;s<a&&o<64;++s)r=e.charCodeAt(s),r<128?l[o>>>2]|=r<<p[3&o++]:r<2048?(l[o>>>2]|=(192|r>>>6)<<p[3&o++],l[o>>>2]|=(128|63&r)<<p[3&o++]):r<55296||r>=57344?(l[o>>>2]|=(224|r>>>12)<<p[3&o++],l[o>>>2]|=(128|r>>>6&63)<<p[3&o++],l[o>>>2]|=(128|63&r)<<p[3&o++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++s)),l[o>>>2]|=(240|r>>>18)<<p[3&o++],l[o>>>2]|=(128|r>>>12&63)<<p[3&o++],l[o>>>2]|=(128|r>>>6&63)<<p[3&o++],l[o>>>2]|=(128|63&r)<<p[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=l[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},_.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=h[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},_.prototype.hash=function(){var e,t,n,i,r,o,s,a,l,c,u,d=this.h0,h=this.h1,p=this.h2,m=this.h3,g=this.h4,v=this.h5,y=this.h6,b=this.h7,w=this.blocks;for(e=16;e<64;++e)r=w[e-15],t=(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,r=w[e-2],n=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,w[e]=w[e-16]+t+w[e-7]+n|0;for(u=h&p,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,r=w[0]-1413257819,b=r-150054599|0,m=r+24177077|0):(a=704751109,r=w[0]-210244248,b=r-1521486534|0,m=r+143694565|0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),a=d&h,i=a^d&p^u,s=g&v^~g&y,r=b+n+s+f[e]+w[e],o=t+i,b=m+r|0,m=r+o|0),t=(m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10),n=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),l=m&d,i=l^m&h^a,s=b&g^~b&v,r=y+n+s+f[e+1]+w[e+1],o=t+i,y=p+r|0,p=r+o|0,t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),c=p&m,i=c^p&d^l,s=y&b^~y&g,r=v+n+s+f[e+2]+w[e+2],o=t+i,v=h+r|0,h=r+o|0,t=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),u=h&p,i=u^h&m^c,s=v&y^~v&b,r=g+n+s+f[e+3]+w[e+3],o=t+i,g=d+r|0,d=r+o|0,this.chromeBugWorkAround=!0;this.h0=this.h0+d|0,this.h1=this.h1+h|0,this.h2=this.h2+p|0,this.h3=this.h3+m|0,this.h4=this.h4+g|0,this.h5=this.h5+v|0,this.h6=this.h6+y|0,this.h7=this.h7+b|0},_.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,o=this.h5,s=this.h6,a=this.h7,l=d[e>>>28&15]+d[e>>>24&15]+d[e>>>20&15]+d[e>>>16&15]+d[e>>>12&15]+d[e>>>8&15]+d[e>>>4&15]+d[15&e]+d[t>>>28&15]+d[t>>>24&15]+d[t>>>20&15]+d[t>>>16&15]+d[t>>>12&15]+d[t>>>8&15]+d[t>>>4&15]+d[15&t]+d[n>>>28&15]+d[n>>>24&15]+d[n>>>20&15]+d[n>>>16&15]+d[n>>>12&15]+d[n>>>8&15]+d[n>>>4&15]+d[15&n]+d[i>>>28&15]+d[i>>>24&15]+d[i>>>20&15]+d[i>>>16&15]+d[i>>>12&15]+d[i>>>8&15]+d[i>>>4&15]+d[15&i]+d[r>>>28&15]+d[r>>>24&15]+d[r>>>20&15]+d[r>>>16&15]+d[r>>>12&15]+d[r>>>8&15]+d[r>>>4&15]+d[15&r]+d[o>>>28&15]+d[o>>>24&15]+d[o>>>20&15]+d[o>>>16&15]+d[o>>>12&15]+d[o>>>8&15]+d[o>>>4&15]+d[15&o]+d[s>>>28&15]+d[s>>>24&15]+d[s>>>20&15]+d[s>>>16&15]+d[s>>>12&15]+d[s>>>8&15]+d[s>>>4&15]+d[15&s];return this.is224||(l+=d[a>>>28&15]+d[a>>>24&15]+d[a>>>20&15]+d[a>>>16&15]+d[a>>>12&15]+d[a>>>8&15]+d[a>>>4&15]+d[15&a]),l},_.prototype.toString=_.prototype.hex,_.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,o=this.h5,s=this.h6,a=this.h7,l=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,r>>>24&255,r>>>16&255,r>>>8&255,255&r,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||l.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),l},_.prototype.array=_.prototype.digest,_.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},S.prototype=new _,S.prototype.finalize=function(){if(_.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();_.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),_.prototype.finalize.call(this)}};var x=y();x.sha256=x,x.sha224=y(!0),x.sha256.hmac=k(),x.sha224.hmac=k(!0),l?e.exports=x:(o.sha256=x.sha256,o.sha224=x.sha224,c&&(i=function(){return x}.call(x,n,x,e),void 0===i||(e.exports=i)))})()},1336:(e,t,n)=>{"use strict";n.d(t,{K8:()=>c,NJ:()=>u,ap:()=>a,m7:()=>l,vm:()=>s});var i=n(1761),r=n(6475),o=n(7412);function s(){if(!("fetch"in(0,r.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if(!s())return!1;var e=(0,r.V)();if(a(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"===typeof n.createElement)try{var l=n.createElement("iframe");l.hidden=!0,n.head.appendChild(l),l.contentWindow&&l.contentWindow.fetch&&(t=a(l.contentWindow.fetch)),n.head.removeChild(l)}catch(c){i.w&&o.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return t}function c(){if(!s())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}function u(){var e=(0,r.V)(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i}},1486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Path=void 0;const i=n(4892),r=n(4723),o=n(8871),s=n(5570);class a extends r.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",(function(){this._readDataAttribute()}))}_readDataAttribute(){this.dataArray=a.parsePathData(this.data()),this.pathLength=a.getPathLength(this.dataArray)}_sceneFunc(e){const t=this.dataArray;e.beginPath();let n=!1;for(let f=0;f<t.length;f++){const m=t[f].command,g=t[f].points;switch(m){case"L":e.lineTo(g[0],g[1]);break;case"M":e.moveTo(g[0],g[1]);break;case"C":e.bezierCurveTo(g[0],g[1],g[2],g[3],g[4],g[5]);break;case"Q":e.quadraticCurveTo(g[0],g[1],g[2],g[3]);break;case"A":var i=g[0],r=g[1],o=g[2],s=g[3],a=g[4],l=g[5],c=g[6],u=g[7],d=o>s?o:s,h=o>s?1:o/s,p=o>s?s/o:1;e.translate(i,r),e.rotate(c),e.scale(h,p),e.arc(0,0,d,a,a+l,1-u),e.scale(1/h,1/p),e.rotate(-c),e.translate(-i,-r);break;case"z":n=!0,e.closePath();break}}n||this.hasFill()?e.fillStrokeShape(this):e.strokeShape(this)}getSelfRect(){let e=[];this.dataArray.forEach((function(t){if("A"===t.command){const n=t.points[4],i=t.points[5],r=t.points[4]+i;let o=Math.PI/180;if(Math.abs(n-r)<o&&(o=Math.abs(n-r)),i<0)for(let s=n-o;s>r;s-=o){const n=a.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],s,0);e.push(n.x,n.y)}else for(let s=n+o;s<r;s+=o){const n=a.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],s,0);e.push(n.x,n.y)}}else if("C"===t.command)for(let n=0;n<=1;n+=.01){const i=a.getPointOnCubicBezier(n,t.start.x,t.start.y,t.points[0],t.points[1],t.points[2],t.points[3],t.points[4],t.points[5]);e.push(i.x,i.y)}else e=e.concat(t.points)}));let t,n,i=e[0],r=e[0],o=e[1],s=e[1];for(let a=0;a<e.length/2;a++)t=e[2*a],n=e[2*a+1],isNaN(t)||(i=Math.min(i,t),r=Math.max(r,t)),isNaN(n)||(o=Math.min(o,n),s=Math.max(s,n));return{x:i,y:o,width:r-i,height:s-o}}getLength(){return this.pathLength}getPointAtLength(e){return a.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,t,n,i){return Math.sqrt((n-e)*(n-e)+(i-t)*(i-t))}static getPathLength(e){let t=0;for(let n=0;n<e.length;++n)t+=e[n].pathLength;return t}static getPointAtLengthOfDataArray(e,t){let n,i=0,r=t.length;if(!r)return null;while(i<r&&e>t[i].pathLength)e-=t[i].pathLength,++i;if(i===r)return n=t[i-1].points.slice(-2),{x:n[0],y:n[1]};if(e<.01)return n=t[i].points.slice(0,2),{x:n[0],y:n[1]};const o=t[i],l=o.points;switch(o.command){case"L":return a.getPointOnLine(e,o.start.x,o.start.y,l[0],l[1]);case"C":return a.getPointOnCubicBezier((0,s.t2length)(e,a.getPathLength(t),(e=>(0,s.getCubicArcLength)([o.start.x,l[0],l[2],l[4]],[o.start.y,l[1],l[3],l[5]],e))),o.start.x,o.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return a.getPointOnQuadraticBezier((0,s.t2length)(e,a.getPathLength(t),(e=>(0,s.getQuadraticArcLength)([o.start.x,l[0],l[2]],[o.start.y,l[1],l[3]],e))),o.start.x,o.start.y,l[0],l[1],l[2],l[3]);case"A":var c=l[0],u=l[1],d=l[2],h=l[3],p=l[4],f=l[5],m=l[6];return p+=f*e/o.pathLength,a.getPointOnEllipticalArc(c,u,d,h,p,m)}return null}static getPointOnLine(e,t,n,i,r,o,s){o=null!==o&&void 0!==o?o:t,s=null!==s&&void 0!==s?s:n;const a=this.getLineLength(t,n,i,r);if(a<1e-10)return{x:t,y:n};if(i===t)return{x:o,y:s+(r>n?e:-e)};const l=(r-n)/(i-t),c=Math.sqrt(e*e/(1+l*l))*(i<t?-1:1),u=l*c;if(Math.abs(s-n-l*(o-t))<1e-10)return{x:o+c,y:s+u};const d=((o-t)*(i-t)+(s-n)*(r-n))/(a*a),h=t+d*(i-t),p=n+d*(r-n),f=this.getLineLength(o,s,h,p),m=Math.sqrt(e*e-f*f),g=Math.sqrt(m*m/(1+l*l))*(i<t?-1:1),v=l*g;return{x:h+g,y:p+v}}static getPointOnCubicBezier(e,t,n,i,r,o,s,a,l){function c(e){return e*e*e}function u(e){return 3*e*e*(1-e)}function d(e){return 3*e*(1-e)*(1-e)}function h(e){return(1-e)*(1-e)*(1-e)}const p=a*c(e)+o*u(e)+i*d(e)+t*h(e),f=l*c(e)+s*u(e)+r*d(e)+n*h(e);return{x:p,y:f}}static getPointOnQuadraticBezier(e,t,n,i,r,o,s){function a(e){return e*e}function l(e){return 2*e*(1-e)}function c(e){return(1-e)*(1-e)}const u=o*a(e)+i*l(e)+t*c(e),d=s*a(e)+r*l(e)+n*c(e);return{x:u,y:d}}static getPointOnEllipticalArc(e,t,n,i,r,o){const s=Math.cos(o),a=Math.sin(o),l={x:n*Math.cos(r),y:i*Math.sin(r)};return{x:e+(l.x*s-l.y*a),y:t+(l.x*a+l.y*s)}}static parsePathData(e){if(!e)return[];let t=e;const n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];t=t.replace(new RegExp(" ","g"),",");for(var i=0;i<n.length;i++)t=t.replace(new RegExp(n[i],"g"),"|"+n[i]);const r=t.split("|"),o=[],s=[];let a=0,l=0;const c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let u;for(i=1;i<r.length;i++){let e=r[i],t=e.charAt(0);e=e.slice(1),s.length=0;while(u=c.exec(e))s.push(u[0]);const n=[];for(let i=0,r=s.length;i<r;i++){if("00"===s[i]){n.push(0,0);continue}const e=parseFloat(s[i]);isNaN(e)?n.push(0):n.push(e)}while(n.length>0){if(isNaN(n[0]))break;let e="",i=[];const r=a,s=l;var d,h,p,f,m,g,v,y,b,w;switch(t){case"l":a+=n.shift(),l+=n.shift(),e="L",i.push(a,l);break;case"L":a=n.shift(),l=n.shift(),i.push(a,l);break;case"m":var k=n.shift(),_=n.shift();if(a+=k,l+=_,e="M",o.length>2&&"z"===o[o.length-1].command)for(let e=o.length-2;e>=0;e--)if("M"===o[e].command){a=o[e].points[0]+k,l=o[e].points[1]+_;break}i.push(a,l),t="l";break;case"M":a=n.shift(),l=n.shift(),e="M",i.push(a,l),t="L";break;case"h":a+=n.shift(),e="L",i.push(a,l);break;case"H":a=n.shift(),e="L",i.push(a,l);break;case"v":l+=n.shift(),e="L",i.push(a,l);break;case"V":l=n.shift(),e="L",i.push(a,l);break;case"C":i.push(n.shift(),n.shift(),n.shift(),n.shift()),a=n.shift(),l=n.shift(),i.push(a,l);break;case"c":i.push(a+n.shift(),l+n.shift(),a+n.shift(),l+n.shift()),a+=n.shift(),l+=n.shift(),e="C",i.push(a,l);break;case"S":h=a,p=l,d=o[o.length-1],"C"===d.command&&(h=a+(a-d.points[2]),p=l+(l-d.points[3])),i.push(h,p,n.shift(),n.shift()),a=n.shift(),l=n.shift(),e="C",i.push(a,l);break;case"s":h=a,p=l,d=o[o.length-1],"C"===d.command&&(h=a+(a-d.points[2]),p=l+(l-d.points[3])),i.push(h,p,a+n.shift(),l+n.shift()),a+=n.shift(),l+=n.shift(),e="C",i.push(a,l);break;case"Q":i.push(n.shift(),n.shift()),a=n.shift(),l=n.shift(),i.push(a,l);break;case"q":i.push(a+n.shift(),l+n.shift()),a+=n.shift(),l+=n.shift(),e="Q",i.push(a,l);break;case"T":h=a,p=l,d=o[o.length-1],"Q"===d.command&&(h=a+(a-d.points[0]),p=l+(l-d.points[1])),a=n.shift(),l=n.shift(),e="Q",i.push(h,p,a,l);break;case"t":h=a,p=l,d=o[o.length-1],"Q"===d.command&&(h=a+(a-d.points[0]),p=l+(l-d.points[1])),a+=n.shift(),l+=n.shift(),e="Q",i.push(h,p,a,l);break;case"A":f=n.shift(),m=n.shift(),g=n.shift(),v=n.shift(),y=n.shift(),b=a,w=l,a=n.shift(),l=n.shift(),e="A",i=this.convertEndpointToCenterParameterization(b,w,a,l,v,y,f,m,g);break;case"a":f=n.shift(),m=n.shift(),g=n.shift(),v=n.shift(),y=n.shift(),b=a,w=l,a+=n.shift(),l+=n.shift(),e="A",i=this.convertEndpointToCenterParameterization(b,w,a,l,v,y,f,m,g);break}o.push({command:e||t,points:i,start:{x:r,y:s},pathLength:this.calcLength(r,s,e||t,i)})}"z"!==t&&"Z"!==t||o.push({command:"z",points:[],start:void 0,pathLength:0})}return o}static calcLength(e,t,n,i){let r,o,l,c;const u=a;switch(n){case"L":return u.getLineLength(e,t,i[0],i[1]);case"C":return(0,s.getCubicArcLength)([e,i[0],i[2],i[4]],[t,i[1],i[3],i[5]],1);case"Q":return(0,s.getQuadraticArcLength)([e,i[0],i[2]],[t,i[1],i[3]],1);case"A":r=0;var d=i[4],h=i[5],p=i[4]+h,f=Math.PI/180;if(Math.abs(d-p)<f&&(f=Math.abs(d-p)),o=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],d,0),h<0)for(c=d-f;c>p;c-=f)l=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),r+=u.getLineLength(o.x,o.y,l.x,l.y),o=l;else for(c=d+f;c<p;c+=f)l=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),r+=u.getLineLength(o.x,o.y,l.x,l.y),o=l;return l=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),r+=u.getLineLength(o.x,o.y,l.x,l.y),r}return 0}static convertEndpointToCenterParameterization(e,t,n,i,r,o,s,a,l){const c=l*(Math.PI/180),u=Math.cos(c)*(e-n)/2+Math.sin(c)*(t-i)/2,d=-1*Math.sin(c)*(e-n)/2+Math.cos(c)*(t-i)/2,h=u*u/(s*s)+d*d/(a*a);h>1&&(s*=Math.sqrt(h),a*=Math.sqrt(h));let p=Math.sqrt((s*s*(a*a)-s*s*(d*d)-a*a*(u*u))/(s*s*(d*d)+a*a*(u*u)));r===o&&(p*=-1),isNaN(p)&&(p=0);const f=p*s*d/a,m=p*-a*u/s,g=(e+n)/2+Math.cos(c)*f-Math.sin(c)*m,v=(t+i)/2+Math.sin(c)*f+Math.cos(c)*m,y=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},b=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(y(e)*y(t))},w=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(b(e,t))},k=w([1,0],[(u-f)/s,(d-m)/a]),_=[(u-f)/s,(d-m)/a],S=[(-1*u-f)/s,(-1*d-m)/a];let x=w(_,S);return b(_,S)<=-1&&(x=Math.PI),b(_,S)>=1&&(x=0),0===o&&x>0&&(x-=2*Math.PI),1===o&&x<0&&(x+=2*Math.PI),[g,v,s,a,k,x,c,o]}}t.Path=a,a.prototype.className="Path",a.prototype._attrsAffectingSize=["data"],(0,o._registerNode)(a),i.Factory.addGetterSetter(a,"data")},1761:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var i="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0,t.stringToArray=c;const i=n(4060),r=n(4892),o=n(4723),s=n(8871),a=n(5483),l=n(8871);function c(e){return[...e].reduce(((e,t,n,i)=>{if(/\p{Emoji}/u.test(t)){const r=i[n+1];r&&/\p{Emoji_Modifier}|\u200D/u.test(r)?(e.push(t+r),i[n+1]=""):e.push(t)}else/\p{Regional_Indicator}{2}/u.test(t+(i[n+1]||""))?e.push(t+i[n+1]):n>0&&/\p{Mn}|\p{Me}|\p{Mc}/u.test(t)?e[e.length-1]+=t:t&&e.push(t);return e}),[])}const u="auto",d="center",h="inherit",p="justify",f="Change.konva",m="2d",g="-",v="left",y="text",b="Text",w="top",k="bottom",_="middle",S="normal",x="px ",C=" ",E="right",T="rtl",D="word",N="char",O="none",A="…",P=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],M=P.length;function B(e){return e.split(",").map((e=>{e=e.trim();const t=e.indexOf(" ")>=0,n=e.indexOf('"')>=0||e.indexOf("'")>=0;return t&&!n&&(e=`"${e}"`),e})).join(", ")}let I;function R(){return I||(I=i.Util.createCanvasElement().getContext(m),I)}function L(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function F(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function V(e){return e=e||{},e.fillLinearGradientColorStops||e.fillRadialGradientColorStops||e.fillPatternImage||(e.fill=e.fill||"black"),e}class $ extends o.Shape{constructor(e){super(V(e)),this._partialTextX=0,this._partialTextY=0;for(let t=0;t<M;t++)this.on(P[t]+f,this._setTextData);this._setTextData()}_sceneFunc(e){const t=this.textArr,n=t.length;if(!this.text())return;let i,r=this.padding(),o=this.fontSize(),a=this.lineHeight()*o,l=this.verticalAlign(),u=this.direction(),f=0,m=this.align(),g=this.getWidth(),y=this.letterSpacing(),b=this.fill(),w=this.textDecoration(),S=-1!==w.indexOf("underline"),x=-1!==w.indexOf("line-through");u=u===h?e.direction:u;let C=a/2,D=_;if(s.Konva._fixTextRendering){const e=this.measureSize("M");D="alphabetic",C=(e.fontBoundingBoxAscent-e.fontBoundingBoxDescent)/2+a/2}var N=0,O=0;for(u===T&&e.setAttr("direction",u),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",D),e.setAttr("textAlign",v),l===_?f=(this.getHeight()-n*a-2*r)/2:l===k&&(f=this.getHeight()-n*a-2*r),e.translate(r,f+r),i=0;i<n;i++){N=0,O=0;var A,P,M=t[i],B=M.text,I=M.width,R=M.lastInParagraph;if(e.save(),m===E?N+=g-I-2*r:m===d&&(N+=(g-I-2*r)/2),S){e.save(),e.beginPath();const t=s.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2),n=N,i=C+O+t;e.moveTo(n,i),A=B.split(" ").length-1,P=m!==p||R?I:g-2*r,e.lineTo(n+Math.round(P),i),e.lineWidth=o/15;const a=this._getLinearGradient();e.strokeStyle=a||b,e.stroke(),e.restore()}if(x){e.save(),e.beginPath();const t=s.Konva._fixTextRendering?-Math.round(o/4):0;e.moveTo(N,C+O+t),A=B.split(" ").length-1,P=m!==p||R?I:g-2*r,e.lineTo(N+Math.round(P),C+O+t),e.lineWidth=o/15;const n=this._getLinearGradient();e.strokeStyle=n||b,e.stroke(),e.restore()}if(u===T||0===y&&m!==p)0!==y&&e.setAttr("letterSpacing",`${y}px`),this._partialTextX=N,this._partialTextY=C+O,this._partialText=B,e.fillStrokeShape(this);else{A=B.split(" ").length-1;const t=c(B);for(let n=0;n<t.length;n++){const i=t[n];" "!==i||R||m!==p||(N+=(g-2*r-I)/A),this._partialTextX=N,this._partialTextY=C+O,this._partialText=i,e.fillStrokeShape(this),N+=this.measureSize(i).width+y}}e.restore(),n>1&&(C+=a)}}_hitFunc(e){const t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}setText(e){const t=i.Util._isString(e)?e:null===e||void 0===e?"":e+"";return this._setAttr(y,t),this}getWidth(){const e=this.attrs.width===u||void 0===this.attrs.width;return e?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){const e=this.attrs.height===u||void 0===this.attrs.height;return e?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return i.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var t,n,i,r,o,s,a,l,c,u,d;let h,p=R(),f=this.fontSize();p.save(),p.font=this._getContextFont(),h=p.measureText(e),p.restore();const m=f/100;return{actualBoundingBoxAscent:null!==(t=h.actualBoundingBoxAscent)&&void 0!==t?t:71.58203125*m,actualBoundingBoxDescent:null!==(n=h.actualBoundingBoxDescent)&&void 0!==n?n:0,actualBoundingBoxLeft:null!==(i=h.actualBoundingBoxLeft)&&void 0!==i?i:-7.421875*m,actualBoundingBoxRight:null!==(r=h.actualBoundingBoxRight)&&void 0!==r?r:75.732421875*m,alphabeticBaseline:null!==(o=h.alphabeticBaseline)&&void 0!==o?o:0,emHeightAscent:null!==(s=h.emHeightAscent)&&void 0!==s?s:100*m,emHeightDescent:null!==(a=h.emHeightDescent)&&void 0!==a?a:-20*m,fontBoundingBoxAscent:null!==(l=h.fontBoundingBoxAscent)&&void 0!==l?l:91*m,fontBoundingBoxDescent:null!==(c=h.fontBoundingBoxDescent)&&void 0!==c?c:21*m,hangingBaseline:null!==(u=h.hangingBaseline)&&void 0!==u?u:72.80000305175781*m,ideographicBaseline:null!==(d=h.ideographicBaseline)&&void 0!==d?d:-21*m,width:h.width,height:f}}_getContextFont(){return this.fontStyle()+C+this.fontVariant()+C+(this.fontSize()+x)+B(this.fontFamily())}_addTextLine(e){const t=this.align();t===p&&(e=e.trim());const n=this._getTextWidth(e);return this.textArr.push({text:e,width:n,lastInParagraph:!1})}_getTextWidth(e){const t=this.letterSpacing(),n=e.length;return R().measureText(e).width+t*n}_setTextData(){let e=this.text().split("\n"),t=+this.fontSize(),n=0,i=this.lineHeight()*t,r=this.attrs.width,o=this.attrs.height,s=r!==u&&void 0!==r,a=o!==u&&void 0!==o,l=this.padding(),d=r-2*l,h=o-2*l,p=0,f=this.wrap(),m=f!==O,v=f!==N&&m,y=this.ellipsis();this.textArr=[],R().font=this._getContextFont();const b=y?this._getTextWidth(A):0;for(let u=0,w=e.length;u<w;++u){let t=e[u],r=this._getTextWidth(t);if(s&&r>d)while(t.length>0){let e=0,o=c(t).length,s="",l=0;while(e<o){const n=e+o>>>1,r=c(t),u=r.slice(0,n+1).join(""),f=this._getTextWidth(u),m=y&&a&&p+i>h,g=m?f+b:f;g<=d?(e=n+1,s=u,l=f):o=n}if(!s)break;{if(v){const n=c(t),i=c(s),r=n[i.length],o=r===C||r===g;let a;if(o&&l<=d)a=i.length;else{const e=i.lastIndexOf(C),t=i.lastIndexOf(g);a=Math.max(e,t)+1}a>0&&(e=a,s=n.slice(0,e).join(""),l=this._getTextWidth(s))}s=s.trimRight(),this._addTextLine(s),n=Math.max(n,l),p+=i;const o=this._shouldHandleEllipsis(p);if(o){this._tryToAddEllipsisToLastLine();break}const a=c(t);if(t=a.slice(e).join("").trimLeft(),t.length>0&&(r=this._getTextWidth(t),r<=d)){this._addTextLine(t),p+=i,n=Math.max(n,r);break}}}else this._addTextLine(t),p+=i,n=Math.max(n,r),this._shouldHandleEllipsis(p)&&u<w-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),a&&p+i>h)break}this.textHeight=t,this.textWidth=n}_shouldHandleEllipsis(e){const t=+this.fontSize(),n=this.lineHeight()*t,i=this.attrs.height,r=i!==u&&void 0!==i,o=this.padding(),s=i-2*o,a=this.wrap(),l=a!==O;return!l||r&&e+n>s}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,t=e!==u&&void 0!==e,n=this.padding(),i=e-2*n,r=this.ellipsis(),o=this.textArr[this.textArr.length-1];if(o&&r){if(t){const e=this._getTextWidth(o.text+A)<i;e||(o.text=o.text.slice(0,o.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(o.text+A)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=-1!==this.textDecoration().indexOf("underline")||-1!==this.textDecoration().indexOf("line-through"),t=this.hasShadow();return!(!e||!t)||super._useBufferCanvas()}}t.Text=$,$.prototype._fillFunc=L,$.prototype._strokeFunc=F,$.prototype.className=b,$.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,l._registerNode)($),r.Factory.overWriteSetter($,"width",(0,a.getNumberOrAutoValidator)()),r.Factory.overWriteSetter($,"height",(0,a.getNumberOrAutoValidator)()),r.Factory.addGetterSetter($,"direction",h),r.Factory.addGetterSetter($,"fontFamily","Arial"),r.Factory.addGetterSetter($,"fontSize",12,(0,a.getNumberValidator)()),r.Factory.addGetterSetter($,"fontStyle",S),r.Factory.addGetterSetter($,"fontVariant",S),r.Factory.addGetterSetter($,"padding",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter($,"align",v),r.Factory.addGetterSetter($,"verticalAlign",w),r.Factory.addGetterSetter($,"lineHeight",1,(0,a.getNumberValidator)()),r.Factory.addGetterSetter($,"wrap",D),r.Factory.addGetterSetter($,"ellipsis",!1,(0,a.getBooleanValidator)()),r.Factory.addGetterSetter($,"letterSpacing",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter($,"text","",(0,a.getStringValidator)()),r.Factory.addGetterSetter($,"textDecoration","")},2068:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(1312);class r extends Error{}function o(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}function s(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return o(t)}catch(n){return atob(t)}}function a(e,t){if("string"!==typeof e)throw new r("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,i=e.split(".")[n];if("string"!==typeof i)throw new r(`Invalid token specified: missing part #${n+1}`);let o;try{o=s(i)}catch(a){throw new r(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(o)}catch(a){throw new r(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}if(r.prototype.name="InvalidTokenError","undefined"===typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function l(e){if(!(this instanceof l))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var t,n,r=this,o=[],s={enable:!0,callbackList:[],interval:5},u=document.getElementsByTagName("script"),d=0;d<u.length;d++)-1===u[d].src.indexOf("keycloak.js")&&-1===u[d].src.indexOf("keycloak.min.js")||-1===u[d].src.indexOf("version=")||(r.iframeVersion=u[d].src.substring(u[d].src.indexOf("version=")+8).split("&")[0]);var h=!0,p=$(console.info),f=$(console.warn);function m(e){var t=null,n=window.crypto||window.msCrypto;if(n&&n.getRandomValues&&window.Uint8Array)return t=new Uint8Array(e),n.getRandomValues(t),t;t=new Array(e);for(var i=0;i<t.length;i++)t[i]=Math.floor(256*Math.random());return t}function g(e){return v(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function v(e,t){for(var n=m(e),i=new Array(e),r=0;r<e;r++)i[r]=t.charCodeAt(n[r]%t.length);return String.fromCharCode.apply(null,i)}function y(e,t){if("S256"!==e)throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);const n=new Uint8Array(i.arrayBuffer(t)),r=c(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"");return r}function b(e){var t={id_token:{acr:e}};return JSON.stringify(t)}function w(){return"undefined"!==typeof r.authServerUrl?"/"==r.authServerUrl.charAt(r.authServerUrl.length-1)?r.authServerUrl+"realms/"+encodeURIComponent(r.realm):r.authServerUrl+"/realms/"+encodeURIComponent(r.realm):void 0}function k(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function _(e,t){var n=e.code,i=e.error,o=e.prompt,s=(new Date).getTime();if(e["kc_action_status"]&&r.onActionUpdate&&r.onActionUpdate(e["kc_action_status"]),i)if("none"!=o)if(e.error_description&&"authentication_expired"===e.error_description)r.login(e.loginOptions);else{var a={error:i,error_description:e.error_description};r.onAuthError&&r.onAuthError(a),t&&t.setError(a)}else t&&t.setSuccess();else if("standard"!=r.flow&&(e.access_token||e.id_token)&&d(e.access_token,null,e.id_token,!0),"implicit"!=r.flow&&n){var l="code="+n+"&grant_type=authorization_code",c=r.endpoints.token(),u=new XMLHttpRequest;u.open("POST",c,!0),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),l+="&client_id="+encodeURIComponent(r.clientId),l+="&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(l+="&code_verifier="+e.pkceCodeVerifier),u.withCredentials=!0,u.onreadystatechange=function(){if(4==u.readyState)if(200==u.status){var e=JSON.parse(u.responseText);d(e["access_token"],e["refresh_token"],e["id_token"],"standard"===r.flow),M()}else r.onAuthError&&r.onAuthError(),t&&t.setError()},u.send(l)}function d(n,i,o,a){s=(s+(new Date).getTime())/2,C(n,i,o,s),h&&r.idTokenParsed&&r.idTokenParsed.nonce!=e.storedNonce?(p("[KEYCLOAK] Invalid nonce, clearing token"),r.clearToken(),t&&t.setError()):a&&(r.onAuthSuccess&&r.onAuthSuccess(),t&&t.setSuccess())}}function S(t){var n,i=O();function o(e){r.endpoints=e?{authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:{authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var e=w()+"/protocol/openid-connect/login-status-iframe.html";return r.iframeVersion&&(e=e+"?version="+r.iframeVersion),e},thirdPartyCookiesIframe:function(){var e=w()+"/protocol/openid-connect/3p-cookies/step1.html";return r.iframeVersion&&(e=e+"?version="+r.iframeVersion),e},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(e?"string"===typeof e&&(n=e):n="keycloak.json",n){var s=new XMLHttpRequest;s.open("GET",n,!0),s.setRequestHeader("Accept","application/json"),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status||x(s)){var e=JSON.parse(s.responseText);r.authServerUrl=e["auth-server-url"],r.realm=e["realm"],r.clientId=e["resource"],o(null),i.setSuccess()}else i.setError()},s.send()}else{if(!e.clientId)throw"clientId missing";r.clientId=e.clientId;var a=e["oidcProvider"];if(a)if("string"===typeof a){var l;l="/"==a.charAt(a.length-1)?a+".well-known/openid-configuration":a+"/.well-known/openid-configuration";s=new XMLHttpRequest;s.open("GET",l,!0),s.setRequestHeader("Accept","application/json"),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status||x(s)){var e=JSON.parse(s.responseText);o(e),i.setSuccess()}else i.setError()},s.send()}else o(a),i.setSuccess();else{if(!e["url"])for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++)if(c[u].src.match(/.*keycloak\.js/)){e.url=c[u].src.substr(0,c[u].src.indexOf("/js/keycloak.js"));break}if(!e.realm)throw"realm missing";r.authServerUrl=e.url,r.realm=e.realm,o(null),i.setSuccess()}}return i.promise}function x(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function C(e,t,n,i){if(r.tokenTimeoutHandle&&(clearTimeout(r.tokenTimeoutHandle),r.tokenTimeoutHandle=null),t?(r.refreshToken=t,r.refreshTokenParsed=a(t)):(delete r.refreshToken,delete r.refreshTokenParsed),n?(r.idToken=n,r.idTokenParsed=a(n)):(delete r.idToken,delete r.idTokenParsed),e){if(r.token=e,r.tokenParsed=a(e),r.sessionId=r.tokenParsed.sid,r.authenticated=!0,r.subject=r.tokenParsed.sub,r.realmAccess=r.tokenParsed.realm_access,r.resourceAccess=r.tokenParsed.resource_access,i&&(r.timeSkew=Math.floor(i/1e3)-r.tokenParsed.iat),null!=r.timeSkew&&(p("[KEYCLOAK] Estimated time difference between browser and server is "+r.timeSkew+" seconds"),r.onTokenExpired)){var o=1e3*(r.tokenParsed["exp"]-(new Date).getTime()/1e3+r.timeSkew);p("[KEYCLOAK] Token expires in "+Math.round(o/1e3)+" s"),o<=0?r.onTokenExpired():r.tokenTimeoutHandle=setTimeout(r.onTokenExpired,o)}}else delete r.token,delete r.tokenParsed,delete r.subject,delete r.realmAccess,delete r.resourceAccess,r.authenticated=!1}function E(){var e="0123456789abcdef",t=v(36,e).split("");t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-";var n=t.join("");return n}function T(e){var t=D(e);if(t){var i=n.get(t.state);return i&&(t.valid=!0,t.redirectUri=i.redirectUri,t.storedNonce=i.nonce,t.prompt=i.prompt,t.pkceCodeVerifier=i.pkceCodeVerifier,t.loginOptions=i.loginOptions),t}}function D(e){var t;switch(r.flow){case"standard":t=["code","state","session_state","kc_action_status","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}t.push("error"),t.push("error_description"),t.push("error_uri");var n,i,o=e.indexOf("?"),s=e.indexOf("#");if("query"===r.responseMode&&-1!==o?(n=e.substring(0,o),i=N(e.substring(o+1,-1!==s?s:e.length),t),""!==i.paramsString&&(n+="?"+i.paramsString),-1!==s&&(n+=e.substring(s))):"fragment"===r.responseMode&&-1!==s&&(n=e.substring(0,s),i=N(e.substring(s+1),t),""!==i.paramsString&&(n+="#"+i.paramsString)),i&&i.oauthParams)if("standard"===r.flow||"hybrid"===r.flow){if((i.oauthParams.code||i.oauthParams.error)&&i.oauthParams.state)return i.oauthParams.newUrl=n,i.oauthParams}else if("implicit"===r.flow&&(i.oauthParams.access_token||i.oauthParams.error)&&i.oauthParams.state)return i.oauthParams.newUrl=n,i.oauthParams}function N(e,t){for(var n=e.split("&"),i={paramsString:"",oauthParams:{}},r=0;r<n.length;r++){var o=n[r].indexOf("="),s=n[r].slice(0,o);-1!==t.indexOf(s)?i.oauthParams[s]=n[r].slice(o+1):(""!==i.paramsString&&(i.paramsString+="&"),i.paramsString+=n[r])}return i}function O(){var e={setSuccess:function(t){e.resolve(t)},setError:function(t){e.reject(t)}};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}function A(e,t,n){var i=null,r=new Promise((function(e,r){i=setTimeout((function(){r({error:n})}),t)}));return Promise.race([e,r]).finally((function(){clearTimeout(i)}))}function P(){var e=O();if(!s.enable)return e.setSuccess(),e.promise;if(s.iframe)return e.setSuccess(),e.promise;var t=document.createElement("iframe");s.iframe=t,t.onload=function(){var t=r.endpoints.authorize();"/"===t.charAt(0)?s.iframeOrigin=k():s.iframeOrigin=t.substring(0,t.indexOf("/",8)),e.setSuccess()};var n=r.endpoints.checkSessionIframe();t.setAttribute("src",n),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t);var i=function(e){if(e.origin===s.iframeOrigin&&s.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&r.clearToken();for(var t=s.callbackList.splice(0,s.callbackList.length),n=t.length-1;n>=0;--n){var i=t[n];"error"==e.data?i.setError():i.setSuccess("unchanged"==e.data)}}};return window.addEventListener("message",i,!1),e.promise}function M(){s.enable&&r.token&&setTimeout((function(){B().then((function(e){e&&M()}))}),1e3*s.interval)}function B(){var e=O();if(s.iframe&&s.iframeOrigin){var t=r.clientId+" "+(r.sessionId?r.sessionId:"");s.callbackList.push(e);var n=s.iframeOrigin;1==s.callbackList.length&&s.iframe.contentWindow.postMessage(t,n)}else e.setSuccess();return e.promise}function I(){var e=O();if(s.enable||r.silentCheckSsoRedirectUri){var t=document.createElement("iframe");t.setAttribute("src",r.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var n=function(i){t.contentWindow===i.source&&("supported"!==i.data&&"unsupported"!==i.data||("unsupported"===i.data&&(f("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"),s.enable=!1,r.silentCheckSsoFallback&&(r.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",n),e.setSuccess()))};window.addEventListener("message",n,!1)}else e.setSuccess();return A(e.promise,r.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function R(e){if(!e||"default"==e)return{login:function(e){return window.location.assign(r.createLoginUrl(e)),O().promise},logout:async function(e){const n=e?.logoutMethod??r.logoutMethod;if("GET"===n)return void window.location.replace(r.createLogoutUrl(e));const i=r.createLogoutUrl(e),o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:r.idToken,client_id:r.clientId,post_logout_redirect_uri:t.redirectUri(e,!1)})});if(o.redirected)window.location.href=o.url;else{if(!o.ok)throw new Error("Logout failed, request returned an error code.");window.location.reload()}},register:function(e){return window.location.assign(r.createRegisterUrl(e)),O().promise},accountManagement:function(){var e=r.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";return window.location.href=e,O().promise},redirectUri:function(e,t){return e&&e.redirectUri?e.redirectUri:r.redirectUri?r.redirectUri:location.href}};if("cordova"==e){s.enable=!1;var n=function(e,t,n){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,n):window.open(e,t,n)},i=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(t,n){return t[n]=e.cordovaOptions[n],t}),{}):{}},o=function(e){return Object.keys(e).reduce((function(t,n){return t.push(n+"="+e[n]),t}),[]).join(",")},a=function(e){var t=i(e);return t.location="no",e&&"none"==e.prompt&&(t.hidden="yes"),o(t)},l=function(){return r.redirectUri||"http://localhost"};return{login:function(e){var t=O(),i=a(e),o=r.createLoginUrl(e),s=n(o,"_blank",i),c=!1,u=!1,d=function(){u=!0,s.close()};return s.addEventListener("loadstart",(function(e){if(0==e.url.indexOf(l())){var n=T(e.url);_(n,t),d(),c=!0}})),s.addEventListener("loaderror",(function(e){if(!c)if(0==e.url.indexOf(l())){var n=T(e.url);_(n,t),d(),c=!0}else t.setError(),d()})),s.addEventListener("exit",(function(e){u||t.setError({reason:"closed_by_user"})})),t.promise},logout:function(e){var t,i=O(),o=r.createLogoutUrl(e),s=n(o,"_blank","location=no,hidden=yes,clearcache=yes");return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(l())&&s.close()})),s.addEventListener("loaderror",(function(e){0==e.url.indexOf(l())||(t=!0),s.close()})),s.addEventListener("exit",(function(e){t?i.setError():(r.clearToken(),i.setSuccess())})),i.promise},register:function(e){var t=O(),i=r.createRegisterUrl(),o=a(e),s=n(i,"_blank",o);return s.addEventListener("loadstart",(function(e){if(0==e.url.indexOf(l())){s.close();var n=T(e.url);_(n,t)}})),t.promise},accountManagement:function(){var e=r.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";var t=n(e,"_blank","location=no");t.addEventListener("loadstart",(function(e){0==e.url.indexOf(l())&&t.close()}))},redirectUri:function(e){return l()}}}if("cordova-native"==e)return s.enable=!1,{login:function(e){var t=O(),n=r.createLoginUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var n=T(e.url);_(n,t)})),window.cordova.plugins.browsertab.openUrl(n),t.promise},logout:function(e){var t=O(),n=r.createLogoutUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),r.clearToken(),t.setSuccess()})),window.cordova.plugins.browsertab.openUrl(n),t.promise},register:function(e){var t=O(),n=r.createRegisterUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var n=T(e.url);_(n,t)})),window.cordova.plugins.browsertab.openUrl(n),t.promise},accountManagement:function(){var e=r.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(e)},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:r.redirectUri?r.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}r.init=function(e){if(r.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");r.didInitialize=!0,r.authenticated=!1,n=V();var i=["default","cordova","cordova-native"];if(t=e&&i.indexOf(e.adapter)>-1?R(e.adapter):e&&"object"===typeof e.adapter?e.adapter:window.Cordova||window.cordova?R("cordova"):R(),e){if("undefined"!==typeof e.useNonce&&(h=e.useNonce),"undefined"!==typeof e.checkLoginIframe&&(s.enable=e.checkLoginIframe),e.checkLoginIframeInterval&&(s.interval=e.checkLoginIframeInterval),"login-required"===e.onLoad&&(r.loginRequired=!0),e.responseMode){if("query"!==e.responseMode&&"fragment"!==e.responseMode)throw"Invalid value for responseMode";r.responseMode=e.responseMode}if(e.flow){switch(e.flow){case"standard":r.responseType="code";break;case"implicit":r.responseType="id_token token";break;case"hybrid":r.responseType="code id_token token";break;default:throw"Invalid value for flow"}r.flow=e.flow}if(null!=e.timeSkew&&(r.timeSkew=e.timeSkew),e.redirectUri&&(r.redirectUri=e.redirectUri),e.silentCheckSsoRedirectUri&&(r.silentCheckSsoRedirectUri=e.silentCheckSsoRedirectUri),"boolean"===typeof e.silentCheckSsoFallback?r.silentCheckSsoFallback=e.silentCheckSsoFallback:r.silentCheckSsoFallback=!0,"undefined"!==typeof e.pkceMethod){if("S256"!==e.pkceMethod&&!1!==e.pkceMethod)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${e.pkceMethod}.`);r.pkceMethod=e.pkceMethod}else r.pkceMethod="S256";"boolean"===typeof e.enableLogging?r.enableLogging=e.enableLogging:r.enableLogging=!1,"POST"===e.logoutMethod?r.logoutMethod="POST":r.logoutMethod="GET","string"===typeof e.scope&&(r.scope=e.scope),"string"===typeof e.acrValues&&(r.acrValues=e.acrValues),"number"===typeof e.messageReceiveTimeout&&e.messageReceiveTimeout>0?r.messageReceiveTimeout=e.messageReceiveTimeout:r.messageReceiveTimeout=1e4}r.responseMode||(r.responseMode="fragment"),r.responseType||(r.responseType="code",r.flow="standard");var o=O(),a=O();a.promise.then((function(){r.onReady&&r.onReady(r.authenticated),o.setSuccess(r.authenticated)})).catch((function(e){o.setError(e)}));var l=S();function c(){var t=function(t){t||(i.prompt="none"),e&&e.locale&&(i.locale=e.locale),r.login(i).then((function(){a.setSuccess()})).catch((function(e){a.setError(e)}))},n=function(){var e=document.createElement("iframe"),t=r.createLoginUrl({prompt:"none",redirectUri:r.silentCheckSsoRedirectUri});e.setAttribute("src",t),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var n=function(t){if(t.origin===window.location.origin&&e.contentWindow===t.source){var i=T(t.data);_(i,a),document.body.removeChild(e),window.removeEventListener("message",n)}};window.addEventListener("message",n)},i={};switch(e.onLoad){case"check-sso":s.enable?P().then((function(){B().then((function(e){e?a.setSuccess():r.silentCheckSsoRedirectUri?n():t(!1)})).catch((function(e){a.setError(e)}))})):r.silentCheckSsoRedirectUri?n():t(!1);break;case"login-required":t(!0);break;default:throw"Invalid value for onLoad"}}function u(){var t=T(window.location.href);if(t&&window.history.replaceState(window.history.state,null,t.newUrl),t&&t.valid)return P().then((function(){_(t,a)})).catch((function(e){a.setError(e)}));e?e.token&&e.refreshToken?(C(e.token,e.refreshToken,e.idToken),s.enable?P().then((function(){B().then((function(e){e?(r.onAuthSuccess&&r.onAuthSuccess(),a.setSuccess(),M()):a.setSuccess()})).catch((function(e){a.setError(e)}))})):r.updateToken(-1).then((function(){r.onAuthSuccess&&r.onAuthSuccess(),a.setSuccess()})).catch((function(t){r.onAuthError&&r.onAuthError(),e.onLoad?c():a.setError(t)}))):e.onLoad?c():a.setSuccess():a.setSuccess()}function d(){var e=O(),t=function(){"interactive"!==document.readyState&&"complete"!==document.readyState||(document.removeEventListener("readystatechange",t),e.setSuccess())};return document.addEventListener("readystatechange",t),t(),e.promise}return l.then((function(){d().then(I).then(u).catch((function(e){o.setError(e)}))})),l.catch((function(e){o.setError(e)})),o.promise},r.login=function(e){return t.login(e)},r.createLoginUrl=function(e){var i,o=E(),s=E(),a=t.redirectUri(e),l={state:o,nonce:s,redirectUri:encodeURIComponent(a),loginOptions:e};e&&e.prompt&&(l.prompt=e.prompt),i=e&&"register"==e.action?r.endpoints.register():r.endpoints.authorize();var c=e&&e.scope||r.scope;c?-1===c.indexOf("openid")&&(c="openid "+c):c="openid";var u=i+"?client_id="+encodeURIComponent(r.clientId)+"&redirect_uri="+encodeURIComponent(a)+"&state="+encodeURIComponent(o)+"&response_mode="+encodeURIComponent(r.responseMode)+"&response_type="+encodeURIComponent(r.responseType)+"&scope="+encodeURIComponent(c);if(h&&(u=u+"&nonce="+encodeURIComponent(s)),e&&e.prompt&&(u+="&prompt="+encodeURIComponent(e.prompt)),e&&e.maxAge&&(u+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(u+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(u+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(u+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(u+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr){var d=b(e.acr);u+="&claims="+encodeURIComponent(d)}if((e&&e.acrValues||r.acrValues)&&(u+="&acr_values="+encodeURIComponent(e.acrValues||r.acrValues)),r.pkceMethod){var p=g(96);l.pkceCodeVerifier=p;var f=y(r.pkceMethod,p);u+="&code_challenge="+f,u+="&code_challenge_method="+r.pkceMethod}return n.add(l),u},r.logout=function(e){return t.logout(e)},r.createLogoutUrl=function(e){const n=e?.logoutMethod??r.logoutMethod;if("POST"===n)return r.endpoints.logout();var i=r.endpoints.logout()+"?client_id="+encodeURIComponent(r.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(t.redirectUri(e,!1));return r.idToken&&(i+="&id_token_hint="+encodeURIComponent(r.idToken)),i},r.register=function(e){return t.register(e)},r.createRegisterUrl=function(e){return e||(e={}),e.action="register",r.createLoginUrl(e)},r.createAccountUrl=function(e){var n=w(),i=void 0;return"undefined"!==typeof n&&(i=n+"/account?referrer="+encodeURIComponent(r.clientId)+"&referrer_uri="+encodeURIComponent(t.redirectUri(e))),i},r.accountManagement=function(){return t.accountManagement()},r.hasRealmRole=function(e){var t=r.realmAccess;return!!t&&t.roles.indexOf(e)>=0},r.hasResourceRole=function(e,t){if(!r.resourceAccess)return!1;var n=r.resourceAccess[t||r.clientId];return!!n&&n.roles.indexOf(e)>=0},r.loadUserProfile=function(){var e=w()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var n=O();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.profile=JSON.parse(t.responseText),n.setSuccess(r.profile)):n.setError())},t.send(),n.promise},r.loadUserInfo=function(){var e=r.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var n=O();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.userInfo=JSON.parse(t.responseText),n.setSuccess(r.userInfo)):n.setError())},t.send(),n.promise},r.isTokenExpired=function(e){if(!r.tokenParsed||!r.refreshToken&&"implicit"!=r.flow)throw"Not authenticated";if(null==r.timeSkew)return p("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=r.tokenParsed["exp"]-Math.ceil((new Date).getTime()/1e3)+r.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";t-=e}return t<0},r.updateToken=function(e){var t=O();if(!r.refreshToken)return t.setError(),t.promise;e=e||5;var n=function(){var n=!1;if(-1==e?(n=!0,p("[KEYCLOAK] Refreshing token: forced refresh")):r.tokenParsed&&!r.isTokenExpired(e)||(n=!0,p("[KEYCLOAK] Refreshing token: token expired")),n){var i="grant_type=refresh_token&refresh_token="+r.refreshToken,s=r.endpoints.token();if(o.push(t),1==o.length){var a=new XMLHttpRequest;a.open("POST",s,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.withCredentials=!0,i+="&client_id="+encodeURIComponent(r.clientId);var l=(new Date).getTime();a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){p("[KEYCLOAK] Token refreshed"),l=(l+(new Date).getTime())/2;var e=JSON.parse(a.responseText);C(e["access_token"],e["refresh_token"],e["id_token"],l),r.onAuthRefreshSuccess&&r.onAuthRefreshSuccess();for(var t=o.pop();null!=t;t=o.pop())t.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),400==a.status&&r.clearToken(),r.onAuthRefreshError&&r.onAuthRefreshError();for(t=o.pop();null!=t;t=o.pop())t.setError(!0)}},a.send(i)}}else t.setSuccess(!1)};if(s.enable){var i=B();i.then((function(){n()})).catch((function(e){t.setError(e)}))}else n();return t.promise},r.clearToken=function(){r.token&&(C(null,null,null),r.onAuthLogout&&r.onAuthLogout(),r.loginRequired&&r.login())};var L=function(){if(!(this instanceof L))return new L;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var e=this;function t(){for(var e=(new Date).getTime(),t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(n&&0==n.indexOf("kc-callback-")){var i=localStorage.getItem(n);if(i)try{var r=JSON.parse(i).expires;(!r||r<e)&&localStorage.removeItem(n)}catch(o){localStorage.removeItem(n)}}}}e.get=function(e){if(e){var n="kc-callback-"+e,i=localStorage.getItem(n);return i&&(localStorage.removeItem(n),i=JSON.parse(i)),t(),i}},e.add=function(e){t();var n="kc-callback-"+e.state;e.expires=(new Date).getTime()+36e5,localStorage.setItem(n,JSON.stringify(e))}},F=function(){if(!(this instanceof F))return new F;var e=this;e.get=function(e){if(e){var r=n("kc-callback-"+e);return i("kc-callback-"+e,"",t(-100)),r?JSON.parse(r):void 0}},e.add=function(e){i("kc-callback-"+e.state,JSON.stringify(e),t(60))},e.removeItem=function(e){i(e,"",t(-100))};var t=function(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t},n=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var r=n[i];while(" "==r.charAt(0))r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""},i=function(e,t,n){var i=e+"="+t+"; expires="+n.toUTCString()+"; ";document.cookie=i}};function V(){try{return new L}catch(e){}return new F}function $(e){return function(){r.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}function c(e){const t=String.fromCodePoint(...e);return btoa(t)}},2139:(e,t,n)=>{"use strict";n.d(t,{T:()=>Zn});var i=n(5215),r="6.19.7",o=n(7412),s=n(6936),a=n(9653),l="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],u=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var i=n();if(i){var r=i.getIntegration(e);if(r){var o=i.getClient(),s=o?o.getOptions():{},a=d(r._options,s);return h(t,a)?null:t}}return t}))},e.id="InboundFilters",e}();function d(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),{allowUrls:(0,i.gz)(e.whitelistUrls||[],e.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:(0,i.gz)(e.blacklistUrls||[],e.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:(0,i.gz)(e.ignoreErrors||[],t.ignoreErrors||[],c),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}function h(e,t){return t.ignoreInternal&&v(e)?(l&&o.vF.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,s.$X)(e)),!0):p(e,t.ignoreErrors)?(l&&o.vF.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,s.$X)(e)),!0):f(e,t.denyUrls)?(l&&o.vF.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,s.$X)(e)+".\nUrl: "+b(e)),!0):!m(e,t.allowUrls)&&(l&&o.vF.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,s.$X)(e)+".\nUrl: "+b(e)),!0)}function p(e,t){return!(!t||!t.length)&&g(e).some((function(e){return t.some((function(t){return(0,a._c)(e,t)}))}))}function f(e,t){if(!t||!t.length)return!1;var n=b(e);return!!n&&t.some((function(e){return(0,a._c)(n,e)}))}function m(e,t){if(!t||!t.length)return!0;var n=b(e);return!n||t.some((function(e){return(0,a._c)(n,e)}))}function g(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,i=void 0===n?"":n,r=t.value,a=void 0===r?"":r;return[""+a,i+": "+a]}catch(c){return l&&o.vF.error("Cannot extract message for event "+(0,s.$X)(e)),[]}return[]}function v(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}function y(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function b(e){try{if(e.stacktrace)return y(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(n){}return t?y(t):null}catch(i){return l&&o.vF.error("Cannot extract url for event "+(0,s.$X)(e)),null}}var w,k=n(8411),_=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){w=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,k.sp)(this)||this;return w.apply(n,e)}},e.id="FunctionToString",e}(),S=n(4237);function x(e,t){!0===t.debug&&(l?o.vF.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,S.BF)(),i=n.getScope();i&&i.update(t.initialScope);var r=new e(t);n.bindClient(r)}var C=n(6475),E=n(9277),T=n(9752),D=Object.setPrototypeOf||({__proto__:[]}instanceof Array?N:O);function N(e,t){return e.__proto__=t,e}function O(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}var A=function(e){function t(t){var n=this.constructor,i=e.call(this,t)||this;return i.message=t,i.name=n.prototype.constructor.name,D(i,n.prototype),i}return(0,i.C6)(t,e),t}(Error),P=n(1761),M=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B(e){return"http"===e||"https"===e}function I(e,t){void 0===t&&(t=!1);var n=e.host,i=e.path,r=e.pass,o=e.port,s=e.projectId,a=e.protocol,l=e.publicKey;return a+"://"+l+(t&&r?":"+r:"")+"@"+n+(o?":"+o:"")+"/"+(i?i+"/":i)+s}function R(e){var t=M.exec(e);if(!t)throw new A("Invalid Sentry Dsn: "+e);var n=(0,i.zs)(t.slice(1),6),r=n[0],o=n[1],s=n[2],a=void 0===s?"":s,l=n[3],c=n[4],u=void 0===c?"":c,d=n[5],h="",p=d,f=p.split("/");if(f.length>1&&(h=f.slice(0,-1).join("/"),p=f.pop()),p){var m=p.match(/^\d+/);m&&(p=m[0])}return L({host:l,pass:a,path:h,projectId:p,port:u,protocol:r,publicKey:o})}function L(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function F(e){if(P.w){var t=e.port,n=e.projectId,i=e.protocol,r=["protocol","publicKey","host","projectId"];if(r.forEach((function(t){if(!e[t])throw new A("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new A("Invalid Sentry Dsn: Invalid projectId "+n);if(!B(i))throw new A("Invalid Sentry Dsn: Invalid protocol "+i);if(t&&isNaN(parseInt(t,10)))throw new A("Invalid Sentry Dsn: Invalid port "+t);return!0}}function V(e){var t="string"===typeof e?R(e):L(e);return F(t),t}var $=n(3816),z=n(690),U=n(9297);function j(){var e="function"===typeof WeakSet,t=e?new WeakSet:[];function n(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var i=0;i<t.length;i++){var r=t[i];if(r===n)return!0}return t.push(n),!1}function i(n){if(e)t.delete(n);else for(var i=0;i<t.length;i++)if(t[i]===n){t.splice(i,1);break}}return[n,i]}var H=n(3917);function G(e,t,n){void 0===t&&(t=1/0),void 0===n&&(n=1/0);try{return q("",e,t,n)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function W(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var i=G(e,t);return X(i)>n?W(e,t-1,n):i}function q(e,t,n,r,o){void 0===n&&(n=1/0),void 0===r&&(r=1/0),void 0===o&&(o=j());var s=(0,i.zs)(o,2),a=s[0],l=s[1],c=t;if(c&&"function"===typeof c.toJSON)try{return c.toJSON()}catch(g){}if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,$.yr)(t))return t;var u=K(e,t);if(!u.startsWith("[object "))return u;if(0===n)return u.replace("object ","");if(a(t))return"[Circular ~]";var d=Array.isArray(t)?[]:{},h=0,p=(0,$.bJ)(t)||(0,$.xH)(t)?(0,k.W4)(t):t;for(var f in p)if(Object.prototype.hasOwnProperty.call(p,f)){if(h>=r){d[f]="[MaxProperties ~]";break}var m=p[f];d[f]=q(f,m,n-1,r,o),h+=1}return l(t),d}function K(e,t){try{return"domain"===e&&t&&"object"===typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!==typeof n.g&&t===n.g?"[Global]":"undefined"!==typeof window&&t===window?"[Window]":"undefined"!==typeof document&&t===document?"[Document]":(0,$.mE)(t)?"[SyntheticEvent]":"number"===typeof t&&t!==t?"[NaN]":void 0===t?"[undefined]":"function"===typeof t?"[Function: "+(0,H.qQ)(t)+"]":"symbol"===typeof t?"["+String(t)+"]":"bigint"===typeof t?"[BigInt: "+String(t)+"]":"[object "+Object.getPrototypeOf(t).constructor.name+"]"}catch(i){return"**non-serializable** ("+i+")"}}function Y(e){return~-encodeURI(e).split(/%..|./).length}function X(e){return Y(JSON.stringify(e))}var J=[];function Q(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function Z(e){var t=e.defaultIntegrations&&(0,i.gz)(e.defaultIntegrations)||[],n=e.integrations,r=(0,i.gz)(Q(t));Array.isArray(n)?r=(0,i.gz)(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),Q(n)):"function"===typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name})),s="Debug";return-1!==o.indexOf(s)&&r.push.apply(r,(0,i.gz)(r.splice(o.indexOf(s),1))),r}function ee(e){-1===J.indexOf(e.name)&&(e.setupOnce(T.l,S.BF),J.push(e.name),l&&o.vF.log("Integration installed: "+e.name))}function te(e){var t={};return Z(e).forEach((function(e){t[e.name]=e,ee(e)})),(0,k.my)(t,"initialized",!0),t}var ne="Not capturing exception because it's already been captured.",ie=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=V(t.dsn))}return e.prototype.captureException=function(e,t,n){var i=this;if(!(0,s.GR)(e)){var r=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return i._captureEvent(e,t,n)})).then((function(e){r=e}))),r}l&&o.vF.log(ne)},e.prototype.captureMessage=function(e,t,n,i){var r=this,o=n&&n.event_id,s=(0,$.sO)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return r._captureEvent(e,n,i)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&(0,s.GR)(t.originalException))){var i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){i=e}))),i}l&&o.vF.log(ne)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!==typeof e.release?l&&o.vF.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):l&&o.vF.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=te(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return l&&o.vF.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o=!1,s=!1,a=t.exception&&t.exception.values;if(a){s=!0;try{for(var l=(0,i.Ju)(a),c=l.next();!c.done;c=l.next()){var u=c.value,d=u.mechanism;if(d&&!1===d.handled){o=!0;break}}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}var h="ok"===e.status,p=h&&0===e.errors||h&&o;p&&(e.update((0,i.Cl)((0,i.Cl)({},o&&{status:"crashed"}),{errors:e.errors||Number(s||o)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new z.T2((function(n){var i=0,r=1,o=setInterval((function(){0==t._numProcessing?(clearInterval(o),n(!0)):(i+=r,e&&i>=e&&(clearInterval(o),n(!1)))}),r)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions(),a=o.normalizeDepth,l=void 0===a?3:a,c=o.normalizeMaxBreadth,u=void 0===c?1e3:c,d=(0,i.Cl)((0,i.Cl)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,s.eJ)()),timestamp:e.timestamp||(0,U.lu)()});this._applyClientOptions(d),this._applyIntegrationsMetadata(d);var h=t;n&&n.captureContext&&(h=T.H.clone(h).update(n.captureContext));var p=(0,z.XW)(d);return h&&(p=h.applyToEvent(d,n)),p.then((function(e){return e&&(e.sdkProcessingMetadata=(0,i.Cl)((0,i.Cl)({},e.sdkProcessingMetadata),{normalizeDepth:G(l)+" ("+typeof l+")"})),"number"===typeof l&&l>0?r._normalizeEvent(e,l,u):e}))},e.prototype._normalizeEvent=function(e,t,n){if(!e)return null;var r=(0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,i.Cl)((0,i.Cl)({},e),e.data&&{data:G(e.data,t,n)})}))}),e.user&&{user:G(e.user,t,n)}),e.contexts&&{contexts:G(e.contexts,t,n)}),e.extra&&{extra:G(e.extra,t,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=(0,i.Cl)((0,i.Cl)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,i=t.release,r=t.dist,o=t.maxValueLength,s=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==i&&(e.release=i),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=(0,a.xv)(e.message,s));var l=e.exception&&e.exception.values&&e.exception.values[0];l&&l.value&&(l.value=(0,a.xv)(l.value,s));var c=e.request;c&&c.url&&(c.url=(0,a.xv)(c.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=(0,i.gz)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){l&&o.vF.error(e)}))},e.prototype._processEvent=function(e,t,n){var i=this,r=this.getOptions(),o=r.beforeSend,s=r.sampleRate,a=this.getTransport();function l(e,t){a.recordLostEvent&&a.recordLostEvent(e,t)}if(!this._isEnabled())return(0,z.xg)(new A("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"===typeof s&&Math.random()>s?(l("sample_rate","event"),(0,z.xg)(new A("Discarding event because it's not included in the random sample (sampling rate = "+s+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw l("event_processor",e.type||"event"),new A("An event processor returned null, will not send event.");var i=t&&t.data&&!0===t.data.__sentry__;if(i||c||!o)return n;var r=o(n,t);return re(r)})).then((function(t){if(null===t)throw l("before_send",e.type||"event"),new A("`beforeSend` returned `null`, will not send event.");var r=n&&n.getSession&&n.getSession();return!c&&r&&i._updateSessionFromEvent(r,t),i._sendEvent(t),t})).then(null,(function(e){if(e instanceof A)throw e;throw i.captureException(e,{data:{__sentry__:!0},originalException:e}),new A("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}();function re(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,$.Qg)(e))return e.then((function(e){if(!(0,$.Qd)(e)&&null!==e)throw new A(t);return e}),(function(e){throw new A("beforeSend rejected with "+e)}));if(!(0,$.Qd)(e)&&null!==e)throw new A(t);return e}var oe="7";(function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=V(e),this.metadata=t,this._tunnel=n}e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){return ae(this._dsnObject)},e.prototype.getStoreEndpoint=function(){return ue(this._dsnObject)},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return de(this._dsnObject)},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return pe(this._dsnObject,this._tunnel)}})();function se(e,t,n){return{initDsn:e,metadata:t||{},dsn:V(e),tunnel:n}}function ae(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function le(e,t){return""+ae(e)+e.projectId+"/"+t+"/"}function ce(e){return(0,k.u4)({sentry_key:e.publicKey,sentry_version:oe})}function ue(e){return le(e,"store")}function de(e){return ue(e)+"?"+ce(e)}function he(e){return le(e,"envelope")}function pe(e,t){return t||he(e)+"?"+ce(e)}function fe(e,t){var n=V(e),i=ae(n)+"embed/error-page/",r="dsn="+I(n);for(var o in t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&(r+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(r+="&email="+encodeURIComponent(t.user.email))}else r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);return i+"?"+r}function me(e,t){return void 0===t&&(t=[]),[e,t]}function ge(e){var t=(0,i.zs)(e,2),n=(0,i.zs)(t[1],1),r=(0,i.zs)(n[0],1),o=r[0];return o.type}function ve(e){var t=(0,i.zs)(e,2),n=t[0],r=t[1],o=JSON.stringify(n);return r.reduce((function(e,t){var n=(0,i.zs)(t,2),r=n[0],o=n[1],s=(0,$.sO)(o)?String(o):JSON.stringify(o);return e+"\n"+JSON.stringify(r)+"\n"+s}),o)}function ye(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk,n=t.name,i=t.version;return{name:n,version:i}}}function be(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=(0,i.gz)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=(0,i.gz)(e.sdk.packages||[],t.packages||[]),e):e}function we(e,t){var n=ye(t),r=(0,i.Cl)((0,i.Cl)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:I(t.dsn)}),o="aggregates"in e?"sessions":"session",s=[{type:o},e],a=me(r,[s]);return[a,o]}function ke(e,t){var n=(0,i.zs)(we(e,t),2),r=n[0],o=n[1];return{body:ve(r),type:o,url:pe(t.dsn,t.tunnel)}}function _e(e,t){var n=ye(t),r=e.type||"event",o=(e.sdkProcessingMetadata||{}).transactionSampling,s=o||{},a=s.method,l=s.rate;be(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;var c=(0,i.Cl)((0,i.Cl)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:I(t.dsn)}),u=[{type:r,sample_rates:[{id:a,rate:l}]},e];return me(c,[u])}function Se(e,t){var n,r=ye(t),o=e.type||"event",s="transaction"===o||!!t.tunnel,a=(e.sdkProcessingMetadata||{}).transactionSampling,l=a||{},c=l.method,u=l.rate;be(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(g){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=g;try{n=JSON.stringify(G(e))}catch(v){var d=v;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:d.message,stack:d.stack}})}}var h={body:n,type:o,url:s?pe(t.dsn,t.tunnel):de(t.dsn)};if(s){var p=(0,i.Cl)((0,i.Cl)({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:I(t.dsn)}),f=[{type:o,sample_rates:[{id:c,rate:u}]},h.body],m=me(p,[f]);h.body=ve(m)}return h}var xe,Ce=function(){function e(){}return e.prototype.sendEvent=function(e){return(0,z.XW)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return(0,z.XW)(!0)},e}(),Ee=function(){function e(e){this._options=e,this._options.dsn||l&&o.vF.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new A("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new A("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=se(this._options.dsn,this._options._metadata,this._options.tunnel),n=_e(e,t);this._newTransport.send(n).then(null,(function(e){l&&o.vF.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){l&&o.vF.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=se(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,i.zs)(we(e,t),1),r=n[0];this._newTransport.send(r).then(null,(function(e){l&&o.vF.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){l&&o.vF.error("Error while sending session:",e)}));else l&&o.vF.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Ce},e}();(function(e){e["Fatal"]="fatal",e["Error"]="error",e["Warning"]="warning",e["Log"]="log",e["Info"]="info",e["Debug"]="debug",e["Critical"]="critical"})(xe||(xe={}));var Te=n(1336),De="?",Ne=10,Oe=20,Ae=30,Pe=40,Me=50;function Be(e,t,n,i){var r={filename:e,function:t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}var Ie=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Re=/\((\S*)(?::(\d+))(?::(\d+))\)/,Le=function(e){var t=Ie.exec(e);if(t){var n=t[2]&&0===t[2].indexOf("eval");if(n){var r=Re.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}var o=(0,i.zs)(Qe(t[1]||De,t[2]),2),s=o[0],a=o[1];return Be(a,s,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Fe=[Ae,Le],Ve=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ze=function(e){var t,n=Ve.exec(e);if(n){var r=n[3]&&n[3].indexOf(" > eval")>-1;if(r){var o=$e.exec(n[3]);o&&(n[1]=n[1]||"eval",n[3]=o[1],n[4]=o[2],n[5]="")}var s=n[3],a=n[1]||De;return t=(0,i.zs)(Qe(a,s),2),a=t[0],s=t[1],Be(s,a,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Ue=[Me,ze],je=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,He=function(e){var t=je.exec(e);return t?Be(t[2],t[1]||De,+t[3],t[4]?+t[4]:void 0):void 0},Ge=[Pe,He],We=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,qe=function(e){var t=We.exec(e);return t?Be(t[2],t[3]||De,+t[1]):void 0},Ke=[Ne,qe],Ye=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Xe=function(e){var t=Ye.exec(e);return t?Be(t[5],t[3]||t[4]||De,+t[1],+t[2]):void 0},Je=[Oe,Xe],Qe=function(e,t){var n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:De,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function Ze(e){var t=nt(e),n={type:e&&e.name,value:ot(e)};return t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function et(e,t,n){var i={exception:{values:[{type:(0,$.xH)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,k.HF)(e)}]},extra:{__serialized__:W(e)}};if(t){var r=nt(t);r.length&&(i.stacktrace={frames:r})}return i}function tt(e){return{exception:{values:[Ze(e)]}}}function nt(e){var t=e.stacktrace||e.stack||"",n=rt(e);try{return(0,H.gd)(Ke,Je,Fe,Ge,Ue)(t,n)}catch(i){}return[]}var it=/Minified React error #\d+;/i;function rt(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(it.test(e.message))return 1}return 0}function ot(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function st(e,t,n){var i=t&&t.syntheticException||void 0,r=lt(e,i,n);return(0,s.M6)(r),r.level=xe.Error,t&&t.event_id&&(r.event_id=t.event_id),(0,z.XW)(r)}function at(e,t,n,i){void 0===t&&(t=xe.Info);var r=n&&n.syntheticException||void 0,o=ct(e,r,i);return o.level=t,n&&n.event_id&&(o.event_id=n.event_id),(0,z.XW)(o)}function lt(e,t,n,r){var o;if((0,$.T2)(e)&&e.error){var a=e;return tt(a.error)}if((0,$.BD)(e)||(0,$.W6)(e)){var l=e;if("stack"in e)o=tt(e);else{var c=l.name||((0,$.BD)(l)?"DOMError":"DOMException"),u=l.message?c+": "+l.message:c;o=ct(u,t,n),(0,s.gO)(o,u)}return"code"in l&&(o.tags=(0,i.Cl)((0,i.Cl)({},o.tags),{"DOMException.code":""+l.code})),o}if((0,$.bJ)(e))return tt(e);if((0,$.Qd)(e)||(0,$.xH)(e)){var d=e;return o=et(d,t,r),(0,s.M6)(o,{synthetic:!0}),o}return o=ct(e,t,n),(0,s.gO)(o,""+e,void 0),(0,s.M6)(o,{synthetic:!0}),o}function ct(e,t,n){var i={message:e};if(n&&t){var r=nt(t);r.length&&(i.stacktrace={frames:r})}return i}function ut(e){var t=[];function n(){return void 0===e||t.length<e}function i(e){return t.splice(t.indexOf(e),1)[0]}function r(e){if(!n())return(0,z.xg)(new A("Not adding Promise due to buffer limit reached."));var r=e();return-1===t.indexOf(r)&&t.push(r),r.then((function(){return i(r)})).then(null,(function(){return i(r).then(null,(function(){}))})),r}function o(e){return new z.T2((function(n,i){var r=t.length;if(!r)return n(!0);var o=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){(0,z.XW)(e).then((function(){--r||(clearTimeout(o),n(!0))}),i)}))}))}return{$:t,add:r,drain:o}}var dt=6e4;function ht(e,t){void 0===t&&(t=Date.now());var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var i=Date.parse(""+e);return isNaN(i)?dt:i-t}function pt(e,t){return e[t]||e.all||0}function ft(e,t,n){return void 0===n&&(n=Date.now()),pt(e,t)>n}function mt(e,t,n){var r,o,s,a;void 0===n&&(n=Date.now());var l=(0,i.Cl)({},e),c=t["x-sentry-rate-limits"],u=t["retry-after"];if(c)try{for(var d=(0,i.Ju)(c.trim().split(",")),h=d.next();!h.done;h=d.next()){var p=h.value,f=p.split(":",2),m=parseInt(f[0],10),g=1e3*(isNaN(m)?60:m);if(f[1])try{for(var v=(s=void 0,(0,i.Ju)(f[1].split(";"))),y=v.next();!y.done;y=v.next()){var b=y.value;l[b]=n+g}}catch(w){s={error:w}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}else l.all=n+g}}catch(k){r={error:k}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}else u&&(l.all=n+ht(u,n));return l}function gt(e){return e>=200&&e<300?"success":429===e?"rate_limit":e>=400&&e<500?"invalid":e>=500?"failed":"unknown"}var vt=30;function yt(e,t,n){void 0===n&&(n=ut(e.bufferSize||vt));var i={},r=function(e){return n.drain(e)};function o(e){var r=ge(e),o="event"===r?"error":r,s={category:o,body:ve(e)};if(ft(i,o))return(0,z.xg)({status:"rate_limit",reason:bt(i,o)});var a=function(){return t(s).then((function(e){var t=e.body,n=e.headers,r=e.reason,s=e.statusCode,a=gt(s);return n&&(i=mt(i,n)),"success"===a?(0,z.XW)({status:a,reason:r}):(0,z.xg)({status:a,reason:r||t||("rate_limit"===a?bt(i,o):"Unknown transport error")})}))};return n.add(a)}return{send:o,flush:r}}function bt(e,t){return"Too many "+t+" requests, backing off until: "+new Date(pt(e,t)).toISOString()}function wt(e){e.then(null,(function(e){console.error(e)}))}var kt,_t="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,St=(0,C.V)();function xt(){if(kt)return kt;if((0,Te.ap)(St.fetch))return kt=St.fetch.bind(St);var e=St.document,t=St.fetch;if(e&&"function"===typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(r){_t&&o.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return kt=t.bind(St)}function Ct(e,t){var n="[object Navigator]"===Object.prototype.toString.call(St&&St.navigator),i=n&&"function"===typeof St.navigator.sendBeacon;if(i){var r=St.navigator.sendBeacon.bind(St.navigator);return r(e,t)}if((0,Te.vm)()){var o=xt();return wt(o(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}))}}function Et(e,t){function n(n){var r=(0,i.Cl)({body:n.body,method:"POST",referrerPolicy:"origin"},e.requestOptions);return t(e.url,r).then((function(e){return e.text().then((function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}}))}))}return void 0===t&&(t=xt()),yt({bufferSize:e.bufferSize},n)}function Tt(e,t,n){var i=[{type:"client_report"},{timestamp:n||(0,U.lu)(),discarded_events:e}];return me(t?{dsn:t}:{},[i])}function Dt(e){var t=e;return"event"===t?"error":t}var Nt=(0,C.V)(),Ot=function(){function e(e){var t=this;this.options=e,this._buffer=ut(30),this._rateLimits={},this._outcomes={},this._api=se(e.dsn,e._metadata,e.tunnel),this.url=de(this._api.dsn),this.options.sendClientReports&&Nt.document&&Nt.document.addEventListener("visibilitychange",(function(){"hidden"===Nt.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(Se(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(ke(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var i=Dt(t)+":"+e;_t&&o.vF.log("Adding outcome: "+i),this._outcomes[i]=(n=this._outcomes[i],(null!==n&&void 0!==n?n:0)+1)}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){_t&&o.vF.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=pe(this._api.dsn,this._api.tunnel),n=Object.keys(e).map((function(t){var n=(0,i.zs)(t.split(":"),2),r=n[0],o=n[1];return{reason:o,category:r,quantity:e[t]}})),r=Tt(n,this._api.tunnel&&I(this._api.dsn));try{Ct(t,ve(r))}catch(s){_t&&o.vF.error(s)}}else _t&&o.vF.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,i=e.headers,r=e.resolve,s=e.reject,a=gt(n.status);this._rateLimits=mt(this._rateLimits,i),this._isRateLimited(t)&&_t&&o.vF.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),"success"!==a?s(n):r({status:a})},e.prototype._disabledUntil=function(e){var t=Dt(e);return new Date(pt(this._rateLimits,t))},e.prototype._isRateLimited=function(e){var t=Dt(e);return ft(this._rateLimits,t)},e}(),At=function(e){function t(t,n){void 0===n&&(n=xt());var i=e.call(this,t)||this;return i._fetch=n,i}return(0,i.C6)(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var i={body:e.body,method:"POST",referrerPolicy:(0,Te.K8)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add((function(){return new z.T2((function(t,r){n._fetch(e.url,i).then((function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})})).catch(r)}))})).then(void 0,(function(t){throw t instanceof A?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Ot),Pt=4;function Mt(e){function t(t){return new z.T2((function(n,i){var r=new XMLHttpRequest;for(var o in r.onreadystatechange=function(){if(r.readyState===Pt){var e={body:r.response,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")},reason:r.statusText,statusCode:r.status};n(e)}},r.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&r.setRequestHeader(o,e.headers[o]);r.send(t.body)}))}return yt({bufferSize:e.bufferSize},t)}var Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new z.T2((function(t,i){var r=new XMLHttpRequest;for(var o in r.onreadystatechange=function(){if(4===r.readyState){var o={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})}},r.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&r.setRequestHeader(o,n.options.headers[o]);r.send(e.body)}))})).then(void 0,(function(t){throw t instanceof A?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Ot),It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.eventFromException=function(e,t){return st(e,t,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=xe.Info),at(e,t,n,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=(0,i.Cl)((0,i.Cl)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=se(t.dsn,t._metadata,t.tunnel),r=pe(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(t);if((0,Te.vm)()){var o=(0,i.Cl)({},t.fetchParameters);return this._newTransport=Et({requestOptions:o,url:r}),new At(t)}return this._newTransport=Mt({url:r,headers:t.headers}),new Bt(t)},t}(Ee);function Rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=(0,S.BF)();if(r&&r[e])return r[e].apply(r,(0,i.gz)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Lt(e,t){var n=new Error("Sentry syntheticException");return Rt("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function Ft(e){Rt("withScope",e)}var Vt=(0,C.V)(),$t=0;function zt(){return $t>0}function Ut(){$t+=1,setTimeout((function(){$t-=1}))}function jt(e,t,n){if(void 0===t&&(t={}),"function"!==typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if((0,k.sp)(e))return e}catch(c){return e}var o=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var o=r.map((function(e){return jt(e,t)}));return e.apply(this,o)}catch(a){throw Ut(),Ft((function(e){e.addEventProcessor((function(e){return t.mechanism&&((0,s.gO)(e,void 0,void 0),(0,s.M6)(e,t.mechanism)),e.extra=(0,i.Cl)((0,i.Cl)({},e.extra),{arguments:r}),e})),Lt(a)})),a}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a])}catch(u){}(0,k.pO)(o,e),(0,k.my)(e,"__sentry_wrapped__",o);try{var l=Object.getOwnPropertyDescriptor(o,"name");l.configurable&&Object.defineProperty(o,"name",{get:function(){return e.name}})}catch(u){}return o}function Ht(e){if(void 0===e&&(e={}),Vt.document)if(e.eventId)if(e.dsn){var t=Vt.document.createElement("script");t.async=!0,t.src=fe(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=Vt.document.head||Vt.document.body;n&&n.appendChild(t)}else _t&&o.vF.error("Missing dsn option in showReportDialog call");else _t&&o.vF.error("Missing eventId option in showReportDialog call")}var Gt=n(9766),Wt=["fatal","error","warning","log","info","debug","critical"];function qt(e){return-1!==Wt.indexOf(e)}function Kt(e){return"warn"===e?xe.Warning:qt(e)?e:xe.Log}var Yt=function(){function e(t){this.name=e.id,this._options=(0,i.Cl)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,S.BF)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,s.$X)(e)},{event:e})},e.prototype.setupOnce=function(){this._options.console&&(0,E.O)("console",Jt),this._options.dom&&(0,E.O)("dom",Xt(this._options.dom)),this._options.xhr&&(0,E.O)("xhr",Qt),this._options.fetch&&(0,E.O)("fetch",Zt),this._options.history&&(0,E.O)("history",en)},e.id="Breadcrumbs",e}();function Xt(e){function t(t){var n,i="object"===typeof e?e.serializeAttribute:void 0;"string"===typeof i&&(i=[i]);try{n=t.event.target?(0,Gt.H)(t.event.target,i):(0,Gt.H)(t.event,i)}catch(r){n="<unknown>"}0!==n.length&&(0,S.BF)().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})}return t}function Jt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Kt(e.level),message:(0,a.gt)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+((0,a.gt)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,S.BF)().addBreadcrumb(t,{input:e.args,level:e.level})}function Qt(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,i=t.url,r=t.status_code,o=t.body;(0,S.BF)().addBreadcrumb({category:"xhr",data:{method:n,url:i,status_code:r},type:"http"},{xhr:e.xhr,input:o})}else;}function Zt(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,S.BF)().addBreadcrumb({category:"fetch",data:e.fetchData,level:xe.Error,type:"http"},{data:e.error,input:e.args}):(0,S.BF)().addBreadcrumb({category:"fetch",data:(0,i.Cl)((0,i.Cl)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function en(e){var t=(0,C.V)(),n=e.from,i=e.to,r=(0,s.Dl)(t.location.href),o=(0,s.Dl)(n),a=(0,s.Dl)(i);o.path||(o=r),r.protocol===a.protocol&&r.host===a.host&&(i=a.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),(0,S.BF)().addBreadcrumb({category:"navigation",data:{from:n,to:i}})}var tn=function(e){function t(t){void 0===t&&(t={});var n=this;return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:r}],version:r},n=e.call(this,It,t)||this,n}return(0,i.C6)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=(0,C.V)().document;t&&(this._isEnabled()?Ht((0,i.Cl)((0,i.Cl)({},e),{dsn:e.dsn||this.getDsn()})):_t&&o.vF.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,i){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,i)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Yt);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(ie),nn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],rn=function(){function e(t){this.name=e.id,this._options=(0,i.Cl)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,C.V)();this._options.setTimeout&&(0,k.GS)(e,"setTimeout",on),this._options.setInterval&&(0,k.GS)(e,"setInterval",on),this._options.requestAnimationFrame&&(0,k.GS)(e,"requestAnimationFrame",sn),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,k.GS)(XMLHttpRequest.prototype,"send",an);var t=this._options.eventTarget;if(t){var n=Array.isArray(t)?t:nn;n.forEach(ln)}},e.id="TryCatch",e}();function on(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0];return t[0]=jt(i,{mechanism:{data:{function:(0,H.qQ)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function sn(e){return function(t){return e.apply(this,[jt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,H.qQ)(e)},handled:!0,type:"instrument"}})])}}function an(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach((function(e){e in i&&"function"===typeof i[e]&&(0,k.GS)(i,e,(function(t){var n={mechanism:{data:{function:e,handler:(0,H.qQ)(t)},handled:!0,type:"instrument"}},i=(0,k.sp)(t);return i&&(n.mechanism.data.handler=(0,H.qQ)(i)),jt(t,n)}))})),e.apply(this,t)}}function ln(e){var t=(0,C.V)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,k.GS)(n,"addEventListener",(function(t){return function(n,i,r){try{"function"===typeof i.handleEvent&&(i.handleEvent=jt(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:(0,H.qQ)(i),target:e},handled:!0,type:"instrument"}}))}catch(o){}return t.apply(this,[n,jt(i,{mechanism:{data:{function:"addEventListener",handler:(0,H.qQ)(i),target:e},handled:!0,type:"instrument"}}),r])}})),(0,k.GS)(n,"removeEventListener",(function(e){return function(t,n,i){var r=n;try{var o=r&&r.__sentry_wrapped__;o&&e.call(this,t,o,i)}catch(s){}return e.call(this,t,r,i)}})))}var cn=function(){function e(t){this.name=e.id,this._installFunc={onerror:un,onunhandledrejection:dn},this._options=(0,i.Cl)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e=this._options;for(var t in e){var n=this._installFunc[t];n&&e[t]&&(mn(t),n(),this._installFunc[t]=void 0)}},e.id="GlobalHandlers",e}();function un(){(0,E.O)("error",(function(e){var t=(0,i.zs)(vn(),2),n=t[0],r=t[1];if(n.getIntegration(cn)){var o=e.msg,s=e.url,a=e.line,l=e.column,c=e.error;if(!(zt()||c&&c.__sentry_own_request__)){var u=void 0===c&&(0,$.Kg)(o)?pn(o,s,a,l):fn(lt(c||o,void 0,r,!1),s,a,l);u.level=xe.Error,gn(n,c,u,"onerror")}}}))}function dn(){(0,E.O)("unhandledrejection",(function(e){var t=(0,i.zs)(vn(),2),n=t[0],r=t[1];if(n.getIntegration(cn)){var o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(a){}if(zt()||o&&o.__sentry_own_request__)return!0;var s=(0,$.sO)(o)?hn(o):lt(o,void 0,r,!0);s.level=xe.Error,gn(n,o,s,"onunhandledrejection")}}))}function hn(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}}function pn(e,t,n,i){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=(0,$.T2)(e)?e.message:e,s="Error",a=o.match(r);a&&(s=a[1],o=a[2]);var l={exception:{values:[{type:s,value:o}]}};return fn(l,t,n,i)}function fn(e,t,n,i){var r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,d=(0,$.Kg)(t)&&t.length>0?t:(0,Gt.$)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function mn(e){_t&&o.vF.log("Global Handler attached: "+e)}function gn(e,t,n,i){(0,s.M6)(n,{handled:!1,type:i}),e.captureEvent(n,{originalException:t})}function vn(){var e=(0,S.BF)(),t=e.getClient(),n=t&&t.getOptions().attachStacktrace;return[e,n]}var yn="cause",bn=5,wn=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||yn,this._limit=t.limit||bn}return e.prototype.setupOnce=function(){(0,T.l)((function(t,n){var i=(0,S.BF)().getIntegration(e);return i?kn(i._key,i._limit,t,n):t}))},e.id="LinkedErrors",e}();function kn(e,t,n,r){if(!n.exception||!n.exception.values||!r||!(0,$.tH)(r.originalException,Error))return n;var o=_n(t,r.originalException,e);return n.exception.values=(0,i.gz)(o,n.exception.values),n}function _n(e,t,n,r){if(void 0===r&&(r=[]),!(0,$.tH)(t[n],Error)||r.length+1>=e)return r;var o=Ze(t[n]);return _n(e,t[n],n,(0,i.gz)([o],r))}var Sn=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var i=n().getIntegration(e);if(i){try{if(xn(t,i._previousEvent))return _t&&o.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){return i._previousEvent=t}return i._previousEvent=t}return t}))},e.id="Dedupe",e}();function xn(e,t){return!!t&&(!!Cn(e,t)||!!En(e,t))}function Cn(e,t){var n=e.message,i=t.message;return!(!n&&!i)&&(!(n&&!i||!n&&i)&&(n===i&&(!!Dn(e,t)&&!!Tn(e,t))))}function En(e,t){var n=Nn(t),i=Nn(e);return!(!n||!i)&&(n.type===i.type&&n.value===i.value&&(!!Dn(e,t)&&!!Tn(e,t)))}function Tn(e,t){var n=On(e),i=On(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var o=i[r],s=n[r];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function Dn(e,t){var n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(r){return!1}}function Nn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function On(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}else if(e.stacktrace)return e.stacktrace.frames}var An=(0,C.V)(),Pn=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){(0,T.l)((function(t){if((0,S.BF)().getIntegration(e)){if(!An.navigator&&!An.location&&!An.document)return t;var n=t.request&&t.request.url||An.location&&An.location.href,r=(An.document||{}).referrer,o=(An.navigator||{}).userAgent,s=(0,i.Cl)((0,i.Cl)((0,i.Cl)({},t.request&&t.request.headers),r&&{Referer:r}),o&&{"User-Agent":o}),a=(0,i.Cl)((0,i.Cl)({},n&&{url:n}),{headers:s});return(0,i.Cl)((0,i.Cl)({},t),{request:a})}return t}))},e.id="UserAgent",e}(),Mn=[new u,new _,new rn,new Yt,new cn,new wn,new Sn,new Pn];function Bn(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Mn),void 0===e.release){var t=(0,C.V)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),x(tn,e),e.autoSessionTracking&&Rn()}function In(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function Rn(){var e=(0,C.V)(),t=e.document;if("undefined"!==typeof t){var n=(0,S.BF)();n.captureSession&&(In(n),(0,E.O)("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&In((0,S.BF)())})))}else _t&&o.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var Ln=["activate","mount","update"],Fn=/(?:^|[-_])(\w)/g,Vn=function(e){return e.replace(Fn,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")},$n="<Root>",zn="<Anonymous>",Un=function(e,t){var n="";while(t)t%2===1&&(n+=e),t>1&&(e+=e),t>>=1;return n},jn=function(e,t){if(!e)return zn;if(e.$root===e)return $n;var n=e.$options,i=n.name||n._componentTag,r=n.__file;if(!i&&r){var o=r.match(/([^/\\]+)\.vue$/);o&&(i=o[1])}return(i?"<"+Vn(i)+">":zn)+(r&&!1!==t?" at "+r:"")},Hn=function(e){var t,n,i;if(((null===(t=e)||void 0===t?void 0:t._isVue)||(null===(n=e)||void 0===n?void 0:n.__isVue))&&(null===(i=e)||void 0===i?void 0:i.$parent)){var r=[],o=0;while(e){if(r.length>0){var s=r[r.length-1];if(s.constructor===e.constructor){o+=1,e=e.$parent;continue}o>0&&(r[r.length-1]=[s,o],o=0)}r.push(e),e=e.$parent}var a=r.map((function(e,t){return""+((0===t?"---\x3e ":Un(" ",5+2*t))+(Array.isArray(e)?jn(e[0])+"... ("+e[1]+" recursive calls)":jn(e)))})).join("\n");return"\n\nfound in\n\n"+a}return"\n\n(found in "+jn(e)+")"},Gn=function(e,t){var n=e.config,i=n.errorHandler,r=n.warnHandler,o=n.silent;e.config.errorHandler=function(n,s,a){var l=jn(s,!1),c=s?Hn(s):"",u={componentName:l,lifecycleHook:a,trace:c};if(s&&t.attachProps&&(u.propsData=s.$options.propsData||s.$props),setTimeout((function(){(0,S.BF)().withScope((function(e){e.setContext("vue",u),(0,S.BF)().captureException(n)}))})),"function"===typeof i&&i.call(e,n,s,a),t.logErrors){var d="undefined"!==typeof console,h="Error in "+a+': "'+(n&&n.toString())+'"';r?r.call(null,h,s,c):d&&!o&&console.error("[Vue warn]: "+h+c)}}},Wn="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,qn="ui.vue",Kn={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Yn(){var e;return null===(e=(0,S.BF)().getScope())||void 0===e?void 0:e.getTransaction()}function Xn(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout((function(){var n;(null===(n=e.$root)||void 0===n?void 0:n.$_sentryRootSpan)&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)}),n)}var Jn=function(e){var t,n,r=(e.hooks||[]).concat(Ln).filter((function(e,t,n){return n.indexOf(e)===t})),s={},a=function(t){var n,r,a=Kn[t];if(!a)return Wn&&o.vF.warn("Unknown hook: "+t),"continue";var l=function(n){s[n]=function(){var i,r=this.$root===this;if(r){var o=Yn();o&&(this.$_sentryRootSpan=this.$_sentryRootSpan||o.startChild({description:"Application Render",op:qn}))}var s=jn(this,!1),l=Array.isArray(e.trackComponents)?e.trackComponents.includes(s):e.trackComponents;if(r||l)if(this.$_sentrySpans=this.$_sentrySpans||{},n==a[0]){o=(null===(i=this.$root)||void 0===i?void 0:i.$_sentryRootSpan)||Yn();o&&(this.$_sentrySpans[t]=o.startChild({description:"Vue <"+s+">",op:qn+"."+t}))}else{var c=this.$_sentrySpans[t];if(!c)return;c.finish(),Xn(this,(0,U.zf)(),e.timeout)}}};try{for(var c=(n=void 0,(0,i.Ju)(a)),u=c.next();!u.done;u=c.next()){var d=u.value;l(d)}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}};try{for(var l=(0,i.Ju)(r),c=l.next();!c.done;c=l.next()){var u=c.value;a(u)}}catch(d){t={error:d}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s},Qn={Vue:(0,C.V)().Vue,attachProps:!0,logErrors:!1,hooks:Ln,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:r}],version:r}}};function Zn(e){void 0===e&&(e={});var t=(0,i.Cl)((0,i.Cl)({},Qn),e);if(Bn(t),t.Vue||t.app)if(t.app){var n=Array.isArray(t.app)?t.app:[t.app];n.forEach((function(e){return ei(e,t)}))}else t.Vue&&ei(t.Vue,t);else Wn&&o.vF.warn("Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")}var ei=function(e,t){Gn(e,t),("tracesSampleRate"in t||"tracesSampler"in t)&&e.mixin(Jn((0,i.Cl)((0,i.Cl)({},t),t.tracingOptions)))}},2250:(e,t,n)=>{"use strict";function i(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function r(){return!i()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function o(e,t){return e.require(t)}function s(t){var n;try{n=o(e,t)}catch(r){}try{var i=o(e,"process").cwd;n=o(e,i()+"/node_modules/"+t)}catch(r){}return n}n.d(t,{fj:()=>o,wD:()=>r,Vw:()=>s}),e=n.hmd(e)},2512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sepia=void 0;const n=function(e){const t=e.data,n=t.length;for(let i=0;i<n;i+=4){const e=t[i+0],n=t[i+1],r=t[i+2];t[i+0]=Math.min(255,.393*e+.769*n+.189*r),t[i+1]=Math.min(255,.349*e+.686*n+.168*r),t[i+2]=Math.min(255,.272*e+.534*n+.131*r)}};t.Sepia=n},2650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contrast=void 0;const i=n(4892),r=n(6536),o=n(5483),s=function(e){const t=Math.pow((this.contrast()+100)/100,2),n=e.data,i=n.length;let r=150,o=150,s=150;for(let a=0;a<i;a+=4)r=n[a],o=n[a+1],s=n[a+2],r/=255,r-=.5,r*=t,r+=.5,r*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,s/=255,s-=.5,s*=t,s+=.5,s*=255,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,n[a]=r,n[a+1]=o,n[a+2]=s};t.Contrast=s,i.Factory.addGetterSetter(r.Node,"contrast",0,(0,o.getNumberValidator)(),i.Factory.afterSetFilter)},3168:(e,t,n)=>{"use strict";function i(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{A:()=>Nt});const r={},o=()=>{},s=Object.assign,a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,c=(e,t)=>l.call(e,t),u=Array.isArray,d=e=>"[object Map]"===b(e),h=e=>"[object Set]"===b(e),p=e=>"function"==typeof e,f=e=>"string"==typeof e,m=e=>"symbol"==typeof e,g=e=>null!==e&&"object"==typeof e,v=e=>(g(e)||p(e))&&p(e.then)&&p(e.catch),y=Object.prototype.toString,b=e=>y.call(e),w=e=>b(e).slice(8,-1),k=e=>"[object Object]"===b(e),_=e=>f(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=((e=>{const t=Object.create(null)})((e=>e.charAt(0).toUpperCase()+e.slice(1))),(e,t)=>!Object.is(e,t)),x=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let C;const E=()=>C||(C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:{});let T;const D=e=>{const t=new Set(e);return t.w=0,t.n=0,t},N=e=>(e.w&M)>0,O=e=>(e.n&M)>0,A=new WeakMap;let P=0,M=1;const B=30;let I;const R=Symbol(""),L=Symbol("");class F{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=T){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=I,t=$;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=I,I=this,$=!0,M=1<<++P,P<=B?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=M})(this):V(this),this.fn()}finally{P<=B&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];N(r)&&!O(r)?r.delete(e):t[n++]=r,r.w&=~M,r.n&=~M}t.length=n}})(this),M=1<<--P,I=this.parent,$=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){I===this?this.deferStop=!0:this.active&&(V(this),this.onStop&&this.onStop(),this.active=!1)}}function V(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let $=!0;const z=[];function U(){z.push($),$=!1}function j(){const e=z.pop();$=void 0===e||e}function H(e,t,n){if($&&I){let t=A.get(e);t||A.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=D()),function(e){let t=!1;P<=B?O(e)||(e.n|=M,t=!N(e)):t=!e.has(I),t&&(e.add(I),I.deps.push(e))}(i)}}function G(e,t,n,i,r,o){const s=A.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&u(e)){const e=Number(i);s.forEach(((t,n)=>{("length"===n||!m(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":u(e)?_(n)&&a.push(s.get("length")):(a.push(s.get(R)),d(e)&&a.push(s.get(L)));break;case"delete":u(e)||(a.push(s.get(R)),d(e)&&a.push(s.get(L)));break;case"set":d(e)&&a.push(s.get(R))}if(1===a.length)a[0]&&W(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);W(D(e))}}function W(e,t){const n=u(e)?e:[...e];for(const i of n)i.computed&&q(i,t);for(const i of n)i.computed||q(i,t)}function q(e,t){(e!==I||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const K=i("__proto__,__v_isRef,__isVue"),Y=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(m)),X=J();function J(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Be(this);for(let t=0,r=this.length;t<r;t++)H(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(Be)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){U();const n=Be(this)[t].apply(this,e);return j(),n}})),e}function Q(e){const t=Be(this);return H(t,"has",e),t.hasOwnProperty(e)}class Z{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const i=this._isReadonly,r=this._shallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return r;if("__v_raw"===t&&n===(i?r?Te:Ee:r?Ce:xe).get(e))return e;const o=u(e);if(!i){if(o&&c(X,t))return Reflect.get(X,t,n);if("hasOwnProperty"===t)return Q}const s=Reflect.get(e,t,n);return(m(t)?Y.has(t):K(t))?s:(i||H(e,"get",t),r?s:Le(s)?o&&_(t)?s:s.value:g(s)?i?Ne(s):De(s):s)}}class ee extends Z{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];if(Pe(r)&&Le(r)&&!Le(n))return!1;if(!this._shallow&&(Me(n)||Pe(n)||(r=Be(r),n=Be(n)),!u(e)&&Le(r)&&!Le(n)))return r.value=n,!0;const o=u(e)&&_(t)?Number(t)<e.length:c(e,t),s=Reflect.set(e,t,n,i);return e===Be(i)&&(o?S(n,r)&&G(e,"set",t,n,r):G(e,"add",t,n)),s}deleteProperty(e,t){const n=c(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&G(e,"delete",t,void 0,i),r}has(e,t){const n=Reflect.has(e,t);return m(t)&&Y.has(t)||H(e,"has",t),n}ownKeys(e){return H(e,"iterate",u(e)?"length":R),Reflect.ownKeys(e)}}class te extends Z{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const ne=new ee,ie=new te,re=(new te(!0),e=>e),oe=e=>Reflect.getPrototypeOf(e);function se(e,t,n=!1,i=!1){const r=Be(e=e.__v_raw),o=Be(t);n||(S(t,o)&&H(r,"get",t),H(r,"get",o));const{has:s}=oe(r),a=i?re:n?Re:Ie;return s.call(r,t)?a(e.get(t)):s.call(r,o)?a(e.get(o)):void(e!==r&&e.get(t))}function ae(e,t=!1){const n=this.__v_raw,i=Be(n),r=Be(e);return t||(S(e,r)&&H(i,"has",e),H(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function le(e,t=!1){return e=e.__v_raw,!t&&H(Be(e),"iterate",R),Reflect.get(e,"size",e)}function ce(e){e=Be(e);const t=Be(this);return oe(t).has.call(t,e)||(t.add(e),G(t,"add",e,e)),this}function ue(e,t){t=Be(t);const n=Be(this),{has:i,get:r}=oe(n);let o=i.call(n,e);!o&&(e=Be(e),o=i.call(n,e));const s=r.call(n,e);return n.set(e,t),o?S(t,s)&&G(n,"set",e,t,s):G(n,"add",e,t),this}function de(e){const t=Be(this),{has:n,get:i}=oe(t);let r=n.call(t,e);!r&&(e=Be(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,s=t.delete(e);return r&&G(t,"delete",e,void 0,o),s}function he(){const e=Be(this),t=0!==e.size,n=void 0,i=e.clear();return t&&G(e,"clear",void 0,void 0,n),i}function pe(e,t){return function(n,i){const r=this,o=r.__v_raw,s=Be(o),a=t?re:e?Re:Ie;return!e&&H(s,"iterate",R),o.forEach(((e,t)=>n.call(i,a(e),a(t),r)))}}function fe(e,t,n){return function(...i){const r=this.__v_raw,o=Be(r),s=d(o),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...i),u=n?re:t?Re:Ie;return!t&&H(o,"iterate",l?L:R),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function me(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ge(){const e={get(e){return se(this,e)},get size(){return le(this)},has:ae,add:ce,set:ue,delete:de,clear:he,forEach:pe(!1,!1)},t={get(e){return se(this,e,!1,!0)},get size(){return le(this)},has:ae,add:ce,set:ue,delete:de,clear:he,forEach:pe(!1,!0)},n={get(e){return se(this,e,!0)},get size(){return le(this,!0)},has(e){return ae.call(this,e,!0)},add:me("add"),set:me("set"),delete:me("delete"),clear:me("clear"),forEach:pe(!0,!1)},i={get(e){return se(this,e,!0,!0)},get size(){return le(this,!0)},has(e){return ae.call(this,e,!0)},add:me("add"),set:me("set"),delete:me("delete"),clear:me("clear"),forEach:pe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=fe(r,!1,!1),n[r]=fe(r,!0,!1),t[r]=fe(r,!1,!0),i[r]=fe(r,!0,!0)})),[e,n,t,i]}const[ve,ye,be,we]=ge();function ke(e,t){const n=t?e?we:be:e?ye:ve;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(c(n,i)&&i in t?n:t,i,r)}const _e={get:ke(!1,!1)},Se={get:ke(!0,!1)};ke(!0,!0);const xe=new WeakMap,Ce=new WeakMap,Ee=new WeakMap,Te=new WeakMap;function De(e){return Pe(e)?e:Oe(e,!1,ne,_e,xe)}function Ne(e){return Oe(e,!0,ie,Se,Ee)}function Oe(e,t,n,i,r){if(!g(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?i:n);return r.set(e,l),l}function Ae(e){return Pe(e)?Ae(e.__v_raw):!(!e||!e.__v_isReactive)}function Pe(e){return!(!e||!e.__v_isReadonly)}function Me(e){return!(!e||!e.__v_isShallow)}function Be(e){const t=e&&e.__v_raw;return t?Be(t):e}const Ie=e=>g(e)?De(e):e,Re=e=>g(e)?Ne(e):e;function Le(e){return!(!e||!0!==e.__v_isRef)}const Fe={get:(e,t,n)=>{return Le(i=Reflect.get(e,t,n))?i.value:i;var i},set:(e,t,n,i)=>{const r=e[t];return Le(r)&&!Le(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Ve(e,t,n,i){let r;try{r=i?e(...i):e()}catch(e){ze(e,t,n)}return r}function $e(e,t,n,i){if(p(e)){const r=Ve(e,t,n,i);return r&&v(r)&&r.catch((e=>{ze(e,t,n)})),r}const r=[];for(let o=0;o<e.length;o++)r.push($e(e[o],t,n,i));return r}function ze(e,t,n,i=!0){t&&t.vnode;if(t){let i=t.parent;const r=t.proxy,o=n;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;i=i.parent}const s=t.appContext.config.errorHandler;if(s)return void Ve(s,null,10,[e,r,o])}!function(e){console.error(e)}(e,0,0,i)}let Ue=!1,je=!1;const He=[];let Ge=0;const We=[];let qe=null,Ke=0;const Ye=Promise.resolve();let Xe=null;function Je(e){const t=Xe||Ye;return e?t.then(this?e.bind(this):e):t}function Qe(e){He.length&&He.includes(e,Ue&&e.allowRecurse?Ge+1:Ge)||(null==e.id?He.push(e):He.splice(function(e){let t=Ge+1,n=He.length;for(;t<n;){const i=t+n>>>1,r=He[i],o=tt(r);o<e||o===e&&r.pre?t=i+1:n=i}return t}(e.id),0,e),Ze())}function Ze(){Ue||je||(je=!0,Xe=Ye.then(it))}function et(e){u(e)?We.push(...e):qe&&qe.includes(e,e.allowRecurse?Ke+1:Ke)||We.push(e),Ze()}const tt=e=>null==e.id?1/0:e.id,nt=(e,t)=>{const n=tt(e)-tt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function it(e){je=!1,Ue=!0,He.sort(nt);try{for(Ge=0;Ge<He.length;Ge++){const e=He[Ge];e&&!1!==e.active&&Ve(e,null,14)}}finally{Ge=0,He.length=0,function(){if(We.length){const e=[...new Set(We)];if(We.length=0,qe)return void qe.push(...e);for(qe=e,qe.sort(((e,t)=>tt(e)-tt(t))),Ke=0;Ke<qe.length;Ke++)qe[Ke]();qe=null,Ke=0}}(),Ue=!1,Xe=null,(He.length||We.length)&&it(e)}}new Set,new Map;Symbol.for("v-ndc");const rt={};function ot(e,t,{immediate:n,deep:i,flush:s,onTrack:l,onTrigger:c}=r){var d;const h=T===(null==(d=kt)?void 0:d.scope)?kt:null;let f,m,g=!1,v=!1;if(Le(e)?(f=()=>e.value,g=Me(e)):Ae(e)?(f=()=>e,i=!0):u(e)?(v=!0,g=e.some((e=>Ae(e)||Me(e))),f=()=>e.map((e=>Le(e)?e.value:Ae(e)?at(e):p(e)?Ve(e,h,2):void 0))):p(e)?f=t?()=>Ve(e,h,2):()=>{if(!h||!h.isUnmounted)return m&&m(),$e(e,h,3,[y])}:f=o,t&&i){const e=f;f=()=>at(e())}let y=e=>{m=_.onStop=()=>{Ve(e,h,4),m=_.onStop=void 0}},b=v?new Array(e.length).fill(rt):rt;const w=()=>{if(_.active)if(t){const e=_.run();(i||g||(v?e.some(((e,t)=>S(e,b[t]))):S(e,b)))&&(m&&m(),$e(t,h,3,[e,b===rt?void 0:v&&b[0]===rt?[]:b,y]),b=e)}else _.run()};let k;w.allowRecurse=!!t,"sync"===s?k=w:"post"===s?k=()=>yt(w,h&&h.suspense):(w.pre=!0,h&&(w.id=h.uid),k=()=>Qe(w));const _=new F(f,k);return t?n?w():b=_.run():"post"===s?yt(_.run.bind(_),h&&h.suspense):_.run(),()=>{_.stop(),h&&h.scope&&a(h.scope.effects,_)}}function st(e,t,n){const i=this.proxy,r=f(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(i,e):()=>i[e]:e.bind(i,i);let o;p(t)?o=t:(o=t.handler,n=t);const s=kt;St(this);const a=ot(r,o.bind(i),n);return s?St(s):xt(),a}function at(e,t){if(!g(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Le(e))at(e.value,t);else if(u(e))for(let n=0;n<e.length;n++)at(e[n],t);else if(h(e)||d(e))e.forEach((e=>{at(e,t)}));else if(k(e))for(const n in e)at(e[n],t);return e}const lt=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,x(n,"__v_skip",!0),Ae(t=n)?t:new Proxy(t,Fe)),{get:(t,n)=>n in t?t[n]:n in ct?ct[n](e):void 0,has:(e,t)=>t in e||t in ct}));var t,n}(e)||e.proxy:lt(e.parent):null,ct=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lt(e.parent),$root:e=>lt(e.root),$emit:e=>e.emit,$options:e=>function(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let l;return a?l=a:r.length||n||i?(l={},r.length&&r.forEach((e=>dt(l,e,s,!0))),dt(l,t,s)):l=t,g(t)&&o.set(t,l),l}(e),$forceUpdate:e=>e.f||(e.f=()=>Qe(e.update)),$nextTick:e=>e.n||(e.n=Je.bind(e.proxy)),$watch:e=>st.bind(e)});function ut(e){return u(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function dt(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&dt(e,o,n,!0),r&&r.forEach((t=>dt(e,t,n,!0)));for(const s in t)if(i&&"expose"===s);else{const i=ht[s]||n&&n[s];e[s]=i?i(e[s],t[s]):t[s]}return e}const ht={data:pt,props:vt,emits:vt,methods:gt,computed:gt,beforeCreate:mt,created:mt,beforeMount:mt,mounted:mt,beforeUpdate:mt,updated:mt,beforeDestroy:mt,beforeUnmount:mt,destroyed:mt,unmounted:mt,activated:mt,deactivated:mt,errorCaptured:mt,serverPrefetch:mt,components:gt,directives:gt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=s(Object.create(null),e);for(const i in t)n[i]=mt(e[i],t[i]);return n},provide:pt,inject:function(e,t){return gt(ft(e),ft(t))}};function pt(e,t){return t?e?function(){return s(p(e)?e.call(this,this):e,p(t)?t.call(this,this):t)}:t:e}function ft(e){if(u(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mt(e,t){return e?[...new Set([].concat(e,t))]:t}function gt(e,t){return e?s(Object.create(null),e,t):t}function vt(e,t){return e?u(e)&&u(t)?[...new Set([...e,...t])]:s(Object.create(null),ut(e),ut(null!=t?t:{})):t}const yt=function(e,t){t&&t.pendingBranch?u(e)?t.effects.push(...e):t.effects.push(e):et(e)};Symbol.for("v-fgt"),Symbol.for("v-txt"),Symbol.for("v-cmt");let bt,wt,kt=null,_t="__VUE_INSTANCE_SETTERS__";(wt=E()[_t])||(wt=E()[_t]=[]),wt.push((e=>kt=e)),bt=e=>{wt.length>1?wt.forEach((t=>t(e))):wt[0](e)};const St=e=>{bt(e),e.scope.on()},xt=()=>{kt&&kt.scope.off(),bt(null)};function Ct(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Et(e,t){if(e===t)return!0;if("object"==typeof e){for(var n in e)if(!Et(e[n],t[n]))return!1;return!0}return!1}"function"==typeof SuppressedError&&SuppressedError;var Tt=function(){function e(e,t){this.el=e,this.observer=null,this.frozen=!1,this.createObserver(t)}return Object.defineProperty(e.prototype,"threshold",{get:function(){return this.options.intersection&&this.options.intersection.threshold||0},enumerable:!1,configurable:!0}),e.prototype.createObserver=function(e){var t=this;if(this.observer&&this.destroyObserver(),!this.frozen){var n;if(this.options="function"==typeof(n=e)?{callback:n}:n,this.callback=function(e,n){t.options.callback(e,n),e&&t.options.once&&(t.frozen=!0,t.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=function(e,t,n){var i,r,o;void 0===n&&(n={});var s=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(o=a,!i||s!==r){var c=n.leading;"function"==typeof c&&(c=c(s,r)),i&&s===r||!c||e.apply(void 0,Ct([s],o,!1)),r=s,clearTimeout(i),i=setTimeout((function(){e.apply(void 0,Ct([s],o,!1)),i=0}),t)}};return s._clear=function(){clearTimeout(i),i=null},s}(this.callback,this.options.throttle,{leading:function(e){return"both"===i||"visible"===i&&e||"hidden"===i&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(e){var n=e[0];if(e.length>1){var i=e.find((function(e){return e.isIntersecting}));i&&(n=i)}if(t.callback){var r=n.isIntersecting&&n.intersectionRatio>=t.threshold;if(r===t.oldResult)return;t.oldResult=r,t.callback(r,n)}}),this.options.intersection),Je((function(){t.observer&&t.observer.observe(t.el)}))}},e.prototype.destroyObserver=function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)},e}(),Dt={beforeMount:function(e,t){var n=t.value;n&&("undefined"==typeof IntersectionObserver?console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill"):e._vue_visibilityState=new Tt(e,n))},updated:function(e,t){var n=t.value;if(!Et(n,t.oldValue)){var i=e._vue_visibilityState;n&&i&&i.createObserver(n)}},unmounted:function(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}},Nt={install:function(e){e.directive("observe-visibility",Dt)}}},3396:(e,t,n)=>{"use strict";n.d(t,{_:()=>i,e:()=>r});var i="finishReason",r=["heartbeatFailed","idleTimeout","documentHidden"]},3443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const i=n(4892),r=n(8871),o=n(4723),s=n(5483);function a(e,t,n,i,r,o,s){const a=Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2)),l=Math.sqrt(Math.pow(r-n,2)+Math.pow(o-i,2)),c=s*a/(a+l),u=s*l/(a+l),d=n-c*(r-e),h=i-c*(o-t),p=n+u*(r-e),f=i+u*(o-t);return[d,h,p,f]}function l(e,t){const n=e.length,i=[];for(let r=2;r<n-2;r+=2){const n=a(e[r-2],e[r-1],e[r],e[r+1],e[r+2],e[r+3],t);isNaN(n[0])||(i.push(n[0]),i.push(n[1]),i.push(e[r]),i.push(e[r+1]),i.push(n[2]),i.push(n[3]))}return i}class c extends o.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")}))}_sceneFunc(e){let t,n,i,r=this.points(),o=r.length,s=this.tension(),a=this.closed(),l=this.bezier();if(o){if(e.beginPath(),e.moveTo(r[0],r[1]),0!==s&&o>4){t=this.getTensionPoints(),n=t.length,i=a?0:4,a||e.quadraticCurveTo(t[0],t[1],t[2],t[3]);while(i<n-2)e.bezierCurveTo(t[i++],t[i++],t[i++],t[i++],t[i++],t[i++]);a||e.quadraticCurveTo(t[n-2],t[n-1],r[o-2],r[o-1])}else if(l){i=2;while(i<o)e.bezierCurveTo(r[i++],r[i++],r[i++],r[i++],r[i++],r[i++])}else for(i=2;i<o;i+=2)e.lineTo(r[i],r[i+1]);a?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():l(this.points(),this.tension())}_getTensionPointsClosed(){const e=this.points(),t=e.length,n=this.tension(),i=a(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),r=a(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),o=l(e,n),s=[i[2],i[3]].concat(o).concat([r[0],r[1],e[t-2],e[t-1],r[2],r[3],i[0],i[1],e[0],e[1]]);return s}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};e=0!==this.tension()?[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:this.points();let t,n,i=e[0],r=e[0],o=e[1],s=e[1];for(let a=0;a<e.length/2;a++)t=e[2*a],n=e[2*a+1],i=Math.min(i,t),r=Math.max(r,t),o=Math.min(o,n),s=Math.max(s,n);return{x:i,y:o,width:r-i,height:s-o}}}t.Line=c,c.prototype.className="Line",c.prototype._attrsAffectingSize=["points","bezier","tension"],(0,r._registerNode)(c),i.Factory.addGetterSetter(c,"closed",!1),i.Factory.addGetterSetter(c,"bezier",!1),i.Factory.addGetterSetter(c,"tension",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(c,"points",[],(0,s.getNumberArrayValidator)())},3816:(e,t,n)=>{"use strict";n.d(t,{BD:()=>a,Kg:()=>c,Qd:()=>d,Qg:()=>m,T2:()=>s,W6:()=>l,bJ:()=>r,gd:()=>f,mE:()=>g,sO:()=>u,tH:()=>y,vq:()=>p,xH:()=>h,yr:()=>v});var i=Object.prototype.toString;function r(e){switch(i.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return i.call(e)==="[object "+t+"]"}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function d(e){return o(e,"Object")}function h(e){return"undefined"!==typeof Event&&y(e,Event)}function p(e){return"undefined"!==typeof Element&&y(e,Element)}function f(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"===typeof e&&e!==e}function y(e,t){try{return e instanceof t}catch(n){return!1}}},3862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGBA=void 0;const i=n(4892),r=n(6536),o=n(5483),s=function(e){const t=e.data,n=t.length,i=this.red(),r=this.green(),o=this.blue(),s=this.alpha();for(let a=0;a<n;a+=4){const e=1-s;t[a]=i*s+t[a]*e,t[a+1]=r*s+t[a+1]*e,t[a+2]=o*s+t[a+2]*e}};t.RGBA=s,i.Factory.addGetterSetter(r.Node,"red",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),i.Factory.addGetterSetter(r.Node,"green",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),i.Factory.addGetterSetter(r.Node,"blue",0,o.RGBComponent,i.Factory.afterSetFilter),i.Factory.addGetterSetter(r.Node,"alpha",1,(function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e}))},3917:(e,t,n)=>{"use strict";n.d(t,{gd:()=>o,qQ:()=>l});var i=n(5215),r=50;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e,t){var r,o,a,l;void 0===t&&(t=0);var c=[];try{for(var u=(0,i.Ju)(e.split("\n").slice(t)),d=u.next();!d.done;d=u.next()){var h=d.value;try{for(var p=(a=void 0,(0,i.Ju)(n)),f=p.next();!f.done;f=p.next()){var m=f.value,g=m(h);if(g){c.push(g);break}}}catch(v){a={error:v}}finally{try{f&&!f.done&&(l=p.return)&&l.call(p)}finally{if(a)throw a.error}}}}catch(y){r={error:y}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return s(c)}}function s(e){if(!e.length)return[];var t=e,n=t[0].function||"",o=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==o.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,r).map((function(e){return(0,i.Cl)((0,i.Cl)({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}var a="<anonymous>";function l(e){try{return e&&"function"===typeof e&&e.name||a}catch(t){return a}}},4060:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const i=n(8871);class r{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){const t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}}translate(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this}scale(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this}rotate(e){const t=Math.cos(e),n=Math.sin(e),i=this.m[0]*t+this.m[2]*n,r=this.m[1]*t+this.m[3]*n,o=this.m[0]*-n+this.m[2]*t,s=this.m[1]*-n+this.m[3]*t;return this.m[0]=i,this.m[1]=r,this.m[2]=o,this.m[3]=s,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,t){const n=this.m[0]+this.m[2]*t,i=this.m[1]+this.m[3]*t,r=this.m[2]+this.m[0]*e,o=this.m[3]+this.m[1]*e;return this.m[0]=n,this.m[1]=i,this.m[2]=r,this.m[3]=o,this}multiply(e){const t=this.m[0]*e.m[0]+this.m[2]*e.m[1],n=this.m[1]*e.m[0]+this.m[3]*e.m[1],i=this.m[0]*e.m[2]+this.m[2]*e.m[3],r=this.m[1]*e.m[2]+this.m[3]*e.m[3],o=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],s=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=o,this.m[5]=s,this}invert(){const e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,n=-this.m[1]*e,i=-this.m[2]*e,r=this.m[0]*e,o=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),s=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=o,this.m[5]=s,this}getMatrix(){return this.m}decompose(){const e=this.m[0],n=this.m[1],i=this.m[2],r=this.m[3],o=this.m[4],s=this.m[5],a=e*r-n*i,l={x:o,y:s,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=e||0!=n){const t=Math.sqrt(e*e+n*n);l.rotation=n>0?Math.acos(e/t):-Math.acos(e/t),l.scaleX=t,l.scaleY=a/t,l.skewX=(e*i+n*r)/a,l.skewY=0}else if(0!=i||0!=r){const t=Math.sqrt(i*i+r*r);l.rotation=Math.PI/2-(r>0?Math.acos(-i/t):-Math.acos(i/t)),l.scaleX=a/t,l.scaleY=t,l.skewX=0,l.skewY=(e*i+n*r)/a}return l.rotation=t.Util._getRotation(l.rotation),l}}t.Transform=r;const o="[object Array]",s="[object Number]",a="[object String]",l="[object Boolean]",c=Math.PI/180,u=180/Math.PI,d="#",h="",p="0",f="Konva warning: ",m="Konva error: ",g="rgb(",v={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},y=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let b=[];const w="undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||function(e){setTimeout(e,60)};t.Util={_isElement(e){return!(!e||1!=e.nodeType)},_isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isPlainObject(e){return!!e&&e.constructor===Object},_isArray(e){return Object.prototype.toString.call(e)===o},_isNumber(e){return Object.prototype.toString.call(e)===s&&!isNaN(e)&&isFinite(e)},_isString(e){return Object.prototype.toString.call(e)===a},_isBoolean(e){return Object.prototype.toString.call(e)===l},isObject(e){return e instanceof Object},isValidSelector(e){if("string"!==typeof e)return!1;const t=e[0];return"#"===t||"."===t||t===t.toUpperCase()},_sign(e){return 0===e||e>0?1:-1},requestAnimFrame(e){b.push(e),1===b.length&&w((function(){const e=b;b=[],e.forEach((function(e){e()}))}))},createCanvasElement(){const e=document.createElement("canvas");try{e.style=e.style||{}}catch(t){}return e},createImageElement(){return document.createElement("img")},_isInDocument(e){while(e=e.parentNode)if(e==document)return!0;return!1},_urlToImage(e,n){const i=t.Util.createImageElement();i.onload=function(){n(i)},i.src=e},_rgbToHex(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},_hexToRgb(e){e=e.replace(d,h);const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}},getRandomColor(){let e=(16777215*Math.random()|0).toString(16);while(e.length<6)e=p+e;return d+e},getRGB(e){let t;return e in v?(t=v[e],{r:t[0],g:t[1],b:t[2]}):e[0]===d?this._hexToRgb(e.substring(1)):e.substr(0,4)===g?(t=y.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(e){return e=e||"black",t.Util._namedColorToRBA(e)||t.Util._hex3ColorToRGBA(e)||t.Util._hex4ColorToRGBA(e)||t.Util._hex6ColorToRGBA(e)||t.Util._hex8ColorToRGBA(e)||t.Util._rgbColorToRGBA(e)||t.Util._rgbaColorToRGBA(e)||t.Util._hslColorToRGBA(e)},_namedColorToRBA(e){const t=v[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(0===e.indexOf("rgb(")){e=e.match(/rgb\(([^)]+)\)/)[1];const t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(0===e.indexOf("rgba(")){e=e.match(/rgba\(([^)]+)\)/)[1];const t=e.split(/ *, */).map(((e,t)=>"%"===e.slice(-1)?3===t?parseInt(e)/100:parseInt(e)/100*255:Number(e)));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(e){if("#"===e[0]&&9===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:parseInt(e.slice(7,9),16)/255}},_hex6ColorToRGBA(e){if("#"===e[0]&&7===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex4ColorToRGBA(e){if("#"===e[0]&&5===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:parseInt(e[4]+e[4],16)/255}},_hex3ColorToRGBA(e){if("#"===e[0]&&4===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){const[t,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),i=Number(n[0])/360,r=Number(n[1])/100,o=Number(n[2])/100;let s,a,l;if(0===r)return l=255*o,{r:Math.round(l),g:Math.round(l),b:Math.round(l),a:1};s=o<.5?o*(1+r):o+r-o*r;const c=2*o-s,u=[0,0,0];for(let e=0;e<3;e++)a=i+1/3*-(e-1),a<0&&a++,a>1&&a--,l=6*a<1?c+6*(s-c)*a:2*a<1?s:3*a<2?c+(s-c)*(2/3-a)*6:c,u[e]=255*l;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)},cloneObject(e){const t={};for(const n in e)this._isPlainObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray(e){return e.slice(0)},degToRad(e){return e*c},radToDeg(e){return e*u},_degToRad(e){return t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(e)},_radToDeg(e){return t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(e)},_getRotation(e){return i.Konva.angleDeg?t.Util.radToDeg(e):e},_capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw(e){throw new Error(m+e)},error(e){console.error(m+e)},warn(e){i.Konva.showWarnings&&console.warn(f+e)},each(e,t){for(const n in e)t(n,e[n])},_inRange(e,t,n){return t<=e&&e<n},_getProjectionToSegment(e,t,n,i,r,o){let s,a,l;const c=(e-n)*(e-n)+(t-i)*(t-i);if(0==c)s=e,a=t,l=(r-n)*(r-n)+(o-i)*(o-i);else{const u=((r-e)*(n-e)+(o-t)*(i-t))/c;u<0?(s=e,a=t,l=(e-r)*(e-r)+(t-o)*(t-o)):u>1?(s=n,a=i,l=(n-r)*(n-r)+(i-o)*(i-o)):(s=e+u*(n-e),a=t+u*(i-t),l=(s-r)*(s-r)+(a-o)*(a-o))}return[s,a,l]},_getProjectionToLine(e,n,i){const r=t.Util.cloneObject(e);let o=Number.MAX_VALUE;return n.forEach((function(s,a){if(!i&&a===n.length-1)return;const l=n[(a+1)%n.length],c=t.Util._getProjectionToSegment(s.x,s.y,l.x,l.y,e.x,e.y),u=c[0],d=c[1],h=c[2];h<o&&(r.x=u,r.y=d,o=h)})),r},_prepareArrayForTween(e,n,i){const r=[],o=[];if(e.length>n.length){const t=n;n=e,e=t}for(let t=0;t<e.length;t+=2)r.push({x:e[t],y:e[t+1]});for(let t=0;t<n.length;t+=2)o.push({x:n[t],y:n[t+1]});const s=[];return o.forEach((function(e){const n=t.Util._getProjectionToLine(e,r,i);s.push(n.x),s.push(n.y)})),s},_prepareToStringify(e){let n;e.visitedByCircularReferenceRemoval=!0;for(const i in e)if(e.hasOwnProperty(i)&&e[i]&&"object"==typeof e[i])if(n=Object.getOwnPropertyDescriptor(e,i),e[i].visitedByCircularReferenceRemoval||t.Util._isElement(e[i])){if(!n.configurable)return null;delete e[i]}else if(null===t.Util._prepareToStringify(e[i])){if(!n.configurable)return null;delete e[i]}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(const n in t)e[n]=t[n];return e},_getFirstPointerId(e){return e.touches?e.changedTouches[0].identifier:e.pointerId||999},releaseCanvas(...e){i.Konva.releaseCanvasOnDestroy&&e.forEach((e=>{e.width=0,e.height=0}))},drawRoundedRectPath(e,t,n,i){let r=0,o=0,s=0,a=0;"number"===typeof i?r=o=s=a=Math.min(i,t/2,n/2):(r=Math.min(i[0]||0,t/2,n/2),o=Math.min(i[1]||0,t/2,n/2),a=Math.min(i[2]||0,t/2,n/2),s=Math.min(i[3]||0,t/2,n/2)),e.moveTo(r,0),e.lineTo(t-o,0),e.arc(t-o,o,o,3*Math.PI/2,0,!1),e.lineTo(t,n-a),e.arc(t-a,n-a,a,0,Math.PI/2,!1),e.lineTo(s,n),e.arc(s,n-s,s,Math.PI/2,Math.PI,!1),e.lineTo(0,r),e.arc(r,r,r,Math.PI,3*Math.PI/2,!1)}}},4237:(e,t,n)=>{"use strict";n.d(t,{YZ:()=>m,BF:()=>y,EU:()=>g});var i=n(5215),r=n(6936),o=n(9297),s=n(7412),a=n(6475),l=n(2250),c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,u=n(9752),d=n(8411),h=function(){function e(e){this.errors=0,this.sid=(0,r.eJ)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,o.zf)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,o.zf)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,r.eJ)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"===typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"===typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"===typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return(0,d.Ce)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),p=4,f=100,m=function(){function e(e,t,n){void 0===t&&(t=new u.H),void 0===n&&(n=p),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){var t=this.getStackTop();t.client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=u.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,r.eJ)(),o=t;if(!t){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(e){s=e}o={originalException:e,syntheticException:s}}return this._invokeClient("captureException",e,(0,i.Cl)((0,i.Cl)({},o),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var o=this._lastEventId=n&&n.event_id?n.event_id:(0,r.eJ)(),s=n;if(!n){var a=void 0;try{throw new Error(e)}catch(l){a=l}s={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,t,(0,i.Cl)((0,i.Cl)({},s),{event_id:o})),o},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:(0,r.eJ)();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,(0,i.Cl)((0,i.Cl)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,a=n.client;if(r&&a){var l=a.getOptions&&a.getOptions()||{},c=l.beforeBreadcrumb,u=void 0===c?null:c,d=l.maxBreadcrumbs,h=void 0===d?f:d;if(!(h<=0)){var p=(0,o.lu)(),m=(0,i.Cl)({timestamp:p},e),g=u?(0,s.pq)((function(){return u(m,t)})):m;null!==g&&r.addBreadcrumb(g,h)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,i=t.client;n&&i&&e(n)},e.prototype.run=function(e){var t=v(this);try{e(this)}finally{v(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return c&&s.vF.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},s=o.release,l=o.environment,c=(0,a.V)(),u=(c.navigator||{}).userAgent,d=new h((0,i.Cl)((0,i.Cl)((0,i.Cl)({release:s,environment:l},n&&{user:n.getUser()}),u&&{userAgent:u}),e));if(n){var p=n.getSession&&n.getSession();p&&"ok"===p.status&&p.update({status:"exited"}),this.endSession(),n.setSession(d)}return d},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var i=t.getSession&&t.getSession();i&&n&&n.captureSession&&n.captureSession(i)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),s=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,(0,i.gz)(n,[s]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=g(),r=i.__SENTRY__;if(r&&r.extensions&&"function"===typeof r.extensions[e])return r.extensions[e].apply(this,t);c&&s.vF.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function g(){var e=(0,a.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function v(e){var t=g(),n=k(t);return _(t,e),n}function y(){var e=g();return w(e)&&!k(e).isOlderThan(p)||_(e,new m),(0,l.wD)()?b(e):k(e)}function b(e){try{var t=g().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return k(e);if(!w(n)||k(n).isOlderThan(p)){var i=k(e).getStackTop();_(n,new m(i.client,u.H.clone(i.scope)))}return k(n)}catch(r){return k(e)}}function w(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function k(e){return(0,a.B)("hub",(function(){return new m}),e)}function _(e,t){if(!e)return!1;var n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}},4335:(e,t,n)=>{"use strict";n.d(t,{A:()=>mn});var i={};function r(e,t){return function(){return e.apply(t,arguments)}}n.r(i),n.d(i,{hasBrowserEnv:()=>Be,hasStandardBrowserEnv:()=>Re,hasStandardBrowserWebWorkerEnv:()=>Le,navigator:()=>Ie,origin:()=>Fe});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,a=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),l=e=>(e=e.toLowerCase(),t=>a(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,d=c("undefined");function h(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p=l("ArrayBuffer");function f(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t}const m=c("string"),g=c("function"),v=c("number"),y=e=>null!==e&&"object"===typeof e,b=e=>!0===e||!1===e,w=e=>{if("object"!==a(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)},k=l("Date"),_=l("File"),S=l("Blob"),x=l("FileList"),C=e=>y(e)&&g(e.pipe),E=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=a(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},T=l("URLSearchParams"),[D,N,O,A]=["ReadableStream","Request","Response","Headers"].map(l),P=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let i,r;if("object"!==typeof e&&(e=[e]),u(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let s;for(i=0;i<o;i++)s=r[i],t.call(null,e[s],s,e)}}function B(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;while(r-- >0)if(i=n[r],t===i.toLowerCase())return i;return null}const I=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),R=e=>!d(e)&&e!==I;function L(){const{caseless:e}=R(this)&&this||{},t={},n=(n,i)=>{const r=e&&B(t,i)||i;w(t[r])&&w(n)?t[r]=L(t[r],n):w(n)?t[r]=L({},n):u(n)?t[r]=n.slice():t[r]=n};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&M(arguments[i],n);return t}const F=(e,t,n,{allOwnKeys:i}={})=>(M(t,((t,i)=>{n&&g(t)?e[i]=r(t,n):e[i]=t}),{allOwnKeys:i}),e),V=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),$=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},z=(e,t,n,i)=>{let r,o,a;const l={};if(t=t||{},null==e)return t;do{r=Object.getOwnPropertyNames(e),o=r.length;while(o-- >0)a=r[o],i&&!i(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},U=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},j=e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},H=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&s(Uint8Array)),G=(e,t)=>{const n=e&&e[Symbol.iterator],i=n.call(e);let r;while((r=i.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}},W=(e,t)=>{let n;const i=[];while(null!==(n=e.exec(t)))i.push(n);return i},q=l("HTMLFormElement"),K=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),Y=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X=l("RegExp"),J=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};M(n,((n,r)=>{let o;!1!==(o=t(n,r,e))&&(i[r]=o||n)})),Object.defineProperties(e,i)},Q=e=>{J(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];g(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Z=(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?i(e):i(String(e).split(t)),n},ee=()=>{},te=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function ne(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const ie=e=>{const t=new Array(10),n=(e,i)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=u(e)?[]:{};return M(e,((e,t)=>{const o=n(e,i+1);!d(o)&&(r[t]=o)})),t[i]=void 0,r}}return e};return n(e,0)},re=l("AsyncFunction"),oe=e=>e&&(y(e)||g(e))&&g(e.then)&&g(e.catch),se=((e,t)=>e?setImmediate:t?((e,t)=>(I.addEventListener("message",(({source:n,data:i})=>{n===I&&i===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),I.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,g(I.postMessage)),ae="undefined"!==typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!==typeof process&&process.nextTick||se,le={isArray:u,isArrayBuffer:p,isBuffer:h,isFormData:E,isArrayBufferView:f,isString:m,isNumber:v,isBoolean:b,isObject:y,isPlainObject:w,isReadableStream:D,isRequest:N,isResponse:O,isHeaders:A,isUndefined:d,isDate:k,isFile:_,isBlob:S,isRegExp:X,isFunction:g,isStream:C,isURLSearchParams:T,isTypedArray:H,isFileList:x,forEach:M,merge:L,extend:F,trim:P,stripBOM:V,inherits:$,toFlatObject:z,kindOf:a,kindOfTest:l,endsWith:U,toArray:j,forEachEntry:G,matchAll:W,isHTMLForm:q,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:J,freezeMethods:Q,toObjectSet:Z,toCamelCase:K,noop:ee,toFiniteNumber:te,findKey:B,global:I,isContextDefined:R,isSpecCompliantForm:ne,toJSONObject:ie,isAsyncFn:re,isThenable:oe,setImmediate:se,asap:ae};function ce(e,t,n,i,r){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),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}le.inherits(ce,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:le.toJSONObject(this.config),code:this.code,status:this.status}}});const ue=ce.prototype,de={};["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=>{de[e]={value:e}})),Object.defineProperties(ce,de),Object.defineProperty(ue,"isAxiosError",{value:!0}),ce.from=(e,t,n,i,r,o)=>{const s=Object.create(ue);return le.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ce.call(s,e.message,t,n,i,r),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const he=ce,pe=null;function fe(e){return le.isPlainObject(e)||le.isArray(e)}function me(e){return le.endsWith(e,"[]")?e.slice(0,-2):e}function ge(e,t,n){return e?e.concat(t).map((function(e,t){return e=me(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function ve(e){return le.isArray(e)&&!e.some(fe)}const ye=le.toFlatObject(le,{},null,(function(e){return/^is[A-Z]/.test(e)}));function be(e,t,n){if(!le.isObject(e))throw new TypeError("target must be an object");t=t||new(pe||FormData),n=le.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!le.isUndefined(t[e])}));const i=n.metaTokens,r=n.visitor||u,o=n.dots,s=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,l=a&&le.isSpecCompliantForm(t);if(!le.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(le.isDate(e))return e.toISOString();if(!l&&le.isBlob(e))throw new he("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(e)||le.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let a=e;if(e&&!r&&"object"===typeof e)if(le.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(le.isArray(e)&&ve(e)||(le.isFileList(e)||le.endsWith(n,"[]"))&&(a=le.toArray(e)))return n=me(n),a.forEach((function(e,i){!le.isUndefined(e)&&null!==e&&t.append(!0===s?ge([n],i,o):null===s?n:n+"[]",c(e))})),!1;return!!fe(e)||(t.append(ge(r,n,o),c(e)),!1)}const d=[],h=Object.assign(ye,{defaultVisitor:u,convertValue:c,isVisitable:fe});function p(e,n){if(!le.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),le.forEach(e,(function(e,i){const o=!(le.isUndefined(e)||null===e)&&r.call(t,e,le.isString(i)?i.trim():i,n,h);!0===o&&p(e,n?n.concat(i):[i])})),d.pop()}}if(!le.isObject(e))throw new TypeError("data must be an object");return p(e),t}const we=be;function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function _e(e,t){this._pairs=[],e&&we(e,this,t)}const Se=_e.prototype;Se.append=function(e,t){this._pairs.push([e,t])},Se.toString=function(e){const t=e?function(t){return e.call(this,t,ke)}:ke;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const xe=_e;function Ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ee(e,t,n){if(!t)return e;const i=n&&n.encode||Ce;le.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(o=r?r(t,n):le.isURLSearchParams(t)?t.toString():new xe(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}class Te{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){le.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const De=Te,Ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oe="undefined"!==typeof URLSearchParams?URLSearchParams:xe,Ae="undefined"!==typeof FormData?FormData:null,Pe="undefined"!==typeof Blob?Blob:null,Me={isBrowser:!0,classes:{URLSearchParams:Oe,FormData:Ae,Blob:Pe},protocols:["http","https","file","blob","url","data"]},Be="undefined"!==typeof window&&"undefined"!==typeof document,Ie="object"===typeof navigator&&navigator||void 0,Re=Be&&(!Ie||["ReactNative","NativeScript","NS"].indexOf(Ie.product)<0),Le=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Fe=Be&&window.location.href||"http://localhost",Ve={...i,...Me};function $e(e,t){return we(e,new Ve.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return Ve.isNode&&le.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ze(e){return le.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function Ue(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],t[o]=e[o];return t}function je(e){function t(e,n,i,r){let o=e[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=e.length;if(o=!o&&le.isArray(i)?i.length:o,a)return le.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s;i[o]&&le.isObject(i[o])||(i[o]=[]);const l=t(e,n,i[o],r);return l&&le.isArray(i[o])&&(i[o]=Ue(i[o])),!s}if(le.isFormData(e)&&le.isFunction(e.entries)){const n={};return le.forEachEntry(e,((e,i)=>{t(ze(e),i,n,0)})),n}return null}const He=je;function Ge(e,t,n){if(le.isString(e))try{return(t||JSON.parse)(e),le.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}const We={transitional:Ne,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=le.isObject(e);r&&le.isHTMLForm(e)&&(e=new FormData(e));const o=le.isFormData(e);if(o)return i?JSON.stringify(He(e)):e;if(le.isArrayBuffer(e)||le.isBuffer(e)||le.isStream(e)||le.isFile(e)||le.isBlob(e)||le.isReadableStream(e))return e;if(le.isArrayBufferView(e))return e.buffer;if(le.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return $e(e,this.formSerializer).toString();if((s=le.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return we(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),Ge(e)):e}],transformResponse:[function(e){const t=this.transitional||We.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(le.isResponse(e)||le.isReadableStream(e))return e;if(e&&le.isString(e)&&(n&&!this.responseType||i)){const n=t&&t.silentJSONParsing,o=!n&&i;try{return JSON.parse(e)}catch(r){if(o){if("SyntaxError"===r.name)throw he.from(r,he.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],(e=>{We.headers[e]={}}));const qe=We,Ke=le.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"]),Ye=e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&Ke[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t},Xe=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function Qe(e){return!1===e||null==e?e:le.isArray(e)?e.map(Qe):String(e)}function Ze(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(e))t[i[1]]=i[2];return t}const et=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tt(e,t,n,i,r){return le.isFunction(i)?i.call(this,t,n):(r&&(t=n),le.isString(t)?le.isString(i)?-1!==t.indexOf(i):le.isRegExp(i)?i.test(t):void 0:void 0)}function nt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function it(e,t){const n=le.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}class rt{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=Je(t);if(!r)throw new Error("header name must be a non-empty string");const o=le.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=Qe(e))}const o=(e,t)=>le.forEach(e,((e,n)=>r(e,n,t)));if(le.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(le.isString(e)&&(e=e.trim())&&!et(e))o(Ye(e),t);else if(le.isHeaders(e))for(const[s,a]of e.entries())r(a,s,n);else null!=e&&r(t,e,n);return this}get(e,t){if(e=Je(e),e){const n=le.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return Ze(e);if(le.isFunction(t))return t.call(this,e,n);if(le.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Je(e),e){const n=le.findKey(this,e);return!(!n||void 0===this[n]||t&&!tt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=Je(e),e){const r=le.findKey(n,e);!r||t&&!tt(n,n[r],r,t)||(delete n[r],i=!0)}}return le.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;while(n--){const r=t[n];e&&!tt(this,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return le.forEach(this,((i,r)=>{const o=le.findKey(n,r);if(o)return t[o]=Qe(i),void delete t[r];const s=e?nt(r):String(r).trim();s!==r&&delete t[r],t[s]=Qe(i),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return le.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&le.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[Xe]=this[Xe]={accessors:{}},n=t.accessors,i=this.prototype;function r(e){const t=Je(e);n[t]||(it(i,e),n[t]=!0)}return le.isArray(e)?e.forEach(r):r(e),this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),le.reduceDescriptors(rt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),le.freezeMethods(rt);const ot=rt;function st(e,t){const n=this||qe,i=t||n,r=ot.from(i.headers);let o=i.data;return le.forEach(e,(function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function at(e){return!(!e||!e.__CANCEL__)}function lt(e,t,n){he.call(this,null==e?"canceled":e,he.ERR_CANCELED,t,n),this.name="CanceledError"}le.inherits(lt,he,{__CANCEL__:!0});const ct=lt;function ut(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function dt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ht(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[s];r||(r=l),n[o]=a,i[o]=l;let u=s,d=0;while(u!==o)d+=n[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-r<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}const pt=ht;function ft(e,t){let n,i,r=0,o=1e3/t;const s=(t,o=Date.now())=>{r=o,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)},a=(...e)=>{const t=Date.now(),a=t-r;a>=o?s(e,t):(n=e,i||(i=setTimeout((()=>{i=null,s(n)}),o-a)))},l=()=>n&&s(n);return[a,l]}const mt=ft,gt=(e,t,n=3)=>{let i=0;const r=pt(50,250);return mt((n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-i,l=r(a),c=o<=s;i=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(u)}),n)},vt=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},yt=e=>(...t)=>le.asap((()=>e(...t))),bt=Ve.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ve.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,wt=Ve.hasStandardBrowserEnv?{write(e,t,n,i,r,o){const s=[e+"="+encodeURIComponent(t)];le.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),le.isString(i)&&s.push("path="+i),le.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _t(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t,n){let i=!kt(t);return e&&i||0==n?_t(e,t):t}const xt=e=>e instanceof ot?{...e}:e;function Ct(e,t){t=t||{};const n={};function i(e,t,n,i){return le.isPlainObject(e)&&le.isPlainObject(t)?le.merge.call({caseless:i},e,t):le.isPlainObject(t)?le.merge({},t):le.isArray(t)?t.slice():t}function r(e,t,n,r){return le.isUndefined(t)?le.isUndefined(e)?void 0:i(void 0,e,n,r):i(e,t,n,r)}function o(e,t){if(!le.isUndefined(t))return i(void 0,t)}function s(e,t){return le.isUndefined(t)?le.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>r(xt(e),xt(t),n,!0)};return le.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=l[i]||r,s=o(e[i],t[i],i);le.isUndefined(s)&&o!==a||(n[i]=s)})),n}const Et=e=>{const t=Ct({},e);let n,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=ot.from(a),t.url=Ee(St(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),le.isFormData(i))if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ve.hasStandardBrowserEnv&&(r&&le.isFunction(r)&&(r=r(t)),r||!1!==r&&bt(t.url))){const e=o&&s&&wt.read(s);e&&a.set(o,e)}return t},Tt="undefined"!==typeof XMLHttpRequest,Dt=Tt&&function(e){return new Promise((function(t,n){const i=Et(e);let r=i.data;const o=ot.from(i.headers).normalize();let s,a,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=i;function f(){c&&c(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=ot.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),r=d&&"text"!==d&&"json"!==d?m.response:m.responseText,o={data:r,status:m.status,statusText:m.statusText,headers:i,config:e,request:m};ut((function(e){t(e),f()}),(function(e){n(e),f()}),o),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new he("Request aborted",he.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Ne;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new he(t,r.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&le.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),le.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),d&&"json"!==d&&(m.responseType=i.responseType),p&&([l,u]=gt(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([a,c]=gt(h),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(s=t=>{m&&(n(!t||t.type?new ct(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const v=dt(i.url);v&&-1===Ve.protocols.indexOf(v)?n(new he("Unsupported protocol "+v+":",he.ERR_BAD_REQUEST,e)):m.send(r||null)}))},Nt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const r=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;i.abort(t instanceof he?t:new ct(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,r(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))}),t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)};e.forEach((e=>e.addEventListener("abort",r)));const{signal:a}=i;return a.unsubscribe=()=>le.asap(s),a}},Ot=Nt,At=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;while(r<n)i=r+t,yield e.slice(r,i),r=i},Pt=async function*(e,t){for await(const n of Mt(e))yield*At(n,t)},Mt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Bt=(e,t,n,i)=>{const r=Pt(e,t);let o,s=0,a=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return a(),void e.close();let o=i.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel(e){return a(e),r.return()}},{highWaterMark:2})},It="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Rt=It&&"function"===typeof ReadableStream,Lt=It&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ft=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Vt=Rt&&Ft((()=>{let e=!1;const t=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),$t=65536,zt=Rt&&Ft((()=>le.isReadableStream(new Response("").body))),Ut={stream:zt&&(e=>e.body)};It&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Ut[t]&&(Ut[t]=le.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new he(`Response type '${t}' is not supported`,he.ERR_NOT_SUPPORT,n)})}))})(new Response);const jt=async e=>{if(null==e)return 0;if(le.isBlob(e))return e.size;if(le.isSpecCompliantForm(e)){const t=new Request(Ve.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return le.isArrayBufferView(e)||le.isArrayBuffer(e)?e.byteLength:(le.isURLSearchParams(e)&&(e+=""),le.isString(e)?(await Lt(e)).byteLength:void 0)},Ht=async(e,t)=>{const n=le.toFiniteNumber(e.getContentLength());return null==n?jt(t):n},Gt=It&&(async e=>{let{url:t,method:n,data:i,signal:r,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Et(e);c=c?(c+"").toLowerCase():"text";let p,f=Ot([r,o&&o.toAbortSignal()],s);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(l&&Vt&&"get"!==n&&"head"!==n&&0!==(g=await Ht(u,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(le.isFormData(i)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=vt(g,gt(yt(l)));i=Bt(n.body,$t,e,t)}}le.isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;p=new Request(t,{...h,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:r?d:void 0});let o=await fetch(p);const s=zt&&("stream"===c||"response"===c);if(zt&&(a||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=le.toFiniteNumber(o.headers.get("content-length")),[n,i]=a&&vt(t,gt(yt(a),!0))||[];o=new Response(Bt(o.body,$t,n,(()=>{i&&i(),m&&m()})),e)}c=c||"text";let v=await Ut[le.findKey(Ut,c)||"text"](o,e);return!s&&m&&m(),await new Promise(((t,n)=>{ut(t,n,{data:v,headers:ot.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new he("Network Error",he.ERR_NETWORK,e,p),{cause:v.cause||v});throw he.from(v,v&&v.code,e,p)}}),Wt={http:pe,xhr:Dt,fetch:Gt};le.forEach(Wt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const qt=e=>`- ${e}`,Kt=e=>le.isFunction(e)||null===e||!1===e,Yt={getAdapter:e=>{e=le.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let o=0;o<t;o++){let t;if(n=e[o],i=n,!Kt(n)&&(i=Wt[(t=String(n)).toLowerCase()],void 0===i))throw new he(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+o]=i}if(!i){const e=Object.entries(r).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(qt).join("\n"):" "+qt(e[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:Wt};function Xt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ct(null,e)}function Jt(e){Xt(e),e.headers=ot.from(e.headers),e.data=st.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Yt.getAdapter(e.adapter||qe.adapter);return t(e).then((function(t){return Xt(e),t.data=st.call(e,e.transformResponse,t),t.headers=ot.from(t.headers),t}),(function(t){return at(t)||(Xt(e),t&&t.response&&(t.response.data=st.call(e,e.transformResponse,t.response),t.response.headers=ot.from(t.response.headers))),Promise.reject(t)}))}const Qt="1.8.3",Zt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Zt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const en={};function tn(e,t,n){if("object"!==typeof e)throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;while(r-- >0){const o=i[r],s=t[o];if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new he("option "+o+" must be "+n,he.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new he("Unknown option "+o,he.ERR_BAD_OPTION)}}Zt.transitional=function(e,t,n){function i(e,t){return"[Axios v"+Qt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new he(i(r," has been removed"+(t?" in "+t:"")),he.ERR_DEPRECATED);return t&&!en[r]&&(en[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},Zt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const nn={assertOptions:tn,validators:Zt},rn=nn.validators;class on{constructor(e){this.defaults=e,this.interceptors={request:new De,response:new De}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(i){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Ct(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&nn.assertOptions(n,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),null!=i&&(le.isFunction(i)?t.paramsSerializer={serialize:i}:nn.assertOptions(i,{encode:rn.function,serialize:rn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nn.assertOptions(t,{baseUrl:rn.spelling("baseURL"),withXsrfToken:rn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&le.merge(r.common,r[t.method]);r&&le.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=ot.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[Jt.bind(this),void 0];e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);while(d<u)c=c.then(e[d++],e[d++]);return c}u=s.length;let h=t;d=0;while(d<u){const e=s[d++],t=s[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{c=Jt.call(this,h)}catch(p){return Promise.reject(p)}d=0,u=l.length;while(d<u)c=c.then(l[d++],l[d++]);return c}getUri(e){e=Ct(this.defaults,e);const t=St(e.baseURL,e.url,e.allowAbsoluteUrls);return Ee(t,e.params,e.paramsSerializer)}}le.forEach(["delete","get","head","options"],(function(e){on.prototype[e]=function(t,n){return this.request(Ct(n||{},{method:e,url:t,data:(n||{}).data}))}})),le.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(Ct(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}on.prototype[e]=t(),on.prototype[e+"Form"]=t(!0)}));const sn=on;class an{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;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new ct(e,i,r),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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new an((function(t){e=t}));return{token:t,cancel:e}}}const ln=an;function cn(e){return function(t){return e.apply(null,t)}}function un(e){return le.isObject(e)&&!0===e.isAxiosError}const dn={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(dn).forEach((([e,t])=>{dn[t]=e}));const hn=dn;function pn(e){const t=new sn(e),n=r(sn.prototype.request,t);return le.extend(n,sn.prototype,t,{allOwnKeys:!0}),le.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return pn(Ct(e,t))},n}const fn=pn(qe);fn.Axios=sn,fn.CanceledError=ct,fn.CancelToken=ln,fn.isCancel=at,fn.VERSION=Qt,fn.toFormData=we,fn.AxiosError=he,fn.Cancel=fn.CanceledError,fn.all=function(e){return Promise.all(e)},fn.spread=cn,fn.isAxiosError=un,fn.mergeConfig=Ct,fn.AxiosHeaders=ot,fn.formToJSON=e=>He(le.isHTMLForm(e)?new FormData(e):e),fn.getAdapter=Yt.getAdapter,fn.HttpStatusCode=hn,fn.default=fn;const mn=fn},4408:(e,t,n)=>{"use strict";n.d(t,{Z7:()=>o,rv:()=>s,vO:()=>a,wt:()=>r});var i=n(4237);function r(e){var t=(0,i.BF)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function o(e){var t=e||(0,i.BF)(),n=t.getScope();return n&&n.getTransaction()}function s(e){return e/1e3}function a(e){return 1e3*e}},4473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;const i=n(4892),r=n(6536),o=n(5483);class s extends r.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const t=this.children||[],n=[];return t.forEach((function(t){e(t)&&n.push(t)})),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.remove()})),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.destroy()})),this.children=[],this._requestDraw(),this}add(...e){if(0===e.length)return this;if(e.length>1){for(let t=0;t<e.length;t++)this.add(e[t]);return this}const t=e[0];return t.getParent()?(t.moveTo(this),this):(this._validateAdd(t),t.index=this.getChildren().length,t.parent=this,t._clearCaches(),this.getChildren().push(t),this._fire("add",{child:t}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){const t=this._generalFind(e,!0);return t.length>0?t[0]:void 0}_generalFind(e,t){const n=[];return this._descendants((i=>{const r=i._isMatch(e);return r&&n.push(i),!(!r||!t)})),n}_descendants(e){let t=!1;const n=this.getChildren();for(const i of n){if(t=e(i),t)return!0;if(i.hasChildren()&&(t=i._descendants(e),t))return!0}return!1}toObject(){const e=r.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach((t=>{e.children.push(t.toObject())})),e}isAncestorOf(e){let t=e.getParent();while(t){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){const t=r.Node.prototype.clone.call(this,e);return this.getChildren().forEach((function(e){t.add(e.clone())})),t}getAllIntersections(e){const t=[];return this.find("Shape").forEach((n=>{n.isVisible()&&n.intersects(e)&&t.push(n)})),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),this.isCached()||null===(t=this.children)||void 0===t||t.forEach((function(t){t._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;null===(e=this.children)||void 0===e||e.forEach((function(e,t){e.index=t})),this._requestDraw()}drawScene(e,t,n){const i=this.getLayer(),r=e||i&&i.getCanvas(),o=r&&r.getContext(),s=this._getCanvasCache(),a=s&&s.scene,l=r&&r.isCache;if(!this.isVisible()&&!l)return this;if(a){o.save();const e=this.getAbsoluteTransform(t).getMatrix();o.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",r,t,n);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;const n=this.getLayer(),i=e||n&&n.hitCanvas,r=i&&i.getContext(),o=this._getCanvasCache(),s=o&&o.hit;if(s){r.save();const e=this.getAbsoluteTransform(t).getMatrix();r.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedHitCanvas(r),r.restore()}else this._drawChildren("drawHit",i,t);return this}_drawChildren(e,t,n,i){var r;const o=t&&t.getContext(),s=this.clipWidth(),a=this.clipHeight(),l=this.clipFunc(),c="number"===typeof s&&"number"===typeof a||l,u=n===this;if(c){o.save();const e=this.getAbsoluteTransform(n);let t,i=e.getMatrix();if(o.transform(i[0],i[1],i[2],i[3],i[4],i[5]),o.beginPath(),l)t=l.call(this,o,this);else{const e=this.clipX(),t=this.clipY();o.rect(e||0,t||0,s,a)}o.clip.apply(o,t),i=e.copy().invert().getMatrix(),o.transform(i[0],i[1],i[2],i[3],i[4],i[5])}const d=!u&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===e;d&&(o.save(),o._applyGlobalCompositeOperation(this)),null===(r=this.children)||void 0===r||r.forEach((function(r){r[e](t,n,i)})),d&&o.restore(),c&&o.restore()}getClientRect(e={}){var t;const n=e.skipTransform,i=e.relativeTo;let r,o,s,a,l={x:1/0,y:1/0,width:0,height:0};const c=this;null===(t=this.children)||void 0===t||t.forEach((function(t){if(!t.visible())return;const n=t.getClientRect({relativeTo:c,skipShadow:e.skipShadow,skipStroke:e.skipStroke});0===n.width&&0===n.height||(void 0===r?(r=n.x,o=n.y,s=n.x+n.width,a=n.y+n.height):(r=Math.min(r,n.x),o=Math.min(o,n.y),s=Math.max(s,n.x+n.width),a=Math.max(a,n.y+n.height)))}));const u=this.find("Shape");let d=!1;for(let h=0;h<u.length;h++){const e=u[h];if(e._isVisible(this)){d=!0;break}}return l=d&&void 0!==r?{x:r,y:o,width:s-r,height:a-o}:{x:0,y:0,width:0,height:0},n?l:this._transformedRect(l,i)}}t.Container=s,i.Factory.addComponentsGetterSetter(s,"clip",["x","y","width","height"]),i.Factory.addGetterSetter(s,"clipX",void 0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(s,"clipY",void 0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(s,"clipWidth",void 0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(s,"clipHeight",void 0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(s,"clipFunc")},4481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Star=void 0;const i=n(4892),r=n(4723),o=n(5483),s=n(8871);class a extends r.Shape{_sceneFunc(e){const t=this.innerRadius(),n=this.outerRadius(),i=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(let r=1;r<2*i;r++){const o=r%2===0?n:t,s=o*Math.sin(r*Math.PI/i),a=-1*o*Math.cos(r*Math.PI/i);e.lineTo(s,a)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}t.Star=a,a.prototype.className="Star",a.prototype._centroid=!0,a.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,s._registerNode)(a),i.Factory.addGetterSetter(a,"numPoints",5,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(a,"innerRadius",0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(a,"outerRadius",0,(0,o.getNumberValidator)())},4621:(e,t)=>{"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}},4723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const i=n(8871),r=n(4060),o=n(4892),s=n(6536),a=n(5483),l=n(8871),c=n(8722),u="hasShadow",d="shadowRGBA",h="patternImage",p="linearGradient",f="radialGradient";let m;function g(){return m||(m=r.Util.createCanvasElement().getContext("2d"),m)}function v(e){const t=this.attrs.fillRule;t?e.fill(t):e.fill()}function y(e){e.stroke()}function b(e){const t=this.attrs.fillRule;t?e.fill(t):e.fill()}function w(e){e.stroke()}function k(){this._clearCache(u)}function _(){this._clearCache(d)}function S(){this._clearCache(h)}function x(){this._clearCache(p)}function C(){this._clearCache(f)}t.shapes={};class E extends s.Node{constructor(e){let n;super(e);while(1)if(n=r.Util.getRandomColor(),n&&!(n in t.shapes))break;this.colorKey=n,t.shapes[n]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this["_sceneFunc"]}getHitFunc(){return this.attrs.hitFunc||this["_hitFunc"]}hasShadow(){return this._getCache(u,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(h,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const e=g(),t=e.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(t&&t.setTransform){const e=new r.Transform;e.translate(this.fillPatternX(),this.fillPatternY()),e.rotate(i.Konva.getAngle(this.fillPatternRotation())),e.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),e.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const n=e.getMatrix(),o="undefined"===typeof DOMMatrix?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);t.setTransform(o)}return t}}_getLinearGradient(){return this._getCache(p,this.__getLinearGradient)}__getLinearGradient(){const e=this.fillLinearGradientColorStops();if(e){const t=g(),n=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),r=t.createLinearGradient(n.x,n.y,i.x,i.y);for(let o=0;o<e.length;o+=2)r.addColorStop(e[o],e[o+1]);return r}}_getRadialGradient(){return this._getCache(f,this.__getRadialGradient)}__getRadialGradient(){const e=this.fillRadialGradientColorStops();if(e){const t=g(),n=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),r=t.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius());for(let o=0;o<e.length;o+=2)r.addColorStop(e[o],e[o+1]);return r}}getShadowRGBA(){return this._getCache(d,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const e=r.Util.colorToRGBA(this.shadowColor());return e?"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")":void 0}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],(()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],(()=>this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())))}hasHitStroke(){const e=this.hitStrokeWidth();return"auto"===e?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){const t=this.getStage();if(!t)return!1;const n=t.bufferHitCanvas;n.getContext().clear(),this.drawHit(n,void 0,!0);const i=n.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data;return i[3]>0}destroy(){return s.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var t;const n=null===(t=this.attrs.perfectDrawEnabled)||void 0===t||t;if(!n)return!1;const i=e||this.hasFill(),r=this.hasStroke(),o=1!==this.getAbsoluteOpacity();if(i&&r&&o)return!0;const s=this.hasShadow(),a=this.shadowForStrokeEnabled();return!!(i&&r&&s&&a)}setStrokeHitEnabled(e){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){const e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){let t=!1,n=this.getParent();while(n){if(n.isCached()){t=!0;break}n=n.getParent()}const i=e.skipTransform,r=e.relativeTo||t&&this.getStage()||void 0,o=this.getSelfRect(),s=!e.skipStroke&&this.hasStroke(),a=s&&this.strokeWidth()||0,l=o.width+a,c=o.height+a,u=!e.skipShadow&&this.hasShadow(),d=u?this.shadowOffsetX():0,h=u?this.shadowOffsetY():0,p=l+Math.abs(d),f=c+Math.abs(h),m=u&&this.shadowBlur()||0,g=p+2*m,v=f+2*m,y={width:g,height:v,x:-(a/2+m)+Math.min(d,0)+o.x,y:-(a/2+m)+Math.min(h,0)+o.y};return i?y:this._transformedRect(y,r)}drawScene(e,t,n){const i=this.getLayer();let r,o,s=e||i.getCanvas(),a=s.getContext(),l=this._getCanvasCache(),c=this.getSceneFunc(),u=this.hasShadow();const d=s.isCache,h=t===this;if(!this.isVisible()&&!h)return this;if(l){a.save();const e=this.getAbsoluteTransform(t).getMatrix();return a.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedSceneCanvas(a),a.restore(),this}if(!c)return this;if(a.save(),this._useBufferCanvas()&&!d){r=this.getStage();const e=n||r.bufferCanvas;o=e.getContext(),o.clear(),o.save(),o._applyLineJoin(this);var p=this.getAbsoluteTransform(t).getMatrix();o.transform(p[0],p[1],p[2],p[3],p[4],p[5]),c.call(this,o,this),o.restore();const i=e.pixelRatio;u&&a._applyShadow(this),a._applyOpacity(this),a._applyGlobalCompositeOperation(this),a.drawImage(e._canvas,0,0,e.width/i,e.height/i)}else{if(a._applyLineJoin(this),!h){p=this.getAbsoluteTransform(t).getMatrix();a.transform(p[0],p[1],p[2],p[3],p[4],p[5]),a._applyOpacity(this),a._applyGlobalCompositeOperation(this)}u&&a._applyShadow(this),c.call(this,a,this)}return a.restore(),this}drawHit(e,t,n=!1){if(!this.shouldDrawHit(t,n))return this;const i=this.getLayer(),o=e||i.hitCanvas,s=o&&o.getContext(),a=this.hitFunc()||this.sceneFunc(),l=this._getCanvasCache(),c=l&&l.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),c){s.save();const e=this.getAbsoluteTransform(t).getMatrix();return s.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedHitCanvas(s),s.restore(),this}if(!a)return this;s.save(),s._applyLineJoin(this);const u=this===t;if(!u){const e=this.getAbsoluteTransform(t).getMatrix();s.transform(e[0],e[1],e[2],e[3],e[4],e[5])}return a.call(this,s,this),s.restore(),this}drawHitFromCache(e=0){const t=this._getCanvasCache(),n=this._getCachedSceneCanvas(),i=t.hit,o=i.getContext(),s=i.getWidth(),a=i.getHeight();o.clear(),o.drawImage(n._canvas,0,0,s,a);try{const t=o.getImageData(0,0,s,a),n=t.data,i=n.length,l=r.Util._hexToRgb(this.colorKey);for(let r=0;r<i;r+=4){const t=n[r+3];t>e?(n[r]=l.r,n[r+1]=l.g,n[r+2]=l.b,n[r+3]=255):n[r+3]=0}o.putImageData(t,0,0)}catch(l){r.Util.error("Unable to draw hit graph from cached scene canvas. "+l.message)}return this}hasPointerCapture(e){return c.hasPointerCapture(e,this)}setPointerCapture(e){c.setPointerCapture(e,this)}releaseCapture(e){c.releaseCapture(e,this)}}t.Shape=E,E.prototype._fillFunc=v,E.prototype._strokeFunc=y,E.prototype._fillFuncHit=b,E.prototype._strokeFuncHit=w,E.prototype._centroid=!1,E.prototype.nodeType="Shape",(0,l._registerNode)(E),E.prototype.eventListeners={},E.prototype.on.call(E.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",k),E.prototype.on.call(E.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",_),E.prototype.on.call(E.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",S),E.prototype.on.call(E.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",x),E.prototype.on.call(E.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",C),o.Factory.addGetterSetter(E,"stroke",void 0,(0,a.getStringOrGradientValidator)()),o.Factory.addGetterSetter(E,"strokeWidth",2,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillAfterStrokeEnabled",!1),o.Factory.addGetterSetter(E,"hitStrokeWidth","auto",(0,a.getNumberOrAutoValidator)()),o.Factory.addGetterSetter(E,"strokeHitEnabled",!0,(0,a.getBooleanValidator)()),o.Factory.addGetterSetter(E,"perfectDrawEnabled",!0,(0,a.getBooleanValidator)()),o.Factory.addGetterSetter(E,"shadowForStrokeEnabled",!0,(0,a.getBooleanValidator)()),o.Factory.addGetterSetter(E,"lineJoin"),o.Factory.addGetterSetter(E,"lineCap"),o.Factory.addGetterSetter(E,"sceneFunc"),o.Factory.addGetterSetter(E,"hitFunc"),o.Factory.addGetterSetter(E,"dash"),o.Factory.addGetterSetter(E,"dashOffset",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"shadowColor",void 0,(0,a.getStringValidator)()),o.Factory.addGetterSetter(E,"shadowBlur",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"shadowOpacity",1,(0,a.getNumberValidator)()),o.Factory.addComponentsGetterSetter(E,"shadowOffset",["x","y"]),o.Factory.addGetterSetter(E,"shadowOffsetX",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"shadowOffsetY",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillPatternImage"),o.Factory.addGetterSetter(E,"fill",void 0,(0,a.getStringOrGradientValidator)()),o.Factory.addGetterSetter(E,"fillPatternX",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillPatternY",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillLinearGradientColorStops"),o.Factory.addGetterSetter(E,"strokeLinearGradientColorStops"),o.Factory.addGetterSetter(E,"fillRadialGradientStartRadius",0),o.Factory.addGetterSetter(E,"fillRadialGradientEndRadius",0),o.Factory.addGetterSetter(E,"fillRadialGradientColorStops"),o.Factory.addGetterSetter(E,"fillPatternRepeat","repeat"),o.Factory.addGetterSetter(E,"fillEnabled",!0),o.Factory.addGetterSetter(E,"strokeEnabled",!0),o.Factory.addGetterSetter(E,"shadowEnabled",!0),o.Factory.addGetterSetter(E,"dashEnabled",!0),o.Factory.addGetterSetter(E,"strokeScaleEnabled",!0),o.Factory.addGetterSetter(E,"fillPriority","color"),o.Factory.addComponentsGetterSetter(E,"fillPatternOffset",["x","y"]),o.Factory.addGetterSetter(E,"fillPatternOffsetX",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillPatternOffsetY",0,(0,a.getNumberValidator)()),o.Factory.addComponentsGetterSetter(E,"fillPatternScale",["x","y"]),o.Factory.addGetterSetter(E,"fillPatternScaleX",1,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillPatternScaleY",1,(0,a.getNumberValidator)()),o.Factory.addComponentsGetterSetter(E,"fillLinearGradientStartPoint",["x","y"]),o.Factory.addComponentsGetterSetter(E,"strokeLinearGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(E,"fillLinearGradientStartPointX",0),o.Factory.addGetterSetter(E,"strokeLinearGradientStartPointX",0),o.Factory.addGetterSetter(E,"fillLinearGradientStartPointY",0),o.Factory.addGetterSetter(E,"strokeLinearGradientStartPointY",0),o.Factory.addComponentsGetterSetter(E,"fillLinearGradientEndPoint",["x","y"]),o.Factory.addComponentsGetterSetter(E,"strokeLinearGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(E,"fillLinearGradientEndPointX",0),o.Factory.addGetterSetter(E,"strokeLinearGradientEndPointX",0),o.Factory.addGetterSetter(E,"fillLinearGradientEndPointY",0),o.Factory.addGetterSetter(E,"strokeLinearGradientEndPointY",0),o.Factory.addComponentsGetterSetter(E,"fillRadialGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(E,"fillRadialGradientStartPointX",0),o.Factory.addGetterSetter(E,"fillRadialGradientStartPointY",0),o.Factory.addComponentsGetterSetter(E,"fillRadialGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(E,"fillRadialGradientEndPointX",0),o.Factory.addGetterSetter(E,"fillRadialGradientEndPointY",0),o.Factory.addGetterSetter(E,"fillPatternRotation",0),o.Factory.addGetterSetter(E,"fillRule",void 0,(0,a.getStringValidator)()),o.Factory.backCompat(E,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})},4821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arc=void 0;const i=n(4892),r=n(4723),o=n(8871),s=n(5483),a=n(8871);class l extends r.Shape{_sceneFunc(e){const t=o.Konva.getAngle(this.angle()),n=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,t,n),e.arc(0,0,this.innerRadius(),t,0,!n),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),t=this.outerRadius(),n=this.clockwise(),i=o.Konva.getAngle(n?360-this.angle():this.angle()),r=Math.cos(Math.min(i,Math.PI)),s=1,a=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),l=Math.sin(Math.min(i,Math.PI/2)),c=r*(r>0?e:t),u=s*(s>0?t:e),d=a*(a>0?e:t),h=l*(l>0?t:e);return{x:c,y:n?-1*h:d,width:u-c,height:h-d}}}t.Arc=l,l.prototype._centroid=!0,l.prototype.className="Arc",l.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"],(0,a._registerNode)(l),i.Factory.addGetterSetter(l,"innerRadius",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"outerRadius",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"angle",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"clockwise",!1,(0,s.getBooleanValidator)())},4843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HSV=void 0;const i=n(4892),r=n(6536),o=n(5483),s=function(e){const t=e.data,n=t.length,i=Math.pow(2,this.value()),r=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=i*r*Math.cos(o*Math.PI/180),a=i*r*Math.sin(o*Math.PI/180),l=.299*i+.701*s+.167*a,c=.587*i-.587*s+.33*a,u=.114*i-.114*s-.497*a,d=.299*i-.299*s-.328*a,h=.587*i+.413*s+.035*a,p=.114*i-.114*s+.293*a,f=.299*i-.3*s+1.25*a,m=.587*i-.586*s-1.05*a,g=.114*i+.886*s-.2*a;let v,y,b,w;for(let k=0;k<n;k+=4)v=t[k+0],y=t[k+1],b=t[k+2],w=t[k+3],t[k+0]=l*v+c*y+u*b,t[k+1]=d*v+h*y+p*b,t[k+2]=f*v+m*y+g*b,t[k+3]=w};t.HSV=s,i.Factory.addGetterSetter(r.Node,"hue",0,(0,o.getNumberValidator)(),i.Factory.afterSetFilter),i.Factory.addGetterSetter(r.Node,"saturation",0,(0,o.getNumberValidator)(),i.Factory.afterSetFilter),i.Factory.addGetterSetter(r.Node,"value",0,(0,o.getNumberValidator)(),i.Factory.afterSetFilter)},4892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const i=n(4060),r=n(5483),o="get",s="set";t.Factory={addGetterSetter(e,n,i,r,o){t.Factory.addGetter(e,n,i),t.Factory.addSetter(e,n,r,o),t.Factory.addOverloadedGetterSetter(e,n)},addGetter(e,t,n){var r=o+i.Util._capitalize(t);e.prototype[r]=e.prototype[r]||function(){const e=this.attrs[t];return void 0===e?n:e}},addSetter(e,n,r,o){var a=s+i.Util._capitalize(n);e.prototype[a]||t.Factory.overWriteSetter(e,n,r,o)},overWriteSetter(e,t,n,r){var o=s+i.Util._capitalize(t);e.prototype[o]=function(e){return n&&void 0!==e&&null!==e&&(e=n.call(this,e,t)),this._setAttr(t,e),r&&r.call(this),this}},addComponentsGetterSetter(e,n,a,l,c){const u=a.length,d=i.Util._capitalize,h=o+d(n),p=s+d(n);e.prototype[h]=function(){const e={};for(let t=0;t<u;t++){const i=a[t];e[i]=this.getAttr(n+d(i))}return e};const f=(0,r.getComponentValidator)(a);e.prototype[p]=function(e){const t=this.attrs[n];l&&(e=l.call(this,e,n)),f&&f.call(this,e,n);for(const i in e)e.hasOwnProperty(i)&&this._setAttr(n+d(i),e[i]);return e||a.forEach((e=>{this._setAttr(n+d(e),void 0)})),this._fireChangeEvent(n,t,e),c&&c.call(this),this},t.Factory.addOverloadedGetterSetter(e,n)},addOverloadedGetterSetter(e,t){var n=i.Util._capitalize(t),r=s+n,a=o+n;e.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[a]()}},addDeprecatedGetterSetter(e,n,r,s){i.Util.error("Adding deprecated "+n);const a=o+i.Util._capitalize(n),l=n+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[a]=function(){i.Util.error(l);const e=this.attrs[n];return void 0===e?r:e},t.Factory.addSetter(e,n,s,(function(){i.Util.error(l)})),t.Factory.addOverloadedGetterSetter(e,n)},backCompat(e,t){i.Util.each(t,(function(t,n){const r=e.prototype[n],a=o+i.Util._capitalize(t),l=s+i.Util._capitalize(t);function c(){r.apply(this,arguments),i.Util.error('"'+t+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}e.prototype[t]=c,e.prototype[a]=c,e.prototype[l]=c}))},afterSetFilter(){this._filterUpToDate=!1}}},4943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pixelate=void 0;const i=n(4892),r=n(4060),o=n(6536),s=n(5483),a=function(e){let t,n,i,o,s,a,l,c,u,d,h,p,f,m,g=Math.ceil(this.pixelSize()),v=e.width,y=e.height,b=Math.ceil(v/g),w=Math.ceil(y/g),k=e.data;if(g<=0)r.Util.error("pixelSize value can not be <= 0");else for(p=0;p<b;p+=1)for(f=0;f<w;f+=1){for(o=0,s=0,a=0,l=0,c=p*g,u=c+g,d=f*g,h=d+g,m=0,t=c;t<u;t+=1)if(!(t>=v))for(n=d;n<h;n+=1)n>=y||(i=4*(v*n+t),o+=k[i+0],s+=k[i+1],a+=k[i+2],l+=k[i+3],m+=1);for(o/=m,s/=m,a/=m,l/=m,t=c;t<u;t+=1)if(!(t>=v))for(n=d;n<h;n+=1)n>=y||(i=4*(v*n+t),k[i+0]=o,k[i+1]=s,k[i+2]=a,k[i+3]=l)}};t.Pixelate=a,i.Factory.addGetterSetter(o.Node,"pixelSize",8,(0,s.getNumberValidator)(),i.Factory.afterSetFilter)},5058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transformer=void 0;const i=n(4060),r=n(4892),o=n(6536),s=n(4723),a=n(5155),l=n(7949),c=n(8871),u=n(5483),d=n(8871),h="tr-konva",p=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map((e=>e+`.${h}`)).join(" "),f="nodesRect",m=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],g={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},v="ontouchstart"in c.Konva._global;function y(e,t,n){if("rotater"===e)return n;t+=i.Util.degToRad(g[e]||0);const r=(i.Util.radToDeg(t)%360+360)%360;return i.Util._inRange(r,337.5,360)||i.Util._inRange(r,0,22.5)?"ns-resize":i.Util._inRange(r,22.5,67.5)?"nesw-resize":i.Util._inRange(r,67.5,112.5)?"ew-resize":i.Util._inRange(r,112.5,157.5)?"nwse-resize":i.Util._inRange(r,157.5,202.5)?"ns-resize":i.Util._inRange(r,202.5,247.5)?"nesw-resize":i.Util._inRange(r,247.5,292.5)?"ew-resize":i.Util._inRange(r,292.5,337.5)?"nwse-resize":(i.Util.error("Transformer has unknown angle for cursor detection: "+r),"pointer")}const b=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],w=1e8;function k(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function _(e,t,n){const i=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),r=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:i,y:r}}function S(e,t){const n=k(e);return _(e,t,n)}function x(e,t,n){let i=t;for(let r=0;r<e.length;r++){const o=c.Konva.getAngle(e[r]),s=Math.abs(o-t)%(2*Math.PI),a=Math.min(s,2*Math.PI-s);a<n&&(i=o)}return i}let C=0;class E extends l.Group{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(p,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return i.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return h+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const t=e.filter((e=>!e.isAncestorOf(this)||(i.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1)));this._nodes=e=t,1===e.length&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach((e=>{const t=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()};if(e._attrsAffectingSize.length){const n=e._attrsAffectingSize.map((e=>e+"Change."+this._getEventNamespace())).join(" ");e.on(n,t)}e.on(m.map((e=>e+`.${this._getEventNamespace()}`)).join(" "),t),e.on(`absoluteTransformChange.${this._getEventNamespace()}`,t),this._proxyDrag(e)})),this._resetTransformCache();const n=!!this.findOne(".top-left");return n&&this.update(),this}_proxyDrag(e){let t;e.on(`dragstart.${this._getEventNamespace()}`,(n=>{t=e.getAbsolutePosition(),this.isDragging()||e===this.findOne(".back")||this.startDrag(n,!1)})),e.on(`dragmove.${this._getEventNamespace()}`,(n=>{if(!t)return;const i=e.getAbsolutePosition(),r=i.x-t.x,o=i.y-t.y;this.nodes().forEach((t=>{if(t===e)return;if(t.isDragging())return;const i=t.getAbsolutePosition();t.setAbsolutePosition({x:i.x+r,y:i.y+o}),t.startDrag(n)})),t=null}))}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach((e=>{e.off("."+this._getEventNamespace())})),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(f),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(f,this.__getNodeRect)}__getNodeShape(e,t=this.rotation(),n){const i=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),r=e.getAbsoluteScale(n),o=e.getAbsolutePosition(n),s=i.x*r.x-e.offsetX()*r.x,a=i.y*r.y-e.offsetY()*r.y,l=(c.Konva.getAngle(e.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI),u={x:o.x+s*Math.cos(l)+a*Math.sin(-l),y:o.y+a*Math.cos(l)+s*Math.sin(l),width:i.width*r.x,height:i.height*r.y,rotation:l};return _(u,-c.Konva.getAngle(t),{x:0,y:0})}__getNodeRect(){const e=this.getNode();if(!e)return{x:-w,y:-w,width:0,height:0,rotation:0};const t=[];this.nodes().map((e=>{const n=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],r=e.getAbsoluteTransform();i.forEach((function(e){const n=r.point(e);t.push(n)}))}));const n=new i.Transform;n.rotate(-c.Konva.getAngle(this.rotation()));let r=1/0,o=1/0,s=-1/0,a=-1/0;t.forEach((function(e){const t=n.point(e);void 0===r&&(r=s=t.x,o=a=t.y),r=Math.min(r,t.x),o=Math.min(o,t.y),s=Math.max(s,t.x),a=Math.max(a,t.y)})),n.invert();const l=n.point({x:r,y:o});return{x:l.x,y:l.y,width:s-r,height:a-o,rotation:c.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),b.forEach((e=>{this._createAnchor(e)})),this._createAnchor("rotater")}_createAnchor(e){const t=new a.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:v?10:"auto"}),n=this;t.on("mousedown touchstart",(function(e){n._handleMouseDown(e)})),t.on("dragstart",(e=>{t.stopDrag(),e.cancelBubble=!0})),t.on("dragend",(e=>{e.cancelBubble=!0})),t.on("mouseenter",(()=>{const n=c.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),r=y(e,n,i);t.getStage().content&&(t.getStage().content.style.cursor=r),this._cursorChange=!0})),t.on("mouseout",(()=>{t.getStage().content&&(t.getStage().content.style.cursor=""),this._cursorChange=!1})),this.add(t)}_createBack(){const e=new s.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(e,t){const n=t.getParent(),r=n.padding();e.beginPath(),e.rect(-r,-r,t.width()+2*r,t.height()+2*r),e.moveTo(t.width()/2,-r),n.rotateEnabled()&&n.rotateLineVisible()&&e.lineTo(t.width()/2,-n.rotateAnchorOffset()*i.Util._sign(t.height())-r),e.fillStrokeShape(t)},hitFunc:(e,t)=>{if(!this.shouldOverdrawWholeArea())return;const n=this.padding();e.beginPath(),e.rect(-n,-n,t.width()+2*n,t.height()+2*n),e.fillStrokeShape(t)}});this.add(e),this._proxyDrag(e),e.on("dragstart",(e=>{e.cancelBubble=!0})),e.on("dragmove",(e=>{e.cancelBubble=!0})),e.on("dragend",(e=>{e.cancelBubble=!0})),this.on("dragmove",(e=>{this.update()}))}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];const t=this._getNodeRect(),n=t.width,i=t.height,r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));this.sin=Math.abs(i/r),this.cos=Math.abs(n/r),"undefined"!==typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const o=e.target.getAbsolutePosition(),s=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-o.x,y:s.y-o.y},C++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach((t=>{t._fire("transformstart",{evt:e.evt,target:t})}))}_handleMouseMove(e){let t,n,i;const r=this.findOne("."+this._movingAnchorName),o=r.getStage();o.setPointersPositions(e);const s=o.getPointerPosition();let a={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y};const l=r.getAbsolutePosition();this.anchorDragBoundFunc()&&(a=this.anchorDragBoundFunc()(l,a,e)),r.setAbsolutePosition(a);const u=r.getAbsolutePosition();if(l.x===u.x&&l.y===u.y)return;if("rotater"===this._movingAnchorName){const i=this._getNodeRect();t=r.x()-i.width/2,n=-r.y()+i.height/2;let o=Math.atan2(-n,t)+Math.PI/2;i.height<0&&(o-=Math.PI);const s=c.Konva.getAngle(this.rotation()),a=s+o,l=c.Konva.getAngle(this.rotationSnapTolerance()),u=x(this.rotationSnaps(),a,l),d=u-i.rotation,h=S(i,d);return void this._fitNodesInto(h,e)}const d=this.shiftBehavior();let h;h="inverted"===d?this.keepRatio()&&!e.shiftKey:"none"===d?this.keepRatio():this.keepRatio()||e.shiftKey;var p=this.centeredScaling()||e.altKey;if("top-left"===this._movingAnchorName){if(h){var f=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(f.x-r.x(),2)+Math.pow(f.y-r.y(),2));var m=this.findOne(".top-left").x()>f.x?-1:1,g=this.findOne(".top-left").y()>f.y?-1:1;t=i*this.cos*m,n=i*this.sin*g,this.findOne(".top-left").x(f.x-t),this.findOne(".top-left").y(f.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(r.y());else if("top-right"===this._movingAnchorName){if(h){f=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(r.x()-f.x,2)+Math.pow(f.y-r.y(),2));m=this.findOne(".top-right").x()<f.x?-1:1,g=this.findOne(".top-right").y()>f.y?-1:1;t=i*this.cos*m,n=i*this.sin*g,this.findOne(".top-right").x(f.x+t),this.findOne(".top-right").y(f.y-n)}var v=r.position();this.findOne(".top-left").y(v.y),this.findOne(".bottom-right").x(v.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(r.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(r.x());else if("bottom-left"===this._movingAnchorName){if(h){f=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(f.x-r.x(),2)+Math.pow(r.y()-f.y,2));m=f.x<r.x()?-1:1,g=r.y()<f.y?-1:1;t=i*this.cos*m,n=i*this.sin*g,r.x(f.x-t),r.y(f.y+n)}v=r.position(),this.findOne(".top-left").x(v.x),this.findOne(".bottom-right").y(v.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(r.y());else if("bottom-right"===this._movingAnchorName){if(h){f=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(r.x()-f.x,2)+Math.pow(r.y()-f.y,2));m=this.findOne(".bottom-right").x()<f.x?-1:1,g=this.findOne(".bottom-right").y()<f.y?-1:1;t=i*this.cos*m,n=i*this.sin*g,this.findOne(".bottom-right").x(f.x+t),this.findOne(".bottom-right").y(f.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));p=this.centeredScaling()||e.altKey;if(p){const e=this.findOne(".top-left"),t=this.findOne(".bottom-right"),n=e.x(),i=e.y(),r=this.getWidth()-t.x(),o=this.getHeight()-t.y();t.move({x:-n,y:-i}),e.move({x:r,y:o})}const y=this.findOne(".top-left").getAbsolutePosition();t=y.x,n=y.y;const b=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),w=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:t,y:n,width:b,height:w,rotation:c.Konva.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var t;if(this._transforming){this._transforming=!1,"undefined"!==typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const n=this.getNode();C--,this._fire("transformend",{evt:e,target:n}),null===(t=this.getLayer())||void 0===t||t.batchDraw(),n&&this._nodes.forEach((t=>{var n;t._fire("transformend",{evt:e,target:t}),null===(n=t.getLayer())||void 0===n||n.batchDraw()})),this._movingAnchorName=null}}_fitNodesInto(e,t){const n=this._getNodeRect(),r=1;if(i.Util._inRange(e.width,2*-this.padding()-r,r))return void this.update();if(i.Util._inRange(e.height,2*-this.padding()-r,r))return void this.update();const o=new i.Transform;if(o.rotate(c.Konva.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const t=o.point({x:2*-this.padding(),y:0});e.x+=t.x,e.y+=t.y,e.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const t=o.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.width+=2*this.padding()}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const t=o.point({x:0,y:2*-this.padding()});e.x+=t.x,e.y+=t.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const t=o.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}if(this.boundBoxFunc()){const t=this.boundBoxFunc()(n,e);t?e=t:i.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,a=new i.Transform;a.translate(n.x,n.y),a.rotate(n.rotation),a.scale(n.width/s,n.height/s);const l=new i.Transform,u=e.width/s,d=e.height/s;!1===this.flipEnabled()?(l.translate(e.x,e.y),l.rotate(e.rotation),l.translate(e.width<0?e.width:0,e.height<0?e.height:0),l.scale(Math.abs(u),Math.abs(d))):(l.translate(e.x,e.y),l.rotate(e.rotation),l.scale(u,d));const h=l.multiply(a.invert());this._nodes.forEach((e=>{var t;const n=e.getParent().getAbsoluteTransform(),r=e.getTransform().copy();r.translate(e.offsetX(),e.offsetY());const o=new i.Transform;o.multiply(n.copy().invert()).multiply(h).multiply(n).multiply(r);const s=o.decompose();e.setAttrs(s),null===(t=e.getLayer())||void 0===t||t.batchDraw()})),this.rotation(i.Util._getRotation(e.rotation)),this._nodes.forEach((e=>{this._fire("transform",{evt:t,target:e}),e._fire("transform",{evt:t,target:e})})),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,t){const n=this.findOne(e);n.setAttrs(t)}update(){var e;const t=this._getNodeRect();this.rotation(i.Util._getRotation(t.rotation));const n=t.width,r=t.height,o=this.enabledAnchors(),s=this.resizeEnabled(),a=this.padding(),l=this.anchorSize(),c=this.find("._anchor");c.forEach((e=>{e.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})})),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+a,offsetY:l/2+a,visible:s&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:l/2+a,visible:s&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:l/2-a,offsetY:l/2+a,visible:s&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:r/2,offsetX:l/2+a,visible:s&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:r/2,offsetX:l/2-a,visible:s&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:r,offsetX:l/2+a,offsetY:l/2-a,visible:s&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:r,offsetY:l/2-a,visible:s&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:r,offsetX:l/2-a,offsetY:l/2-a,visible:s&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*i.Util._sign(r)-a,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:r,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const u=this.anchorStyleFunc();u&&c.forEach((e=>{u(e)})),null===(e=this.getLayer())||void 0===e||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),l.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return o.Node.prototype.toObject.call(this)}clone(e){const t=o.Node.prototype.clone.call(this,e);return t}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}function T(e){return e instanceof Array||i.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach((function(e){-1===b.indexOf(e)&&i.Util.warn("Unknown anchor name: "+e+". Available names are: "+b.join(", "))})),e||[]}t.Transformer=E,E.isTransforming=()=>C>0,E.prototype.className="Transformer",(0,d._registerNode)(E),r.Factory.addGetterSetter(E,"enabledAnchors",b,T),r.Factory.addGetterSetter(E,"flipEnabled",!0,(0,u.getBooleanValidator)()),r.Factory.addGetterSetter(E,"resizeEnabled",!0),r.Factory.addGetterSetter(E,"anchorSize",10,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"rotateEnabled",!0),r.Factory.addGetterSetter(E,"rotateLineVisible",!0),r.Factory.addGetterSetter(E,"rotationSnaps",[]),r.Factory.addGetterSetter(E,"rotateAnchorOffset",50,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"rotateAnchorCursor","crosshair"),r.Factory.addGetterSetter(E,"rotationSnapTolerance",5,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"borderEnabled",!0),r.Factory.addGetterSetter(E,"anchorStroke","rgb(0, 161, 255)"),r.Factory.addGetterSetter(E,"anchorStrokeWidth",1,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"anchorFill","white"),r.Factory.addGetterSetter(E,"anchorCornerRadius",0,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"borderStroke","rgb(0, 161, 255)"),r.Factory.addGetterSetter(E,"borderStrokeWidth",1,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"borderDash"),r.Factory.addGetterSetter(E,"keepRatio",!0),r.Factory.addGetterSetter(E,"shiftBehavior","default"),r.Factory.addGetterSetter(E,"centeredScaling",!1),r.Factory.addGetterSetter(E,"ignoreStroke",!1),r.Factory.addGetterSetter(E,"padding",0,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"nodes"),r.Factory.addGetterSetter(E,"node"),r.Factory.addGetterSetter(E,"boundBoxFunc"),r.Factory.addGetterSetter(E,"anchorDragBoundFunc"),r.Factory.addGetterSetter(E,"anchorStyleFunc"),r.Factory.addGetterSetter(E,"shouldOverdrawWholeArea",!1),r.Factory.addGetterSetter(E,"useSingleNodeRotation",!0),r.Factory.backCompat(E,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"})},5114:(e,t,n)=>{"use strict";n.d(t,{hU:()=>Ni});
|
|
16
|
+
*/(function(){"use strict";var t="input is invalid type",r="object"===typeof window,o=r?window:{};o.JS_SHA256_NO_WINDOW&&(r=!1);var s=!r&&"object"===typeof self,a=!o.JS_SHA256_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;a?o=n.g:s&&(o=self);var l=!o.JS_SHA256_NO_COMMON_JS&&e.exports,c=n.amdO,u=!o.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],p=[24,16,8,0],f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=["hex","array","digest","arrayBuffer"],g=[];!o.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var v=function(e,t){return function(n){return new _(t,!0).update(n)[e]()}},y=function(e){var t=v("hex",e);a&&(t=b(t,e)),t.create=function(){return new _(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<m.length;++n){var i=m[n];t[i]=v(i,e)}return t},b=function(e,i){var r,s=n(4394),a=n(1903).Buffer,l=i?"sha224":"sha256";r=a.from&&!o.JS_SHA256_NO_BUFFER_FROM?a.from:function(e){return new a(e)};var c=function(n){if("string"===typeof n)return s.createHash(l).update(n,"utf8").digest("hex");if(null===n||void 0===n)throw new Error(t);return n.constructor===ArrayBuffer&&(n=new Uint8Array(n)),Array.isArray(n)||ArrayBuffer.isView(n)||n.constructor===a?s.createHash(l).update(r(n)).digest("hex"):e(n)};return c},w=function(e,t){return function(n,i){return new S(n,t,!0).update(i)[e]()}},k=function(e){var t=w("hex",e);t.create=function(t){return new S(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<m.length;++n){var i=m[n];t[i]=w(i,e)}return t};function _(e,t){t?(g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function S(e,n,i){var r,o=typeof e;if("string"===o){var s,a=[],l=e.length,c=0;for(r=0;r<l;++r)s=e.charCodeAt(r),s<128?a[c++]=s:s<2048?(a[c++]=192|s>>>6,a[c++]=128|63&s):s<55296||s>=57344?(a[c++]=224|s>>>12,a[c++]=128|s>>>6&63,a[c++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++r)),a[c++]=240|s>>>18,a[c++]=128|s>>>12&63,a[c++]=128|s>>>6&63,a[c++]=128|63&s);e=a}else{if("object"!==o)throw new Error(t);if(null===e)throw new Error(t);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(t)}e.length>64&&(e=new _(n,!0).update(e).array());var d=[],h=[];for(r=0;r<64;++r){var p=e[r]||0;d[r]=92^p,h[r]=54^p}_.call(this,n,i),this.update(h),this.oKeyPad=d,this.inner=!0,this.sharedMemory=i}_.prototype.update=function(e){if(!this.finalized){var n,i=typeof e;if("string"!==i){if("object"!==i)throw new Error(t);if(null===e)throw new Error(t);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(t);n=!0}var r,o,s=0,a=e.length,l=this.blocks;while(s<a){if(this.hashed&&(this.hashed=!1,l[0]=this.block,this.block=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),n)for(o=this.start;s<a&&o<64;++s)l[o>>>2]|=e[s]<<p[3&o++];else for(o=this.start;s<a&&o<64;++s)r=e.charCodeAt(s),r<128?l[o>>>2]|=r<<p[3&o++]:r<2048?(l[o>>>2]|=(192|r>>>6)<<p[3&o++],l[o>>>2]|=(128|63&r)<<p[3&o++]):r<55296||r>=57344?(l[o>>>2]|=(224|r>>>12)<<p[3&o++],l[o>>>2]|=(128|r>>>6&63)<<p[3&o++],l[o>>>2]|=(128|63&r)<<p[3&o++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++s)),l[o>>>2]|=(240|r>>>18)<<p[3&o++],l[o>>>2]|=(128|r>>>12&63)<<p[3&o++],l[o>>>2]|=(128|r>>>6&63)<<p[3&o++],l[o>>>2]|=(128|63&r)<<p[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=l[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},_.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=h[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},_.prototype.hash=function(){var e,t,n,i,r,o,s,a,l,c,u,d=this.h0,h=this.h1,p=this.h2,m=this.h3,g=this.h4,v=this.h5,y=this.h6,b=this.h7,w=this.blocks;for(e=16;e<64;++e)r=w[e-15],t=(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,r=w[e-2],n=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,w[e]=w[e-16]+t+w[e-7]+n|0;for(u=h&p,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,r=w[0]-1413257819,b=r-150054599|0,m=r+24177077|0):(a=704751109,r=w[0]-210244248,b=r-1521486534|0,m=r+143694565|0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),a=d&h,i=a^d&p^u,s=g&v^~g&y,r=b+n+s+f[e]+w[e],o=t+i,b=m+r|0,m=r+o|0),t=(m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10),n=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),l=m&d,i=l^m&h^a,s=b&g^~b&v,r=y+n+s+f[e+1]+w[e+1],o=t+i,y=p+r|0,p=r+o|0,t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),c=p&m,i=c^p&d^l,s=y&b^~y&g,r=v+n+s+f[e+2]+w[e+2],o=t+i,v=h+r|0,h=r+o|0,t=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),u=h&p,i=u^h&m^c,s=v&y^~v&b,r=g+n+s+f[e+3]+w[e+3],o=t+i,g=d+r|0,d=r+o|0,this.chromeBugWorkAround=!0;this.h0=this.h0+d|0,this.h1=this.h1+h|0,this.h2=this.h2+p|0,this.h3=this.h3+m|0,this.h4=this.h4+g|0,this.h5=this.h5+v|0,this.h6=this.h6+y|0,this.h7=this.h7+b|0},_.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,o=this.h5,s=this.h6,a=this.h7,l=d[e>>>28&15]+d[e>>>24&15]+d[e>>>20&15]+d[e>>>16&15]+d[e>>>12&15]+d[e>>>8&15]+d[e>>>4&15]+d[15&e]+d[t>>>28&15]+d[t>>>24&15]+d[t>>>20&15]+d[t>>>16&15]+d[t>>>12&15]+d[t>>>8&15]+d[t>>>4&15]+d[15&t]+d[n>>>28&15]+d[n>>>24&15]+d[n>>>20&15]+d[n>>>16&15]+d[n>>>12&15]+d[n>>>8&15]+d[n>>>4&15]+d[15&n]+d[i>>>28&15]+d[i>>>24&15]+d[i>>>20&15]+d[i>>>16&15]+d[i>>>12&15]+d[i>>>8&15]+d[i>>>4&15]+d[15&i]+d[r>>>28&15]+d[r>>>24&15]+d[r>>>20&15]+d[r>>>16&15]+d[r>>>12&15]+d[r>>>8&15]+d[r>>>4&15]+d[15&r]+d[o>>>28&15]+d[o>>>24&15]+d[o>>>20&15]+d[o>>>16&15]+d[o>>>12&15]+d[o>>>8&15]+d[o>>>4&15]+d[15&o]+d[s>>>28&15]+d[s>>>24&15]+d[s>>>20&15]+d[s>>>16&15]+d[s>>>12&15]+d[s>>>8&15]+d[s>>>4&15]+d[15&s];return this.is224||(l+=d[a>>>28&15]+d[a>>>24&15]+d[a>>>20&15]+d[a>>>16&15]+d[a>>>12&15]+d[a>>>8&15]+d[a>>>4&15]+d[15&a]),l},_.prototype.toString=_.prototype.hex,_.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,o=this.h5,s=this.h6,a=this.h7,l=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,r>>>24&255,r>>>16&255,r>>>8&255,255&r,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||l.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),l},_.prototype.array=_.prototype.digest,_.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},S.prototype=new _,S.prototype.finalize=function(){if(_.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();_.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),_.prototype.finalize.call(this)}};var x=y();x.sha256=x,x.sha224=y(!0),x.sha256.hmac=k(),x.sha224.hmac=k(!0),l?e.exports=x:(o.sha256=x.sha256,o.sha224=x.sha224,c&&(i=function(){return x}.call(x,n,x,e),void 0===i||(e.exports=i)))})()},1336:(e,t,n)=>{"use strict";n.d(t,{K8:()=>c,NJ:()=>u,ap:()=>a,m7:()=>l,vm:()=>s});var i=n(1761),r=n(6475),o=n(7412);function s(){if(!("fetch"in(0,r.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if(!s())return!1;var e=(0,r.V)();if(a(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"===typeof n.createElement)try{var l=n.createElement("iframe");l.hidden=!0,n.head.appendChild(l),l.contentWindow&&l.contentWindow.fetch&&(t=a(l.contentWindow.fetch)),n.head.removeChild(l)}catch(c){i.w&&o.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return t}function c(){if(!s())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}function u(){var e=(0,r.V)(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i}},1486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Path=void 0;const i=n(4892),r=n(4723),o=n(8871),s=n(5570);class a extends r.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",(function(){this._readDataAttribute()}))}_readDataAttribute(){this.dataArray=a.parsePathData(this.data()),this.pathLength=a.getPathLength(this.dataArray)}_sceneFunc(e){const t=this.dataArray;e.beginPath();let n=!1;for(let f=0;f<t.length;f++){const m=t[f].command,g=t[f].points;switch(m){case"L":e.lineTo(g[0],g[1]);break;case"M":e.moveTo(g[0],g[1]);break;case"C":e.bezierCurveTo(g[0],g[1],g[2],g[3],g[4],g[5]);break;case"Q":e.quadraticCurveTo(g[0],g[1],g[2],g[3]);break;case"A":var i=g[0],r=g[1],o=g[2],s=g[3],a=g[4],l=g[5],c=g[6],u=g[7],d=o>s?o:s,h=o>s?1:o/s,p=o>s?s/o:1;e.translate(i,r),e.rotate(c),e.scale(h,p),e.arc(0,0,d,a,a+l,1-u),e.scale(1/h,1/p),e.rotate(-c),e.translate(-i,-r);break;case"z":n=!0,e.closePath();break}}n||this.hasFill()?e.fillStrokeShape(this):e.strokeShape(this)}getSelfRect(){let e=[];this.dataArray.forEach((function(t){if("A"===t.command){const n=t.points[4],i=t.points[5],r=t.points[4]+i;let o=Math.PI/180;if(Math.abs(n-r)<o&&(o=Math.abs(n-r)),i<0)for(let s=n-o;s>r;s-=o){const n=a.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],s,0);e.push(n.x,n.y)}else for(let s=n+o;s<r;s+=o){const n=a.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],s,0);e.push(n.x,n.y)}}else if("C"===t.command)for(let n=0;n<=1;n+=.01){const i=a.getPointOnCubicBezier(n,t.start.x,t.start.y,t.points[0],t.points[1],t.points[2],t.points[3],t.points[4],t.points[5]);e.push(i.x,i.y)}else e=e.concat(t.points)}));let t,n,i=e[0],r=e[0],o=e[1],s=e[1];for(let a=0;a<e.length/2;a++)t=e[2*a],n=e[2*a+1],isNaN(t)||(i=Math.min(i,t),r=Math.max(r,t)),isNaN(n)||(o=Math.min(o,n),s=Math.max(s,n));return{x:i,y:o,width:r-i,height:s-o}}getLength(){return this.pathLength}getPointAtLength(e){return a.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,t,n,i){return Math.sqrt((n-e)*(n-e)+(i-t)*(i-t))}static getPathLength(e){let t=0;for(let n=0;n<e.length;++n)t+=e[n].pathLength;return t}static getPointAtLengthOfDataArray(e,t){let n,i=0,r=t.length;if(!r)return null;while(i<r&&e>t[i].pathLength)e-=t[i].pathLength,++i;if(i===r)return n=t[i-1].points.slice(-2),{x:n[0],y:n[1]};if(e<.01)return n=t[i].points.slice(0,2),{x:n[0],y:n[1]};const o=t[i],l=o.points;switch(o.command){case"L":return a.getPointOnLine(e,o.start.x,o.start.y,l[0],l[1]);case"C":return a.getPointOnCubicBezier((0,s.t2length)(e,a.getPathLength(t),(e=>(0,s.getCubicArcLength)([o.start.x,l[0],l[2],l[4]],[o.start.y,l[1],l[3],l[5]],e))),o.start.x,o.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return a.getPointOnQuadraticBezier((0,s.t2length)(e,a.getPathLength(t),(e=>(0,s.getQuadraticArcLength)([o.start.x,l[0],l[2]],[o.start.y,l[1],l[3]],e))),o.start.x,o.start.y,l[0],l[1],l[2],l[3]);case"A":var c=l[0],u=l[1],d=l[2],h=l[3],p=l[4],f=l[5],m=l[6];return p+=f*e/o.pathLength,a.getPointOnEllipticalArc(c,u,d,h,p,m)}return null}static getPointOnLine(e,t,n,i,r,o,s){o=null!==o&&void 0!==o?o:t,s=null!==s&&void 0!==s?s:n;const a=this.getLineLength(t,n,i,r);if(a<1e-10)return{x:t,y:n};if(i===t)return{x:o,y:s+(r>n?e:-e)};const l=(r-n)/(i-t),c=Math.sqrt(e*e/(1+l*l))*(i<t?-1:1),u=l*c;if(Math.abs(s-n-l*(o-t))<1e-10)return{x:o+c,y:s+u};const d=((o-t)*(i-t)+(s-n)*(r-n))/(a*a),h=t+d*(i-t),p=n+d*(r-n),f=this.getLineLength(o,s,h,p),m=Math.sqrt(e*e-f*f),g=Math.sqrt(m*m/(1+l*l))*(i<t?-1:1),v=l*g;return{x:h+g,y:p+v}}static getPointOnCubicBezier(e,t,n,i,r,o,s,a,l){function c(e){return e*e*e}function u(e){return 3*e*e*(1-e)}function d(e){return 3*e*(1-e)*(1-e)}function h(e){return(1-e)*(1-e)*(1-e)}const p=a*c(e)+o*u(e)+i*d(e)+t*h(e),f=l*c(e)+s*u(e)+r*d(e)+n*h(e);return{x:p,y:f}}static getPointOnQuadraticBezier(e,t,n,i,r,o,s){function a(e){return e*e}function l(e){return 2*e*(1-e)}function c(e){return(1-e)*(1-e)}const u=o*a(e)+i*l(e)+t*c(e),d=s*a(e)+r*l(e)+n*c(e);return{x:u,y:d}}static getPointOnEllipticalArc(e,t,n,i,r,o){const s=Math.cos(o),a=Math.sin(o),l={x:n*Math.cos(r),y:i*Math.sin(r)};return{x:e+(l.x*s-l.y*a),y:t+(l.x*a+l.y*s)}}static parsePathData(e){if(!e)return[];let t=e;const n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];t=t.replace(new RegExp(" ","g"),",");for(var i=0;i<n.length;i++)t=t.replace(new RegExp(n[i],"g"),"|"+n[i]);const r=t.split("|"),o=[],s=[];let a=0,l=0;const c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let u;for(i=1;i<r.length;i++){let e=r[i],t=e.charAt(0);e=e.slice(1),s.length=0;while(u=c.exec(e))s.push(u[0]);const n=[];for(let i=0,r=s.length;i<r;i++){if("00"===s[i]){n.push(0,0);continue}const e=parseFloat(s[i]);isNaN(e)?n.push(0):n.push(e)}while(n.length>0){if(isNaN(n[0]))break;let e="",i=[];const r=a,s=l;var d,h,p,f,m,g,v,y,b,w;switch(t){case"l":a+=n.shift(),l+=n.shift(),e="L",i.push(a,l);break;case"L":a=n.shift(),l=n.shift(),i.push(a,l);break;case"m":var k=n.shift(),_=n.shift();if(a+=k,l+=_,e="M",o.length>2&&"z"===o[o.length-1].command)for(let e=o.length-2;e>=0;e--)if("M"===o[e].command){a=o[e].points[0]+k,l=o[e].points[1]+_;break}i.push(a,l),t="l";break;case"M":a=n.shift(),l=n.shift(),e="M",i.push(a,l),t="L";break;case"h":a+=n.shift(),e="L",i.push(a,l);break;case"H":a=n.shift(),e="L",i.push(a,l);break;case"v":l+=n.shift(),e="L",i.push(a,l);break;case"V":l=n.shift(),e="L",i.push(a,l);break;case"C":i.push(n.shift(),n.shift(),n.shift(),n.shift()),a=n.shift(),l=n.shift(),i.push(a,l);break;case"c":i.push(a+n.shift(),l+n.shift(),a+n.shift(),l+n.shift()),a+=n.shift(),l+=n.shift(),e="C",i.push(a,l);break;case"S":h=a,p=l,d=o[o.length-1],"C"===d.command&&(h=a+(a-d.points[2]),p=l+(l-d.points[3])),i.push(h,p,n.shift(),n.shift()),a=n.shift(),l=n.shift(),e="C",i.push(a,l);break;case"s":h=a,p=l,d=o[o.length-1],"C"===d.command&&(h=a+(a-d.points[2]),p=l+(l-d.points[3])),i.push(h,p,a+n.shift(),l+n.shift()),a+=n.shift(),l+=n.shift(),e="C",i.push(a,l);break;case"Q":i.push(n.shift(),n.shift()),a=n.shift(),l=n.shift(),i.push(a,l);break;case"q":i.push(a+n.shift(),l+n.shift()),a+=n.shift(),l+=n.shift(),e="Q",i.push(a,l);break;case"T":h=a,p=l,d=o[o.length-1],"Q"===d.command&&(h=a+(a-d.points[0]),p=l+(l-d.points[1])),a=n.shift(),l=n.shift(),e="Q",i.push(h,p,a,l);break;case"t":h=a,p=l,d=o[o.length-1],"Q"===d.command&&(h=a+(a-d.points[0]),p=l+(l-d.points[1])),a+=n.shift(),l+=n.shift(),e="Q",i.push(h,p,a,l);break;case"A":f=n.shift(),m=n.shift(),g=n.shift(),v=n.shift(),y=n.shift(),b=a,w=l,a=n.shift(),l=n.shift(),e="A",i=this.convertEndpointToCenterParameterization(b,w,a,l,v,y,f,m,g);break;case"a":f=n.shift(),m=n.shift(),g=n.shift(),v=n.shift(),y=n.shift(),b=a,w=l,a+=n.shift(),l+=n.shift(),e="A",i=this.convertEndpointToCenterParameterization(b,w,a,l,v,y,f,m,g);break}o.push({command:e||t,points:i,start:{x:r,y:s},pathLength:this.calcLength(r,s,e||t,i)})}"z"!==t&&"Z"!==t||o.push({command:"z",points:[],start:void 0,pathLength:0})}return o}static calcLength(e,t,n,i){let r,o,l,c;const u=a;switch(n){case"L":return u.getLineLength(e,t,i[0],i[1]);case"C":return(0,s.getCubicArcLength)([e,i[0],i[2],i[4]],[t,i[1],i[3],i[5]],1);case"Q":return(0,s.getQuadraticArcLength)([e,i[0],i[2]],[t,i[1],i[3]],1);case"A":r=0;var d=i[4],h=i[5],p=i[4]+h,f=Math.PI/180;if(Math.abs(d-p)<f&&(f=Math.abs(d-p)),o=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],d,0),h<0)for(c=d-f;c>p;c-=f)l=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),r+=u.getLineLength(o.x,o.y,l.x,l.y),o=l;else for(c=d+f;c<p;c+=f)l=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),r+=u.getLineLength(o.x,o.y,l.x,l.y),o=l;return l=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),r+=u.getLineLength(o.x,o.y,l.x,l.y),r}return 0}static convertEndpointToCenterParameterization(e,t,n,i,r,o,s,a,l){const c=l*(Math.PI/180),u=Math.cos(c)*(e-n)/2+Math.sin(c)*(t-i)/2,d=-1*Math.sin(c)*(e-n)/2+Math.cos(c)*(t-i)/2,h=u*u/(s*s)+d*d/(a*a);h>1&&(s*=Math.sqrt(h),a*=Math.sqrt(h));let p=Math.sqrt((s*s*(a*a)-s*s*(d*d)-a*a*(u*u))/(s*s*(d*d)+a*a*(u*u)));r===o&&(p*=-1),isNaN(p)&&(p=0);const f=p*s*d/a,m=p*-a*u/s,g=(e+n)/2+Math.cos(c)*f-Math.sin(c)*m,v=(t+i)/2+Math.sin(c)*f+Math.cos(c)*m,y=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},b=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(y(e)*y(t))},w=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(b(e,t))},k=w([1,0],[(u-f)/s,(d-m)/a]),_=[(u-f)/s,(d-m)/a],S=[(-1*u-f)/s,(-1*d-m)/a];let x=w(_,S);return b(_,S)<=-1&&(x=Math.PI),b(_,S)>=1&&(x=0),0===o&&x>0&&(x-=2*Math.PI),1===o&&x<0&&(x+=2*Math.PI),[g,v,s,a,k,x,c,o]}}t.Path=a,a.prototype.className="Path",a.prototype._attrsAffectingSize=["data"],(0,o._registerNode)(a),i.Factory.addGetterSetter(a,"data")},1761:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var i="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0,t.stringToArray=c;const i=n(4060),r=n(4892),o=n(4723),s=n(8871),a=n(5483),l=n(8871);function c(e){return[...e].reduce(((e,t,n,i)=>{if(/\p{Emoji}/u.test(t)){const r=i[n+1];r&&/\p{Emoji_Modifier}|\u200D/u.test(r)?(e.push(t+r),i[n+1]=""):e.push(t)}else/\p{Regional_Indicator}{2}/u.test(t+(i[n+1]||""))?e.push(t+i[n+1]):n>0&&/\p{Mn}|\p{Me}|\p{Mc}/u.test(t)?e[e.length-1]+=t:t&&e.push(t);return e}),[])}const u="auto",d="center",h="inherit",p="justify",f="Change.konva",m="2d",g="-",v="left",y="text",b="Text",w="top",k="bottom",_="middle",S="normal",x="px ",C=" ",E="right",T="rtl",D="word",N="char",O="none",A="…",P=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],M=P.length;function B(e){return e.split(",").map((e=>{e=e.trim();const t=e.indexOf(" ")>=0,n=e.indexOf('"')>=0||e.indexOf("'")>=0;return t&&!n&&(e=`"${e}"`),e})).join(", ")}let I;function R(){return I||(I=i.Util.createCanvasElement().getContext(m),I)}function L(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function F(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function V(e){return e=e||{},e.fillLinearGradientColorStops||e.fillRadialGradientColorStops||e.fillPatternImage||(e.fill=e.fill||"black"),e}class $ extends o.Shape{constructor(e){super(V(e)),this._partialTextX=0,this._partialTextY=0;for(let t=0;t<M;t++)this.on(P[t]+f,this._setTextData);this._setTextData()}_sceneFunc(e){const t=this.textArr,n=t.length;if(!this.text())return;let i,r=this.padding(),o=this.fontSize(),a=this.lineHeight()*o,l=this.verticalAlign(),u=this.direction(),f=0,m=this.align(),g=this.getWidth(),y=this.letterSpacing(),b=this.fill(),w=this.textDecoration(),S=-1!==w.indexOf("underline"),x=-1!==w.indexOf("line-through");u=u===h?e.direction:u;let C=a/2,D=_;if(s.Konva._fixTextRendering){const e=this.measureSize("M");D="alphabetic",C=(e.fontBoundingBoxAscent-e.fontBoundingBoxDescent)/2+a/2}var N=0,O=0;for(u===T&&e.setAttr("direction",u),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",D),e.setAttr("textAlign",v),l===_?f=(this.getHeight()-n*a-2*r)/2:l===k&&(f=this.getHeight()-n*a-2*r),e.translate(r,f+r),i=0;i<n;i++){N=0,O=0;var A,P,M=t[i],B=M.text,I=M.width,R=M.lastInParagraph;if(e.save(),m===E?N+=g-I-2*r:m===d&&(N+=(g-I-2*r)/2),S){e.save(),e.beginPath();const t=s.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2),n=N,i=C+O+t;e.moveTo(n,i),A=B.split(" ").length-1,P=m!==p||R?I:g-2*r,e.lineTo(n+Math.round(P),i),e.lineWidth=o/15;const a=this._getLinearGradient();e.strokeStyle=a||b,e.stroke(),e.restore()}if(x){e.save(),e.beginPath();const t=s.Konva._fixTextRendering?-Math.round(o/4):0;e.moveTo(N,C+O+t),A=B.split(" ").length-1,P=m!==p||R?I:g-2*r,e.lineTo(N+Math.round(P),C+O+t),e.lineWidth=o/15;const n=this._getLinearGradient();e.strokeStyle=n||b,e.stroke(),e.restore()}if(u===T||0===y&&m!==p)0!==y&&e.setAttr("letterSpacing",`${y}px`),this._partialTextX=N,this._partialTextY=C+O,this._partialText=B,e.fillStrokeShape(this);else{A=B.split(" ").length-1;const t=c(B);for(let n=0;n<t.length;n++){const i=t[n];" "!==i||R||m!==p||(N+=(g-2*r-I)/A),this._partialTextX=N,this._partialTextY=C+O,this._partialText=i,e.fillStrokeShape(this),N+=this.measureSize(i).width+y}}e.restore(),n>1&&(C+=a)}}_hitFunc(e){const t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}setText(e){const t=i.Util._isString(e)?e:null===e||void 0===e?"":e+"";return this._setAttr(y,t),this}getWidth(){const e=this.attrs.width===u||void 0===this.attrs.width;return e?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){const e=this.attrs.height===u||void 0===this.attrs.height;return e?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return i.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var t,n,i,r,o,s,a,l,c,u,d;let h,p=R(),f=this.fontSize();p.save(),p.font=this._getContextFont(),h=p.measureText(e),p.restore();const m=f/100;return{actualBoundingBoxAscent:null!==(t=h.actualBoundingBoxAscent)&&void 0!==t?t:71.58203125*m,actualBoundingBoxDescent:null!==(n=h.actualBoundingBoxDescent)&&void 0!==n?n:0,actualBoundingBoxLeft:null!==(i=h.actualBoundingBoxLeft)&&void 0!==i?i:-7.421875*m,actualBoundingBoxRight:null!==(r=h.actualBoundingBoxRight)&&void 0!==r?r:75.732421875*m,alphabeticBaseline:null!==(o=h.alphabeticBaseline)&&void 0!==o?o:0,emHeightAscent:null!==(s=h.emHeightAscent)&&void 0!==s?s:100*m,emHeightDescent:null!==(a=h.emHeightDescent)&&void 0!==a?a:-20*m,fontBoundingBoxAscent:null!==(l=h.fontBoundingBoxAscent)&&void 0!==l?l:91*m,fontBoundingBoxDescent:null!==(c=h.fontBoundingBoxDescent)&&void 0!==c?c:21*m,hangingBaseline:null!==(u=h.hangingBaseline)&&void 0!==u?u:72.80000305175781*m,ideographicBaseline:null!==(d=h.ideographicBaseline)&&void 0!==d?d:-21*m,width:h.width,height:f}}_getContextFont(){return this.fontStyle()+C+this.fontVariant()+C+(this.fontSize()+x)+B(this.fontFamily())}_addTextLine(e){const t=this.align();t===p&&(e=e.trim());const n=this._getTextWidth(e);return this.textArr.push({text:e,width:n,lastInParagraph:!1})}_getTextWidth(e){const t=this.letterSpacing(),n=e.length;return R().measureText(e).width+t*n}_setTextData(){let e=this.text().split("\n"),t=+this.fontSize(),n=0,i=this.lineHeight()*t,r=this.attrs.width,o=this.attrs.height,s=r!==u&&void 0!==r,a=o!==u&&void 0!==o,l=this.padding(),d=r-2*l,h=o-2*l,p=0,f=this.wrap(),m=f!==O,v=f!==N&&m,y=this.ellipsis();this.textArr=[],R().font=this._getContextFont();const b=y?this._getTextWidth(A):0;for(let u=0,w=e.length;u<w;++u){let t=e[u],r=this._getTextWidth(t);if(s&&r>d)while(t.length>0){let e=0,o=c(t).length,s="",l=0;while(e<o){const n=e+o>>>1,r=c(t),u=r.slice(0,n+1).join(""),f=this._getTextWidth(u),m=y&&a&&p+i>h,g=m?f+b:f;g<=d?(e=n+1,s=u,l=f):o=n}if(!s)break;{if(v){const n=c(t),i=c(s),r=n[i.length],o=r===C||r===g;let a;if(o&&l<=d)a=i.length;else{const e=i.lastIndexOf(C),t=i.lastIndexOf(g);a=Math.max(e,t)+1}a>0&&(e=a,s=n.slice(0,e).join(""),l=this._getTextWidth(s))}s=s.trimRight(),this._addTextLine(s),n=Math.max(n,l),p+=i;const o=this._shouldHandleEllipsis(p);if(o){this._tryToAddEllipsisToLastLine();break}const a=c(t);if(t=a.slice(e).join("").trimLeft(),t.length>0&&(r=this._getTextWidth(t),r<=d)){this._addTextLine(t),p+=i,n=Math.max(n,r);break}}}else this._addTextLine(t),p+=i,n=Math.max(n,r),this._shouldHandleEllipsis(p)&&u<w-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),a&&p+i>h)break}this.textHeight=t,this.textWidth=n}_shouldHandleEllipsis(e){const t=+this.fontSize(),n=this.lineHeight()*t,i=this.attrs.height,r=i!==u&&void 0!==i,o=this.padding(),s=i-2*o,a=this.wrap(),l=a!==O;return!l||r&&e+n>s}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,t=e!==u&&void 0!==e,n=this.padding(),i=e-2*n,r=this.ellipsis(),o=this.textArr[this.textArr.length-1];if(o&&r){if(t){const e=this._getTextWidth(o.text+A)<i;e||(o.text=o.text.slice(0,o.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(o.text+A)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=-1!==this.textDecoration().indexOf("underline")||-1!==this.textDecoration().indexOf("line-through"),t=this.hasShadow();return!(!e||!t)||super._useBufferCanvas()}}t.Text=$,$.prototype._fillFunc=L,$.prototype._strokeFunc=F,$.prototype.className=b,$.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,l._registerNode)($),r.Factory.overWriteSetter($,"width",(0,a.getNumberOrAutoValidator)()),r.Factory.overWriteSetter($,"height",(0,a.getNumberOrAutoValidator)()),r.Factory.addGetterSetter($,"direction",h),r.Factory.addGetterSetter($,"fontFamily","Arial"),r.Factory.addGetterSetter($,"fontSize",12,(0,a.getNumberValidator)()),r.Factory.addGetterSetter($,"fontStyle",S),r.Factory.addGetterSetter($,"fontVariant",S),r.Factory.addGetterSetter($,"padding",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter($,"align",v),r.Factory.addGetterSetter($,"verticalAlign",w),r.Factory.addGetterSetter($,"lineHeight",1,(0,a.getNumberValidator)()),r.Factory.addGetterSetter($,"wrap",D),r.Factory.addGetterSetter($,"ellipsis",!1,(0,a.getBooleanValidator)()),r.Factory.addGetterSetter($,"letterSpacing",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter($,"text","",(0,a.getStringValidator)()),r.Factory.addGetterSetter($,"textDecoration","")},2068:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(1312);class r extends Error{}function o(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}function s(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return o(t)}catch(n){return atob(t)}}function a(e,t){if("string"!==typeof e)throw new r("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,i=e.split(".")[n];if("string"!==typeof i)throw new r(`Invalid token specified: missing part #${n+1}`);let o;try{o=s(i)}catch(a){throw new r(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(o)}catch(a){throw new r(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}if(r.prototype.name="InvalidTokenError","undefined"===typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function l(e){if(!(this instanceof l))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var t,n,r=this,o=[],s={enable:!0,callbackList:[],interval:5},u=document.getElementsByTagName("script"),d=0;d<u.length;d++)-1===u[d].src.indexOf("keycloak.js")&&-1===u[d].src.indexOf("keycloak.min.js")||-1===u[d].src.indexOf("version=")||(r.iframeVersion=u[d].src.substring(u[d].src.indexOf("version=")+8).split("&")[0]);var h=!0,p=$(console.info),f=$(console.warn);function m(e){var t=null,n=window.crypto||window.msCrypto;if(n&&n.getRandomValues&&window.Uint8Array)return t=new Uint8Array(e),n.getRandomValues(t),t;t=new Array(e);for(var i=0;i<t.length;i++)t[i]=Math.floor(256*Math.random());return t}function g(e){return v(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function v(e,t){for(var n=m(e),i=new Array(e),r=0;r<e;r++)i[r]=t.charCodeAt(n[r]%t.length);return String.fromCharCode.apply(null,i)}function y(e,t){if("S256"!==e)throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);const n=new Uint8Array(i.arrayBuffer(t)),r=c(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"");return r}function b(e){var t={id_token:{acr:e}};return JSON.stringify(t)}function w(){return"undefined"!==typeof r.authServerUrl?"/"==r.authServerUrl.charAt(r.authServerUrl.length-1)?r.authServerUrl+"realms/"+encodeURIComponent(r.realm):r.authServerUrl+"/realms/"+encodeURIComponent(r.realm):void 0}function k(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function _(e,t){var n=e.code,i=e.error,o=e.prompt,s=(new Date).getTime();if(e["kc_action_status"]&&r.onActionUpdate&&r.onActionUpdate(e["kc_action_status"]),i)if("none"!=o)if(e.error_description&&"authentication_expired"===e.error_description)r.login(e.loginOptions);else{var a={error:i,error_description:e.error_description};r.onAuthError&&r.onAuthError(a),t&&t.setError(a)}else t&&t.setSuccess();else if("standard"!=r.flow&&(e.access_token||e.id_token)&&d(e.access_token,null,e.id_token,!0),"implicit"!=r.flow&&n){var l="code="+n+"&grant_type=authorization_code",c=r.endpoints.token(),u=new XMLHttpRequest;u.open("POST",c,!0),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),l+="&client_id="+encodeURIComponent(r.clientId),l+="&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(l+="&code_verifier="+e.pkceCodeVerifier),u.withCredentials=!0,u.onreadystatechange=function(){if(4==u.readyState)if(200==u.status){var e=JSON.parse(u.responseText);d(e["access_token"],e["refresh_token"],e["id_token"],"standard"===r.flow),M()}else r.onAuthError&&r.onAuthError(),t&&t.setError()},u.send(l)}function d(n,i,o,a){s=(s+(new Date).getTime())/2,C(n,i,o,s),h&&r.idTokenParsed&&r.idTokenParsed.nonce!=e.storedNonce?(p("[KEYCLOAK] Invalid nonce, clearing token"),r.clearToken(),t&&t.setError()):a&&(r.onAuthSuccess&&r.onAuthSuccess(),t&&t.setSuccess())}}function S(t){var n,i=O();function o(e){r.endpoints=e?{authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:{authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var e=w()+"/protocol/openid-connect/login-status-iframe.html";return r.iframeVersion&&(e=e+"?version="+r.iframeVersion),e},thirdPartyCookiesIframe:function(){var e=w()+"/protocol/openid-connect/3p-cookies/step1.html";return r.iframeVersion&&(e=e+"?version="+r.iframeVersion),e},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(e?"string"===typeof e&&(n=e):n="keycloak.json",n){var s=new XMLHttpRequest;s.open("GET",n,!0),s.setRequestHeader("Accept","application/json"),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status||x(s)){var e=JSON.parse(s.responseText);r.authServerUrl=e["auth-server-url"],r.realm=e["realm"],r.clientId=e["resource"],o(null),i.setSuccess()}else i.setError()},s.send()}else{if(!e.clientId)throw"clientId missing";r.clientId=e.clientId;var a=e["oidcProvider"];if(a)if("string"===typeof a){var l;l="/"==a.charAt(a.length-1)?a+".well-known/openid-configuration":a+"/.well-known/openid-configuration";s=new XMLHttpRequest;s.open("GET",l,!0),s.setRequestHeader("Accept","application/json"),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status||x(s)){var e=JSON.parse(s.responseText);o(e),i.setSuccess()}else i.setError()},s.send()}else o(a),i.setSuccess();else{if(!e["url"])for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++)if(c[u].src.match(/.*keycloak\.js/)){e.url=c[u].src.substr(0,c[u].src.indexOf("/js/keycloak.js"));break}if(!e.realm)throw"realm missing";r.authServerUrl=e.url,r.realm=e.realm,o(null),i.setSuccess()}}return i.promise}function x(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function C(e,t,n,i){if(r.tokenTimeoutHandle&&(clearTimeout(r.tokenTimeoutHandle),r.tokenTimeoutHandle=null),t?(r.refreshToken=t,r.refreshTokenParsed=a(t)):(delete r.refreshToken,delete r.refreshTokenParsed),n?(r.idToken=n,r.idTokenParsed=a(n)):(delete r.idToken,delete r.idTokenParsed),e){if(r.token=e,r.tokenParsed=a(e),r.sessionId=r.tokenParsed.sid,r.authenticated=!0,r.subject=r.tokenParsed.sub,r.realmAccess=r.tokenParsed.realm_access,r.resourceAccess=r.tokenParsed.resource_access,i&&(r.timeSkew=Math.floor(i/1e3)-r.tokenParsed.iat),null!=r.timeSkew&&(p("[KEYCLOAK] Estimated time difference between browser and server is "+r.timeSkew+" seconds"),r.onTokenExpired)){var o=1e3*(r.tokenParsed["exp"]-(new Date).getTime()/1e3+r.timeSkew);p("[KEYCLOAK] Token expires in "+Math.round(o/1e3)+" s"),o<=0?r.onTokenExpired():r.tokenTimeoutHandle=setTimeout(r.onTokenExpired,o)}}else delete r.token,delete r.tokenParsed,delete r.subject,delete r.realmAccess,delete r.resourceAccess,r.authenticated=!1}function E(){var e="0123456789abcdef",t=v(36,e).split("");t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-";var n=t.join("");return n}function T(e){var t=D(e);if(t){var i=n.get(t.state);return i&&(t.valid=!0,t.redirectUri=i.redirectUri,t.storedNonce=i.nonce,t.prompt=i.prompt,t.pkceCodeVerifier=i.pkceCodeVerifier,t.loginOptions=i.loginOptions),t}}function D(e){var t;switch(r.flow){case"standard":t=["code","state","session_state","kc_action_status","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}t.push("error"),t.push("error_description"),t.push("error_uri");var n,i,o=e.indexOf("?"),s=e.indexOf("#");if("query"===r.responseMode&&-1!==o?(n=e.substring(0,o),i=N(e.substring(o+1,-1!==s?s:e.length),t),""!==i.paramsString&&(n+="?"+i.paramsString),-1!==s&&(n+=e.substring(s))):"fragment"===r.responseMode&&-1!==s&&(n=e.substring(0,s),i=N(e.substring(s+1),t),""!==i.paramsString&&(n+="#"+i.paramsString)),i&&i.oauthParams)if("standard"===r.flow||"hybrid"===r.flow){if((i.oauthParams.code||i.oauthParams.error)&&i.oauthParams.state)return i.oauthParams.newUrl=n,i.oauthParams}else if("implicit"===r.flow&&(i.oauthParams.access_token||i.oauthParams.error)&&i.oauthParams.state)return i.oauthParams.newUrl=n,i.oauthParams}function N(e,t){for(var n=e.split("&"),i={paramsString:"",oauthParams:{}},r=0;r<n.length;r++){var o=n[r].indexOf("="),s=n[r].slice(0,o);-1!==t.indexOf(s)?i.oauthParams[s]=n[r].slice(o+1):(""!==i.paramsString&&(i.paramsString+="&"),i.paramsString+=n[r])}return i}function O(){var e={setSuccess:function(t){e.resolve(t)},setError:function(t){e.reject(t)}};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}function A(e,t,n){var i=null,r=new Promise((function(e,r){i=setTimeout((function(){r({error:n})}),t)}));return Promise.race([e,r]).finally((function(){clearTimeout(i)}))}function P(){var e=O();if(!s.enable)return e.setSuccess(),e.promise;if(s.iframe)return e.setSuccess(),e.promise;var t=document.createElement("iframe");s.iframe=t,t.onload=function(){var t=r.endpoints.authorize();"/"===t.charAt(0)?s.iframeOrigin=k():s.iframeOrigin=t.substring(0,t.indexOf("/",8)),e.setSuccess()};var n=r.endpoints.checkSessionIframe();t.setAttribute("src",n),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t);var i=function(e){if(e.origin===s.iframeOrigin&&s.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&r.clearToken();for(var t=s.callbackList.splice(0,s.callbackList.length),n=t.length-1;n>=0;--n){var i=t[n];"error"==e.data?i.setError():i.setSuccess("unchanged"==e.data)}}};return window.addEventListener("message",i,!1),e.promise}function M(){s.enable&&r.token&&setTimeout((function(){B().then((function(e){e&&M()}))}),1e3*s.interval)}function B(){var e=O();if(s.iframe&&s.iframeOrigin){var t=r.clientId+" "+(r.sessionId?r.sessionId:"");s.callbackList.push(e);var n=s.iframeOrigin;1==s.callbackList.length&&s.iframe.contentWindow.postMessage(t,n)}else e.setSuccess();return e.promise}function I(){var e=O();if(s.enable||r.silentCheckSsoRedirectUri){var t=document.createElement("iframe");t.setAttribute("src",r.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var n=function(i){t.contentWindow===i.source&&("supported"!==i.data&&"unsupported"!==i.data||("unsupported"===i.data&&(f("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"),s.enable=!1,r.silentCheckSsoFallback&&(r.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",n),e.setSuccess()))};window.addEventListener("message",n,!1)}else e.setSuccess();return A(e.promise,r.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function R(e){if(!e||"default"==e)return{login:function(e){return window.location.assign(r.createLoginUrl(e)),O().promise},logout:async function(e){const n=e?.logoutMethod??r.logoutMethod;if("GET"===n)return void window.location.replace(r.createLogoutUrl(e));const i=r.createLogoutUrl(e),o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:r.idToken,client_id:r.clientId,post_logout_redirect_uri:t.redirectUri(e,!1)})});if(o.redirected)window.location.href=o.url;else{if(!o.ok)throw new Error("Logout failed, request returned an error code.");window.location.reload()}},register:function(e){return window.location.assign(r.createRegisterUrl(e)),O().promise},accountManagement:function(){var e=r.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";return window.location.href=e,O().promise},redirectUri:function(e,t){return e&&e.redirectUri?e.redirectUri:r.redirectUri?r.redirectUri:location.href}};if("cordova"==e){s.enable=!1;var n=function(e,t,n){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,n):window.open(e,t,n)},i=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(t,n){return t[n]=e.cordovaOptions[n],t}),{}):{}},o=function(e){return Object.keys(e).reduce((function(t,n){return t.push(n+"="+e[n]),t}),[]).join(",")},a=function(e){var t=i(e);return t.location="no",e&&"none"==e.prompt&&(t.hidden="yes"),o(t)},l=function(){return r.redirectUri||"http://localhost"};return{login:function(e){var t=O(),i=a(e),o=r.createLoginUrl(e),s=n(o,"_blank",i),c=!1,u=!1,d=function(){u=!0,s.close()};return s.addEventListener("loadstart",(function(e){if(0==e.url.indexOf(l())){var n=T(e.url);_(n,t),d(),c=!0}})),s.addEventListener("loaderror",(function(e){if(!c)if(0==e.url.indexOf(l())){var n=T(e.url);_(n,t),d(),c=!0}else t.setError(),d()})),s.addEventListener("exit",(function(e){u||t.setError({reason:"closed_by_user"})})),t.promise},logout:function(e){var t,i=O(),o=r.createLogoutUrl(e),s=n(o,"_blank","location=no,hidden=yes,clearcache=yes");return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(l())&&s.close()})),s.addEventListener("loaderror",(function(e){0==e.url.indexOf(l())||(t=!0),s.close()})),s.addEventListener("exit",(function(e){t?i.setError():(r.clearToken(),i.setSuccess())})),i.promise},register:function(e){var t=O(),i=r.createRegisterUrl(),o=a(e),s=n(i,"_blank",o);return s.addEventListener("loadstart",(function(e){if(0==e.url.indexOf(l())){s.close();var n=T(e.url);_(n,t)}})),t.promise},accountManagement:function(){var e=r.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";var t=n(e,"_blank","location=no");t.addEventListener("loadstart",(function(e){0==e.url.indexOf(l())&&t.close()}))},redirectUri:function(e){return l()}}}if("cordova-native"==e)return s.enable=!1,{login:function(e){var t=O(),n=r.createLoginUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var n=T(e.url);_(n,t)})),window.cordova.plugins.browsertab.openUrl(n),t.promise},logout:function(e){var t=O(),n=r.createLogoutUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),r.clearToken(),t.setSuccess()})),window.cordova.plugins.browsertab.openUrl(n),t.promise},register:function(e){var t=O(),n=r.createRegisterUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var n=T(e.url);_(n,t)})),window.cordova.plugins.browsertab.openUrl(n),t.promise},accountManagement:function(){var e=r.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(e)},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:r.redirectUri?r.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}r.init=function(e){if(r.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");r.didInitialize=!0,r.authenticated=!1,n=V();var i=["default","cordova","cordova-native"];if(t=e&&i.indexOf(e.adapter)>-1?R(e.adapter):e&&"object"===typeof e.adapter?e.adapter:window.Cordova||window.cordova?R("cordova"):R(),e){if("undefined"!==typeof e.useNonce&&(h=e.useNonce),"undefined"!==typeof e.checkLoginIframe&&(s.enable=e.checkLoginIframe),e.checkLoginIframeInterval&&(s.interval=e.checkLoginIframeInterval),"login-required"===e.onLoad&&(r.loginRequired=!0),e.responseMode){if("query"!==e.responseMode&&"fragment"!==e.responseMode)throw"Invalid value for responseMode";r.responseMode=e.responseMode}if(e.flow){switch(e.flow){case"standard":r.responseType="code";break;case"implicit":r.responseType="id_token token";break;case"hybrid":r.responseType="code id_token token";break;default:throw"Invalid value for flow"}r.flow=e.flow}if(null!=e.timeSkew&&(r.timeSkew=e.timeSkew),e.redirectUri&&(r.redirectUri=e.redirectUri),e.silentCheckSsoRedirectUri&&(r.silentCheckSsoRedirectUri=e.silentCheckSsoRedirectUri),"boolean"===typeof e.silentCheckSsoFallback?r.silentCheckSsoFallback=e.silentCheckSsoFallback:r.silentCheckSsoFallback=!0,"undefined"!==typeof e.pkceMethod){if("S256"!==e.pkceMethod&&!1!==e.pkceMethod)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${e.pkceMethod}.`);r.pkceMethod=e.pkceMethod}else r.pkceMethod="S256";"boolean"===typeof e.enableLogging?r.enableLogging=e.enableLogging:r.enableLogging=!1,"POST"===e.logoutMethod?r.logoutMethod="POST":r.logoutMethod="GET","string"===typeof e.scope&&(r.scope=e.scope),"string"===typeof e.acrValues&&(r.acrValues=e.acrValues),"number"===typeof e.messageReceiveTimeout&&e.messageReceiveTimeout>0?r.messageReceiveTimeout=e.messageReceiveTimeout:r.messageReceiveTimeout=1e4}r.responseMode||(r.responseMode="fragment"),r.responseType||(r.responseType="code",r.flow="standard");var o=O(),a=O();a.promise.then((function(){r.onReady&&r.onReady(r.authenticated),o.setSuccess(r.authenticated)})).catch((function(e){o.setError(e)}));var l=S();function c(){var t=function(t){t||(i.prompt="none"),e&&e.locale&&(i.locale=e.locale),r.login(i).then((function(){a.setSuccess()})).catch((function(e){a.setError(e)}))},n=function(){var e=document.createElement("iframe"),t=r.createLoginUrl({prompt:"none",redirectUri:r.silentCheckSsoRedirectUri});e.setAttribute("src",t),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var n=function(t){if(t.origin===window.location.origin&&e.contentWindow===t.source){var i=T(t.data);_(i,a),document.body.removeChild(e),window.removeEventListener("message",n)}};window.addEventListener("message",n)},i={};switch(e.onLoad){case"check-sso":s.enable?P().then((function(){B().then((function(e){e?a.setSuccess():r.silentCheckSsoRedirectUri?n():t(!1)})).catch((function(e){a.setError(e)}))})):r.silentCheckSsoRedirectUri?n():t(!1);break;case"login-required":t(!0);break;default:throw"Invalid value for onLoad"}}function u(){var t=T(window.location.href);if(t&&window.history.replaceState(window.history.state,null,t.newUrl),t&&t.valid)return P().then((function(){_(t,a)})).catch((function(e){a.setError(e)}));e?e.token&&e.refreshToken?(C(e.token,e.refreshToken,e.idToken),s.enable?P().then((function(){B().then((function(e){e?(r.onAuthSuccess&&r.onAuthSuccess(),a.setSuccess(),M()):a.setSuccess()})).catch((function(e){a.setError(e)}))})):r.updateToken(-1).then((function(){r.onAuthSuccess&&r.onAuthSuccess(),a.setSuccess()})).catch((function(t){r.onAuthError&&r.onAuthError(),e.onLoad?c():a.setError(t)}))):e.onLoad?c():a.setSuccess():a.setSuccess()}function d(){var e=O(),t=function(){"interactive"!==document.readyState&&"complete"!==document.readyState||(document.removeEventListener("readystatechange",t),e.setSuccess())};return document.addEventListener("readystatechange",t),t(),e.promise}return l.then((function(){d().then(I).then(u).catch((function(e){o.setError(e)}))})),l.catch((function(e){o.setError(e)})),o.promise},r.login=function(e){return t.login(e)},r.createLoginUrl=function(e){var i,o=E(),s=E(),a=t.redirectUri(e),l={state:o,nonce:s,redirectUri:encodeURIComponent(a),loginOptions:e};e&&e.prompt&&(l.prompt=e.prompt),i=e&&"register"==e.action?r.endpoints.register():r.endpoints.authorize();var c=e&&e.scope||r.scope;c?-1===c.indexOf("openid")&&(c="openid "+c):c="openid";var u=i+"?client_id="+encodeURIComponent(r.clientId)+"&redirect_uri="+encodeURIComponent(a)+"&state="+encodeURIComponent(o)+"&response_mode="+encodeURIComponent(r.responseMode)+"&response_type="+encodeURIComponent(r.responseType)+"&scope="+encodeURIComponent(c);if(h&&(u=u+"&nonce="+encodeURIComponent(s)),e&&e.prompt&&(u+="&prompt="+encodeURIComponent(e.prompt)),e&&e.maxAge&&(u+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(u+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(u+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(u+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(u+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr){var d=b(e.acr);u+="&claims="+encodeURIComponent(d)}if((e&&e.acrValues||r.acrValues)&&(u+="&acr_values="+encodeURIComponent(e.acrValues||r.acrValues)),r.pkceMethod){var p=g(96);l.pkceCodeVerifier=p;var f=y(r.pkceMethod,p);u+="&code_challenge="+f,u+="&code_challenge_method="+r.pkceMethod}return n.add(l),u},r.logout=function(e){return t.logout(e)},r.createLogoutUrl=function(e){const n=e?.logoutMethod??r.logoutMethod;if("POST"===n)return r.endpoints.logout();var i=r.endpoints.logout()+"?client_id="+encodeURIComponent(r.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(t.redirectUri(e,!1));return r.idToken&&(i+="&id_token_hint="+encodeURIComponent(r.idToken)),i},r.register=function(e){return t.register(e)},r.createRegisterUrl=function(e){return e||(e={}),e.action="register",r.createLoginUrl(e)},r.createAccountUrl=function(e){var n=w(),i=void 0;return"undefined"!==typeof n&&(i=n+"/account?referrer="+encodeURIComponent(r.clientId)+"&referrer_uri="+encodeURIComponent(t.redirectUri(e))),i},r.accountManagement=function(){return t.accountManagement()},r.hasRealmRole=function(e){var t=r.realmAccess;return!!t&&t.roles.indexOf(e)>=0},r.hasResourceRole=function(e,t){if(!r.resourceAccess)return!1;var n=r.resourceAccess[t||r.clientId];return!!n&&n.roles.indexOf(e)>=0},r.loadUserProfile=function(){var e=w()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var n=O();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.profile=JSON.parse(t.responseText),n.setSuccess(r.profile)):n.setError())},t.send(),n.promise},r.loadUserInfo=function(){var e=r.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var n=O();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.userInfo=JSON.parse(t.responseText),n.setSuccess(r.userInfo)):n.setError())},t.send(),n.promise},r.isTokenExpired=function(e){if(!r.tokenParsed||!r.refreshToken&&"implicit"!=r.flow)throw"Not authenticated";if(null==r.timeSkew)return p("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=r.tokenParsed["exp"]-Math.ceil((new Date).getTime()/1e3)+r.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";t-=e}return t<0},r.updateToken=function(e){var t=O();if(!r.refreshToken)return t.setError(),t.promise;e=e||5;var n=function(){var n=!1;if(-1==e?(n=!0,p("[KEYCLOAK] Refreshing token: forced refresh")):r.tokenParsed&&!r.isTokenExpired(e)||(n=!0,p("[KEYCLOAK] Refreshing token: token expired")),n){var i="grant_type=refresh_token&refresh_token="+r.refreshToken,s=r.endpoints.token();if(o.push(t),1==o.length){var a=new XMLHttpRequest;a.open("POST",s,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.withCredentials=!0,i+="&client_id="+encodeURIComponent(r.clientId);var l=(new Date).getTime();a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){p("[KEYCLOAK] Token refreshed"),l=(l+(new Date).getTime())/2;var e=JSON.parse(a.responseText);C(e["access_token"],e["refresh_token"],e["id_token"],l),r.onAuthRefreshSuccess&&r.onAuthRefreshSuccess();for(var t=o.pop();null!=t;t=o.pop())t.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),400==a.status&&r.clearToken(),r.onAuthRefreshError&&r.onAuthRefreshError();for(t=o.pop();null!=t;t=o.pop())t.setError(!0)}},a.send(i)}}else t.setSuccess(!1)};if(s.enable){var i=B();i.then((function(){n()})).catch((function(e){t.setError(e)}))}else n();return t.promise},r.clearToken=function(){r.token&&(C(null,null,null),r.onAuthLogout&&r.onAuthLogout(),r.loginRequired&&r.login())};var L=function(){if(!(this instanceof L))return new L;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var e=this;function t(){for(var e=(new Date).getTime(),t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(n&&0==n.indexOf("kc-callback-")){var i=localStorage.getItem(n);if(i)try{var r=JSON.parse(i).expires;(!r||r<e)&&localStorage.removeItem(n)}catch(o){localStorage.removeItem(n)}}}}e.get=function(e){if(e){var n="kc-callback-"+e,i=localStorage.getItem(n);return i&&(localStorage.removeItem(n),i=JSON.parse(i)),t(),i}},e.add=function(e){t();var n="kc-callback-"+e.state;e.expires=(new Date).getTime()+36e5,localStorage.setItem(n,JSON.stringify(e))}},F=function(){if(!(this instanceof F))return new F;var e=this;e.get=function(e){if(e){var r=n("kc-callback-"+e);return i("kc-callback-"+e,"",t(-100)),r?JSON.parse(r):void 0}},e.add=function(e){i("kc-callback-"+e.state,JSON.stringify(e),t(60))},e.removeItem=function(e){i(e,"",t(-100))};var t=function(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t},n=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var r=n[i];while(" "==r.charAt(0))r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""},i=function(e,t,n){var i=e+"="+t+"; expires="+n.toUTCString()+"; ";document.cookie=i}};function V(){try{return new L}catch(e){}return new F}function $(e){return function(){r.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}function c(e){const t=String.fromCodePoint(...e);return btoa(t)}},2139:(e,t,n)=>{"use strict";n.d(t,{T:()=>Zn});var i=n(5215),r="6.19.7",o=n(7412),s=n(6936),a=n(9653),l="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],u=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var i=n();if(i){var r=i.getIntegration(e);if(r){var o=i.getClient(),s=o?o.getOptions():{},a=d(r._options,s);return h(t,a)?null:t}}return t}))},e.id="InboundFilters",e}();function d(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),{allowUrls:(0,i.gz)(e.whitelistUrls||[],e.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:(0,i.gz)(e.blacklistUrls||[],e.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:(0,i.gz)(e.ignoreErrors||[],t.ignoreErrors||[],c),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}function h(e,t){return t.ignoreInternal&&v(e)?(l&&o.vF.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,s.$X)(e)),!0):p(e,t.ignoreErrors)?(l&&o.vF.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,s.$X)(e)),!0):f(e,t.denyUrls)?(l&&o.vF.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,s.$X)(e)+".\nUrl: "+b(e)),!0):!m(e,t.allowUrls)&&(l&&o.vF.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,s.$X)(e)+".\nUrl: "+b(e)),!0)}function p(e,t){return!(!t||!t.length)&&g(e).some((function(e){return t.some((function(t){return(0,a._c)(e,t)}))}))}function f(e,t){if(!t||!t.length)return!1;var n=b(e);return!!n&&t.some((function(e){return(0,a._c)(n,e)}))}function m(e,t){if(!t||!t.length)return!0;var n=b(e);return!n||t.some((function(e){return(0,a._c)(n,e)}))}function g(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,i=void 0===n?"":n,r=t.value,a=void 0===r?"":r;return[""+a,i+": "+a]}catch(c){return l&&o.vF.error("Cannot extract message for event "+(0,s.$X)(e)),[]}return[]}function v(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}function y(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function b(e){try{if(e.stacktrace)return y(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(n){}return t?y(t):null}catch(i){return l&&o.vF.error("Cannot extract url for event "+(0,s.$X)(e)),null}}var w,k=n(8411),_=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){w=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,k.sp)(this)||this;return w.apply(n,e)}},e.id="FunctionToString",e}(),S=n(4237);function x(e,t){!0===t.debug&&(l?o.vF.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,S.BF)(),i=n.getScope();i&&i.update(t.initialScope);var r=new e(t);n.bindClient(r)}var C=n(6475),E=n(9277),T=n(9752),D=Object.setPrototypeOf||({__proto__:[]}instanceof Array?N:O);function N(e,t){return e.__proto__=t,e}function O(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}var A=function(e){function t(t){var n=this.constructor,i=e.call(this,t)||this;return i.message=t,i.name=n.prototype.constructor.name,D(i,n.prototype),i}return(0,i.C6)(t,e),t}(Error),P=n(1761),M=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B(e){return"http"===e||"https"===e}function I(e,t){void 0===t&&(t=!1);var n=e.host,i=e.path,r=e.pass,o=e.port,s=e.projectId,a=e.protocol,l=e.publicKey;return a+"://"+l+(t&&r?":"+r:"")+"@"+n+(o?":"+o:"")+"/"+(i?i+"/":i)+s}function R(e){var t=M.exec(e);if(!t)throw new A("Invalid Sentry Dsn: "+e);var n=(0,i.zs)(t.slice(1),6),r=n[0],o=n[1],s=n[2],a=void 0===s?"":s,l=n[3],c=n[4],u=void 0===c?"":c,d=n[5],h="",p=d,f=p.split("/");if(f.length>1&&(h=f.slice(0,-1).join("/"),p=f.pop()),p){var m=p.match(/^\d+/);m&&(p=m[0])}return L({host:l,pass:a,path:h,projectId:p,port:u,protocol:r,publicKey:o})}function L(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function F(e){if(P.w){var t=e.port,n=e.projectId,i=e.protocol,r=["protocol","publicKey","host","projectId"];if(r.forEach((function(t){if(!e[t])throw new A("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new A("Invalid Sentry Dsn: Invalid projectId "+n);if(!B(i))throw new A("Invalid Sentry Dsn: Invalid protocol "+i);if(t&&isNaN(parseInt(t,10)))throw new A("Invalid Sentry Dsn: Invalid port "+t);return!0}}function V(e){var t="string"===typeof e?R(e):L(e);return F(t),t}var $=n(3816),z=n(690),U=n(9297);function j(){var e="function"===typeof WeakSet,t=e?new WeakSet:[];function n(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var i=0;i<t.length;i++){var r=t[i];if(r===n)return!0}return t.push(n),!1}function i(n){if(e)t.delete(n);else for(var i=0;i<t.length;i++)if(t[i]===n){t.splice(i,1);break}}return[n,i]}var H=n(3917);function G(e,t,n){void 0===t&&(t=1/0),void 0===n&&(n=1/0);try{return q("",e,t,n)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function W(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var i=G(e,t);return X(i)>n?W(e,t-1,n):i}function q(e,t,n,r,o){void 0===n&&(n=1/0),void 0===r&&(r=1/0),void 0===o&&(o=j());var s=(0,i.zs)(o,2),a=s[0],l=s[1],c=t;if(c&&"function"===typeof c.toJSON)try{return c.toJSON()}catch(g){}if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,$.yr)(t))return t;var u=K(e,t);if(!u.startsWith("[object "))return u;if(0===n)return u.replace("object ","");if(a(t))return"[Circular ~]";var d=Array.isArray(t)?[]:{},h=0,p=(0,$.bJ)(t)||(0,$.xH)(t)?(0,k.W4)(t):t;for(var f in p)if(Object.prototype.hasOwnProperty.call(p,f)){if(h>=r){d[f]="[MaxProperties ~]";break}var m=p[f];d[f]=q(f,m,n-1,r,o),h+=1}return l(t),d}function K(e,t){try{return"domain"===e&&t&&"object"===typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!==typeof n.g&&t===n.g?"[Global]":"undefined"!==typeof window&&t===window?"[Window]":"undefined"!==typeof document&&t===document?"[Document]":(0,$.mE)(t)?"[SyntheticEvent]":"number"===typeof t&&t!==t?"[NaN]":void 0===t?"[undefined]":"function"===typeof t?"[Function: "+(0,H.qQ)(t)+"]":"symbol"===typeof t?"["+String(t)+"]":"bigint"===typeof t?"[BigInt: "+String(t)+"]":"[object "+Object.getPrototypeOf(t).constructor.name+"]"}catch(i){return"**non-serializable** ("+i+")"}}function Y(e){return~-encodeURI(e).split(/%..|./).length}function X(e){return Y(JSON.stringify(e))}var J=[];function Q(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function Z(e){var t=e.defaultIntegrations&&(0,i.gz)(e.defaultIntegrations)||[],n=e.integrations,r=(0,i.gz)(Q(t));Array.isArray(n)?r=(0,i.gz)(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),Q(n)):"function"===typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name})),s="Debug";return-1!==o.indexOf(s)&&r.push.apply(r,(0,i.gz)(r.splice(o.indexOf(s),1))),r}function ee(e){-1===J.indexOf(e.name)&&(e.setupOnce(T.l,S.BF),J.push(e.name),l&&o.vF.log("Integration installed: "+e.name))}function te(e){var t={};return Z(e).forEach((function(e){t[e.name]=e,ee(e)})),(0,k.my)(t,"initialized",!0),t}var ne="Not capturing exception because it's already been captured.",ie=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=V(t.dsn))}return e.prototype.captureException=function(e,t,n){var i=this;if(!(0,s.GR)(e)){var r=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return i._captureEvent(e,t,n)})).then((function(e){r=e}))),r}l&&o.vF.log(ne)},e.prototype.captureMessage=function(e,t,n,i){var r=this,o=n&&n.event_id,s=(0,$.sO)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return r._captureEvent(e,n,i)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&(0,s.GR)(t.originalException))){var i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){i=e}))),i}l&&o.vF.log(ne)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!==typeof e.release?l&&o.vF.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):l&&o.vF.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=te(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return l&&o.vF.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o=!1,s=!1,a=t.exception&&t.exception.values;if(a){s=!0;try{for(var l=(0,i.Ju)(a),c=l.next();!c.done;c=l.next()){var u=c.value,d=u.mechanism;if(d&&!1===d.handled){o=!0;break}}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}var h="ok"===e.status,p=h&&0===e.errors||h&&o;p&&(e.update((0,i.Cl)((0,i.Cl)({},o&&{status:"crashed"}),{errors:e.errors||Number(s||o)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new z.T2((function(n){var i=0,r=1,o=setInterval((function(){0==t._numProcessing?(clearInterval(o),n(!0)):(i+=r,e&&i>=e&&(clearInterval(o),n(!1)))}),r)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions(),a=o.normalizeDepth,l=void 0===a?3:a,c=o.normalizeMaxBreadth,u=void 0===c?1e3:c,d=(0,i.Cl)((0,i.Cl)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,s.eJ)()),timestamp:e.timestamp||(0,U.lu)()});this._applyClientOptions(d),this._applyIntegrationsMetadata(d);var h=t;n&&n.captureContext&&(h=T.H.clone(h).update(n.captureContext));var p=(0,z.XW)(d);return h&&(p=h.applyToEvent(d,n)),p.then((function(e){return e&&(e.sdkProcessingMetadata=(0,i.Cl)((0,i.Cl)({},e.sdkProcessingMetadata),{normalizeDepth:G(l)+" ("+typeof l+")"})),"number"===typeof l&&l>0?r._normalizeEvent(e,l,u):e}))},e.prototype._normalizeEvent=function(e,t,n){if(!e)return null;var r=(0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,i.Cl)((0,i.Cl)({},e),e.data&&{data:G(e.data,t,n)})}))}),e.user&&{user:G(e.user,t,n)}),e.contexts&&{contexts:G(e.contexts,t,n)}),e.extra&&{extra:G(e.extra,t,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=(0,i.Cl)((0,i.Cl)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,i=t.release,r=t.dist,o=t.maxValueLength,s=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==i&&(e.release=i),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=(0,a.xv)(e.message,s));var l=e.exception&&e.exception.values&&e.exception.values[0];l&&l.value&&(l.value=(0,a.xv)(l.value,s));var c=e.request;c&&c.url&&(c.url=(0,a.xv)(c.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=(0,i.gz)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){l&&o.vF.error(e)}))},e.prototype._processEvent=function(e,t,n){var i=this,r=this.getOptions(),o=r.beforeSend,s=r.sampleRate,a=this.getTransport();function l(e,t){a.recordLostEvent&&a.recordLostEvent(e,t)}if(!this._isEnabled())return(0,z.xg)(new A("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"===typeof s&&Math.random()>s?(l("sample_rate","event"),(0,z.xg)(new A("Discarding event because it's not included in the random sample (sampling rate = "+s+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw l("event_processor",e.type||"event"),new A("An event processor returned null, will not send event.");var i=t&&t.data&&!0===t.data.__sentry__;if(i||c||!o)return n;var r=o(n,t);return re(r)})).then((function(t){if(null===t)throw l("before_send",e.type||"event"),new A("`beforeSend` returned `null`, will not send event.");var r=n&&n.getSession&&n.getSession();return!c&&r&&i._updateSessionFromEvent(r,t),i._sendEvent(t),t})).then(null,(function(e){if(e instanceof A)throw e;throw i.captureException(e,{data:{__sentry__:!0},originalException:e}),new A("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}();function re(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,$.Qg)(e))return e.then((function(e){if(!(0,$.Qd)(e)&&null!==e)throw new A(t);return e}),(function(e){throw new A("beforeSend rejected with "+e)}));if(!(0,$.Qd)(e)&&null!==e)throw new A(t);return e}var oe="7";(function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=V(e),this.metadata=t,this._tunnel=n}e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){return ae(this._dsnObject)},e.prototype.getStoreEndpoint=function(){return ue(this._dsnObject)},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return de(this._dsnObject)},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return pe(this._dsnObject,this._tunnel)}})();function se(e,t,n){return{initDsn:e,metadata:t||{},dsn:V(e),tunnel:n}}function ae(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function le(e,t){return""+ae(e)+e.projectId+"/"+t+"/"}function ce(e){return(0,k.u4)({sentry_key:e.publicKey,sentry_version:oe})}function ue(e){return le(e,"store")}function de(e){return ue(e)+"?"+ce(e)}function he(e){return le(e,"envelope")}function pe(e,t){return t||he(e)+"?"+ce(e)}function fe(e,t){var n=V(e),i=ae(n)+"embed/error-page/",r="dsn="+I(n);for(var o in t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&(r+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(r+="&email="+encodeURIComponent(t.user.email))}else r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);return i+"?"+r}function me(e,t){return void 0===t&&(t=[]),[e,t]}function ge(e){var t=(0,i.zs)(e,2),n=(0,i.zs)(t[1],1),r=(0,i.zs)(n[0],1),o=r[0];return o.type}function ve(e){var t=(0,i.zs)(e,2),n=t[0],r=t[1],o=JSON.stringify(n);return r.reduce((function(e,t){var n=(0,i.zs)(t,2),r=n[0],o=n[1],s=(0,$.sO)(o)?String(o):JSON.stringify(o);return e+"\n"+JSON.stringify(r)+"\n"+s}),o)}function ye(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk,n=t.name,i=t.version;return{name:n,version:i}}}function be(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=(0,i.gz)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=(0,i.gz)(e.sdk.packages||[],t.packages||[]),e):e}function we(e,t){var n=ye(t),r=(0,i.Cl)((0,i.Cl)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:I(t.dsn)}),o="aggregates"in e?"sessions":"session",s=[{type:o},e],a=me(r,[s]);return[a,o]}function ke(e,t){var n=(0,i.zs)(we(e,t),2),r=n[0],o=n[1];return{body:ve(r),type:o,url:pe(t.dsn,t.tunnel)}}function _e(e,t){var n=ye(t),r=e.type||"event",o=(e.sdkProcessingMetadata||{}).transactionSampling,s=o||{},a=s.method,l=s.rate;be(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;var c=(0,i.Cl)((0,i.Cl)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:I(t.dsn)}),u=[{type:r,sample_rates:[{id:a,rate:l}]},e];return me(c,[u])}function Se(e,t){var n,r=ye(t),o=e.type||"event",s="transaction"===o||!!t.tunnel,a=(e.sdkProcessingMetadata||{}).transactionSampling,l=a||{},c=l.method,u=l.rate;be(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(g){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=g;try{n=JSON.stringify(G(e))}catch(v){var d=v;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:d.message,stack:d.stack}})}}var h={body:n,type:o,url:s?pe(t.dsn,t.tunnel):de(t.dsn)};if(s){var p=(0,i.Cl)((0,i.Cl)({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:I(t.dsn)}),f=[{type:o,sample_rates:[{id:c,rate:u}]},h.body],m=me(p,[f]);h.body=ve(m)}return h}var xe,Ce=function(){function e(){}return e.prototype.sendEvent=function(e){return(0,z.XW)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return(0,z.XW)(!0)},e}(),Ee=function(){function e(e){this._options=e,this._options.dsn||l&&o.vF.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new A("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new A("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=se(this._options.dsn,this._options._metadata,this._options.tunnel),n=_e(e,t);this._newTransport.send(n).then(null,(function(e){l&&o.vF.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){l&&o.vF.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=se(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,i.zs)(we(e,t),1),r=n[0];this._newTransport.send(r).then(null,(function(e){l&&o.vF.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){l&&o.vF.error("Error while sending session:",e)}));else l&&o.vF.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Ce},e}();(function(e){e["Fatal"]="fatal",e["Error"]="error",e["Warning"]="warning",e["Log"]="log",e["Info"]="info",e["Debug"]="debug",e["Critical"]="critical"})(xe||(xe={}));var Te=n(1336),De="?",Ne=10,Oe=20,Ae=30,Pe=40,Me=50;function Be(e,t,n,i){var r={filename:e,function:t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}var Ie=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Re=/\((\S*)(?::(\d+))(?::(\d+))\)/,Le=function(e){var t=Ie.exec(e);if(t){var n=t[2]&&0===t[2].indexOf("eval");if(n){var r=Re.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}var o=(0,i.zs)(Qe(t[1]||De,t[2]),2),s=o[0],a=o[1];return Be(a,s,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Fe=[Ae,Le],Ve=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ze=function(e){var t,n=Ve.exec(e);if(n){var r=n[3]&&n[3].indexOf(" > eval")>-1;if(r){var o=$e.exec(n[3]);o&&(n[1]=n[1]||"eval",n[3]=o[1],n[4]=o[2],n[5]="")}var s=n[3],a=n[1]||De;return t=(0,i.zs)(Qe(a,s),2),a=t[0],s=t[1],Be(s,a,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Ue=[Me,ze],je=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,He=function(e){var t=je.exec(e);return t?Be(t[2],t[1]||De,+t[3],t[4]?+t[4]:void 0):void 0},Ge=[Pe,He],We=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,qe=function(e){var t=We.exec(e);return t?Be(t[2],t[3]||De,+t[1]):void 0},Ke=[Ne,qe],Ye=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Xe=function(e){var t=Ye.exec(e);return t?Be(t[5],t[3]||t[4]||De,+t[1],+t[2]):void 0},Je=[Oe,Xe],Qe=function(e,t){var n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:De,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function Ze(e){var t=nt(e),n={type:e&&e.name,value:ot(e)};return t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function et(e,t,n){var i={exception:{values:[{type:(0,$.xH)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,k.HF)(e)}]},extra:{__serialized__:W(e)}};if(t){var r=nt(t);r.length&&(i.stacktrace={frames:r})}return i}function tt(e){return{exception:{values:[Ze(e)]}}}function nt(e){var t=e.stacktrace||e.stack||"",n=rt(e);try{return(0,H.gd)(Ke,Je,Fe,Ge,Ue)(t,n)}catch(i){}return[]}var it=/Minified React error #\d+;/i;function rt(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(it.test(e.message))return 1}return 0}function ot(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function st(e,t,n){var i=t&&t.syntheticException||void 0,r=lt(e,i,n);return(0,s.M6)(r),r.level=xe.Error,t&&t.event_id&&(r.event_id=t.event_id),(0,z.XW)(r)}function at(e,t,n,i){void 0===t&&(t=xe.Info);var r=n&&n.syntheticException||void 0,o=ct(e,r,i);return o.level=t,n&&n.event_id&&(o.event_id=n.event_id),(0,z.XW)(o)}function lt(e,t,n,r){var o;if((0,$.T2)(e)&&e.error){var a=e;return tt(a.error)}if((0,$.BD)(e)||(0,$.W6)(e)){var l=e;if("stack"in e)o=tt(e);else{var c=l.name||((0,$.BD)(l)?"DOMError":"DOMException"),u=l.message?c+": "+l.message:c;o=ct(u,t,n),(0,s.gO)(o,u)}return"code"in l&&(o.tags=(0,i.Cl)((0,i.Cl)({},o.tags),{"DOMException.code":""+l.code})),o}if((0,$.bJ)(e))return tt(e);if((0,$.Qd)(e)||(0,$.xH)(e)){var d=e;return o=et(d,t,r),(0,s.M6)(o,{synthetic:!0}),o}return o=ct(e,t,n),(0,s.gO)(o,""+e,void 0),(0,s.M6)(o,{synthetic:!0}),o}function ct(e,t,n){var i={message:e};if(n&&t){var r=nt(t);r.length&&(i.stacktrace={frames:r})}return i}function ut(e){var t=[];function n(){return void 0===e||t.length<e}function i(e){return t.splice(t.indexOf(e),1)[0]}function r(e){if(!n())return(0,z.xg)(new A("Not adding Promise due to buffer limit reached."));var r=e();return-1===t.indexOf(r)&&t.push(r),r.then((function(){return i(r)})).then(null,(function(){return i(r).then(null,(function(){}))})),r}function o(e){return new z.T2((function(n,i){var r=t.length;if(!r)return n(!0);var o=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){(0,z.XW)(e).then((function(){--r||(clearTimeout(o),n(!0))}),i)}))}))}return{$:t,add:r,drain:o}}var dt=6e4;function ht(e,t){void 0===t&&(t=Date.now());var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var i=Date.parse(""+e);return isNaN(i)?dt:i-t}function pt(e,t){return e[t]||e.all||0}function ft(e,t,n){return void 0===n&&(n=Date.now()),pt(e,t)>n}function mt(e,t,n){var r,o,s,a;void 0===n&&(n=Date.now());var l=(0,i.Cl)({},e),c=t["x-sentry-rate-limits"],u=t["retry-after"];if(c)try{for(var d=(0,i.Ju)(c.trim().split(",")),h=d.next();!h.done;h=d.next()){var p=h.value,f=p.split(":",2),m=parseInt(f[0],10),g=1e3*(isNaN(m)?60:m);if(f[1])try{for(var v=(s=void 0,(0,i.Ju)(f[1].split(";"))),y=v.next();!y.done;y=v.next()){var b=y.value;l[b]=n+g}}catch(w){s={error:w}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}else l.all=n+g}}catch(k){r={error:k}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}else u&&(l.all=n+ht(u,n));return l}function gt(e){return e>=200&&e<300?"success":429===e?"rate_limit":e>=400&&e<500?"invalid":e>=500?"failed":"unknown"}var vt=30;function yt(e,t,n){void 0===n&&(n=ut(e.bufferSize||vt));var i={},r=function(e){return n.drain(e)};function o(e){var r=ge(e),o="event"===r?"error":r,s={category:o,body:ve(e)};if(ft(i,o))return(0,z.xg)({status:"rate_limit",reason:bt(i,o)});var a=function(){return t(s).then((function(e){var t=e.body,n=e.headers,r=e.reason,s=e.statusCode,a=gt(s);return n&&(i=mt(i,n)),"success"===a?(0,z.XW)({status:a,reason:r}):(0,z.xg)({status:a,reason:r||t||("rate_limit"===a?bt(i,o):"Unknown transport error")})}))};return n.add(a)}return{send:o,flush:r}}function bt(e,t){return"Too many "+t+" requests, backing off until: "+new Date(pt(e,t)).toISOString()}function wt(e){e.then(null,(function(e){console.error(e)}))}var kt,_t="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,St=(0,C.V)();function xt(){if(kt)return kt;if((0,Te.ap)(St.fetch))return kt=St.fetch.bind(St);var e=St.document,t=St.fetch;if(e&&"function"===typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(r){_t&&o.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return kt=t.bind(St)}function Ct(e,t){var n="[object Navigator]"===Object.prototype.toString.call(St&&St.navigator),i=n&&"function"===typeof St.navigator.sendBeacon;if(i){var r=St.navigator.sendBeacon.bind(St.navigator);return r(e,t)}if((0,Te.vm)()){var o=xt();return wt(o(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}))}}function Et(e,t){function n(n){var r=(0,i.Cl)({body:n.body,method:"POST",referrerPolicy:"origin"},e.requestOptions);return t(e.url,r).then((function(e){return e.text().then((function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}}))}))}return void 0===t&&(t=xt()),yt({bufferSize:e.bufferSize},n)}function Tt(e,t,n){var i=[{type:"client_report"},{timestamp:n||(0,U.lu)(),discarded_events:e}];return me(t?{dsn:t}:{},[i])}function Dt(e){var t=e;return"event"===t?"error":t}var Nt=(0,C.V)(),Ot=function(){function e(e){var t=this;this.options=e,this._buffer=ut(30),this._rateLimits={},this._outcomes={},this._api=se(e.dsn,e._metadata,e.tunnel),this.url=de(this._api.dsn),this.options.sendClientReports&&Nt.document&&Nt.document.addEventListener("visibilitychange",(function(){"hidden"===Nt.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(Se(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(ke(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var i=Dt(t)+":"+e;_t&&o.vF.log("Adding outcome: "+i),this._outcomes[i]=(n=this._outcomes[i],(null!==n&&void 0!==n?n:0)+1)}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){_t&&o.vF.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=pe(this._api.dsn,this._api.tunnel),n=Object.keys(e).map((function(t){var n=(0,i.zs)(t.split(":"),2),r=n[0],o=n[1];return{reason:o,category:r,quantity:e[t]}})),r=Tt(n,this._api.tunnel&&I(this._api.dsn));try{Ct(t,ve(r))}catch(s){_t&&o.vF.error(s)}}else _t&&o.vF.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,i=e.headers,r=e.resolve,s=e.reject,a=gt(n.status);this._rateLimits=mt(this._rateLimits,i),this._isRateLimited(t)&&_t&&o.vF.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),"success"!==a?s(n):r({status:a})},e.prototype._disabledUntil=function(e){var t=Dt(e);return new Date(pt(this._rateLimits,t))},e.prototype._isRateLimited=function(e){var t=Dt(e);return ft(this._rateLimits,t)},e}(),At=function(e){function t(t,n){void 0===n&&(n=xt());var i=e.call(this,t)||this;return i._fetch=n,i}return(0,i.C6)(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var i={body:e.body,method:"POST",referrerPolicy:(0,Te.K8)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add((function(){return new z.T2((function(t,r){n._fetch(e.url,i).then((function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})})).catch(r)}))})).then(void 0,(function(t){throw t instanceof A?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Ot),Pt=4;function Mt(e){function t(t){return new z.T2((function(n,i){var r=new XMLHttpRequest;for(var o in r.onreadystatechange=function(){if(r.readyState===Pt){var e={body:r.response,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")},reason:r.statusText,statusCode:r.status};n(e)}},r.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&r.setRequestHeader(o,e.headers[o]);r.send(t.body)}))}return yt({bufferSize:e.bufferSize},t)}var Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new z.T2((function(t,i){var r=new XMLHttpRequest;for(var o in r.onreadystatechange=function(){if(4===r.readyState){var o={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})}},r.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&r.setRequestHeader(o,n.options.headers[o]);r.send(e.body)}))})).then(void 0,(function(t){throw t instanceof A?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Ot),It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.eventFromException=function(e,t){return st(e,t,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=xe.Info),at(e,t,n,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=(0,i.Cl)((0,i.Cl)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=se(t.dsn,t._metadata,t.tunnel),r=pe(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(t);if((0,Te.vm)()){var o=(0,i.Cl)({},t.fetchParameters);return this._newTransport=Et({requestOptions:o,url:r}),new At(t)}return this._newTransport=Mt({url:r,headers:t.headers}),new Bt(t)},t}(Ee);function Rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=(0,S.BF)();if(r&&r[e])return r[e].apply(r,(0,i.gz)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Lt(e,t){var n=new Error("Sentry syntheticException");return Rt("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function Ft(e){Rt("withScope",e)}var Vt=(0,C.V)(),$t=0;function zt(){return $t>0}function Ut(){$t+=1,setTimeout((function(){$t-=1}))}function jt(e,t,n){if(void 0===t&&(t={}),"function"!==typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if((0,k.sp)(e))return e}catch(c){return e}var o=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var o=r.map((function(e){return jt(e,t)}));return e.apply(this,o)}catch(a){throw Ut(),Ft((function(e){e.addEventProcessor((function(e){return t.mechanism&&((0,s.gO)(e,void 0,void 0),(0,s.M6)(e,t.mechanism)),e.extra=(0,i.Cl)((0,i.Cl)({},e.extra),{arguments:r}),e})),Lt(a)})),a}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a])}catch(u){}(0,k.pO)(o,e),(0,k.my)(e,"__sentry_wrapped__",o);try{var l=Object.getOwnPropertyDescriptor(o,"name");l.configurable&&Object.defineProperty(o,"name",{get:function(){return e.name}})}catch(u){}return o}function Ht(e){if(void 0===e&&(e={}),Vt.document)if(e.eventId)if(e.dsn){var t=Vt.document.createElement("script");t.async=!0,t.src=fe(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=Vt.document.head||Vt.document.body;n&&n.appendChild(t)}else _t&&o.vF.error("Missing dsn option in showReportDialog call");else _t&&o.vF.error("Missing eventId option in showReportDialog call")}var Gt=n(9766),Wt=["fatal","error","warning","log","info","debug","critical"];function qt(e){return-1!==Wt.indexOf(e)}function Kt(e){return"warn"===e?xe.Warning:qt(e)?e:xe.Log}var Yt=function(){function e(t){this.name=e.id,this._options=(0,i.Cl)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,S.BF)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,s.$X)(e)},{event:e})},e.prototype.setupOnce=function(){this._options.console&&(0,E.O)("console",Jt),this._options.dom&&(0,E.O)("dom",Xt(this._options.dom)),this._options.xhr&&(0,E.O)("xhr",Qt),this._options.fetch&&(0,E.O)("fetch",Zt),this._options.history&&(0,E.O)("history",en)},e.id="Breadcrumbs",e}();function Xt(e){function t(t){var n,i="object"===typeof e?e.serializeAttribute:void 0;"string"===typeof i&&(i=[i]);try{n=t.event.target?(0,Gt.H)(t.event.target,i):(0,Gt.H)(t.event,i)}catch(r){n="<unknown>"}0!==n.length&&(0,S.BF)().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})}return t}function Jt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Kt(e.level),message:(0,a.gt)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+((0,a.gt)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,S.BF)().addBreadcrumb(t,{input:e.args,level:e.level})}function Qt(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,i=t.url,r=t.status_code,o=t.body;(0,S.BF)().addBreadcrumb({category:"xhr",data:{method:n,url:i,status_code:r},type:"http"},{xhr:e.xhr,input:o})}else;}function Zt(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,S.BF)().addBreadcrumb({category:"fetch",data:e.fetchData,level:xe.Error,type:"http"},{data:e.error,input:e.args}):(0,S.BF)().addBreadcrumb({category:"fetch",data:(0,i.Cl)((0,i.Cl)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function en(e){var t=(0,C.V)(),n=e.from,i=e.to,r=(0,s.Dl)(t.location.href),o=(0,s.Dl)(n),a=(0,s.Dl)(i);o.path||(o=r),r.protocol===a.protocol&&r.host===a.host&&(i=a.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),(0,S.BF)().addBreadcrumb({category:"navigation",data:{from:n,to:i}})}var tn=function(e){function t(t){void 0===t&&(t={});var n=this;return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:r}],version:r},n=e.call(this,It,t)||this,n}return(0,i.C6)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=(0,C.V)().document;t&&(this._isEnabled()?Ht((0,i.Cl)((0,i.Cl)({},e),{dsn:e.dsn||this.getDsn()})):_t&&o.vF.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,i){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,i)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Yt);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(ie),nn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],rn=function(){function e(t){this.name=e.id,this._options=(0,i.Cl)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,C.V)();this._options.setTimeout&&(0,k.GS)(e,"setTimeout",on),this._options.setInterval&&(0,k.GS)(e,"setInterval",on),this._options.requestAnimationFrame&&(0,k.GS)(e,"requestAnimationFrame",sn),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,k.GS)(XMLHttpRequest.prototype,"send",an);var t=this._options.eventTarget;if(t){var n=Array.isArray(t)?t:nn;n.forEach(ln)}},e.id="TryCatch",e}();function on(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0];return t[0]=jt(i,{mechanism:{data:{function:(0,H.qQ)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function sn(e){return function(t){return e.apply(this,[jt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,H.qQ)(e)},handled:!0,type:"instrument"}})])}}function an(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach((function(e){e in i&&"function"===typeof i[e]&&(0,k.GS)(i,e,(function(t){var n={mechanism:{data:{function:e,handler:(0,H.qQ)(t)},handled:!0,type:"instrument"}},i=(0,k.sp)(t);return i&&(n.mechanism.data.handler=(0,H.qQ)(i)),jt(t,n)}))})),e.apply(this,t)}}function ln(e){var t=(0,C.V)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,k.GS)(n,"addEventListener",(function(t){return function(n,i,r){try{"function"===typeof i.handleEvent&&(i.handleEvent=jt(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:(0,H.qQ)(i),target:e},handled:!0,type:"instrument"}}))}catch(o){}return t.apply(this,[n,jt(i,{mechanism:{data:{function:"addEventListener",handler:(0,H.qQ)(i),target:e},handled:!0,type:"instrument"}}),r])}})),(0,k.GS)(n,"removeEventListener",(function(e){return function(t,n,i){var r=n;try{var o=r&&r.__sentry_wrapped__;o&&e.call(this,t,o,i)}catch(s){}return e.call(this,t,r,i)}})))}var cn=function(){function e(t){this.name=e.id,this._installFunc={onerror:un,onunhandledrejection:dn},this._options=(0,i.Cl)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e=this._options;for(var t in e){var n=this._installFunc[t];n&&e[t]&&(mn(t),n(),this._installFunc[t]=void 0)}},e.id="GlobalHandlers",e}();function un(){(0,E.O)("error",(function(e){var t=(0,i.zs)(vn(),2),n=t[0],r=t[1];if(n.getIntegration(cn)){var o=e.msg,s=e.url,a=e.line,l=e.column,c=e.error;if(!(zt()||c&&c.__sentry_own_request__)){var u=void 0===c&&(0,$.Kg)(o)?pn(o,s,a,l):fn(lt(c||o,void 0,r,!1),s,a,l);u.level=xe.Error,gn(n,c,u,"onerror")}}}))}function dn(){(0,E.O)("unhandledrejection",(function(e){var t=(0,i.zs)(vn(),2),n=t[0],r=t[1];if(n.getIntegration(cn)){var o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(a){}if(zt()||o&&o.__sentry_own_request__)return!0;var s=(0,$.sO)(o)?hn(o):lt(o,void 0,r,!0);s.level=xe.Error,gn(n,o,s,"onunhandledrejection")}}))}function hn(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}}function pn(e,t,n,i){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=(0,$.T2)(e)?e.message:e,s="Error",a=o.match(r);a&&(s=a[1],o=a[2]);var l={exception:{values:[{type:s,value:o}]}};return fn(l,t,n,i)}function fn(e,t,n,i){var r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,d=(0,$.Kg)(t)&&t.length>0?t:(0,Gt.$)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function mn(e){_t&&o.vF.log("Global Handler attached: "+e)}function gn(e,t,n,i){(0,s.M6)(n,{handled:!1,type:i}),e.captureEvent(n,{originalException:t})}function vn(){var e=(0,S.BF)(),t=e.getClient(),n=t&&t.getOptions().attachStacktrace;return[e,n]}var yn="cause",bn=5,wn=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||yn,this._limit=t.limit||bn}return e.prototype.setupOnce=function(){(0,T.l)((function(t,n){var i=(0,S.BF)().getIntegration(e);return i?kn(i._key,i._limit,t,n):t}))},e.id="LinkedErrors",e}();function kn(e,t,n,r){if(!n.exception||!n.exception.values||!r||!(0,$.tH)(r.originalException,Error))return n;var o=_n(t,r.originalException,e);return n.exception.values=(0,i.gz)(o,n.exception.values),n}function _n(e,t,n,r){if(void 0===r&&(r=[]),!(0,$.tH)(t[n],Error)||r.length+1>=e)return r;var o=Ze(t[n]);return _n(e,t[n],n,(0,i.gz)([o],r))}var Sn=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var i=n().getIntegration(e);if(i){try{if(xn(t,i._previousEvent))return _t&&o.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){return i._previousEvent=t}return i._previousEvent=t}return t}))},e.id="Dedupe",e}();function xn(e,t){return!!t&&(!!Cn(e,t)||!!En(e,t))}function Cn(e,t){var n=e.message,i=t.message;return!(!n&&!i)&&(!(n&&!i||!n&&i)&&(n===i&&(!!Dn(e,t)&&!!Tn(e,t))))}function En(e,t){var n=Nn(t),i=Nn(e);return!(!n||!i)&&(n.type===i.type&&n.value===i.value&&(!!Dn(e,t)&&!!Tn(e,t)))}function Tn(e,t){var n=On(e),i=On(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var o=i[r],s=n[r];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function Dn(e,t){var n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(r){return!1}}function Nn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function On(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}else if(e.stacktrace)return e.stacktrace.frames}var An=(0,C.V)(),Pn=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){(0,T.l)((function(t){if((0,S.BF)().getIntegration(e)){if(!An.navigator&&!An.location&&!An.document)return t;var n=t.request&&t.request.url||An.location&&An.location.href,r=(An.document||{}).referrer,o=(An.navigator||{}).userAgent,s=(0,i.Cl)((0,i.Cl)((0,i.Cl)({},t.request&&t.request.headers),r&&{Referer:r}),o&&{"User-Agent":o}),a=(0,i.Cl)((0,i.Cl)({},n&&{url:n}),{headers:s});return(0,i.Cl)((0,i.Cl)({},t),{request:a})}return t}))},e.id="UserAgent",e}(),Mn=[new u,new _,new rn,new Yt,new cn,new wn,new Sn,new Pn];function Bn(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Mn),void 0===e.release){var t=(0,C.V)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),x(tn,e),e.autoSessionTracking&&Rn()}function In(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function Rn(){var e=(0,C.V)(),t=e.document;if("undefined"!==typeof t){var n=(0,S.BF)();n.captureSession&&(In(n),(0,E.O)("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&In((0,S.BF)())})))}else _t&&o.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var Ln=["activate","mount","update"],Fn=/(?:^|[-_])(\w)/g,Vn=function(e){return e.replace(Fn,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")},$n="<Root>",zn="<Anonymous>",Un=function(e,t){var n="";while(t)t%2===1&&(n+=e),t>1&&(e+=e),t>>=1;return n},jn=function(e,t){if(!e)return zn;if(e.$root===e)return $n;var n=e.$options,i=n.name||n._componentTag,r=n.__file;if(!i&&r){var o=r.match(/([^/\\]+)\.vue$/);o&&(i=o[1])}return(i?"<"+Vn(i)+">":zn)+(r&&!1!==t?" at "+r:"")},Hn=function(e){var t,n,i;if(((null===(t=e)||void 0===t?void 0:t._isVue)||(null===(n=e)||void 0===n?void 0:n.__isVue))&&(null===(i=e)||void 0===i?void 0:i.$parent)){var r=[],o=0;while(e){if(r.length>0){var s=r[r.length-1];if(s.constructor===e.constructor){o+=1,e=e.$parent;continue}o>0&&(r[r.length-1]=[s,o],o=0)}r.push(e),e=e.$parent}var a=r.map((function(e,t){return""+((0===t?"---\x3e ":Un(" ",5+2*t))+(Array.isArray(e)?jn(e[0])+"... ("+e[1]+" recursive calls)":jn(e)))})).join("\n");return"\n\nfound in\n\n"+a}return"\n\n(found in "+jn(e)+")"},Gn=function(e,t){var n=e.config,i=n.errorHandler,r=n.warnHandler,o=n.silent;e.config.errorHandler=function(n,s,a){var l=jn(s,!1),c=s?Hn(s):"",u={componentName:l,lifecycleHook:a,trace:c};if(s&&t.attachProps&&(u.propsData=s.$options.propsData||s.$props),setTimeout((function(){(0,S.BF)().withScope((function(e){e.setContext("vue",u),(0,S.BF)().captureException(n)}))})),"function"===typeof i&&i.call(e,n,s,a),t.logErrors){var d="undefined"!==typeof console,h="Error in "+a+': "'+(n&&n.toString())+'"';r?r.call(null,h,s,c):d&&!o&&console.error("[Vue warn]: "+h+c)}}},Wn="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,qn="ui.vue",Kn={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Yn(){var e;return null===(e=(0,S.BF)().getScope())||void 0===e?void 0:e.getTransaction()}function Xn(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout((function(){var n;(null===(n=e.$root)||void 0===n?void 0:n.$_sentryRootSpan)&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)}),n)}var Jn=function(e){var t,n,r=(e.hooks||[]).concat(Ln).filter((function(e,t,n){return n.indexOf(e)===t})),s={},a=function(t){var n,r,a=Kn[t];if(!a)return Wn&&o.vF.warn("Unknown hook: "+t),"continue";var l=function(n){s[n]=function(){var i,r=this.$root===this;if(r){var o=Yn();o&&(this.$_sentryRootSpan=this.$_sentryRootSpan||o.startChild({description:"Application Render",op:qn}))}var s=jn(this,!1),l=Array.isArray(e.trackComponents)?e.trackComponents.includes(s):e.trackComponents;if(r||l)if(this.$_sentrySpans=this.$_sentrySpans||{},n==a[0]){o=(null===(i=this.$root)||void 0===i?void 0:i.$_sentryRootSpan)||Yn();o&&(this.$_sentrySpans[t]=o.startChild({description:"Vue <"+s+">",op:qn+"."+t}))}else{var c=this.$_sentrySpans[t];if(!c)return;c.finish(),Xn(this,(0,U.zf)(),e.timeout)}}};try{for(var c=(n=void 0,(0,i.Ju)(a)),u=c.next();!u.done;u=c.next()){var d=u.value;l(d)}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}};try{for(var l=(0,i.Ju)(r),c=l.next();!c.done;c=l.next()){var u=c.value;a(u)}}catch(d){t={error:d}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s},Qn={Vue:(0,C.V)().Vue,attachProps:!0,logErrors:!1,hooks:Ln,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:r}],version:r}}};function Zn(e){void 0===e&&(e={});var t=(0,i.Cl)((0,i.Cl)({},Qn),e);if(Bn(t),t.Vue||t.app)if(t.app){var n=Array.isArray(t.app)?t.app:[t.app];n.forEach((function(e){return ei(e,t)}))}else t.Vue&&ei(t.Vue,t);else Wn&&o.vF.warn("Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")}var ei=function(e,t){Gn(e,t),("tracesSampleRate"in t||"tracesSampler"in t)&&e.mixin(Jn((0,i.Cl)((0,i.Cl)({},t),t.tracingOptions)))}},2250:(e,t,n)=>{"use strict";function i(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function r(){return!i()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function o(e,t){return e.require(t)}function s(t){var n;try{n=o(e,t)}catch(r){}try{var i=o(e,"process").cwd;n=o(e,i()+"/node_modules/"+t)}catch(r){}return n}n.d(t,{fj:()=>o,wD:()=>r,Vw:()=>s}),e=n.hmd(e)},2512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sepia=void 0;const n=function(e){const t=e.data,n=t.length;for(let i=0;i<n;i+=4){const e=t[i+0],n=t[i+1],r=t[i+2];t[i+0]=Math.min(255,.393*e+.769*n+.189*r),t[i+1]=Math.min(255,.349*e+.686*n+.168*r),t[i+2]=Math.min(255,.272*e+.534*n+.131*r)}};t.Sepia=n},2650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contrast=void 0;const i=n(4892),r=n(6536),o=n(5483),s=function(e){const t=Math.pow((this.contrast()+100)/100,2),n=e.data,i=n.length;let r=150,o=150,s=150;for(let a=0;a<i;a+=4)r=n[a],o=n[a+1],s=n[a+2],r/=255,r-=.5,r*=t,r+=.5,r*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,s/=255,s-=.5,s*=t,s+=.5,s*=255,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,n[a]=r,n[a+1]=o,n[a+2]=s};t.Contrast=s,i.Factory.addGetterSetter(r.Node,"contrast",0,(0,o.getNumberValidator)(),i.Factory.afterSetFilter)},3168:(e,t,n)=>{"use strict";function i(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{A:()=>Nt});const r={},o=()=>{},s=Object.assign,a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,c=(e,t)=>l.call(e,t),u=Array.isArray,d=e=>"[object Map]"===b(e),h=e=>"[object Set]"===b(e),p=e=>"function"==typeof e,f=e=>"string"==typeof e,m=e=>"symbol"==typeof e,g=e=>null!==e&&"object"==typeof e,v=e=>(g(e)||p(e))&&p(e.then)&&p(e.catch),y=Object.prototype.toString,b=e=>y.call(e),w=e=>b(e).slice(8,-1),k=e=>"[object Object]"===b(e),_=e=>f(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=((e=>{const t=Object.create(null)})((e=>e.charAt(0).toUpperCase()+e.slice(1))),(e,t)=>!Object.is(e,t)),x=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let C;const E=()=>C||(C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:{});let T;const D=e=>{const t=new Set(e);return t.w=0,t.n=0,t},N=e=>(e.w&M)>0,O=e=>(e.n&M)>0,A=new WeakMap;let P=0,M=1;const B=30;let I;const R=Symbol(""),L=Symbol("");class F{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=T){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=I,t=$;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=I,I=this,$=!0,M=1<<++P,P<=B?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=M})(this):V(this),this.fn()}finally{P<=B&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];N(r)&&!O(r)?r.delete(e):t[n++]=r,r.w&=~M,r.n&=~M}t.length=n}})(this),M=1<<--P,I=this.parent,$=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){I===this?this.deferStop=!0:this.active&&(V(this),this.onStop&&this.onStop(),this.active=!1)}}function V(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let $=!0;const z=[];function U(){z.push($),$=!1}function j(){const e=z.pop();$=void 0===e||e}function H(e,t,n){if($&&I){let t=A.get(e);t||A.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=D()),function(e){let t=!1;P<=B?O(e)||(e.n|=M,t=!N(e)):t=!e.has(I),t&&(e.add(I),I.deps.push(e))}(i)}}function G(e,t,n,i,r,o){const s=A.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&u(e)){const e=Number(i);s.forEach(((t,n)=>{("length"===n||!m(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":u(e)?_(n)&&a.push(s.get("length")):(a.push(s.get(R)),d(e)&&a.push(s.get(L)));break;case"delete":u(e)||(a.push(s.get(R)),d(e)&&a.push(s.get(L)));break;case"set":d(e)&&a.push(s.get(R))}if(1===a.length)a[0]&&W(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);W(D(e))}}function W(e,t){const n=u(e)?e:[...e];for(const i of n)i.computed&&q(i,t);for(const i of n)i.computed||q(i,t)}function q(e,t){(e!==I||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const K=i("__proto__,__v_isRef,__isVue"),Y=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(m)),X=J();function J(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Be(this);for(let t=0,r=this.length;t<r;t++)H(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(Be)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){U();const n=Be(this)[t].apply(this,e);return j(),n}})),e}function Q(e){const t=Be(this);return H(t,"has",e),t.hasOwnProperty(e)}class Z{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const i=this._isReadonly,r=this._shallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return r;if("__v_raw"===t&&n===(i?r?Te:Ee:r?Ce:xe).get(e))return e;const o=u(e);if(!i){if(o&&c(X,t))return Reflect.get(X,t,n);if("hasOwnProperty"===t)return Q}const s=Reflect.get(e,t,n);return(m(t)?Y.has(t):K(t))?s:(i||H(e,"get",t),r?s:Le(s)?o&&_(t)?s:s.value:g(s)?i?Ne(s):De(s):s)}}class ee extends Z{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];if(Pe(r)&&Le(r)&&!Le(n))return!1;if(!this._shallow&&(Me(n)||Pe(n)||(r=Be(r),n=Be(n)),!u(e)&&Le(r)&&!Le(n)))return r.value=n,!0;const o=u(e)&&_(t)?Number(t)<e.length:c(e,t),s=Reflect.set(e,t,n,i);return e===Be(i)&&(o?S(n,r)&&G(e,"set",t,n,r):G(e,"add",t,n)),s}deleteProperty(e,t){const n=c(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&G(e,"delete",t,void 0,i),r}has(e,t){const n=Reflect.has(e,t);return m(t)&&Y.has(t)||H(e,"has",t),n}ownKeys(e){return H(e,"iterate",u(e)?"length":R),Reflect.ownKeys(e)}}class te extends Z{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const ne=new ee,ie=new te,re=(new te(!0),e=>e),oe=e=>Reflect.getPrototypeOf(e);function se(e,t,n=!1,i=!1){const r=Be(e=e.__v_raw),o=Be(t);n||(S(t,o)&&H(r,"get",t),H(r,"get",o));const{has:s}=oe(r),a=i?re:n?Re:Ie;return s.call(r,t)?a(e.get(t)):s.call(r,o)?a(e.get(o)):void(e!==r&&e.get(t))}function ae(e,t=!1){const n=this.__v_raw,i=Be(n),r=Be(e);return t||(S(e,r)&&H(i,"has",e),H(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function le(e,t=!1){return e=e.__v_raw,!t&&H(Be(e),"iterate",R),Reflect.get(e,"size",e)}function ce(e){e=Be(e);const t=Be(this);return oe(t).has.call(t,e)||(t.add(e),G(t,"add",e,e)),this}function ue(e,t){t=Be(t);const n=Be(this),{has:i,get:r}=oe(n);let o=i.call(n,e);!o&&(e=Be(e),o=i.call(n,e));const s=r.call(n,e);return n.set(e,t),o?S(t,s)&&G(n,"set",e,t,s):G(n,"add",e,t),this}function de(e){const t=Be(this),{has:n,get:i}=oe(t);let r=n.call(t,e);!r&&(e=Be(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,s=t.delete(e);return r&&G(t,"delete",e,void 0,o),s}function he(){const e=Be(this),t=0!==e.size,n=void 0,i=e.clear();return t&&G(e,"clear",void 0,void 0,n),i}function pe(e,t){return function(n,i){const r=this,o=r.__v_raw,s=Be(o),a=t?re:e?Re:Ie;return!e&&H(s,"iterate",R),o.forEach(((e,t)=>n.call(i,a(e),a(t),r)))}}function fe(e,t,n){return function(...i){const r=this.__v_raw,o=Be(r),s=d(o),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...i),u=n?re:t?Re:Ie;return!t&&H(o,"iterate",l?L:R),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function me(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ge(){const e={get(e){return se(this,e)},get size(){return le(this)},has:ae,add:ce,set:ue,delete:de,clear:he,forEach:pe(!1,!1)},t={get(e){return se(this,e,!1,!0)},get size(){return le(this)},has:ae,add:ce,set:ue,delete:de,clear:he,forEach:pe(!1,!0)},n={get(e){return se(this,e,!0)},get size(){return le(this,!0)},has(e){return ae.call(this,e,!0)},add:me("add"),set:me("set"),delete:me("delete"),clear:me("clear"),forEach:pe(!0,!1)},i={get(e){return se(this,e,!0,!0)},get size(){return le(this,!0)},has(e){return ae.call(this,e,!0)},add:me("add"),set:me("set"),delete:me("delete"),clear:me("clear"),forEach:pe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=fe(r,!1,!1),n[r]=fe(r,!0,!1),t[r]=fe(r,!1,!0),i[r]=fe(r,!0,!0)})),[e,n,t,i]}const[ve,ye,be,we]=ge();function ke(e,t){const n=t?e?we:be:e?ye:ve;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(c(n,i)&&i in t?n:t,i,r)}const _e={get:ke(!1,!1)},Se={get:ke(!0,!1)};ke(!0,!0);const xe=new WeakMap,Ce=new WeakMap,Ee=new WeakMap,Te=new WeakMap;function De(e){return Pe(e)?e:Oe(e,!1,ne,_e,xe)}function Ne(e){return Oe(e,!0,ie,Se,Ee)}function Oe(e,t,n,i,r){if(!g(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?i:n);return r.set(e,l),l}function Ae(e){return Pe(e)?Ae(e.__v_raw):!(!e||!e.__v_isReactive)}function Pe(e){return!(!e||!e.__v_isReadonly)}function Me(e){return!(!e||!e.__v_isShallow)}function Be(e){const t=e&&e.__v_raw;return t?Be(t):e}const Ie=e=>g(e)?De(e):e,Re=e=>g(e)?Ne(e):e;function Le(e){return!(!e||!0!==e.__v_isRef)}const Fe={get:(e,t,n)=>{return Le(i=Reflect.get(e,t,n))?i.value:i;var i},set:(e,t,n,i)=>{const r=e[t];return Le(r)&&!Le(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Ve(e,t,n,i){let r;try{r=i?e(...i):e()}catch(e){ze(e,t,n)}return r}function $e(e,t,n,i){if(p(e)){const r=Ve(e,t,n,i);return r&&v(r)&&r.catch((e=>{ze(e,t,n)})),r}const r=[];for(let o=0;o<e.length;o++)r.push($e(e[o],t,n,i));return r}function ze(e,t,n,i=!0){t&&t.vnode;if(t){let i=t.parent;const r=t.proxy,o=n;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;i=i.parent}const s=t.appContext.config.errorHandler;if(s)return void Ve(s,null,10,[e,r,o])}!function(e){console.error(e)}(e,0,0,i)}let Ue=!1,je=!1;const He=[];let Ge=0;const We=[];let qe=null,Ke=0;const Ye=Promise.resolve();let Xe=null;function Je(e){const t=Xe||Ye;return e?t.then(this?e.bind(this):e):t}function Qe(e){He.length&&He.includes(e,Ue&&e.allowRecurse?Ge+1:Ge)||(null==e.id?He.push(e):He.splice(function(e){let t=Ge+1,n=He.length;for(;t<n;){const i=t+n>>>1,r=He[i],o=tt(r);o<e||o===e&&r.pre?t=i+1:n=i}return t}(e.id),0,e),Ze())}function Ze(){Ue||je||(je=!0,Xe=Ye.then(it))}function et(e){u(e)?We.push(...e):qe&&qe.includes(e,e.allowRecurse?Ke+1:Ke)||We.push(e),Ze()}const tt=e=>null==e.id?1/0:e.id,nt=(e,t)=>{const n=tt(e)-tt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function it(e){je=!1,Ue=!0,He.sort(nt);try{for(Ge=0;Ge<He.length;Ge++){const e=He[Ge];e&&!1!==e.active&&Ve(e,null,14)}}finally{Ge=0,He.length=0,function(){if(We.length){const e=[...new Set(We)];if(We.length=0,qe)return void qe.push(...e);for(qe=e,qe.sort(((e,t)=>tt(e)-tt(t))),Ke=0;Ke<qe.length;Ke++)qe[Ke]();qe=null,Ke=0}}(),Ue=!1,Xe=null,(He.length||We.length)&&it(e)}}new Set,new Map;Symbol.for("v-ndc");const rt={};function ot(e,t,{immediate:n,deep:i,flush:s,onTrack:l,onTrigger:c}=r){var d;const h=T===(null==(d=kt)?void 0:d.scope)?kt:null;let f,m,g=!1,v=!1;if(Le(e)?(f=()=>e.value,g=Me(e)):Ae(e)?(f=()=>e,i=!0):u(e)?(v=!0,g=e.some((e=>Ae(e)||Me(e))),f=()=>e.map((e=>Le(e)?e.value:Ae(e)?at(e):p(e)?Ve(e,h,2):void 0))):p(e)?f=t?()=>Ve(e,h,2):()=>{if(!h||!h.isUnmounted)return m&&m(),$e(e,h,3,[y])}:f=o,t&&i){const e=f;f=()=>at(e())}let y=e=>{m=_.onStop=()=>{Ve(e,h,4),m=_.onStop=void 0}},b=v?new Array(e.length).fill(rt):rt;const w=()=>{if(_.active)if(t){const e=_.run();(i||g||(v?e.some(((e,t)=>S(e,b[t]))):S(e,b)))&&(m&&m(),$e(t,h,3,[e,b===rt?void 0:v&&b[0]===rt?[]:b,y]),b=e)}else _.run()};let k;w.allowRecurse=!!t,"sync"===s?k=w:"post"===s?k=()=>yt(w,h&&h.suspense):(w.pre=!0,h&&(w.id=h.uid),k=()=>Qe(w));const _=new F(f,k);return t?n?w():b=_.run():"post"===s?yt(_.run.bind(_),h&&h.suspense):_.run(),()=>{_.stop(),h&&h.scope&&a(h.scope.effects,_)}}function st(e,t,n){const i=this.proxy,r=f(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(i,e):()=>i[e]:e.bind(i,i);let o;p(t)?o=t:(o=t.handler,n=t);const s=kt;St(this);const a=ot(r,o.bind(i),n);return s?St(s):xt(),a}function at(e,t){if(!g(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Le(e))at(e.value,t);else if(u(e))for(let n=0;n<e.length;n++)at(e[n],t);else if(h(e)||d(e))e.forEach((e=>{at(e,t)}));else if(k(e))for(const n in e)at(e[n],t);return e}const lt=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,x(n,"__v_skip",!0),Ae(t=n)?t:new Proxy(t,Fe)),{get:(t,n)=>n in t?t[n]:n in ct?ct[n](e):void 0,has:(e,t)=>t in e||t in ct}));var t,n}(e)||e.proxy:lt(e.parent):null,ct=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lt(e.parent),$root:e=>lt(e.root),$emit:e=>e.emit,$options:e=>function(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let l;return a?l=a:r.length||n||i?(l={},r.length&&r.forEach((e=>dt(l,e,s,!0))),dt(l,t,s)):l=t,g(t)&&o.set(t,l),l}(e),$forceUpdate:e=>e.f||(e.f=()=>Qe(e.update)),$nextTick:e=>e.n||(e.n=Je.bind(e.proxy)),$watch:e=>st.bind(e)});function ut(e){return u(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function dt(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&dt(e,o,n,!0),r&&r.forEach((t=>dt(e,t,n,!0)));for(const s in t)if(i&&"expose"===s);else{const i=ht[s]||n&&n[s];e[s]=i?i(e[s],t[s]):t[s]}return e}const ht={data:pt,props:vt,emits:vt,methods:gt,computed:gt,beforeCreate:mt,created:mt,beforeMount:mt,mounted:mt,beforeUpdate:mt,updated:mt,beforeDestroy:mt,beforeUnmount:mt,destroyed:mt,unmounted:mt,activated:mt,deactivated:mt,errorCaptured:mt,serverPrefetch:mt,components:gt,directives:gt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=s(Object.create(null),e);for(const i in t)n[i]=mt(e[i],t[i]);return n},provide:pt,inject:function(e,t){return gt(ft(e),ft(t))}};function pt(e,t){return t?e?function(){return s(p(e)?e.call(this,this):e,p(t)?t.call(this,this):t)}:t:e}function ft(e){if(u(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mt(e,t){return e?[...new Set([].concat(e,t))]:t}function gt(e,t){return e?s(Object.create(null),e,t):t}function vt(e,t){return e?u(e)&&u(t)?[...new Set([...e,...t])]:s(Object.create(null),ut(e),ut(null!=t?t:{})):t}const yt=function(e,t){t&&t.pendingBranch?u(e)?t.effects.push(...e):t.effects.push(e):et(e)};Symbol.for("v-fgt"),Symbol.for("v-txt"),Symbol.for("v-cmt");let bt,wt,kt=null,_t="__VUE_INSTANCE_SETTERS__";(wt=E()[_t])||(wt=E()[_t]=[]),wt.push((e=>kt=e)),bt=e=>{wt.length>1?wt.forEach((t=>t(e))):wt[0](e)};const St=e=>{bt(e),e.scope.on()},xt=()=>{kt&&kt.scope.off(),bt(null)};function Ct(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Et(e,t){if(e===t)return!0;if("object"==typeof e){for(var n in e)if(!Et(e[n],t[n]))return!1;return!0}return!1}"function"==typeof SuppressedError&&SuppressedError;var Tt=function(){function e(e,t){this.el=e,this.observer=null,this.frozen=!1,this.createObserver(t)}return Object.defineProperty(e.prototype,"threshold",{get:function(){return this.options.intersection&&this.options.intersection.threshold||0},enumerable:!1,configurable:!0}),e.prototype.createObserver=function(e){var t=this;if(this.observer&&this.destroyObserver(),!this.frozen){var n;if(this.options="function"==typeof(n=e)?{callback:n}:n,this.callback=function(e,n){t.options.callback(e,n),e&&t.options.once&&(t.frozen=!0,t.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=function(e,t,n){var i,r,o;void 0===n&&(n={});var s=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(o=a,!i||s!==r){var c=n.leading;"function"==typeof c&&(c=c(s,r)),i&&s===r||!c||e.apply(void 0,Ct([s],o,!1)),r=s,clearTimeout(i),i=setTimeout((function(){e.apply(void 0,Ct([s],o,!1)),i=0}),t)}};return s._clear=function(){clearTimeout(i),i=null},s}(this.callback,this.options.throttle,{leading:function(e){return"both"===i||"visible"===i&&e||"hidden"===i&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(e){var n=e[0];if(e.length>1){var i=e.find((function(e){return e.isIntersecting}));i&&(n=i)}if(t.callback){var r=n.isIntersecting&&n.intersectionRatio>=t.threshold;if(r===t.oldResult)return;t.oldResult=r,t.callback(r,n)}}),this.options.intersection),Je((function(){t.observer&&t.observer.observe(t.el)}))}},e.prototype.destroyObserver=function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)},e}(),Dt={beforeMount:function(e,t){var n=t.value;n&&("undefined"==typeof IntersectionObserver?console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill"):e._vue_visibilityState=new Tt(e,n))},updated:function(e,t){var n=t.value;if(!Et(n,t.oldValue)){var i=e._vue_visibilityState;n&&i&&i.createObserver(n)}},unmounted:function(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}},Nt={install:function(e){e.directive("observe-visibility",Dt)}}},3396:(e,t,n)=>{"use strict";n.d(t,{_:()=>i,e:()=>r});var i="finishReason",r=["heartbeatFailed","idleTimeout","documentHidden"]},3443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const i=n(4892),r=n(8871),o=n(4723),s=n(5483);function a(e,t,n,i,r,o,s){const a=Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2)),l=Math.sqrt(Math.pow(r-n,2)+Math.pow(o-i,2)),c=s*a/(a+l),u=s*l/(a+l),d=n-c*(r-e),h=i-c*(o-t),p=n+u*(r-e),f=i+u*(o-t);return[d,h,p,f]}function l(e,t){const n=e.length,i=[];for(let r=2;r<n-2;r+=2){const n=a(e[r-2],e[r-1],e[r],e[r+1],e[r+2],e[r+3],t);isNaN(n[0])||(i.push(n[0]),i.push(n[1]),i.push(e[r]),i.push(e[r+1]),i.push(n[2]),i.push(n[3]))}return i}class c extends o.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")}))}_sceneFunc(e){let t,n,i,r=this.points(),o=r.length,s=this.tension(),a=this.closed(),l=this.bezier();if(o){if(e.beginPath(),e.moveTo(r[0],r[1]),0!==s&&o>4){t=this.getTensionPoints(),n=t.length,i=a?0:4,a||e.quadraticCurveTo(t[0],t[1],t[2],t[3]);while(i<n-2)e.bezierCurveTo(t[i++],t[i++],t[i++],t[i++],t[i++],t[i++]);a||e.quadraticCurveTo(t[n-2],t[n-1],r[o-2],r[o-1])}else if(l){i=2;while(i<o)e.bezierCurveTo(r[i++],r[i++],r[i++],r[i++],r[i++],r[i++])}else for(i=2;i<o;i+=2)e.lineTo(r[i],r[i+1]);a?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():l(this.points(),this.tension())}_getTensionPointsClosed(){const e=this.points(),t=e.length,n=this.tension(),i=a(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),r=a(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),o=l(e,n),s=[i[2],i[3]].concat(o).concat([r[0],r[1],e[t-2],e[t-1],r[2],r[3],i[0],i[1],e[0],e[1]]);return s}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};e=0!==this.tension()?[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:this.points();let t,n,i=e[0],r=e[0],o=e[1],s=e[1];for(let a=0;a<e.length/2;a++)t=e[2*a],n=e[2*a+1],i=Math.min(i,t),r=Math.max(r,t),o=Math.min(o,n),s=Math.max(s,n);return{x:i,y:o,width:r-i,height:s-o}}}t.Line=c,c.prototype.className="Line",c.prototype._attrsAffectingSize=["points","bezier","tension"],(0,r._registerNode)(c),i.Factory.addGetterSetter(c,"closed",!1),i.Factory.addGetterSetter(c,"bezier",!1),i.Factory.addGetterSetter(c,"tension",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(c,"points",[],(0,s.getNumberArrayValidator)())},3816:(e,t,n)=>{"use strict";n.d(t,{BD:()=>a,Kg:()=>c,Qd:()=>d,Qg:()=>m,T2:()=>s,W6:()=>l,bJ:()=>r,gd:()=>f,mE:()=>g,sO:()=>u,tH:()=>y,vq:()=>p,xH:()=>h,yr:()=>v});var i=Object.prototype.toString;function r(e){switch(i.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return i.call(e)==="[object "+t+"]"}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function d(e){return o(e,"Object")}function h(e){return"undefined"!==typeof Event&&y(e,Event)}function p(e){return"undefined"!==typeof Element&&y(e,Element)}function f(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"===typeof e&&e!==e}function y(e,t){try{return e instanceof t}catch(n){return!1}}},3862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGBA=void 0;const i=n(4892),r=n(6536),o=n(5483),s=function(e){const t=e.data,n=t.length,i=this.red(),r=this.green(),o=this.blue(),s=this.alpha();for(let a=0;a<n;a+=4){const e=1-s;t[a]=i*s+t[a]*e,t[a+1]=r*s+t[a+1]*e,t[a+2]=o*s+t[a+2]*e}};t.RGBA=s,i.Factory.addGetterSetter(r.Node,"red",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),i.Factory.addGetterSetter(r.Node,"green",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),i.Factory.addGetterSetter(r.Node,"blue",0,o.RGBComponent,i.Factory.afterSetFilter),i.Factory.addGetterSetter(r.Node,"alpha",1,(function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e}))},3917:(e,t,n)=>{"use strict";n.d(t,{gd:()=>o,qQ:()=>l});var i=n(5215),r=50;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e,t){var r,o,a,l;void 0===t&&(t=0);var c=[];try{for(var u=(0,i.Ju)(e.split("\n").slice(t)),d=u.next();!d.done;d=u.next()){var h=d.value;try{for(var p=(a=void 0,(0,i.Ju)(n)),f=p.next();!f.done;f=p.next()){var m=f.value,g=m(h);if(g){c.push(g);break}}}catch(v){a={error:v}}finally{try{f&&!f.done&&(l=p.return)&&l.call(p)}finally{if(a)throw a.error}}}}catch(y){r={error:y}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return s(c)}}function s(e){if(!e.length)return[];var t=e,n=t[0].function||"",o=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==o.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,r).map((function(e){return(0,i.Cl)((0,i.Cl)({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}var a="<anonymous>";function l(e){try{return e&&"function"===typeof e&&e.name||a}catch(t){return a}}},4060:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const i=n(8871);class r{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){const t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}}translate(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this}scale(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this}rotate(e){const t=Math.cos(e),n=Math.sin(e),i=this.m[0]*t+this.m[2]*n,r=this.m[1]*t+this.m[3]*n,o=this.m[0]*-n+this.m[2]*t,s=this.m[1]*-n+this.m[3]*t;return this.m[0]=i,this.m[1]=r,this.m[2]=o,this.m[3]=s,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,t){const n=this.m[0]+this.m[2]*t,i=this.m[1]+this.m[3]*t,r=this.m[2]+this.m[0]*e,o=this.m[3]+this.m[1]*e;return this.m[0]=n,this.m[1]=i,this.m[2]=r,this.m[3]=o,this}multiply(e){const t=this.m[0]*e.m[0]+this.m[2]*e.m[1],n=this.m[1]*e.m[0]+this.m[3]*e.m[1],i=this.m[0]*e.m[2]+this.m[2]*e.m[3],r=this.m[1]*e.m[2]+this.m[3]*e.m[3],o=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],s=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=o,this.m[5]=s,this}invert(){const e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,n=-this.m[1]*e,i=-this.m[2]*e,r=this.m[0]*e,o=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),s=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=o,this.m[5]=s,this}getMatrix(){return this.m}decompose(){const e=this.m[0],n=this.m[1],i=this.m[2],r=this.m[3],o=this.m[4],s=this.m[5],a=e*r-n*i,l={x:o,y:s,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=e||0!=n){const t=Math.sqrt(e*e+n*n);l.rotation=n>0?Math.acos(e/t):-Math.acos(e/t),l.scaleX=t,l.scaleY=a/t,l.skewX=(e*i+n*r)/a,l.skewY=0}else if(0!=i||0!=r){const t=Math.sqrt(i*i+r*r);l.rotation=Math.PI/2-(r>0?Math.acos(-i/t):-Math.acos(i/t)),l.scaleX=a/t,l.scaleY=t,l.skewX=0,l.skewY=(e*i+n*r)/a}return l.rotation=t.Util._getRotation(l.rotation),l}}t.Transform=r;const o="[object Array]",s="[object Number]",a="[object String]",l="[object Boolean]",c=Math.PI/180,u=180/Math.PI,d="#",h="",p="0",f="Konva warning: ",m="Konva error: ",g="rgb(",v={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},y=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let b=[];const w="undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||function(e){setTimeout(e,60)};t.Util={_isElement(e){return!(!e||1!=e.nodeType)},_isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isPlainObject(e){return!!e&&e.constructor===Object},_isArray(e){return Object.prototype.toString.call(e)===o},_isNumber(e){return Object.prototype.toString.call(e)===s&&!isNaN(e)&&isFinite(e)},_isString(e){return Object.prototype.toString.call(e)===a},_isBoolean(e){return Object.prototype.toString.call(e)===l},isObject(e){return e instanceof Object},isValidSelector(e){if("string"!==typeof e)return!1;const t=e[0];return"#"===t||"."===t||t===t.toUpperCase()},_sign(e){return 0===e||e>0?1:-1},requestAnimFrame(e){b.push(e),1===b.length&&w((function(){const e=b;b=[],e.forEach((function(e){e()}))}))},createCanvasElement(){const e=document.createElement("canvas");try{e.style=e.style||{}}catch(t){}return e},createImageElement(){return document.createElement("img")},_isInDocument(e){while(e=e.parentNode)if(e==document)return!0;return!1},_urlToImage(e,n){const i=t.Util.createImageElement();i.onload=function(){n(i)},i.src=e},_rgbToHex(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},_hexToRgb(e){e=e.replace(d,h);const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}},getRandomColor(){let e=(16777215*Math.random()|0).toString(16);while(e.length<6)e=p+e;return d+e},getRGB(e){let t;return e in v?(t=v[e],{r:t[0],g:t[1],b:t[2]}):e[0]===d?this._hexToRgb(e.substring(1)):e.substr(0,4)===g?(t=y.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(e){return e=e||"black",t.Util._namedColorToRBA(e)||t.Util._hex3ColorToRGBA(e)||t.Util._hex4ColorToRGBA(e)||t.Util._hex6ColorToRGBA(e)||t.Util._hex8ColorToRGBA(e)||t.Util._rgbColorToRGBA(e)||t.Util._rgbaColorToRGBA(e)||t.Util._hslColorToRGBA(e)},_namedColorToRBA(e){const t=v[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(0===e.indexOf("rgb(")){e=e.match(/rgb\(([^)]+)\)/)[1];const t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(0===e.indexOf("rgba(")){e=e.match(/rgba\(([^)]+)\)/)[1];const t=e.split(/ *, */).map(((e,t)=>"%"===e.slice(-1)?3===t?parseInt(e)/100:parseInt(e)/100*255:Number(e)));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(e){if("#"===e[0]&&9===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:parseInt(e.slice(7,9),16)/255}},_hex6ColorToRGBA(e){if("#"===e[0]&&7===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex4ColorToRGBA(e){if("#"===e[0]&&5===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:parseInt(e[4]+e[4],16)/255}},_hex3ColorToRGBA(e){if("#"===e[0]&&4===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){const[t,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),i=Number(n[0])/360,r=Number(n[1])/100,o=Number(n[2])/100;let s,a,l;if(0===r)return l=255*o,{r:Math.round(l),g:Math.round(l),b:Math.round(l),a:1};s=o<.5?o*(1+r):o+r-o*r;const c=2*o-s,u=[0,0,0];for(let e=0;e<3;e++)a=i+1/3*-(e-1),a<0&&a++,a>1&&a--,l=6*a<1?c+6*(s-c)*a:2*a<1?s:3*a<2?c+(s-c)*(2/3-a)*6:c,u[e]=255*l;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)},cloneObject(e){const t={};for(const n in e)this._isPlainObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray(e){return e.slice(0)},degToRad(e){return e*c},radToDeg(e){return e*u},_degToRad(e){return t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(e)},_radToDeg(e){return t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(e)},_getRotation(e){return i.Konva.angleDeg?t.Util.radToDeg(e):e},_capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw(e){throw new Error(m+e)},error(e){console.error(m+e)},warn(e){i.Konva.showWarnings&&console.warn(f+e)},each(e,t){for(const n in e)t(n,e[n])},_inRange(e,t,n){return t<=e&&e<n},_getProjectionToSegment(e,t,n,i,r,o){let s,a,l;const c=(e-n)*(e-n)+(t-i)*(t-i);if(0==c)s=e,a=t,l=(r-n)*(r-n)+(o-i)*(o-i);else{const u=((r-e)*(n-e)+(o-t)*(i-t))/c;u<0?(s=e,a=t,l=(e-r)*(e-r)+(t-o)*(t-o)):u>1?(s=n,a=i,l=(n-r)*(n-r)+(i-o)*(i-o)):(s=e+u*(n-e),a=t+u*(i-t),l=(s-r)*(s-r)+(a-o)*(a-o))}return[s,a,l]},_getProjectionToLine(e,n,i){const r=t.Util.cloneObject(e);let o=Number.MAX_VALUE;return n.forEach((function(s,a){if(!i&&a===n.length-1)return;const l=n[(a+1)%n.length],c=t.Util._getProjectionToSegment(s.x,s.y,l.x,l.y,e.x,e.y),u=c[0],d=c[1],h=c[2];h<o&&(r.x=u,r.y=d,o=h)})),r},_prepareArrayForTween(e,n,i){const r=[],o=[];if(e.length>n.length){const t=n;n=e,e=t}for(let t=0;t<e.length;t+=2)r.push({x:e[t],y:e[t+1]});for(let t=0;t<n.length;t+=2)o.push({x:n[t],y:n[t+1]});const s=[];return o.forEach((function(e){const n=t.Util._getProjectionToLine(e,r,i);s.push(n.x),s.push(n.y)})),s},_prepareToStringify(e){let n;e.visitedByCircularReferenceRemoval=!0;for(const i in e)if(e.hasOwnProperty(i)&&e[i]&&"object"==typeof e[i])if(n=Object.getOwnPropertyDescriptor(e,i),e[i].visitedByCircularReferenceRemoval||t.Util._isElement(e[i])){if(!n.configurable)return null;delete e[i]}else if(null===t.Util._prepareToStringify(e[i])){if(!n.configurable)return null;delete e[i]}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(const n in t)e[n]=t[n];return e},_getFirstPointerId(e){return e.touches?e.changedTouches[0].identifier:e.pointerId||999},releaseCanvas(...e){i.Konva.releaseCanvasOnDestroy&&e.forEach((e=>{e.width=0,e.height=0}))},drawRoundedRectPath(e,t,n,i){let r=0,o=0,s=0,a=0;"number"===typeof i?r=o=s=a=Math.min(i,t/2,n/2):(r=Math.min(i[0]||0,t/2,n/2),o=Math.min(i[1]||0,t/2,n/2),a=Math.min(i[2]||0,t/2,n/2),s=Math.min(i[3]||0,t/2,n/2)),e.moveTo(r,0),e.lineTo(t-o,0),e.arc(t-o,o,o,3*Math.PI/2,0,!1),e.lineTo(t,n-a),e.arc(t-a,n-a,a,0,Math.PI/2,!1),e.lineTo(s,n),e.arc(s,n-s,s,Math.PI/2,Math.PI,!1),e.lineTo(0,r),e.arc(r,r,r,Math.PI,3*Math.PI/2,!1)}}},4237:(e,t,n)=>{"use strict";n.d(t,{YZ:()=>m,BF:()=>y,EU:()=>g});var i=n(5215),r=n(6936),o=n(9297),s=n(7412),a=n(6475),l=n(2250),c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,u=n(9752),d=n(8411),h=function(){function e(e){this.errors=0,this.sid=(0,r.eJ)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,o.zf)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,o.zf)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,r.eJ)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"===typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"===typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"===typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return(0,d.Ce)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),p=4,f=100,m=function(){function e(e,t,n){void 0===t&&(t=new u.H),void 0===n&&(n=p),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){var t=this.getStackTop();t.client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=u.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,r.eJ)(),o=t;if(!t){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(e){s=e}o={originalException:e,syntheticException:s}}return this._invokeClient("captureException",e,(0,i.Cl)((0,i.Cl)({},o),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var o=this._lastEventId=n&&n.event_id?n.event_id:(0,r.eJ)(),s=n;if(!n){var a=void 0;try{throw new Error(e)}catch(l){a=l}s={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,t,(0,i.Cl)((0,i.Cl)({},s),{event_id:o})),o},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:(0,r.eJ)();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,(0,i.Cl)((0,i.Cl)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,a=n.client;if(r&&a){var l=a.getOptions&&a.getOptions()||{},c=l.beforeBreadcrumb,u=void 0===c?null:c,d=l.maxBreadcrumbs,h=void 0===d?f:d;if(!(h<=0)){var p=(0,o.lu)(),m=(0,i.Cl)({timestamp:p},e),g=u?(0,s.pq)((function(){return u(m,t)})):m;null!==g&&r.addBreadcrumb(g,h)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,i=t.client;n&&i&&e(n)},e.prototype.run=function(e){var t=v(this);try{e(this)}finally{v(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return c&&s.vF.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},s=o.release,l=o.environment,c=(0,a.V)(),u=(c.navigator||{}).userAgent,d=new h((0,i.Cl)((0,i.Cl)((0,i.Cl)({release:s,environment:l},n&&{user:n.getUser()}),u&&{userAgent:u}),e));if(n){var p=n.getSession&&n.getSession();p&&"ok"===p.status&&p.update({status:"exited"}),this.endSession(),n.setSession(d)}return d},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var i=t.getSession&&t.getSession();i&&n&&n.captureSession&&n.captureSession(i)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),s=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,(0,i.gz)(n,[s]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=g(),r=i.__SENTRY__;if(r&&r.extensions&&"function"===typeof r.extensions[e])return r.extensions[e].apply(this,t);c&&s.vF.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function g(){var e=(0,a.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function v(e){var t=g(),n=k(t);return _(t,e),n}function y(){var e=g();return w(e)&&!k(e).isOlderThan(p)||_(e,new m),(0,l.wD)()?b(e):k(e)}function b(e){try{var t=g().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return k(e);if(!w(n)||k(n).isOlderThan(p)){var i=k(e).getStackTop();_(n,new m(i.client,u.H.clone(i.scope)))}return k(n)}catch(r){return k(e)}}function w(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function k(e){return(0,a.B)("hub",(function(){return new m}),e)}function _(e,t){if(!e)return!1;var n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}},4335:(e,t,n)=>{"use strict";n.d(t,{A:()=>mn});var i={};function r(e,t){return function(){return e.apply(t,arguments)}}n.r(i),n.d(i,{hasBrowserEnv:()=>Be,hasStandardBrowserEnv:()=>Re,hasStandardBrowserWebWorkerEnv:()=>Le,navigator:()=>Ie,origin:()=>Fe});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,a=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),l=e=>(e=e.toLowerCase(),t=>a(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,d=c("undefined");function h(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p=l("ArrayBuffer");function f(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t}const m=c("string"),g=c("function"),v=c("number"),y=e=>null!==e&&"object"===typeof e,b=e=>!0===e||!1===e,w=e=>{if("object"!==a(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)},k=l("Date"),_=l("File"),S=l("Blob"),x=l("FileList"),C=e=>y(e)&&g(e.pipe),E=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=a(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},T=l("URLSearchParams"),[D,N,O,A]=["ReadableStream","Request","Response","Headers"].map(l),P=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let i,r;if("object"!==typeof e&&(e=[e]),u(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let s;for(i=0;i<o;i++)s=r[i],t.call(null,e[s],s,e)}}function B(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;while(r-- >0)if(i=n[r],t===i.toLowerCase())return i;return null}const I=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),R=e=>!d(e)&&e!==I;function L(){const{caseless:e}=R(this)&&this||{},t={},n=(n,i)=>{const r=e&&B(t,i)||i;w(t[r])&&w(n)?t[r]=L(t[r],n):w(n)?t[r]=L({},n):u(n)?t[r]=n.slice():t[r]=n};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&M(arguments[i],n);return t}const F=(e,t,n,{allOwnKeys:i}={})=>(M(t,((t,i)=>{n&&g(t)?e[i]=r(t,n):e[i]=t}),{allOwnKeys:i}),e),V=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),$=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},z=(e,t,n,i)=>{let r,o,a;const l={};if(t=t||{},null==e)return t;do{r=Object.getOwnPropertyNames(e),o=r.length;while(o-- >0)a=r[o],i&&!i(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},U=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},j=e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},H=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&s(Uint8Array)),G=(e,t)=>{const n=e&&e[Symbol.iterator],i=n.call(e);let r;while((r=i.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}},W=(e,t)=>{let n;const i=[];while(null!==(n=e.exec(t)))i.push(n);return i},q=l("HTMLFormElement"),K=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),Y=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X=l("RegExp"),J=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};M(n,((n,r)=>{let o;!1!==(o=t(n,r,e))&&(i[r]=o||n)})),Object.defineProperties(e,i)},Q=e=>{J(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];g(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Z=(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?i(e):i(String(e).split(t)),n},ee=()=>{},te=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function ne(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const ie=e=>{const t=new Array(10),n=(e,i)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=u(e)?[]:{};return M(e,((e,t)=>{const o=n(e,i+1);!d(o)&&(r[t]=o)})),t[i]=void 0,r}}return e};return n(e,0)},re=l("AsyncFunction"),oe=e=>e&&(y(e)||g(e))&&g(e.then)&&g(e.catch),se=((e,t)=>e?setImmediate:t?((e,t)=>(I.addEventListener("message",(({source:n,data:i})=>{n===I&&i===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),I.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,g(I.postMessage)),ae="undefined"!==typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!==typeof process&&process.nextTick||se,le={isArray:u,isArrayBuffer:p,isBuffer:h,isFormData:E,isArrayBufferView:f,isString:m,isNumber:v,isBoolean:b,isObject:y,isPlainObject:w,isReadableStream:D,isRequest:N,isResponse:O,isHeaders:A,isUndefined:d,isDate:k,isFile:_,isBlob:S,isRegExp:X,isFunction:g,isStream:C,isURLSearchParams:T,isTypedArray:H,isFileList:x,forEach:M,merge:L,extend:F,trim:P,stripBOM:V,inherits:$,toFlatObject:z,kindOf:a,kindOfTest:l,endsWith:U,toArray:j,forEachEntry:G,matchAll:W,isHTMLForm:q,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:J,freezeMethods:Q,toObjectSet:Z,toCamelCase:K,noop:ee,toFiniteNumber:te,findKey:B,global:I,isContextDefined:R,isSpecCompliantForm:ne,toJSONObject:ie,isAsyncFn:re,isThenable:oe,setImmediate:se,asap:ae};function ce(e,t,n,i,r){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),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}le.inherits(ce,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:le.toJSONObject(this.config),code:this.code,status:this.status}}});const ue=ce.prototype,de={};["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=>{de[e]={value:e}})),Object.defineProperties(ce,de),Object.defineProperty(ue,"isAxiosError",{value:!0}),ce.from=(e,t,n,i,r,o)=>{const s=Object.create(ue);return le.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ce.call(s,e.message,t,n,i,r),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const he=ce,pe=null;function fe(e){return le.isPlainObject(e)||le.isArray(e)}function me(e){return le.endsWith(e,"[]")?e.slice(0,-2):e}function ge(e,t,n){return e?e.concat(t).map((function(e,t){return e=me(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function ve(e){return le.isArray(e)&&!e.some(fe)}const ye=le.toFlatObject(le,{},null,(function(e){return/^is[A-Z]/.test(e)}));function be(e,t,n){if(!le.isObject(e))throw new TypeError("target must be an object");t=t||new(pe||FormData),n=le.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!le.isUndefined(t[e])}));const i=n.metaTokens,r=n.visitor||u,o=n.dots,s=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,l=a&&le.isSpecCompliantForm(t);if(!le.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(le.isDate(e))return e.toISOString();if(!l&&le.isBlob(e))throw new he("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(e)||le.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let a=e;if(e&&!r&&"object"===typeof e)if(le.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(le.isArray(e)&&ve(e)||(le.isFileList(e)||le.endsWith(n,"[]"))&&(a=le.toArray(e)))return n=me(n),a.forEach((function(e,i){!le.isUndefined(e)&&null!==e&&t.append(!0===s?ge([n],i,o):null===s?n:n+"[]",c(e))})),!1;return!!fe(e)||(t.append(ge(r,n,o),c(e)),!1)}const d=[],h=Object.assign(ye,{defaultVisitor:u,convertValue:c,isVisitable:fe});function p(e,n){if(!le.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),le.forEach(e,(function(e,i){const o=!(le.isUndefined(e)||null===e)&&r.call(t,e,le.isString(i)?i.trim():i,n,h);!0===o&&p(e,n?n.concat(i):[i])})),d.pop()}}if(!le.isObject(e))throw new TypeError("data must be an object");return p(e),t}const we=be;function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function _e(e,t){this._pairs=[],e&&we(e,this,t)}const Se=_e.prototype;Se.append=function(e,t){this._pairs.push([e,t])},Se.toString=function(e){const t=e?function(t){return e.call(this,t,ke)}:ke;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const xe=_e;function Ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ee(e,t,n){if(!t)return e;const i=n&&n.encode||Ce;le.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(o=r?r(t,n):le.isURLSearchParams(t)?t.toString():new xe(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}class Te{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){le.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const De=Te,Ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oe="undefined"!==typeof URLSearchParams?URLSearchParams:xe,Ae="undefined"!==typeof FormData?FormData:null,Pe="undefined"!==typeof Blob?Blob:null,Me={isBrowser:!0,classes:{URLSearchParams:Oe,FormData:Ae,Blob:Pe},protocols:["http","https","file","blob","url","data"]},Be="undefined"!==typeof window&&"undefined"!==typeof document,Ie="object"===typeof navigator&&navigator||void 0,Re=Be&&(!Ie||["ReactNative","NativeScript","NS"].indexOf(Ie.product)<0),Le=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Fe=Be&&window.location.href||"http://localhost",Ve={...i,...Me};function $e(e,t){return we(e,new Ve.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return Ve.isNode&&le.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ze(e){return le.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function Ue(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],t[o]=e[o];return t}function je(e){function t(e,n,i,r){let o=e[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=e.length;if(o=!o&&le.isArray(i)?i.length:o,a)return le.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s;i[o]&&le.isObject(i[o])||(i[o]=[]);const l=t(e,n,i[o],r);return l&&le.isArray(i[o])&&(i[o]=Ue(i[o])),!s}if(le.isFormData(e)&&le.isFunction(e.entries)){const n={};return le.forEachEntry(e,((e,i)=>{t(ze(e),i,n,0)})),n}return null}const He=je;function Ge(e,t,n){if(le.isString(e))try{return(t||JSON.parse)(e),le.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}const We={transitional:Ne,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=le.isObject(e);r&&le.isHTMLForm(e)&&(e=new FormData(e));const o=le.isFormData(e);if(o)return i?JSON.stringify(He(e)):e;if(le.isArrayBuffer(e)||le.isBuffer(e)||le.isStream(e)||le.isFile(e)||le.isBlob(e)||le.isReadableStream(e))return e;if(le.isArrayBufferView(e))return e.buffer;if(le.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return $e(e,this.formSerializer).toString();if((s=le.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return we(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),Ge(e)):e}],transformResponse:[function(e){const t=this.transitional||We.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(le.isResponse(e)||le.isReadableStream(e))return e;if(e&&le.isString(e)&&(n&&!this.responseType||i)){const n=t&&t.silentJSONParsing,o=!n&&i;try{return JSON.parse(e)}catch(r){if(o){if("SyntaxError"===r.name)throw he.from(r,he.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],(e=>{We.headers[e]={}}));const qe=We,Ke=le.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"]),Ye=e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&Ke[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t},Xe=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function Qe(e){return!1===e||null==e?e:le.isArray(e)?e.map(Qe):String(e)}function Ze(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(e))t[i[1]]=i[2];return t}const et=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tt(e,t,n,i,r){return le.isFunction(i)?i.call(this,t,n):(r&&(t=n),le.isString(t)?le.isString(i)?-1!==t.indexOf(i):le.isRegExp(i)?i.test(t):void 0:void 0)}function nt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function it(e,t){const n=le.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}class rt{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=Je(t);if(!r)throw new Error("header name must be a non-empty string");const o=le.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=Qe(e))}const o=(e,t)=>le.forEach(e,((e,n)=>r(e,n,t)));if(le.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(le.isString(e)&&(e=e.trim())&&!et(e))o(Ye(e),t);else if(le.isHeaders(e))for(const[s,a]of e.entries())r(a,s,n);else null!=e&&r(t,e,n);return this}get(e,t){if(e=Je(e),e){const n=le.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return Ze(e);if(le.isFunction(t))return t.call(this,e,n);if(le.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Je(e),e){const n=le.findKey(this,e);return!(!n||void 0===this[n]||t&&!tt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=Je(e),e){const r=le.findKey(n,e);!r||t&&!tt(n,n[r],r,t)||(delete n[r],i=!0)}}return le.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;while(n--){const r=t[n];e&&!tt(this,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return le.forEach(this,((i,r)=>{const o=le.findKey(n,r);if(o)return t[o]=Qe(i),void delete t[r];const s=e?nt(r):String(r).trim();s!==r&&delete t[r],t[s]=Qe(i),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return le.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&le.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[Xe]=this[Xe]={accessors:{}},n=t.accessors,i=this.prototype;function r(e){const t=Je(e);n[t]||(it(i,e),n[t]=!0)}return le.isArray(e)?e.forEach(r):r(e),this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),le.reduceDescriptors(rt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),le.freezeMethods(rt);const ot=rt;function st(e,t){const n=this||qe,i=t||n,r=ot.from(i.headers);let o=i.data;return le.forEach(e,(function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function at(e){return!(!e||!e.__CANCEL__)}function lt(e,t,n){he.call(this,null==e?"canceled":e,he.ERR_CANCELED,t,n),this.name="CanceledError"}le.inherits(lt,he,{__CANCEL__:!0});const ct=lt;function ut(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function dt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ht(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[s];r||(r=l),n[o]=a,i[o]=l;let u=s,d=0;while(u!==o)d+=n[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-r<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}const pt=ht;function ft(e,t){let n,i,r=0,o=1e3/t;const s=(t,o=Date.now())=>{r=o,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)},a=(...e)=>{const t=Date.now(),a=t-r;a>=o?s(e,t):(n=e,i||(i=setTimeout((()=>{i=null,s(n)}),o-a)))},l=()=>n&&s(n);return[a,l]}const mt=ft,gt=(e,t,n=3)=>{let i=0;const r=pt(50,250);return mt((n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-i,l=r(a),c=o<=s;i=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(u)}),n)},vt=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},yt=e=>(...t)=>le.asap((()=>e(...t))),bt=Ve.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ve.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,wt=Ve.hasStandardBrowserEnv?{write(e,t,n,i,r,o){const s=[e+"="+encodeURIComponent(t)];le.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),le.isString(i)&&s.push("path="+i),le.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _t(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t,n){let i=!kt(t);return e&&i||0==n?_t(e,t):t}const xt=e=>e instanceof ot?{...e}:e;function Ct(e,t){t=t||{};const n={};function i(e,t,n,i){return le.isPlainObject(e)&&le.isPlainObject(t)?le.merge.call({caseless:i},e,t):le.isPlainObject(t)?le.merge({},t):le.isArray(t)?t.slice():t}function r(e,t,n,r){return le.isUndefined(t)?le.isUndefined(e)?void 0:i(void 0,e,n,r):i(e,t,n,r)}function o(e,t){if(!le.isUndefined(t))return i(void 0,t)}function s(e,t){return le.isUndefined(t)?le.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>r(xt(e),xt(t),n,!0)};return le.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=l[i]||r,s=o(e[i],t[i],i);le.isUndefined(s)&&o!==a||(n[i]=s)})),n}const Et=e=>{const t=Ct({},e);let n,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=ot.from(a),t.url=Ee(St(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),le.isFormData(i))if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ve.hasStandardBrowserEnv&&(r&&le.isFunction(r)&&(r=r(t)),r||!1!==r&&bt(t.url))){const e=o&&s&&wt.read(s);e&&a.set(o,e)}return t},Tt="undefined"!==typeof XMLHttpRequest,Dt=Tt&&function(e){return new Promise((function(t,n){const i=Et(e);let r=i.data;const o=ot.from(i.headers).normalize();let s,a,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=i;function f(){c&&c(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=ot.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),r=d&&"text"!==d&&"json"!==d?m.response:m.responseText,o={data:r,status:m.status,statusText:m.statusText,headers:i,config:e,request:m};ut((function(e){t(e),f()}),(function(e){n(e),f()}),o),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new he("Request aborted",he.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Ne;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new he(t,r.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&le.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),le.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),d&&"json"!==d&&(m.responseType=i.responseType),p&&([l,u]=gt(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([a,c]=gt(h),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(s=t=>{m&&(n(!t||t.type?new ct(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const v=dt(i.url);v&&-1===Ve.protocols.indexOf(v)?n(new he("Unsupported protocol "+v+":",he.ERR_BAD_REQUEST,e)):m.send(r||null)}))},Nt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const r=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;i.abort(t instanceof he?t:new ct(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,r(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))}),t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)};e.forEach((e=>e.addEventListener("abort",r)));const{signal:a}=i;return a.unsubscribe=()=>le.asap(s),a}},Ot=Nt,At=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;while(r<n)i=r+t,yield e.slice(r,i),r=i},Pt=async function*(e,t){for await(const n of Mt(e))yield*At(n,t)},Mt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Bt=(e,t,n,i)=>{const r=Pt(e,t);let o,s=0,a=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return a(),void e.close();let o=i.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel(e){return a(e),r.return()}},{highWaterMark:2})},It="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Rt=It&&"function"===typeof ReadableStream,Lt=It&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ft=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Vt=Rt&&Ft((()=>{let e=!1;const t=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),$t=65536,zt=Rt&&Ft((()=>le.isReadableStream(new Response("").body))),Ut={stream:zt&&(e=>e.body)};It&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Ut[t]&&(Ut[t]=le.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new he(`Response type '${t}' is not supported`,he.ERR_NOT_SUPPORT,n)})}))})(new Response);const jt=async e=>{if(null==e)return 0;if(le.isBlob(e))return e.size;if(le.isSpecCompliantForm(e)){const t=new Request(Ve.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return le.isArrayBufferView(e)||le.isArrayBuffer(e)?e.byteLength:(le.isURLSearchParams(e)&&(e+=""),le.isString(e)?(await Lt(e)).byteLength:void 0)},Ht=async(e,t)=>{const n=le.toFiniteNumber(e.getContentLength());return null==n?jt(t):n},Gt=It&&(async e=>{let{url:t,method:n,data:i,signal:r,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Et(e);c=c?(c+"").toLowerCase():"text";let p,f=Ot([r,o&&o.toAbortSignal()],s);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(l&&Vt&&"get"!==n&&"head"!==n&&0!==(g=await Ht(u,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(le.isFormData(i)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=vt(g,gt(yt(l)));i=Bt(n.body,$t,e,t)}}le.isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;p=new Request(t,{...h,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:r?d:void 0});let o=await fetch(p);const s=zt&&("stream"===c||"response"===c);if(zt&&(a||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=le.toFiniteNumber(o.headers.get("content-length")),[n,i]=a&&vt(t,gt(yt(a),!0))||[];o=new Response(Bt(o.body,$t,n,(()=>{i&&i(),m&&m()})),e)}c=c||"text";let v=await Ut[le.findKey(Ut,c)||"text"](o,e);return!s&&m&&m(),await new Promise(((t,n)=>{ut(t,n,{data:v,headers:ot.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new he("Network Error",he.ERR_NETWORK,e,p),{cause:v.cause||v});throw he.from(v,v&&v.code,e,p)}}),Wt={http:pe,xhr:Dt,fetch:Gt};le.forEach(Wt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const qt=e=>`- ${e}`,Kt=e=>le.isFunction(e)||null===e||!1===e,Yt={getAdapter:e=>{e=le.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let o=0;o<t;o++){let t;if(n=e[o],i=n,!Kt(n)&&(i=Wt[(t=String(n)).toLowerCase()],void 0===i))throw new he(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+o]=i}if(!i){const e=Object.entries(r).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(qt).join("\n"):" "+qt(e[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:Wt};function Xt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ct(null,e)}function Jt(e){Xt(e),e.headers=ot.from(e.headers),e.data=st.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Yt.getAdapter(e.adapter||qe.adapter);return t(e).then((function(t){return Xt(e),t.data=st.call(e,e.transformResponse,t),t.headers=ot.from(t.headers),t}),(function(t){return at(t)||(Xt(e),t&&t.response&&(t.response.data=st.call(e,e.transformResponse,t.response),t.response.headers=ot.from(t.response.headers))),Promise.reject(t)}))}const Qt="1.8.3",Zt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Zt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const en={};function tn(e,t,n){if("object"!==typeof e)throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;while(r-- >0){const o=i[r],s=t[o];if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new he("option "+o+" must be "+n,he.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new he("Unknown option "+o,he.ERR_BAD_OPTION)}}Zt.transitional=function(e,t,n){function i(e,t){return"[Axios v"+Qt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new he(i(r," has been removed"+(t?" in "+t:"")),he.ERR_DEPRECATED);return t&&!en[r]&&(en[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},Zt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const nn={assertOptions:tn,validators:Zt},rn=nn.validators;class on{constructor(e){this.defaults=e,this.interceptors={request:new De,response:new De}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(i){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Ct(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&nn.assertOptions(n,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),null!=i&&(le.isFunction(i)?t.paramsSerializer={serialize:i}:nn.assertOptions(i,{encode:rn.function,serialize:rn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nn.assertOptions(t,{baseUrl:rn.spelling("baseURL"),withXsrfToken:rn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&le.merge(r.common,r[t.method]);r&&le.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=ot.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[Jt.bind(this),void 0];e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);while(d<u)c=c.then(e[d++],e[d++]);return c}u=s.length;let h=t;d=0;while(d<u){const e=s[d++],t=s[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{c=Jt.call(this,h)}catch(p){return Promise.reject(p)}d=0,u=l.length;while(d<u)c=c.then(l[d++],l[d++]);return c}getUri(e){e=Ct(this.defaults,e);const t=St(e.baseURL,e.url,e.allowAbsoluteUrls);return Ee(t,e.params,e.paramsSerializer)}}le.forEach(["delete","get","head","options"],(function(e){on.prototype[e]=function(t,n){return this.request(Ct(n||{},{method:e,url:t,data:(n||{}).data}))}})),le.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(Ct(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}on.prototype[e]=t(),on.prototype[e+"Form"]=t(!0)}));const sn=on;class an{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;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new ct(e,i,r),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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new an((function(t){e=t}));return{token:t,cancel:e}}}const ln=an;function cn(e){return function(t){return e.apply(null,t)}}function un(e){return le.isObject(e)&&!0===e.isAxiosError}const dn={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(dn).forEach((([e,t])=>{dn[t]=e}));const hn=dn;function pn(e){const t=new sn(e),n=r(sn.prototype.request,t);return le.extend(n,sn.prototype,t,{allOwnKeys:!0}),le.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return pn(Ct(e,t))},n}const fn=pn(qe);fn.Axios=sn,fn.CanceledError=ct,fn.CancelToken=ln,fn.isCancel=at,fn.VERSION=Qt,fn.toFormData=we,fn.AxiosError=he,fn.Cancel=fn.CanceledError,fn.all=function(e){return Promise.all(e)},fn.spread=cn,fn.isAxiosError=un,fn.mergeConfig=Ct,fn.AxiosHeaders=ot,fn.formToJSON=e=>He(le.isHTMLForm(e)?new FormData(e):e),fn.getAdapter=Yt.getAdapter,fn.HttpStatusCode=hn,fn.default=fn;const mn=fn},4408:(e,t,n)=>{"use strict";n.d(t,{Z7:()=>o,rv:()=>s,vO:()=>a,wt:()=>r});var i=n(4237);function r(e){var t=(0,i.BF)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function o(e){var t=e||(0,i.BF)(),n=t.getScope();return n&&n.getTransaction()}function s(e){return e/1e3}function a(e){return 1e3*e}},4473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;const i=n(4892),r=n(6536),o=n(5483);class s extends r.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const t=this.children||[],n=[];return t.forEach((function(t){e(t)&&n.push(t)})),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.remove()})),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.destroy()})),this.children=[],this._requestDraw(),this}add(...e){if(0===e.length)return this;if(e.length>1){for(let t=0;t<e.length;t++)this.add(e[t]);return this}const t=e[0];return t.getParent()?(t.moveTo(this),this):(this._validateAdd(t),t.index=this.getChildren().length,t.parent=this,t._clearCaches(),this.getChildren().push(t),this._fire("add",{child:t}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){const t=this._generalFind(e,!0);return t.length>0?t[0]:void 0}_generalFind(e,t){const n=[];return this._descendants((i=>{const r=i._isMatch(e);return r&&n.push(i),!(!r||!t)})),n}_descendants(e){let t=!1;const n=this.getChildren();for(const i of n){if(t=e(i),t)return!0;if(i.hasChildren()&&(t=i._descendants(e),t))return!0}return!1}toObject(){const e=r.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach((t=>{e.children.push(t.toObject())})),e}isAncestorOf(e){let t=e.getParent();while(t){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){const t=r.Node.prototype.clone.call(this,e);return this.getChildren().forEach((function(e){t.add(e.clone())})),t}getAllIntersections(e){const t=[];return this.find("Shape").forEach((n=>{n.isVisible()&&n.intersects(e)&&t.push(n)})),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),this.isCached()||null===(t=this.children)||void 0===t||t.forEach((function(t){t._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;null===(e=this.children)||void 0===e||e.forEach((function(e,t){e.index=t})),this._requestDraw()}drawScene(e,t,n){const i=this.getLayer(),r=e||i&&i.getCanvas(),o=r&&r.getContext(),s=this._getCanvasCache(),a=s&&s.scene,l=r&&r.isCache;if(!this.isVisible()&&!l)return this;if(a){o.save();const e=this.getAbsoluteTransform(t).getMatrix();o.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",r,t,n);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;const n=this.getLayer(),i=e||n&&n.hitCanvas,r=i&&i.getContext(),o=this._getCanvasCache(),s=o&&o.hit;if(s){r.save();const e=this.getAbsoluteTransform(t).getMatrix();r.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedHitCanvas(r),r.restore()}else this._drawChildren("drawHit",i,t);return this}_drawChildren(e,t,n,i){var r;const o=t&&t.getContext(),s=this.clipWidth(),a=this.clipHeight(),l=this.clipFunc(),c="number"===typeof s&&"number"===typeof a||l,u=n===this;if(c){o.save();const e=this.getAbsoluteTransform(n);let t,i=e.getMatrix();if(o.transform(i[0],i[1],i[2],i[3],i[4],i[5]),o.beginPath(),l)t=l.call(this,o,this);else{const e=this.clipX(),t=this.clipY();o.rect(e||0,t||0,s,a)}o.clip.apply(o,t),i=e.copy().invert().getMatrix(),o.transform(i[0],i[1],i[2],i[3],i[4],i[5])}const d=!u&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===e;d&&(o.save(),o._applyGlobalCompositeOperation(this)),null===(r=this.children)||void 0===r||r.forEach((function(r){r[e](t,n,i)})),d&&o.restore(),c&&o.restore()}getClientRect(e={}){var t;const n=e.skipTransform,i=e.relativeTo;let r,o,s,a,l={x:1/0,y:1/0,width:0,height:0};const c=this;null===(t=this.children)||void 0===t||t.forEach((function(t){if(!t.visible())return;const n=t.getClientRect({relativeTo:c,skipShadow:e.skipShadow,skipStroke:e.skipStroke});0===n.width&&0===n.height||(void 0===r?(r=n.x,o=n.y,s=n.x+n.width,a=n.y+n.height):(r=Math.min(r,n.x),o=Math.min(o,n.y),s=Math.max(s,n.x+n.width),a=Math.max(a,n.y+n.height)))}));const u=this.find("Shape");let d=!1;for(let h=0;h<u.length;h++){const e=u[h];if(e._isVisible(this)){d=!0;break}}return l=d&&void 0!==r?{x:r,y:o,width:s-r,height:a-o}:{x:0,y:0,width:0,height:0},n?l:this._transformedRect(l,i)}}t.Container=s,i.Factory.addComponentsGetterSetter(s,"clip",["x","y","width","height"]),i.Factory.addGetterSetter(s,"clipX",void 0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(s,"clipY",void 0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(s,"clipWidth",void 0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(s,"clipHeight",void 0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(s,"clipFunc")},4481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Star=void 0;const i=n(4892),r=n(4723),o=n(5483),s=n(8871);class a extends r.Shape{_sceneFunc(e){const t=this.innerRadius(),n=this.outerRadius(),i=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(let r=1;r<2*i;r++){const o=r%2===0?n:t,s=o*Math.sin(r*Math.PI/i),a=-1*o*Math.cos(r*Math.PI/i);e.lineTo(s,a)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}t.Star=a,a.prototype.className="Star",a.prototype._centroid=!0,a.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,s._registerNode)(a),i.Factory.addGetterSetter(a,"numPoints",5,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(a,"innerRadius",0,(0,o.getNumberValidator)()),i.Factory.addGetterSetter(a,"outerRadius",0,(0,o.getNumberValidator)())},4621:(e,t)=>{"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}},4682:(e,t,n)=>{"use strict";n.d(t,{hU:()=>li});
|
|
17
17
|
/*!
|
|
18
|
-
* shared v10.0.
|
|
19
|
-
* (c)
|
|
18
|
+
* shared v10.0.6
|
|
19
|
+
* (c) 2025 kazuya kawaguchi
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/
|
|
22
|
-
const i="undefined"!==typeof window;const r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),o=e=>"number"===typeof e&&isFinite(e),s=e=>"[object RegExp]"===k(e),a=e=>_(e)&&0===Object.keys(e).length,l=Object.assign,c=Object.create,u=(e=null)=>c(e);let d;const h=()=>d||(d="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:u());const p=Object.prototype.hasOwnProperty;function f(e,t){return p.call(e,t)}const m=Array.isArray,g=e=>"function"===typeof e,v=e=>"string"===typeof e,y=e=>"boolean"===typeof e,b=e=>null!==e&&"object"===typeof e,w=Object.prototype.toString,k=e=>w.call(e),_=e=>"[object Object]"===k(e);const S=e=>!b(e)||m(e);function x(e,t){if(S(e)||S(t))throw new Error("Invalid value");const n=[{src:e,des:t}];while(n.length){const{src:e,des:t}=n.pop();Object.keys(e).forEach((i=>{"__proto__"!==i&&(b(e[i])&&!b(t[i])&&(t[i]=Array.isArray(e[i])?[]:u()),S(t[i])||S(e[i])?t[i]=e[i]:n.push({src:e[i],des:t[i]}))}))}}const C=(e,t,n)=>E({l:e,k:t,s:n}),E=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),T=e=>"number"===typeof e&&isFinite(e),D=e=>"[object Date]"===W(e),N=e=>"[object RegExp]"===W(e),O=e=>q(e)&&0===Object.keys(e).length,A=Object.assign,P=Object.create,M=(e=null)=>P(e);let B;const I=()=>B||(B="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:M());function R(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const L=Object.prototype.hasOwnProperty;function F(e,t){return L.call(e,t)}const V=Array.isArray,$=e=>"function"===typeof e,z=e=>"string"===typeof e,U=e=>"boolean"===typeof e,j=e=>null!==e&&"object"===typeof e,H=e=>j(e)&&$(e.then)&&$(e.catch),G=Object.prototype.toString,W=e=>G.call(e),q=e=>"[object Object]"===W(e),K=e=>null==e?"":V(e)||q(e)&&e.toString===G?JSON.stringify(e,null,2):String(e);function Y(e,t=""){return e.reduce(((e,n,i)=>0===i?e+n:e+t+n),"")}function X(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const J=Object.assign;Object.create;Object.prototype.hasOwnProperty;Array.isArray;const Q=e=>"string"===typeof e;Object.prototype.toString;function Z(e,t=""){return e.reduce(((e,n,i)=>0===i?e+n:e+t+n),"")}function ee(e,t,n){return{line:e,column:t,offset:n}}function te(e,t,n){const i={start:e,end:t};return null!=n&&(i.source=n),i}const ne={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},ie=17;ne.EXPECTED_TOKEN,ne.INVALID_TOKEN_IN_PLACEHOLDER,ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,ne.UNKNOWN_ESCAPE_SEQUENCE,ne.INVALID_UNICODE_ESCAPE_SEQUENCE,ne.UNBALANCED_CLOSING_BRACE,ne.UNTERMINATED_CLOSING_BRACE,ne.EMPTY_PLACEHOLDER,ne.NOT_ALLOW_NEST_PLACEHOLDER,ne.INVALID_LINKED_FORMAT,ne.MUST_HAVE_MESSAGES_IN_PLURAL,ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,ne.UNEXPECTED_EMPTY_LINKED_KEY,ne.UNEXPECTED_LEXICAL_ANALYSIS,ne.UNHANDLED_CODEGEN_NODE_TYPE,ne.UNHANDLED_MINIFIER_NODE_TYPE;function re(e,t,n={}){const{domain:i,messages:r,args:o}=n,s=e,a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=i,a}function oe(e){throw e}const se=" ",ae="\r",le="\n",ce=String.fromCharCode(8232),ue=String.fromCharCode(8233);function de(e){const t=e;let n=0,i=1,r=1,o=0;const s=e=>t[e]===ae&&t[e+1]===le,a=e=>t[e]===le,l=e=>t[e]===ue,c=e=>t[e]===ce,u=e=>s(e)||a(e)||l(e)||c(e),d=()=>n,h=()=>i,p=()=>r,f=()=>o,m=e=>s(e)||l(e)||c(e)?le:t[e],g=()=>m(n),v=()=>m(n+o);function y(){return o=0,u(n)&&(i++,r=0),s(n)&&n++,n++,r++,t[n]}function b(){return s(n+o)&&o++,o++,t[n+o]}function w(){n=0,i=1,r=1,o=0}function k(e=0){o=e}function _(){const e=n+o;while(e!==n)y();o=0}return{index:d,line:h,column:p,peekOffset:f,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:w,resetPeek:k,skipToPeek:_}}const he=void 0,pe="'",fe="tokenizer";function me(e,t={}){const n=!1!==t.location,i=de(e),r=()=>i.index(),o=()=>ee(i.line(),i.column(),i.index()),s=o(),a=r(),l={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,i,...r){const o=c();if(t.column+=i,t.offset+=i,u){const i=n?te(o.startLoc,t):null,s=re(e,i,{domain:fe,args:r});u(s)}}function h(e,t,i){e.endLoc=o(),e.currentType=t;const r={type:t};return n&&(r.loc=te(e.startLoc,e.endLoc)),null!=i&&(r.value=i),r}const p=e=>h(e,13);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(ne.EXPECTED_TOKEN,o(),0,t),"")}function m(e){let t="";while(e.currentPeek()===se||e.currentPeek()===le)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===he)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e){if(e===he)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=v(e.currentPeek());return e.resetPeek(),i}function w(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i="-"===e.currentPeek()?e.peek():e.currentPeek(),r=y(i);return e.resetPeek(),r}function k(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=e.currentPeek()===pe;return e.resetPeek(),i}function _(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const i="."===e.currentPeek();return e.resetPeek(),i}function S(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const i=v(e.currentPeek());return e.resetPeek(),i}function x(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const i=":"===e.currentPeek();return e.resetPeek(),i}function C(e,t){const{currentType:n}=t;if(9!==n)return!1;const i=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===se||!t)&&(t===le?(e.peek(),i()):T(e,!1))},r=i();return e.resetPeek(),r}function E(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(e,t=!0){const n=(t=!1,i="")=>{const r=e.currentPeek();return"{"===r?t:"@"!==r&&r?"|"===r?!(i===se||i===le):r===se?(e.peek(),n(!0,se)):r!==le||(e.peek(),n(!0,le)):t},i=n();return t&&e.resetPeek(),i}function D(e,t){const n=e.currentChar();return n===he?he:t(n)?(e.next(),n):null}function N(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function O(e){return D(e,N)}function A(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function P(e){return D(e,A)}function M(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function B(e){return D(e,M)}function I(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R(e){return D(e,I)}function L(e){let t="",n="";while(t=B(e))n+=t;return n}function F(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===se||n===le)if(T(e))t+=n,e.next();else{if(E(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function V(e){g(e);let t="",n="";while(t=P(e))n+=t;return e.currentChar()===he&&d(ne.UNTERMINATED_CLOSING_BRACE,o(),0),n}function $(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${L(e)}`):t+=L(e),e.currentChar()===he&&d(ne.UNTERMINATED_CLOSING_BRACE,o(),0),t}function z(e){return e!==pe&&e!==le}function U(e){g(e),f(e,"'");let t="",n="";while(t=D(e,z))n+="\\"===t?j(e):t;const i=e.currentChar();return i===le||i===he?(d(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),i===le&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}function j(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return H(e,t,4);case"U":return H(e,t,6);default:return d(ne.UNKNOWN_ESCAPE_SEQUENCE,o(),0,t),""}}function H(e,t,n){f(e,t);let i="";for(let r=0;r<n;r++){const n=R(e);if(!n){d(ne.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${t}${i}${e.currentChar()}`);break}i+=n}return`\\${t}${i}`}function G(e){return"{"!==e&&"}"!==e&&e!==se&&e!==le}function W(e){g(e);let t="",n="";while(t=D(e,G))n+=t;return n}function q(e){let t="",n="";while(t=O(e))n+=t;return n}function K(e){const t=n=>{const i=e.currentChar();return"{"!==i&&"@"!==i&&"|"!==i&&"("!==i&&")"!==i&&i?i===se?n:(n+=i,e.next(),t(n)):n};return t("")}function Y(e){g(e);const t=f(e,"|");return g(e),t}function X(e,t){let n=null;const i=e.currentChar();switch(i){case"{":return t.braceNest>=1&&d(ne.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),e.next(),n=h(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(ne.EMPTY_PLACEHOLDER,o(),0),e.next(),n=h(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(ne.UNTERMINATED_CLOSING_BRACE,o(),0),n=J(e,t)||p(t),t.braceNest=0,n;default:{let i=!0,r=!0,s=!0;if(E(e))return t.braceNest>0&&d(ne.UNTERMINATED_CLOSING_BRACE,o(),0),n=h(t,1,Y(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(ne.UNTERMINATED_CLOSING_BRACE,o(),0),t.braceNest=0,Q(e,t);if(i=b(e,t))return n=h(t,4,V(e)),g(e),n;if(r=w(e,t))return n=h(t,5,$(e)),g(e),n;if(s=k(e,t))return n=h(t,6,U(e)),g(e),n;if(!i&&!r&&!s)return n=h(t,12,W(e)),d(ne.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,n.value),g(e),n;break}}return n}function J(e,t){const{currentType:n}=t;let i=null;const r=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||r!==le&&r!==se||d(ne.INVALID_LINKED_FORMAT,o(),0),r){case"@":return e.next(),i=h(t,7,"@"),t.inLinked=!0,i;case".":return g(e),e.next(),h(t,8,".");case":":return g(e),e.next(),h(t,9,":");default:return E(e)?(i=h(t,1,Y(e)),t.braceNest=0,t.inLinked=!1,i):_(e,t)||x(e,t)?(g(e),J(e,t)):S(e,t)?(g(e),h(t,11,q(e))):C(e,t)?(g(e),"{"===r?X(e,t)||i:h(t,10,K(e))):(7===n&&d(ne.INVALID_LINKED_FORMAT,o(),0),t.braceNest=0,t.inLinked=!1,Q(e,t))}}function Q(e,t){let n={type:13};if(t.braceNest>0)return X(e,t)||p(t);if(t.inLinked)return J(e,t)||p(t);const i=e.currentChar();switch(i){case"{":return X(e,t)||p(t);case"}":return d(ne.UNBALANCED_CLOSING_BRACE,o(),0),e.next(),h(t,3,"}");case"@":return J(e,t)||p(t);default:if(E(e))return n=h(t,1,Y(e)),t.braceNest=0,t.inLinked=!1,n;if(T(e))return h(t,0,F(e));break}return n}function Z(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=r(),l.startLoc=o(),i.currentChar()===he?h(l,13):Q(i,l)}return{nextToken:Z,currentOffset:r,currentPosition:o,context:c}}const ge="parser",ve=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ye(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function be(e={}){const t=!1!==e.location,{onError:n}=e;function i(e,i,r,o,...s){const a=e.currentPosition();if(a.offset+=o,a.column+=o,n){const e=t?te(r,a):null,o=re(i,e,{domain:ge,args:s});n(o)}}function r(e,n,i){const r={type:e};return t&&(r.start=n,r.end=n,r.loc={start:i,end:i}),r}function o(e,n,i,r){t&&(e.end=n,e.loc&&(e.loc.end=i))}function s(e,t){const n=e.context(),i=r(3,n.offset,n.startLoc);return i.value=t,o(i,e.currentOffset(),e.currentPosition()),i}function a(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,a=r(5,i,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,a=r(4,i,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function c(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,a=r(9,i,s);return a.value=t.replace(ve,ye),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:a}=n,l=r(8,s,a);return 11!==t.type?(i(e,ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",o(l,s,a),{nextConsumeToken:t,node:l}):(null==t.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,we(t)),l.value=t.value||"",o(l,e.currentOffset(),e.currentPosition()),{node:l})}function d(e,t){const n=e.context(),i=r(7,n.offset,n.startLoc);return i.value=t,o(i,e.currentOffset(),e.currentPosition()),i}function h(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let s=e.nextToken();if(8===s.type){const t=u(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(9!==s.type&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 10:null==s.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(s)),n.key=d(e,s.value||"");break;case 4:null==s.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(s)),n.key=l(e,s.value||"");break;case 5:null==s.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(s)),n.key=a(e,s.value||"");break;case 6:null==s.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(s)),n.key=c(e,s.value||"");break;default:{i(e,ne.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),l=r(7,a.offset,a.startLoc);return l.value="",o(l,a.offset,a.startLoc),n.key=l,o(n,a.offset,a.startLoc),{nextConsumeToken:s,node:n}}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,u=1===t.currentType?t.endLoc:t.startLoc,d=r(2,n,u);d.items=[];let p=null;do{const n=p||e.nextToken();switch(p=null,n.type){case 0:null==n.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(n)),d.items.push(s(e,n.value||""));break;case 5:null==n.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(n)),d.items.push(a(e,n.value||""));break;case 4:null==n.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(n)),d.items.push(l(e,n.value||""));break;case 6:null==n.value&&i(e,ne.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,we(n)),d.items.push(c(e,n.value||""));break;case 7:{const t=h(e);d.items.push(t.node),p=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);const f=1===t.currentType?t.lastOffset:e.currentOffset(),m=1===t.currentType?t.lastEndLoc:e.currentPosition();return o(d,f,m),d}function f(e,t,n,s){const a=e.context();let l=0===s.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(s);do{const t=p(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==a.currentType);return l&&i(e,ne.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),o(c,e.currentOffset(),e.currentPosition()),c}function m(e){const t=e.context(),{offset:n,startLoc:i}=t,r=p(e);return 13===t.currentType?r:f(e,n,i,r)}function g(n){const s=me(n,J({},e)),a=s.context(),l=r(0,a.offset,a.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(s),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==a.currentType&&i(s,ne.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,n[a.offset]||""),o(l,s.currentOffset(),s.currentPosition()),l}return{parse:g}}function we(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ke(e,t={}){const n={ast:e,helpers:new Set},i=()=>n,r=e=>(n.helpers.add(e),e);return{context:i,helper:r}}function _e(e,t){for(let n=0;n<e.length;n++)Se(e[n],t)}function Se(e,t){switch(e.type){case 1:_e(e.cases,t),t.helper("plural");break;case 2:_e(e.items,t);break;case 6:{const n=e;Se(n.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function xe(e,t={}){const n=ke(e);n.helper("normalize"),e.body&&Se(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function Ce(e){const t=e.body;return 2===t.type?Ee(t):t.cases.forEach((e=>Ee(e))),e}function Ee(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const i=e.items[n];if(3!==i.type&&9!==i.type)break;if(null==i.value)break;t.push(i.value)}if(t.length===e.items.length){e.static=Z(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function Te(e){switch(e.t=e.type,e.type){case 0:{const t=e;Te(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)Te(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)Te(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Te(t.key),t.k=t.key,delete t.key,t.modifier&&(Te(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:0}delete e.type}function De(e,t){const{sourceMap:n,filename:i,breakLineCode:r,needIndent:o}=t,s=!1!==t.location,a={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};s&&e.loc&&(a.source=e.loc.source);const l=()=>a;function c(e,t){a.code+=e}function u(e,t=!0){const n=t?r:"";c(o?n+" ".repeat(e):n)}function d(e=!0){const t=++a.indentLevel;e&&u(t)}function h(e=!0){const t=--a.indentLevel;e&&u(t)}function p(){u(a.indentLevel)}const f=e=>`_${e}`,m=()=>a.needIndent;return{context:l,push:c,indent:d,deindent:h,newline:p,helper:f,needIndent:m}}function Ne(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Me(e,t.key),t.modifier?(e.push(", "),Me(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Oe(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const r=t.items.length;for(let o=0;o<r;o++){if(Me(e,t.items[o]),o===r-1)break;e.push(", ")}e.deindent(i()),e.push("])")}function Ae(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const r=t.cases.length;for(let n=0;n<r;n++){if(Me(e,t.cases[n]),n===r-1)break;e.push(", ")}e.deindent(i()),e.push("])")}}function Pe(e,t){t.body?Me(e,t.body):e.push("null")}function Me(e,t){const{helper:n}=e;switch(t.type){case 0:Pe(e,t);break;case 1:Ae(e,t);break;case 2:Oe(e,t);break;case 6:Ne(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:0}}const Be=(e,t={})=>{const n=Q(t.mode)?t.mode:"normal",i=Q(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],l=De(e,{mode:n,filename:i,sourceMap:r,breakLineCode:o,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${Z(a.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),Me(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function Ie(e,t={}){const n=J({},t),i=!!n.jit,r=!!n.minify,o=null==n.optimize||n.optimize,s=be(n),a=s.parse(e);return i?(o&&Ce(a),r&&Te(a),{ast:a,code:""}):(xe(a,n),Be(a,n))}
|
|
22
|
+
const i="undefined"!==typeof window;const r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),o=(e,t,n)=>s({l:e,k:t,s:n}),s=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),a=e=>"number"===typeof e&&isFinite(e),l=e=>"[object Date]"===E(e),c=e=>"[object RegExp]"===E(e),u=e=>T(e)&&0===Object.keys(e).length,d=Object.assign,h=Object.create,p=(e=null)=>h(e);let f;const m=()=>f||(f="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:p());function g(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const v=Object.prototype.hasOwnProperty;function y(e,t){return v.call(e,t)}const b=Array.isArray,w=e=>"function"===typeof e,k=e=>"string"===typeof e,_=e=>"boolean"===typeof e,S=e=>null!==e&&"object"===typeof e,x=e=>S(e)&&w(e.then)&&w(e.catch),C=Object.prototype.toString,E=e=>C.call(e),T=e=>"[object Object]"===E(e),D=e=>null==e?"":b(e)||T(e)&&e.toString===C?JSON.stringify(e,null,2):String(e);function N(e,t=""){return e.reduce(((e,n,i)=>0===i?e+n:e+t+n),"")}function O(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const A=e=>!S(e)||b(e);function P(e,t){if(A(e)||A(t))throw new Error("Invalid value");const n=[{src:e,des:t}];while(n.length){const{src:e,des:t}=n.pop();Object.keys(e).forEach((i=>{"__proto__"!==i&&(S(e[i])&&!S(t[i])&&(t[i]=Array.isArray(e[i])?[]:p()),A(t[i])||A(e[i])?t[i]=e[i]:n.push({src:e[i],des:t[i]}))}))}}function M(e,t,n){return{line:e,column:t,offset:n}}function B(e,t,n){const i={start:e,end:t};return null!=n&&(i.source=n),i}const I={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},R=17;I.EXPECTED_TOKEN,I.INVALID_TOKEN_IN_PLACEHOLDER,I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,I.UNKNOWN_ESCAPE_SEQUENCE,I.INVALID_UNICODE_ESCAPE_SEQUENCE,I.UNBALANCED_CLOSING_BRACE,I.UNTERMINATED_CLOSING_BRACE,I.EMPTY_PLACEHOLDER,I.NOT_ALLOW_NEST_PLACEHOLDER,I.INVALID_LINKED_FORMAT,I.MUST_HAVE_MESSAGES_IN_PLURAL,I.UNEXPECTED_EMPTY_LINKED_MODIFIER,I.UNEXPECTED_EMPTY_LINKED_KEY,I.UNEXPECTED_LEXICAL_ANALYSIS,I.UNHANDLED_CODEGEN_NODE_TYPE,I.UNHANDLED_MINIFIER_NODE_TYPE;function L(e,t,n={}){const{domain:i,messages:r,args:o}=n,s=e,a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=i,a}function F(e){throw e}const V=" ",$="\r",z="\n",U=String.fromCharCode(8232),j=String.fromCharCode(8233);function H(e){const t=e;let n=0,i=1,r=1,o=0;const s=e=>t[e]===$&&t[e+1]===z,a=e=>t[e]===z,l=e=>t[e]===j,c=e=>t[e]===U,u=e=>s(e)||a(e)||l(e)||c(e),d=()=>n,h=()=>i,p=()=>r,f=()=>o,m=e=>s(e)||l(e)||c(e)?z:t[e],g=()=>m(n),v=()=>m(n+o);function y(){return o=0,u(n)&&(i++,r=0),s(n)&&n++,n++,r++,t[n]}function b(){return s(n+o)&&o++,o++,t[n+o]}function w(){n=0,i=1,r=1,o=0}function k(e=0){o=e}function _(){const e=n+o;while(e!==n)y();o=0}return{index:d,line:h,column:p,peekOffset:f,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:w,resetPeek:k,skipToPeek:_}}const G=void 0,W="'",q="tokenizer";function K(e,t={}){const n=!1!==t.location,i=H(e),r=()=>i.index(),o=()=>M(i.line(),i.column(),i.index()),s=o(),a=r(),l={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,i,...r){const o=c();if(t.column+=i,t.offset+=i,u){const i=n?B(o.startLoc,t):null,s=L(e,i,{domain:q,args:r});u(s)}}function h(e,t,i){e.endLoc=o(),e.currentType=t;const r={type:t};return n&&(r.loc=B(e.startLoc,e.endLoc)),null!=i&&(r.value=i),r}const p=e=>h(e,13);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(I.EXPECTED_TOKEN,o(),0,t),"")}function m(e){let t="";while(e.currentPeek()===V||e.currentPeek()===z)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===G)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e){if(e===G)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=v(e.currentPeek());return e.resetPeek(),i}function w(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i="-"===e.currentPeek()?e.peek():e.currentPeek(),r=y(i);return e.resetPeek(),r}function k(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=e.currentPeek()===W;return e.resetPeek(),i}function _(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const i="."===e.currentPeek();return e.resetPeek(),i}function S(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const i=v(e.currentPeek());return e.resetPeek(),i}function x(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const i=":"===e.currentPeek();return e.resetPeek(),i}function C(e,t){const{currentType:n}=t;if(9!==n)return!1;const i=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===V||!t)&&(t===z?(e.peek(),i()):T(e,!1))},r=i();return e.resetPeek(),r}function E(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(e,t=!0){const n=(t=!1,i="")=>{const r=e.currentPeek();return"{"===r?t:"@"!==r&&r?"|"===r?!(i===V||i===z):r===V?(e.peek(),n(!0,V)):r!==z||(e.peek(),n(!0,z)):t},i=n();return t&&e.resetPeek(),i}function D(e,t){const n=e.currentChar();return n===G?G:t(n)?(e.next(),n):null}function N(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function O(e){return D(e,N)}function A(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function P(e){return D(e,A)}function R(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function F(e){return D(e,R)}function $(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function U(e){return D(e,$)}function j(e){let t="",n="";while(t=F(e))n+=t;return n}function K(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===V||n===z)if(T(e))t+=n,e.next();else{if(E(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function Y(e){g(e);let t="",n="";while(t=P(e))n+=t;return e.currentChar()===G&&d(I.UNTERMINATED_CLOSING_BRACE,o(),0),n}function X(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${j(e)}`):t+=j(e),e.currentChar()===G&&d(I.UNTERMINATED_CLOSING_BRACE,o(),0),t}function J(e){return e!==W&&e!==z}function Q(e){g(e),f(e,"'");let t="",n="";while(t=D(e,J))n+="\\"===t?Z(e):t;const i=e.currentChar();return i===z||i===G?(d(I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),i===z&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}function Z(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return ee(e,t,4);case"U":return ee(e,t,6);default:return d(I.UNKNOWN_ESCAPE_SEQUENCE,o(),0,t),""}}function ee(e,t,n){f(e,t);let i="";for(let r=0;r<n;r++){const n=U(e);if(!n){d(I.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${t}${i}${e.currentChar()}`);break}i+=n}return`\\${t}${i}`}function te(e){return"{"!==e&&"}"!==e&&e!==V&&e!==z}function ne(e){g(e);let t="",n="";while(t=D(e,te))n+=t;return n}function ie(e){let t="",n="";while(t=O(e))n+=t;return n}function re(e){const t=n=>{const i=e.currentChar();return"{"!==i&&"@"!==i&&"|"!==i&&"("!==i&&")"!==i&&i?i===V?n:(n+=i,e.next(),t(n)):n};return t("")}function oe(e){g(e);const t=f(e,"|");return g(e),t}function se(e,t){let n=null;const i=e.currentChar();switch(i){case"{":return t.braceNest>=1&&d(I.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),e.next(),n=h(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(I.EMPTY_PLACEHOLDER,o(),0),e.next(),n=h(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(I.UNTERMINATED_CLOSING_BRACE,o(),0),n=ae(e,t)||p(t),t.braceNest=0,n;default:{let i=!0,r=!0,s=!0;if(E(e))return t.braceNest>0&&d(I.UNTERMINATED_CLOSING_BRACE,o(),0),n=h(t,1,oe(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(I.UNTERMINATED_CLOSING_BRACE,o(),0),t.braceNest=0,le(e,t);if(i=b(e,t))return n=h(t,4,Y(e)),g(e),n;if(r=w(e,t))return n=h(t,5,X(e)),g(e),n;if(s=k(e,t))return n=h(t,6,Q(e)),g(e),n;if(!i&&!r&&!s)return n=h(t,12,ne(e)),d(I.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,n.value),g(e),n;break}}return n}function ae(e,t){const{currentType:n}=t;let i=null;const r=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||r!==z&&r!==V||d(I.INVALID_LINKED_FORMAT,o(),0),r){case"@":return e.next(),i=h(t,7,"@"),t.inLinked=!0,i;case".":return g(e),e.next(),h(t,8,".");case":":return g(e),e.next(),h(t,9,":");default:return E(e)?(i=h(t,1,oe(e)),t.braceNest=0,t.inLinked=!1,i):_(e,t)||x(e,t)?(g(e),ae(e,t)):S(e,t)?(g(e),h(t,11,ie(e))):C(e,t)?(g(e),"{"===r?se(e,t)||i:h(t,10,re(e))):(7===n&&d(I.INVALID_LINKED_FORMAT,o(),0),t.braceNest=0,t.inLinked=!1,le(e,t))}}function le(e,t){let n={type:13};if(t.braceNest>0)return se(e,t)||p(t);if(t.inLinked)return ae(e,t)||p(t);const i=e.currentChar();switch(i){case"{":return se(e,t)||p(t);case"}":return d(I.UNBALANCED_CLOSING_BRACE,o(),0),e.next(),h(t,3,"}");case"@":return ae(e,t)||p(t);default:if(E(e))return n=h(t,1,oe(e)),t.braceNest=0,t.inLinked=!1,n;if(T(e))return h(t,0,K(e));break}return n}function ce(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=r(),l.startLoc=o(),i.currentChar()===G?h(l,13):le(i,l)}return{nextToken:ce,currentOffset:r,currentPosition:o,context:c}}const Y="parser",X=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function J(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Q(e={}){const t=!1!==e.location,{onError:n}=e;function i(e,i,r,o,...s){const a=e.currentPosition();if(a.offset+=o,a.column+=o,n){const e=t?B(r,a):null,o=L(i,e,{domain:Y,args:s});n(o)}}function r(e,n,i){const r={type:e};return t&&(r.start=n,r.end=n,r.loc={start:i,end:i}),r}function o(e,n,i,r){t&&(e.end=n,e.loc&&(e.loc.end=i))}function s(e,t){const n=e.context(),i=r(3,n.offset,n.startLoc);return i.value=t,o(i,e.currentOffset(),e.currentPosition()),i}function a(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,a=r(5,i,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,a=r(4,i,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function c(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,a=r(9,i,s);return a.value=t.replace(X,J),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:a}=n,l=r(8,s,a);return 11!==t.type?(i(e,I.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",o(l,s,a),{nextConsumeToken:t,node:l}):(null==t.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,Z(t)),l.value=t.value||"",o(l,e.currentOffset(),e.currentPosition()),{node:l})}function h(e,t){const n=e.context(),i=r(7,n.offset,n.startLoc);return i.value=t,o(i,e.currentOffset(),e.currentPosition()),i}function p(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let s=e.nextToken();if(8===s.type){const t=u(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(9!==s.type&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 10:null==s.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(s)),n.key=h(e,s.value||"");break;case 4:null==s.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(s)),n.key=l(e,s.value||"");break;case 5:null==s.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(s)),n.key=a(e,s.value||"");break;case 6:null==s.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(s)),n.key=c(e,s.value||"");break;default:{i(e,I.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),l=r(7,a.offset,a.startLoc);return l.value="",o(l,a.offset,a.startLoc),n.key=l,o(n,a.offset,a.startLoc),{nextConsumeToken:s,node:n}}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,u=1===t.currentType?t.endLoc:t.startLoc,d=r(2,n,u);d.items=[];let h=null;do{const n=h||e.nextToken();switch(h=null,n.type){case 0:null==n.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(n)),d.items.push(s(e,n.value||""));break;case 5:null==n.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(n)),d.items.push(a(e,n.value||""));break;case 4:null==n.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(n)),d.items.push(l(e,n.value||""));break;case 6:null==n.value&&i(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Z(n)),d.items.push(c(e,n.value||""));break;case 7:{const t=p(e);d.items.push(t.node),h=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);const f=1===t.currentType?t.lastOffset:e.currentOffset(),m=1===t.currentType?t.lastEndLoc:e.currentPosition();return o(d,f,m),d}function m(e,t,n,s){const a=e.context();let l=0===s.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(s);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==a.currentType);return l&&i(e,I.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),o(c,e.currentOffset(),e.currentPosition()),c}function g(e){const t=e.context(),{offset:n,startLoc:i}=t,r=f(e);return 13===t.currentType?r:m(e,n,i,r)}function v(n){const s=K(n,d({},e)),a=s.context(),l=r(0,a.offset,a.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=g(s),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==a.currentType&&i(s,I.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,n[a.offset]||""),o(l,s.currentOffset(),s.currentPosition()),l}return{parse:v}}function Z(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ee(e,t={}){const n={ast:e,helpers:new Set},i=()=>n,r=e=>(n.helpers.add(e),e);return{context:i,helper:r}}function te(e,t){for(let n=0;n<e.length;n++)ne(e[n],t)}function ne(e,t){switch(e.type){case 1:te(e.cases,t),t.helper("plural");break;case 2:te(e.items,t);break;case 6:{const n=e;ne(n.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ie(e,t={}){const n=ee(e);n.helper("normalize"),e.body&&ne(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function re(e){const t=e.body;return 2===t.type?oe(t):t.cases.forEach((e=>oe(e))),e}function oe(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const i=e.items[n];if(3!==i.type&&9!==i.type)break;if(null==i.value)break;t.push(i.value)}if(t.length===e.items.length){e.static=N(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function se(e){switch(e.t=e.type,e.type){case 0:{const t=e;se(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)se(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)se(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;se(t.key),t.k=t.key,delete t.key,t.modifier&&(se(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:0}delete e.type}function ae(e,t){const{sourceMap:n,filename:i,breakLineCode:r,needIndent:o}=t,s=!1!==t.location,a={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};s&&e.loc&&(a.source=e.loc.source);const l=()=>a;function c(e,t){a.code+=e}function u(e,t=!0){const n=t?r:"";c(o?n+" ".repeat(e):n)}function d(e=!0){const t=++a.indentLevel;e&&u(t)}function h(e=!0){const t=--a.indentLevel;e&&u(t)}function p(){u(a.indentLevel)}const f=e=>`_${e}`,m=()=>a.needIndent;return{context:l,push:c,indent:d,deindent:h,newline:p,helper:f,needIndent:m}}function le(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),he(e,t.key),t.modifier?(e.push(", "),he(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ce(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const r=t.items.length;for(let o=0;o<r;o++){if(he(e,t.items[o]),o===r-1)break;e.push(", ")}e.deindent(i()),e.push("])")}function ue(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const r=t.cases.length;for(let n=0;n<r;n++){if(he(e,t.cases[n]),n===r-1)break;e.push(", ")}e.deindent(i()),e.push("])")}}function de(e,t){t.body?he(e,t.body):e.push("null")}function he(e,t){const{helper:n}=e;switch(t.type){case 0:de(e,t);break;case 1:ue(e,t);break;case 2:ce(e,t);break;case 6:le(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:0}}const pe=(e,t={})=>{const n=k(t.mode)?t.mode:"normal",i=k(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],l=ae(e,{mode:n,filename:i,sourceMap:r,breakLineCode:o,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${N(a.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),he(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function fe(e,t={}){const n=d({},t),i=!!n.jit,r=!!n.minify,o=null==n.optimize||n.optimize,s=Q(n),a=s.parse(e);return i?(o&&re(a),r&&se(a),{ast:a,code:""}):(ie(a,n),pe(a,n))}
|
|
23
23
|
/*!
|
|
24
|
-
* core-base v10.0.
|
|
25
|
-
* (c)
|
|
24
|
+
* core-base v10.0.6
|
|
25
|
+
* (c) 2025 kazuya kawaguchi
|
|
26
26
|
* Released under the MIT License.
|
|
27
27
|
*/
|
|
28
|
-
function Re(){"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(I().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(I().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Le(e){const t=t=>Fe(t,e);return t}function Fe(e,t){const n=$e(t);if(null==n)throw rt(0);const i=Xe(n);if(1===i){const t=n,i=Ue(t);return e.plural(i.reduce(((t,n)=>[...t,je(e,n)]),[]))}return je(e,n)}const Ve=["b","body"];function $e(e){return it(e,Ve)}const ze=["c","cases"];function Ue(e){return it(e,ze,[])}function je(e,t){const n=Ge(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=qe(t).reduce(((t,n)=>[...t,Ke(e,n)]),[]);return e.normalize(n)}}const He=["s","static"];function Ge(e){return it(e,He)}const We=["i","items"];function qe(e){return it(e,We,[])}function Ke(e,t){const n=Xe(t);switch(n){case 3:return Qe(t,n);case 9:return Qe(t,n);case 4:{const i=t;if(F(i,"k")&&i.k)return e.interpolate(e.named(i.k));if(F(i,"key")&&i.key)return e.interpolate(e.named(i.key));throw rt(n)}case 5:{const i=t;if(F(i,"i")&&T(i.i))return e.interpolate(e.list(i.i));if(F(i,"index")&&T(i.index))return e.interpolate(e.list(i.index));throw rt(n)}case 6:{const n=t,i=et(n),r=nt(n);return e.linked(Ke(e,r),i?Ke(e,i):void 0,e.type)}case 7:return Qe(t,n);case 8:return Qe(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ye=["t","type"];function Xe(e){return it(e,Ye)}const Je=["v","value"];function Qe(e,t){const n=it(e,Je);if(n)return n;throw rt(t)}const Ze=["m","modifier"];function et(e){return it(e,Ze)}const tt=["k","key"];function nt(e){const t=it(e,tt);if(t)return t;throw rt(6)}function it(e,t,n){for(let i=0;i<t.length;i++){const n=t[i];if(F(e,n)&&null!=e[n])return e[n]}return n}function rt(e){return new Error(`unhandled node type: ${e}`)}const ot=e=>e;let st=M();function at(e){return j(e)&&0===Xe(e)&&(F(e,"b")||F(e,"body"))}function lt(e,t={}){let n=!1;const i=t.onError||oe;return t.onError=e=>{n=!0,i(e)},{...Ie(e,t),detectError:n}}function ct(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&z(e)){!U(t.warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||ot,i=n(e),r=st[i];if(r)return r;const{ast:o,detectError:s}=lt(e,{...t,location:!1,jit:!0}),a=Le(o);return s?a:st[i]=a}{0;const t=e.cacheKey;if(t){const n=st[t];return n||(st[t]=Le(e))}return Le(e)}}let ut=null;function dt(e){ut=e}function ht(e,t,n){ut&&ut.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const pt=ft("function:translate");function ft(e){return t=>ut&&ut.emit(e,t)}const mt={INVALID_ARGUMENT:ie,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},gt=24;function vt(e){return re(e,null,void 0)}mt.INVALID_ARGUMENT,mt.INVALID_DATE_ARGUMENT,mt.INVALID_ISO_DATE_ARGUMENT,mt.NOT_SUPPORT_NON_STRING_MESSAGE,mt.NOT_SUPPORT_LOCALE_PROMISE_VALUE,mt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,mt.NOT_SUPPORT_LOCALE_TYPE;function yt(e,t){return null!=t.locale?wt(t.locale):wt(e.locale)}let bt;function wt(e){if(z(e))return e;if($(e)){if(e.resolvedOnce&&null!=bt)return bt;if("Function"===e.constructor.name){const t=e();if(H(t))throw vt(mt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return bt=t}throw vt(mt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw vt(mt.NOT_SUPPORT_LOCALE_TYPE)}function kt(e,t,n){return[...new Set([n,...V(t)?t:j(t)?Object.keys(t):z(t)?[t]:[n]])]}function _t(e,t,n){const i=z(n)?n:$t,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(i);if(!o){o=[];let e=[n];while(V(e))e=St(o,e,t);const s=V(t)||!q(t)?t:t["default"]?t["default"]:null;e=z(s)?[s]:s,V(e)&&St(o,e,!1),r.__localeChainCache.set(i,o)}return o}function St(e,t,n){let i=!0;for(let r=0;r<t.length&&U(i);r++){const o=t[r];z(o)&&(i=xt(e,t[r],n))}return i}function xt(e,t,n){let i;const r=t.split("-");do{const t=r.join("-");i=Ct(e,t,n),r.splice(-1,1)}while(r.length&&!0===i);return i}function Ct(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(V(n)||q(n))&&n[r]&&(i=n[r])}return i}const Et=[];Et[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},Et[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},Et[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},Et[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},Et[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},Et[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},Et[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const Tt=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Dt(e){return Tt.test(e)}function Nt(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function Ot(e){if(void 0===e||null===e)return"o";const t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function At(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(Dt(t)?Nt(t):"*"+t)}function Pt(e){const t=[];let n,i,r,o,s,a,l,c=-1,u=0,d=0;const h=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,h[0](),!0}h[0]=()=>{void 0===i?i=r:i+=r},h[1]=()=>{void 0!==i&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),d++},h[3]=()=>{if(d>0)d--,u=4,h[0]();else{if(d=0,void 0===i)return!1;if(i=At(i),!1===i)return!1;h[1]()}};while(null!==u)if(c++,n=e[c],"\\"!==n||!p()){if(o=Ot(n),l=Et[u],s=l[o]||l["l"]||8,8===s)return;if(u=s[0],void 0!==s[1]&&(a=h[s[1]],a&&(r=n,!1===a())))return;if(7===u)return t}}const Mt=new Map;function Bt(e,t){return j(e)?e[t]:null}function It(e,t){if(!j(e))return null;let n=Mt.get(t);if(n||(n=Pt(t),n&&Mt.set(t,n)),!n)return null;const i=n.length;let r=e,o=0;while(o<i){const e=r[n[o]];if(void 0===e)return null;if($(r))return null;r=e,o++}return r}const Rt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Lt=8;Rt.NOT_FOUND_KEY,Rt.FALLBACK_TO_TRANSLATE,Rt.CANNOT_FORMAT_NUMBER,Rt.FALLBACK_TO_NUMBER_FORMAT,Rt.CANNOT_FORMAT_DATE,Rt.FALLBACK_TO_DATE_FORMAT,Rt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER;const Ft="10.0.5",Vt=-1,$t="en-US",zt="",Ut=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function jt(){return{upper:(e,t)=>"text"===t&&z(e)?e.toUpperCase():"vnode"===t&&j(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&z(e)?e.toLowerCase():"vnode"===t&&j(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&z(e)?Ut(e):"vnode"===t&&j(e)&&"__v_isVNode"in e?Ut(e.children):e}}let Ht,Gt,Wt;function qt(e){Ht=e}function Kt(e){Gt=e}function Yt(e){Wt=e}let Xt=null;const Jt=e=>{Xt=e},Qt=()=>Xt;let Zt=null;const en=e=>{Zt=e},tn=()=>Zt;let nn=0;function rn(e={}){const t=$(e.onWarn)?e.onWarn:X,n=z(e.version)?e.version:Ft,i=z(e.locale)||$(e.locale)?e.locale:$t,r=$(i)?$t:i,o=V(e.fallbackLocale)||q(e.fallbackLocale)||z(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,s=q(e.messages)?e.messages:on(r),a=q(e.datetimeFormats)?e.datetimeFormats:on(r),l=q(e.numberFormats)?e.numberFormats:on(r),c=A(M(),e.modifiers,jt()),u=e.pluralRules||M(),d=$(e.missing)?e.missing:null,h=!U(e.missingWarn)&&!N(e.missingWarn)||e.missingWarn,p=!U(e.fallbackWarn)&&!N(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,m=!!e.unresolving,g=$(e.postTranslation)?e.postTranslation:null,v=q(e.processor)?e.processor:null,y=!U(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,w=$(e.messageCompiler)?e.messageCompiler:Ht;const k=$(e.messageResolver)?e.messageResolver:Gt||Bt,_=$(e.localeFallbacker)?e.localeFallbacker:Wt||kt,S=j(e.fallbackContext)?e.fallbackContext:void 0,x=e,C=j(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,E=j(x.__numberFormatters)?x.__numberFormatters:new Map,T=j(x.__meta)?x.__meta:{};nn++;const D={version:n,cid:nn,locale:i,fallbackLocale:o,messages:s,modifiers:c,pluralRules:u,missing:d,missingWarn:h,fallbackWarn:p,fallbackFormat:f,unresolving:m,postTranslation:g,processor:v,warnHtmlMessage:y,escapeParameter:b,messageCompiler:w,messageResolver:k,localeFallbacker:_,fallbackContext:S,onWarn:t,__meta:T};return D.datetimeFormats=a,D.numberFormats=l,D.__datetimeFormatters=C,D.__numberFormatters=E,__INTLIFY_PROD_DEVTOOLS__&&ht(D,n,T),D}const on=e=>({[e]:M()});function sn(e,t,n,i,r){const{missing:o,onWarn:s}=e;if(null!==o){const i=o(e,n,t,r);return z(i)?i:t}return t}function an(e,t,n){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ln(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function cn(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let i=n+1;i<t.length;i++)if(ln(e,t[i]))return!0;return!1}const un="undefined"!==typeof Intl;un&&Intl.DateTimeFormat,un&&Intl.NumberFormat;function dn(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:r,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:a}=e;const[l,c,u,d]=pn(...t),h=U(u.missingWarn)?u.missingWarn:e.missingWarn,p=(U(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),f=yt(e,u),m=s(e,r,f);if(!z(l)||""===l)return new Intl.DateTimeFormat(f,d).format(c);let g,v={},y=null,b=f,w=null;const k="datetime format";for(let x=0;x<m.length;x++){if(g=w=m[x],v=n[g]||{},y=v[l],q(y))break;sn(e,l,g,h,k),b=w}if(!q(y)||!z(g))return i?Vt:l;let _=`${g}__${l}`;O(d)||(_=`${_}__${JSON.stringify(d)}`);let S=a.get(_);return S||(S=new Intl.DateTimeFormat(g,A({},y,d)),a.set(_,S)),p?S.formatToParts(c):S.format(c)}const hn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function pn(...e){const[t,n,i,r]=e,o=M();let s,a=M();if(z(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw vt(mt.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw vt(mt.INVALID_ISO_DATE_ARGUMENT)}}else if(D(t)){if(isNaN(t.getTime()))throw vt(mt.INVALID_DATE_ARGUMENT);s=t}else{if(!T(t))throw vt(mt.INVALID_ARGUMENT);s=t}return z(n)?o.key=n:q(n)&&Object.keys(n).forEach((e=>{hn.includes(e)?a[e]=n[e]:o[e]=n[e]})),z(i)?o.locale=i:q(i)&&(a=i),q(r)&&(a=r),[o.key||"",s,o,a]}function fn(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__datetimeFormatters.has(e)&&i.__datetimeFormatters.delete(e)}}function mn(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:r,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:a}=e;const[l,c,u,d]=vn(...t),h=U(u.missingWarn)?u.missingWarn:e.missingWarn,p=(U(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),f=yt(e,u),m=s(e,r,f);if(!z(l)||""===l)return new Intl.NumberFormat(f,d).format(c);let g,v={},y=null,b=f,w=null;const k="number format";for(let x=0;x<m.length;x++){if(g=w=m[x],v=n[g]||{},y=v[l],q(y))break;sn(e,l,g,h,k),b=w}if(!q(y)||!z(g))return i?Vt:l;let _=`${g}__${l}`;O(d)||(_=`${_}__${JSON.stringify(d)}`);let S=a.get(_);return S||(S=new Intl.NumberFormat(g,A({},y,d)),a.set(_,S)),p?S.formatToParts(c):S.format(c)}const gn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function vn(...e){const[t,n,i,r]=e,o=M();let s=M();if(!T(t))throw vt(mt.INVALID_ARGUMENT);const a=t;return z(n)?o.key=n:q(n)&&Object.keys(n).forEach((e=>{gn.includes(e)?s[e]=n[e]:o[e]=n[e]})),z(i)?o.locale=i:q(i)&&(s=i),q(r)&&(s=r),[o.key||"",a,o,s]}function yn(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__numberFormatters.has(e)&&i.__numberFormatters.delete(e)}}const bn=e=>e,wn=e=>"",kn="text",_n=e=>0===e.length?"":Y(e),Sn=K;function xn(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Cn(e){const t=T(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(T(e.named.count)||T(e.named.n))?T(e.named.count)?e.named.count:T(e.named.n)?e.named.n:t:t}function En(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Tn(e={}){const t=e.locale,n=Cn(e),i=j(e.pluralRules)&&z(t)&&$(e.pluralRules[t])?e.pluralRules[t]:xn,r=j(e.pluralRules)&&z(t)&&$(e.pluralRules[t])?xn:void 0,o=e=>e[i(n,e.length,r)],s=e.list||[],a=e=>s[e],l=e.named||M();T(e.pluralIndex)&&En(n,l);const c=e=>l[e];function u(t,n){const i=$(e.messages)?e.messages(t,!!n):!!j(e.messages)&&e.messages[t];return i||(e.parent?e.parent.message(t):wn)}const d=t=>e.modifiers?e.modifiers[t]:bn,h=q(e.processor)&&$(e.processor.normalize)?e.processor.normalize:_n,p=q(e.processor)&&$(e.processor.interpolate)?e.processor.interpolate:Sn,f=q(e.processor)&&z(e.processor.type)?e.processor.type:kn,m=(e,...t)=>{const[n,i]=t;let r="text",o="";1===t.length?j(n)?(o=n.modifier||o,r=n.type||r):z(n)&&(o=n||o):2===t.length&&(z(n)&&(o=n||o),z(i)&&(r=i||r));const s=u(e,!0)(g),a="vnode"===r&&V(s)&&o?s[0]:s;return o?d(o)(a,r):a},g={["list"]:a,["named"]:c,["plural"]:o,["linked"]:m,["message"]:u,["type"]:f,["interpolate"]:p,["normalize"]:h,["values"]:A(M(),s,l)};return g}const Dn=()=>"",Nn=e=>$(e);function On(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:r,messageCompiler:o,fallbackLocale:s,messages:a}=e,[l,c]=In(...t),u=U(c.missingWarn)?c.missingWarn:e.missingWarn,d=U(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=U(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,f=z(c.default)||U(c.default)?U(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,m=n||null!=f&&(z(f)||$(f)),g=yt(e,c);h&&An(c);let[v,y,b]=p?[l,g,a[g]||M()]:Pn(e,l,g,s,d,u),w=v,k=l;if(p||z(w)||at(w)||Nn(w)||m&&(w=f,k=w),!p&&(!(z(w)||at(w)||Nn(w))||!z(y)))return r?Vt:l;let _=!1;const S=()=>{_=!0},x=Nn(w)?w:Mn(e,l,y,w,k,S);if(_)return w;const C=Ln(e,y,b,c),E=Tn(C),T=Bn(e,x,E),D=i?i(T,l):T;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:z(l)?l:Nn(w)?w.key:"",locale:y||(Nn(w)?w.locale:""),format:z(w)?w:Nn(w)?w.source:"",message:D};t.meta=A({},e.__meta,Qt()||{}),pt(t)}return D}function An(e){V(e.list)?e.list=e.list.map((e=>z(e)?R(e):e)):j(e.named)&&Object.keys(e.named).forEach((t=>{z(e.named[t])&&(e.named[t]=R(e.named[t]))}))}function Pn(e,t,n,i,r,o){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,i,n);let d,h=M(),p=null,f=n,m=null;const g="translate";for(let v=0;v<u.length;v++){d=m=u[v],h=s[d]||M();if(null===(p=l(h,t))&&(p=h[t]),z(p)||at(p)||Nn(p))break;if(!cn(d,u)){const n=sn(e,t,d,o,g);n!==t&&(p=n)}f=m}return[p,d,h]}function Mn(e,t,n,i,r,o){const{messageCompiler:s,warnHtmlMessage:a}=e;if(Nn(i)){const e=i;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>i;return e.locale=n,e.key=t,e}const l=s(i,Rn(e,n,r,i,a,o));return l.locale=n,l.key=t,l.source=i,l}function Bn(e,t,n){const i=t(n);return i}function In(...e){const[t,n,i]=e,r=M();if(!z(t)&&!T(t)&&!Nn(t)&&!at(t))throw vt(mt.INVALID_ARGUMENT);const o=T(t)?String(t):(Nn(t),t);return T(n)?r.plural=n:z(n)?r.default=n:q(n)&&!O(n)?r.named=n:V(n)&&(r.list=n),T(i)?r.plural=i:z(i)?r.default=i:q(i)&&A(r,i),[o,r]}function Rn(e,t,n,i,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>C(t,n,e)}}function Ln(e,t,n,i){const{modifiers:r,pluralRules:o,messageResolver:s,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d=(i,r)=>{let o=s(n,i);if(null==o&&(u||r)){const[,,n]=Pn(u||e,i,t,a,l,c);o=s(n,i)}if(z(o)||at(o)){let n=!1;const r=()=>{n=!0},s=Mn(e,i,t,o,i,r);return n?Dn:s}return Nn(o)?o:Dn},h={locale:t,modifiers:r,pluralRules:o,messages:d};return e.processor&&(h.processor=e.processor),i.list&&(h.list=i.list),i.named&&(h.named=i.named),T(i.plural)&&(h.pluralIndex=i.plural),h}Re();var Fn=n(9726);
|
|
28
|
+
function me(){"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(m().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(m().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ge(e){const t=t=>ve(t,e);return t}function ve(e,t){const n=be(t);if(null==n)throw Le(0);const i=Ne(n);if(1===i){const t=n,i=ke(t);return e.plural(i.reduce(((t,n)=>[...t,_e(e,n)]),[]))}return _e(e,n)}const ye=["b","body"];function be(e){return Re(e,ye)}const we=["c","cases"];function ke(e){return Re(e,we,[])}function _e(e,t){const n=xe(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=Ee(t).reduce(((t,n)=>[...t,Te(e,n)]),[]);return e.normalize(n)}}const Se=["s","static"];function xe(e){return Re(e,Se)}const Ce=["i","items"];function Ee(e){return Re(e,Ce,[])}function Te(e,t){const n=Ne(t);switch(n){case 3:return Ae(t,n);case 9:return Ae(t,n);case 4:{const i=t;if(y(i,"k")&&i.k)return e.interpolate(e.named(i.k));if(y(i,"key")&&i.key)return e.interpolate(e.named(i.key));throw Le(n)}case 5:{const i=t;if(y(i,"i")&&a(i.i))return e.interpolate(e.list(i.i));if(y(i,"index")&&a(i.index))return e.interpolate(e.list(i.index));throw Le(n)}case 6:{const n=t,i=Me(n),r=Ie(n);return e.linked(Te(e,r),i?Te(e,i):void 0,e.type)}case 7:return Ae(t,n);case 8:return Ae(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const De=["t","type"];function Ne(e){return Re(e,De)}const Oe=["v","value"];function Ae(e,t){const n=Re(e,Oe);if(n)return n;throw Le(t)}const Pe=["m","modifier"];function Me(e){return Re(e,Pe)}const Be=["k","key"];function Ie(e){const t=Re(e,Be);if(t)return t;throw Le(6)}function Re(e,t,n){for(let i=0;i<t.length;i++){const n=t[i];if(y(e,n)&&null!=e[n])return e[n]}return n}function Le(e){return new Error(`unhandled node type: ${e}`)}const Fe=e=>e;let Ve=p();function $e(e){return S(e)&&0===Ne(e)&&(y(e,"b")||y(e,"body"))}function ze(e,t={}){let n=!1;const i=t.onError||F;return t.onError=e=>{n=!0,i(e)},{...fe(e,t),detectError:n}}function Ue(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&k(e)){!_(t.warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||Fe,i=n(e),r=Ve[i];if(r)return r;const{ast:o,detectError:s}=ze(e,{...t,location:!1,jit:!0}),a=ge(o);return s?a:Ve[i]=a}{0;const t=e.cacheKey;if(t){const n=Ve[t];return n||(Ve[t]=ge(e))}return ge(e)}}let je=null;function He(e){je=e}function Ge(e,t,n){je&&je.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const We=qe("function:translate");function qe(e){return t=>je&&je.emit(e,t)}const Ke={INVALID_ARGUMENT:R,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ye=24;function Xe(e){return L(e,null,void 0)}Ke.INVALID_ARGUMENT,Ke.INVALID_DATE_ARGUMENT,Ke.INVALID_ISO_DATE_ARGUMENT,Ke.NOT_SUPPORT_NON_STRING_MESSAGE,Ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Ke.NOT_SUPPORT_LOCALE_TYPE;function Je(e,t){return null!=t.locale?Ze(t.locale):Ze(e.locale)}let Qe;function Ze(e){if(k(e))return e;if(w(e)){if(e.resolvedOnce&&null!=Qe)return Qe;if("Function"===e.constructor.name){const t=e();if(x(t))throw Xe(Ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Qe=t}throw Xe(Ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Xe(Ke.NOT_SUPPORT_LOCALE_TYPE)}function et(e,t,n){return[...new Set([n,...b(t)?t:S(t)?Object.keys(t):k(t)?[t]:[n]])]}function tt(e,t,n){const i=k(n)?n:bt,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(i);if(!o){o=[];let e=[n];while(b(e))e=nt(o,e,t);const s=b(t)||!T(t)?t:t["default"]?t["default"]:null;e=k(s)?[s]:s,b(e)&&nt(o,e,!1),r.__localeChainCache.set(i,o)}return o}function nt(e,t,n){let i=!0;for(let r=0;r<t.length&&_(i);r++){const o=t[r];k(o)&&(i=it(e,t[r],n))}return i}function it(e,t,n){let i;const r=t.split("-");do{const t=r.join("-");i=rt(e,t,n),r.splice(-1,1)}while(r.length&&!0===i);return i}function rt(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(b(n)||T(n))&&n[r]&&(i=n[r])}return i}const ot=[];ot[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},ot[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},ot[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},ot[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},ot[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},ot[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},ot[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const st=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function at(e){return st.test(e)}function lt(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function ct(e){if(void 0===e||null===e)return"o";const t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function ut(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(at(t)?lt(t):"*"+t)}function dt(e){const t=[];let n,i,r,o,s,a,l,c=-1,u=0,d=0;const h=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,h[0](),!0}h[0]=()=>{void 0===i?i=r:i+=r},h[1]=()=>{void 0!==i&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),d++},h[3]=()=>{if(d>0)d--,u=4,h[0]();else{if(d=0,void 0===i)return!1;if(i=ut(i),!1===i)return!1;h[1]()}};while(null!==u)if(c++,n=e[c],"\\"!==n||!p()){if(o=ct(n),l=ot[u],s=l[o]||l["l"]||8,8===s)return;if(u=s[0],void 0!==s[1]&&(a=h[s[1]],a&&(r=n,!1===a())))return;if(7===u)return t}}const ht=new Map;function pt(e,t){return S(e)?e[t]:null}function ft(e,t){if(!S(e))return null;let n=ht.get(t);if(n||(n=dt(t),n&&ht.set(t,n)),!n)return null;const i=n.length;let r=e,o=0;while(o<i){const e=r[n[o]];if(void 0===e)return null;if(w(r))return null;r=e,o++}return r}const mt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},gt=8;mt.NOT_FOUND_KEY,mt.FALLBACK_TO_TRANSLATE,mt.CANNOT_FORMAT_NUMBER,mt.FALLBACK_TO_NUMBER_FORMAT,mt.CANNOT_FORMAT_DATE,mt.FALLBACK_TO_DATE_FORMAT,mt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER;const vt="10.0.6",yt=-1,bt="en-US",wt="",kt=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _t(){return{upper:(e,t)=>"text"===t&&k(e)?e.toUpperCase():"vnode"===t&&S(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&k(e)?e.toLowerCase():"vnode"===t&&S(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&k(e)?kt(e):"vnode"===t&&S(e)&&"__v_isVNode"in e?kt(e.children):e}}let St,xt,Ct;function Et(e){St=e}function Tt(e){xt=e}function Dt(e){Ct=e}let Nt=null;const Ot=e=>{Nt=e},At=()=>Nt;let Pt=null;const Mt=e=>{Pt=e},Bt=()=>Pt;let It=0;function Rt(e={}){const t=w(e.onWarn)?e.onWarn:O,n=k(e.version)?e.version:vt,i=k(e.locale)||w(e.locale)?e.locale:bt,r=w(i)?bt:i,o=b(e.fallbackLocale)||T(e.fallbackLocale)||k(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,s=T(e.messages)?e.messages:Lt(r),a=T(e.datetimeFormats)?e.datetimeFormats:Lt(r),l=T(e.numberFormats)?e.numberFormats:Lt(r),u=d(p(),e.modifiers,_t()),h=e.pluralRules||p(),f=w(e.missing)?e.missing:null,m=!_(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,g=!_(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,v=!!e.fallbackFormat,y=!!e.unresolving,x=w(e.postTranslation)?e.postTranslation:null,C=T(e.processor)?e.processor:null,E=!_(e.warnHtmlMessage)||e.warnHtmlMessage,D=!!e.escapeParameter,N=w(e.messageCompiler)?e.messageCompiler:St;const A=w(e.messageResolver)?e.messageResolver:xt||pt,P=w(e.localeFallbacker)?e.localeFallbacker:Ct||et,M=S(e.fallbackContext)?e.fallbackContext:void 0,B=e,I=S(B.__datetimeFormatters)?B.__datetimeFormatters:new Map,R=S(B.__numberFormatters)?B.__numberFormatters:new Map,L=S(B.__meta)?B.__meta:{};It++;const F={version:n,cid:It,locale:i,fallbackLocale:o,messages:s,modifiers:u,pluralRules:h,missing:f,missingWarn:m,fallbackWarn:g,fallbackFormat:v,unresolving:y,postTranslation:x,processor:C,warnHtmlMessage:E,escapeParameter:D,messageCompiler:N,messageResolver:A,localeFallbacker:P,fallbackContext:M,onWarn:t,__meta:L};return F.datetimeFormats=a,F.numberFormats=l,F.__datetimeFormatters=I,F.__numberFormatters=R,__INTLIFY_PROD_DEVTOOLS__&&Ge(F,n,L),F}const Lt=e=>({[e]:p()});function Ft(e,t,n,i,r){const{missing:o,onWarn:s}=e;if(null!==o){const i=o(e,n,t,r);return k(i)?i:t}return t}function Vt(e,t,n){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function $t(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function zt(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let i=n+1;i<t.length;i++)if($t(e,t[i]))return!0;return!1}const Ut="undefined"!==typeof Intl;Ut&&Intl.DateTimeFormat,Ut&&Intl.NumberFormat;function jt(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:r,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:a}=e;const[l,c,h,p]=Gt(...t),f=_(h.missingWarn)?h.missingWarn:e.missingWarn,m=(_(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,!!h.part),g=Je(e,h),v=s(e,r,g);if(!k(l)||""===l)return new Intl.DateTimeFormat(g,p).format(c);let y,b={},w=null,S=g,x=null;const C="datetime format";for(let u=0;u<v.length;u++){if(y=x=v[u],b=n[y]||{},w=b[l],T(w))break;Ft(e,l,y,f,C),S=x}if(!T(w)||!k(y))return i?yt:l;let E=`${y}__${l}`;u(p)||(E=`${E}__${JSON.stringify(p)}`);let D=a.get(E);return D||(D=new Intl.DateTimeFormat(y,d({},w,p)),a.set(E,D)),m?D.formatToParts(c):D.format(c)}const Ht=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Gt(...e){const[t,n,i,r]=e,o=p();let s,c=p();if(k(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Xe(Ke.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw Xe(Ke.INVALID_ISO_DATE_ARGUMENT)}}else if(l(t)){if(isNaN(t.getTime()))throw Xe(Ke.INVALID_DATE_ARGUMENT);s=t}else{if(!a(t))throw Xe(Ke.INVALID_ARGUMENT);s=t}return k(n)?o.key=n:T(n)&&Object.keys(n).forEach((e=>{Ht.includes(e)?c[e]=n[e]:o[e]=n[e]})),k(i)?o.locale=i:T(i)&&(c=i),T(r)&&(c=r),[o.key||"",s,o,c]}function Wt(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__datetimeFormatters.has(e)&&i.__datetimeFormatters.delete(e)}}function qt(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:r,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:a}=e;const[l,c,h,p]=Yt(...t),f=_(h.missingWarn)?h.missingWarn:e.missingWarn,m=(_(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,!!h.part),g=Je(e,h),v=s(e,r,g);if(!k(l)||""===l)return new Intl.NumberFormat(g,p).format(c);let y,b={},w=null,S=g,x=null;const C="number format";for(let u=0;u<v.length;u++){if(y=x=v[u],b=n[y]||{},w=b[l],T(w))break;Ft(e,l,y,f,C),S=x}if(!T(w)||!k(y))return i?yt:l;let E=`${y}__${l}`;u(p)||(E=`${E}__${JSON.stringify(p)}`);let D=a.get(E);return D||(D=new Intl.NumberFormat(y,d({},w,p)),a.set(E,D)),m?D.formatToParts(c):D.format(c)}const Kt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Yt(...e){const[t,n,i,r]=e,o=p();let s=p();if(!a(t))throw Xe(Ke.INVALID_ARGUMENT);const l=t;return k(n)?o.key=n:T(n)&&Object.keys(n).forEach((e=>{Kt.includes(e)?s[e]=n[e]:o[e]=n[e]})),k(i)?o.locale=i:T(i)&&(s=i),T(r)&&(s=r),[o.key||"",l,o,s]}function Xt(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__numberFormatters.has(e)&&i.__numberFormatters.delete(e)}}const Jt=e=>e,Qt=e=>"",Zt="text",en=e=>0===e.length?"":N(e),tn=D;function nn(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function rn(e){const t=a(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(a(e.named.count)||a(e.named.n))?a(e.named.count)?e.named.count:a(e.named.n)?e.named.n:t:t}function on(e,t){t.count||(t.count=e),t.n||(t.n=e)}function sn(e={}){const t=e.locale,n=rn(e),i=S(e.pluralRules)&&k(t)&&w(e.pluralRules[t])?e.pluralRules[t]:nn,r=S(e.pluralRules)&&k(t)&&w(e.pluralRules[t])?nn:void 0,o=e=>e[i(n,e.length,r)],s=e.list||[],l=e=>s[e],c=e.named||p();a(e.pluralIndex)&&on(n,c);const u=e=>c[e];function h(t,n){const i=w(e.messages)?e.messages(t,!!n):!!S(e.messages)&&e.messages[t];return i||(e.parent?e.parent.message(t):Qt)}const f=t=>e.modifiers?e.modifiers[t]:Jt,m=T(e.processor)&&w(e.processor.normalize)?e.processor.normalize:en,g=T(e.processor)&&w(e.processor.interpolate)?e.processor.interpolate:tn,v=T(e.processor)&&k(e.processor.type)?e.processor.type:Zt,y=(e,...t)=>{const[n,i]=t;let r="text",o="";1===t.length?S(n)?(o=n.modifier||o,r=n.type||r):k(n)&&(o=n||o):2===t.length&&(k(n)&&(o=n||o),k(i)&&(r=i||r));const s=h(e,!0)(_),a="vnode"===r&&b(s)&&o?s[0]:s;return o?f(o)(a,r):a},_={["list"]:l,["named"]:u,["plural"]:o,["linked"]:y,["message"]:h,["type"]:v,["interpolate"]:g,["normalize"]:m,["values"]:d(p(),s,c)};return _}const an=()=>"",ln=e=>w(e);function cn(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:r,messageCompiler:o,fallbackLocale:s,messages:a}=e,[l,c]=fn(...t),u=_(c.missingWarn)?c.missingWarn:e.missingWarn,h=_(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=_(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,g=k(c.default)||_(c.default)?_(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,v=n||null!=g&&(k(g)||w(g)),y=Je(e,c);f&&un(c);let[b,S,x]=m?[l,y,a[y]||p()]:dn(e,l,y,s,h,u),C=b,E=l;if(m||k(C)||$e(C)||ln(C)||v&&(C=g,E=C),!m&&(!(k(C)||$e(C)||ln(C))||!k(S)))return r?yt:l;let T=!1;const D=()=>{T=!0},N=ln(C)?C:hn(e,l,S,C,E,D);if(T)return C;const O=gn(e,S,x,c),A=sn(O),P=pn(e,N,A),M=i?i(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:k(l)?l:ln(C)?C.key:"",locale:S||(ln(C)?C.locale:""),format:k(C)?C:ln(C)?C.source:"",message:M};t.meta=d({},e.__meta,At()||{}),We(t)}return M}function un(e){b(e.list)?e.list=e.list.map((e=>k(e)?g(e):e)):S(e.named)&&Object.keys(e.named).forEach((t=>{k(e.named[t])&&(e.named[t]=g(e.named[t]))}))}function dn(e,t,n,i,r,o){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,i,n);let d,h=p(),f=null,m=n,g=null;const v="translate";for(let y=0;y<u.length;y++){d=g=u[y],h=s[d]||p();if(null===(f=l(h,t))&&(f=h[t]),k(f)||$e(f)||ln(f))break;if(!zt(d,u)){const n=Ft(e,t,d,o,v);n!==t&&(f=n)}m=g}return[f,d,h]}function hn(e,t,n,i,r,o){const{messageCompiler:s,warnHtmlMessage:a}=e;if(ln(i)){const e=i;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>i;return e.locale=n,e.key=t,e}const l=s(i,mn(e,n,r,i,a,o));return l.locale=n,l.key=t,l.source=i,l}function pn(e,t,n){const i=t(n);return i}function fn(...e){const[t,n,i]=e,r=p();if(!k(t)&&!a(t)&&!ln(t)&&!$e(t))throw Xe(Ke.INVALID_ARGUMENT);const o=a(t)?String(t):(ln(t),t);return a(n)?r.plural=n:k(n)?r.default=n:T(n)&&!u(n)?r.named=n:b(n)&&(r.list=n),a(i)?r.plural=i:k(i)?r.default=i:T(i)&&d(r,i),[o,r]}function mn(e,t,n,i,r,s){return{locale:t,key:n,warnHtmlMessage:r,onError:e=>{throw s&&s(e),e},onCacheKey:e=>o(t,n,e)}}function gn(e,t,n,i){const{modifiers:r,pluralRules:o,messageResolver:s,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,h=(i,r)=>{let o=s(n,i);if(null==o&&(d||r)){const[,,n]=dn(d||e,i,t,l,c,u);o=s(n,i)}if(k(o)||$e(o)){let n=!1;const r=()=>{n=!0},s=hn(e,i,t,o,i,r);return n?an:s}return ln(o)?o:an},p={locale:t,modifiers:r,pluralRules:o,messages:h};return e.processor&&(p.processor=e.processor),i.list&&(p.list=i.list),i.named&&(p.named=i.named),a(i.plural)&&(p.pluralIndex=i.plural),p}me();var vn=n(9726);
|
|
29
29
|
/*!
|
|
30
|
-
* vue-i18n v10.0.
|
|
31
|
-
* (c)
|
|
30
|
+
* vue-i18n v10.0.6
|
|
31
|
+
* (c) 2025 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const Vn="10.0.5";function $n(){"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(h().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(h().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(h().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(h().__INTLIFY_PROD_DEVTOOLS__=!1)}const zn={FALLBACK_TO_ROOT:Lt,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11};zn.FALLBACK_TO_ROOT,zn.NOT_FOUND_PARENT_SCOPE,zn.IGNORE_OBJ_FLATTEN,zn.DEPRECATE_TC;const Un={UNEXPECTED_RETURN_TYPE:gt,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function jn(e,...t){return re(e,null,void 0)}Un.UNEXPECTED_RETURN_TYPE,Un.INVALID_ARGUMENT,Un.MUST_BE_CALL_SETUP_TOP,Un.NOT_INSTALLED,Un.UNEXPECTED_ERROR,Un.REQUIRED_VALUE,Un.INVALID_VALUE,Un.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Un.NOT_INSTALLED_WITH_PROVIDE,Un.NOT_COMPATIBLE_LEGACY_VUE_I18N,Un.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const Hn=r("__translateVNode"),Gn=r("__datetimeParts"),Wn=r("__numberParts"),qn=r("__setPluralRules");r("__intlifyMeta");const Kn=r("__injectWithOption"),Yn=r("__dispose");function Xn(e){if(!b(e))return e;for(const t in e)if(f(e,t))if(t.includes(".")){const n=t.split("."),i=n.length-1;let r=e,o=!1;for(let e=0;e<i;e++){if(n[e]in r||(r[n[e]]=u()),!b(r[n[e]])){o=!0;break}r=r[n[e]]}o||(r[n[i]]=e[t],delete e[t]),b(r[n[i]])&&Xn(r[n[i]])}else b(e[t])&&Xn(e[t]);return e}function Jn(e,t){const{messages:n,__i18n:i,messageResolver:r,flatJson:o}=t,s=_(n)?n:m(i)?u():{[e]:u()};if(m(i)&&i.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||u(),x(n,s[t])):x(n,s)}else v(e)&&x(JSON.parse(e),s)})),null==r&&o)for(const a in s)f(s,a)&&Xn(s[a]);return s}function Qn(e){return e.type}function Zn(e,t,n){let i=b(t.messages)?t.messages:u();"__i18nGlobal"in n&&(i=Jn(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,i[t])})),b(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(b(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function ei(e){return(0,Fn.createVNode)(Fn.Text,null,e,0)}const ti="__INTLIFY_META__",ni=()=>[],ii=()=>!1;let ri=0;function oi(e){return(t,n,i,r)=>e(n,i,(0,Fn.getCurrentInstance)()||void 0,r)}const si=()=>{const e=(0,Fn.getCurrentInstance)();let t=null;return e&&(t=Qn(e)[ti])?{[ti]:t}:null};function ai(e={}){const{__root:t,__injectWithOption:n}=e,r=void 0===t,a=e.flatJson,c=i?Fn.ref:Fn.shallowRef;let u=!y(e.inheritLocale)||e.inheritLocale;const d=c(t&&u?t.locale.value:v(e.locale)?e.locale:$t),h=c(t&&u?t.fallbackLocale.value:v(e.fallbackLocale)||m(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:d.value),p=c(Jn(d.value,e)),w=c(_(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),k=c(_(e.numberFormats)?e.numberFormats:{[d.value]:{}});let S=t?t.missingWarn:!y(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,C=t?t.fallbackWarn:!y(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,E=t?t.fallbackRoot:!y(e.fallbackRoot)||e.fallbackRoot,T=!!e.fallbackFormat,D=g(e.missing)?e.missing:null,N=g(e.missing)?oi(e.missing):null,O=g(e.postTranslation)?e.postTranslation:null,A=t?t.warnHtmlMessage:!y(e.warnHtmlMessage)||e.warnHtmlMessage,P=!!e.escapeParameter;const M=t?t.modifiers:_(e.modifiers)?e.modifiers:{};let B,I=e.pluralRules||t&&t.pluralRules;const R=()=>{r&&en(null);const t={version:Vn,locale:d.value,fallbackLocale:h.value,messages:p.value,modifiers:M,pluralRules:I,missing:null===N?void 0:N,missingWarn:S,fallbackWarn:C,fallbackFormat:T,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:A,escapeParameter:P,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=w.value,t.numberFormats=k.value,t.__datetimeFormatters=_(B)?B.__datetimeFormatters:void 0,t.__numberFormatters=_(B)?B.__numberFormatters:void 0;const n=rn(t);return r&&en(n),n};function L(){return[d.value,h.value,p.value,w.value,k.value]}B=R(),an(B,d.value,h.value);const F=(0,Fn.computed)({get:()=>d.value,set:e=>{d.value=e,B.locale=d.value}}),V=(0,Fn.computed)({get:()=>h.value,set:e=>{h.value=e,B.fallbackLocale=h.value,an(B,d.value,e)}}),$=(0,Fn.computed)((()=>p.value)),z=(0,Fn.computed)((()=>w.value)),U=(0,Fn.computed)((()=>k.value));function j(){return g(O)?O:null}function H(e){O=e,B.postTranslation=e}function G(){return D}function W(e){null!==e&&(N=oi(e)),D=e,B.missing=N}const q=(e,n,i,s,a,l)=>{let c;L();try{__INTLIFY_PROD_DEVTOOLS__&&Jt(si()),r||(B.fallbackContext=t?tn():void 0),c=e(B)}finally{__INTLIFY_PROD_DEVTOOLS__&&Jt(null),r||(B.fallbackContext=void 0)}if("translate exists"!==i&&o(c)&&c===Vt||"translate exists"===i&&!c){const[e,i]=n();return t&&E?s(t):a(e)}if(l(c))return c;throw jn(Un.UNEXPECTED_RETURN_TYPE)};function K(...e){return q((t=>Reflect.apply(On,null,[t,...e])),(()=>In(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}function Y(...e){const[t,n,i]=e;if(i&&!b(i))throw jn(Un.INVALID_ARGUMENT);return K(t,n,l({resolvedMessage:!0},i||{}))}function X(...e){return q((t=>Reflect.apply(dn,null,[t,...e])),(()=>pn(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>zt),(e=>v(e)))}function J(...e){return q((t=>Reflect.apply(mn,null,[t,...e])),(()=>vn(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>zt),(e=>v(e)))}function Q(e){return e.map((e=>v(e)||o(e)||y(e)?ei(String(e)):e))}const Z=e=>e,ee={normalize:Q,interpolate:Z,type:"vnode"};function te(...e){return q((t=>{let n;const i=t;try{i.processor=ee,n=Reflect.apply(On,null,[i,...e])}finally{i.processor=null}return n}),(()=>In(...e)),"translate",(t=>t[Hn](...e)),(e=>[ei(e)]),(e=>m(e)))}function ne(...e){return q((t=>Reflect.apply(mn,null,[t,...e])),(()=>vn(...e)),"number format",(t=>t[Wn](...e)),ni,(e=>v(e)||m(e)))}function ie(...e){return q((t=>Reflect.apply(dn,null,[t,...e])),(()=>pn(...e)),"datetime format",(t=>t[Gn](...e)),ni,(e=>v(e)||m(e)))}function re(e){I=e,B.pluralRules=I}function oe(e,t){return q((()=>{if(!e)return!1;const n=v(t)?t:d.value,i=le(n),r=B.messageResolver(i,e);return at(r)||Nn(r)||v(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),ii,(e=>y(e)))}function se(e){let t=null;const n=_t(B,h.value,d.value);for(let i=0;i<n.length;i++){const r=p.value[n[i]]||{},o=B.messageResolver(r,e);if(null!=o){t=o;break}}return t}function ae(e){const n=se(e);return null!=n?n:t&&t.tm(e)||{}}function le(e){return p.value[e]||{}}function ce(e,t){if(a){const n={[e]:t};for(const e in n)f(n,e)&&Xn(n[e]);t=n[e]}p.value[e]=t,B.messages=p.value}function ue(e,t){p.value[e]=p.value[e]||{};const n={[e]:t};if(a)for(const i in n)f(n,i)&&Xn(n[i]);t=n[e],x(t,p.value[e]),B.messages=p.value}function de(e){return w.value[e]||{}}function he(e,t){w.value[e]=t,B.datetimeFormats=w.value,fn(B,e,t)}function pe(e,t){w.value[e]=l(w.value[e]||{},t),B.datetimeFormats=w.value,fn(B,e,t)}function fe(e){return k.value[e]||{}}function me(e,t){k.value[e]=t,B.numberFormats=k.value,yn(B,e,t)}function ge(e,t){k.value[e]=l(k.value[e]||{},t),B.numberFormats=k.value,yn(B,e,t)}ri++,t&&i&&((0,Fn.watch)(t.locale,(e=>{u&&(d.value=e,B.locale=e,an(B,d.value,h.value))})),(0,Fn.watch)(t.fallbackLocale,(e=>{u&&(h.value=e,B.fallbackLocale=e,an(B,d.value,h.value))})));const ve={id:ri,locale:F,fallbackLocale:V,get inheritLocale(){return u},set inheritLocale(e){u=e,e&&t&&(d.value=t.locale.value,h.value=t.fallbackLocale.value,an(B,d.value,h.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:$,get modifiers(){return M},get pluralRules(){return I||{}},get isGlobal(){return r},get missingWarn(){return S},set missingWarn(e){S=e,B.missingWarn=S},get fallbackWarn(){return C},set fallbackWarn(e){C=e,B.fallbackWarn=C},get fallbackRoot(){return E},set fallbackRoot(e){E=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,B.fallbackFormat=T},get warnHtmlMessage(){return A},set warnHtmlMessage(e){A=e,B.warnHtmlMessage=e},get escapeParameter(){return P},set escapeParameter(e){P=e,B.escapeParameter=e},t:K,getLocaleMessage:le,setLocaleMessage:ce,mergeLocaleMessage:ue,getPostTranslationHandler:j,setPostTranslationHandler:H,getMissingHandler:G,setMissingHandler:W,[qn]:re};return ve.datetimeFormats=z,ve.numberFormats=U,ve.rt=Y,ve.te=oe,ve.tm=ae,ve.d=X,ve.n=J,ve.getDateTimeFormat=de,ve.setDateTimeFormat=he,ve.mergeDateTimeFormat=pe,ve.getNumberFormat=fe,ve.setNumberFormat=me,ve.mergeNumberFormat=ge,ve[Kn]=n,ve[Hn]=te,ve[Gn]=ie,ve[Wn]=ne,ve}function li(e){const t=v(e.locale)?e.locale:$t,n=v(e.fallbackLocale)||m(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,i=g(e.missing)?e.missing:void 0,r=!y(e.silentTranslationWarn)&&!s(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!y(e.silentFallbackWarn)&&!s(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!y(e.fallbackRoot)||e.fallbackRoot,c=!!e.formatFallbackMessages,u=_(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,h=g(e.postTranslation)?e.postTranslation:void 0,p=!v(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,b=!y(e.sync)||e.sync;let w=e.messages;if(_(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);w=n.reduce(((e,n)=>{const i=e[n]||(e[n]={});return l(i,t[n]),e}),w||{})}const{__i18n:k,__root:S,__injectWithOption:x}=e,C=e.datetimeFormats,E=e.numberFormats,T=e.flatJson;return{locale:t,fallbackLocale:n,messages:w,flatJson:T,datetimeFormats:C,numberFormats:E,missing:i,missingWarn:r,fallbackWarn:o,fallbackRoot:a,fallbackFormat:c,modifiers:u,pluralRules:d,postTranslation:h,warnHtmlMessage:p,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:b,__i18n:k,__root:S,__injectWithOption:x}}function ci(e={}){const t=ai(li(e)),{__extender:n}=e,i={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return y(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=y(e)?!e:e},get silentFallbackWarn(){return y(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=y(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},tc(...e){const[n,i,r]=e,s={plural:1};let a=null,l=null;if(!v(n))throw jn(Un.INVALID_ARGUMENT);const c=n;return v(i)?s.locale=i:o(i)?s.plural=i:m(i)?a=i:_(i)&&(l=i),v(r)?s.locale=r:m(r)?a=r:_(r)&&(l=r),Reflect.apply(t.t,t,[c,a||l||{},s])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return i.__extender=n,i}function ui(e,t,n){return{beforeCreate(){const i=(0,Fn.getCurrentInstance)();if(!i)throw jn(Un.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=di(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=ci(i);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=di(e,r);else{this.$i18n=ci({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Zn(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(i,this.$i18n)},mounted(){0},unmounted(){const e=(0,Fn.getCurrentInstance)();if(!e)throw jn(Un.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function di(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[qn](t.pluralizationRules||e.pluralizationRules);const n=Jn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const hi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function pi({slots:e},t){if(1===t.length&&"default"===t[0]){const t=e.default?e.default():[];return t.reduce(((e,t)=>[...e,...t.type===Fn.Fragment?t.children:[t]]),[])}return t.reduce(((t,n)=>{const i=e[n];return i&&(t[n]=i()),t}),u())}function fi(){return Fn.Fragment}const mi=(0,Fn.defineComponent)({name:"i18n-t",props:l({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},hi),setup(e,t){const{slots:n,attrs:i}=t,r=e.i18n||Oi({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s=u();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=v(e.plural)?+e.plural:e.plural);const a=pi(t,o),c=r[Hn](e.keypath,a,s),d=l(u(),i),h=v(e.tag)||b(e.tag)?e.tag:fi();return(0,Fn.h)(h,d,c)}}}),gi=mi;function vi(e){return m(e)&&!v(e[0])}function yi(e,t,n,i){const{slots:r,attrs:o}=t;return()=>{const t={part:!0};let s=u();e.locale&&(t.locale=e.locale),v(e.format)?t.key=e.format:b(e.format)&&(v(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,i)=>n.includes(i)?l(u(),t,{[i]:e.format[i]}):t),u()));const a=i(e.value,t,s);let c=[t.key];m(a)?c=a.map(((e,t)=>{const n=r[e.type],i=n?n({[e.type]:e.value,index:t,parts:a}):[e.value];return vi(i)&&(i[0].key=`${e.type}-${t}`),i})):v(a)&&(c=[a]);const d=l(u(),o),h=v(e.tag)||b(e.tag)?e.tag:fi();return(0,Fn.h)(h,d,c)}}const bi=(0,Fn.defineComponent)({name:"i18n-n",props:l({value:{type:Number,required:!0},format:{type:[String,Object]}},hi),setup(e,t){const n=e.i18n||Oi({useScope:e.scope,__useComponent:!0});return yi(e,t,gn,((...e)=>n[Wn](...e)))}}),wi=bi,ki=(0,Fn.defineComponent)({name:"i18n-d",props:l({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},hi),setup(e,t){const n=e.i18n||Oi({useScope:e.scope,__useComponent:!0});return yi(e,t,hn,((...e)=>n[Gn](...e)))}}),_i=ki;function Si(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return null!=i?i.__composer:e.global.__composer}}function xi(e){const t=t=>{const{instance:n,value:i}=t;if(!n||!n.$)throw jn(Un.UNEXPECTED_ERROR);const r=Si(e,n.$),o=Ci(i);return[Reflect.apply(r.t,r,[...Ei(o)]),r]},n=(n,r)=>{const[o,s]=t(r);i&&e.global===s&&(n.__i18nWatcher=(0,Fn.watch)(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=s,n.textContent=o},r=e=>{i&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},o=(e,{value:t})=>{if(e.__composer){const n=e.__composer,i=Ci(t);e.textContent=Reflect.apply(n.t,n,[...Ei(i)])}},s=e=>{const[n]=t(e);return{textContent:n}};return{created:n,unmounted:r,beforeUpdate:o,getSSRProps:s}}function Ci(e){if(v(e))return{path:e};if(_(e)){if(!("path"in e))throw jn(Un.REQUIRED_VALUE,"path");return e}throw jn(Un.INVALID_VALUE)}function Ei(e){const{path:t,locale:n,args:i,choice:r,plural:s}=e,a={},l=i||{};return v(n)&&(a.locale=n),o(r)&&(a.plural=r),o(s)&&(a.plural=s),[t,l,a]}function Ti(e,t,...n){const i=_(n[0])?n[0]:{},r=!y(i.globalInstall)||i.globalInstall;r&&([gi.name,"I18nT"].forEach((t=>e.component(t,gi))),[wi.name,"I18nN"].forEach((t=>e.component(t,wi))),[_i.name,"I18nD"].forEach((t=>e.component(t,_i)))),e.directive("t",xi(t))}const Di=r("global-vue-i18n");function Ni(e={},t){const n=__VUE_I18N_LEGACY_API__&&y(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=!y(e.globalInjection)||e.globalInjection,o=new Map,[s,a]=Ai(e,n),l=r("");function c(e){return o.get(e)||null}function u(e,t){o.set(e,t)}function d(e){o.delete(e)}const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(e,...t){if(e.__VUE_I18N_SYMBOL__=l,e.provide(e.__VUE_I18N_SYMBOL__,h),_(t[0])){const e=t[0];h.__composerExtend=e.__composerExtend,h.__vueI18nExtend=e.__vueI18nExtend}let r=null;!n&&i&&(r=$i(e,h.global)),__VUE_I18N_FULL_INSTALL__&&Ti(e,h,...t),__VUE_I18N_LEGACY_API__&&n&&e.mixin(ui(a,a.__composer,h));const o=e.unmount;e.unmount=()=>{r&&r(),h.dispose(),o()}},get global(){return a},dispose(){s.stop()},__instances:o,__getInstance:c,__setInstance:u,__deleteInstance:d};return h}function Oi(e={}){const t=(0,Fn.getCurrentInstance)();if(null==t)throw jn(Un.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw jn(Un.NOT_INSTALLED);const n=Pi(t),i=Bi(n),r=Qn(t),o=Mi(e,r);if("global"===o)return Zn(i,e,r),i;if("parent"===o){let r=Ii(n,t,e.__useComponent);return null==r&&(r=i),r}const s=n;let a=s.__getInstance(t);if(null==a){const n=l({},e);"__i18n"in r&&(n.__i18n=r.__i18n),i&&(n.__root=i),a=ai(n),s.__composerExtend&&(a[Yn]=s.__composerExtend(a)),Li(s,t,a),s.__setInstance(t,a)}return a}function Ai(e,t,n){const i=(0,Fn.effectScope)(),r=__VUE_I18N_LEGACY_API__&&t?i.run((()=>ci(e))):i.run((()=>ai(e)));if(null==r)throw jn(Un.UNEXPECTED_ERROR);return[i,r]}function Pi(e){const t=(0,Fn.inject)(e.isCE?Di:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw jn(e.isCE?Un.NOT_INSTALLED_WITH_PROVIDE:Un.UNEXPECTED_ERROR);return t}function Mi(e,t){return a(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Bi(e){return"composition"===e.mode?e.global:e.global.__composer}function Ii(e,t,n=!1){let i=null;const r=t.root;let o=Ri(t,n);while(null!=o){const t=e;if("composition"===e.mode)i=t.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(o);null!=e&&(i=e.__composer,n&&i&&!i[Kn]&&(i=null))}if(null!=i)break;if(r===o)break;o=o.parent}return i}function Ri(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function Li(e,t,n){(0,Fn.onMounted)((()=>{0}),t),(0,Fn.onUnmounted)((()=>{const i=n;e.__deleteInstance(t);const r=i[Yn];r&&(r(),delete i[Yn])}),t)}const Fi=["locale","fallbackLocale","availableLocales"],Vi=["t","rt","d","n","tm","te"];function $i(e,t){const n=Object.create(null);Fi.forEach((e=>{const i=Object.getOwnPropertyDescriptor(t,e);if(!i)throw jn(Un.UNEXPECTED_ERROR);const r=(0,Fn.isRef)(i.value)?{get(){return i.value.value},set(e){i.value.value=e}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,Vi.forEach((n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw jn(Un.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}));const i=()=>{delete e.config.globalProperties.$i18n,Vi.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return i}if($n(),qt(ct),Kt(It),Yt(_t),__INTLIFY_PROD_DEVTOOLS__){const e=h();e.__INTLIFY__=!0,dt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},5155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rect=void 0;const i=n(4892),r=n(4723),o=n(8871),s=n(4060),a=n(5483);class l extends r.Shape{_sceneFunc(e){const t=this.cornerRadius(),n=this.width(),i=this.height();e.beginPath(),t?s.Util.drawRoundedRectPath(e,n,i,t):e.rect(0,0,n,i),e.closePath(),e.fillStrokeShape(this)}}t.Rect=l,l.prototype.className="Rect",(0,o._registerNode)(l),i.Factory.addGetterSetter(l,"cornerRadius",0,(0,a.getNumberOrArrayOfNumbersValidator)(4))},5215:(e,t,n)=>{"use strict";n.d(t,{C6:()=>r,Cl:()=>o,Ju:()=>a,Tt:()=>s,gz:()=>c,zs:()=>l});
|
|
34
|
+
const yn="10.0.6";function bn(){"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(m().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(m().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(m().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(m().__INTLIFY_PROD_DEVTOOLS__=!1)}const wn={FALLBACK_TO_ROOT:gt,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11};wn.FALLBACK_TO_ROOT,wn.NOT_FOUND_PARENT_SCOPE,wn.IGNORE_OBJ_FLATTEN,wn.DEPRECATE_TC;const kn={UNEXPECTED_RETURN_TYPE:Ye,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function _n(e,...t){return L(e,null,void 0)}kn.UNEXPECTED_RETURN_TYPE,kn.INVALID_ARGUMENT,kn.MUST_BE_CALL_SETUP_TOP,kn.NOT_INSTALLED,kn.UNEXPECTED_ERROR,kn.REQUIRED_VALUE,kn.INVALID_VALUE,kn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,kn.NOT_INSTALLED_WITH_PROVIDE,kn.NOT_COMPATIBLE_LEGACY_VUE_I18N,kn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const Sn=r("__translateVNode"),xn=r("__datetimeParts"),Cn=r("__numberParts"),En=r("__setPluralRules");r("__intlifyMeta");const Tn=r("__injectWithOption"),Dn=r("__dispose");function Nn(e){if(!S(e))return e;for(const t in e)if(y(e,t))if(t.includes(".")){const n=t.split("."),i=n.length-1;let r=e,o=!1;for(let e=0;e<i;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);if(n[e]in r||(r[n[e]]=p()),!S(r[n[e]])){o=!0;break}r=r[n[e]]}o||(r[n[i]]=e[t],delete e[t]),S(r[n[i]])&&Nn(r[n[i]])}else S(e[t])&&Nn(e[t]);return e}function On(e,t){const{messages:n,__i18n:i,messageResolver:r,flatJson:o}=t,s=T(n)?n:b(i)?p():{[e]:p()};if(b(i)&&i.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||p(),P(n,s[t])):P(n,s)}else k(e)&&P(JSON.parse(e),s)})),null==r&&o)for(const a in s)y(s,a)&&Nn(s[a]);return s}function An(e){return e.type}function Pn(e,t,n){let i=S(t.messages)?t.messages:p();"__i18nGlobal"in n&&(i=On(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,i[t])})),S(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(S(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Mn(e){return(0,vn.createVNode)(vn.Text,null,e,0)}const Bn="__INTLIFY_META__",In=()=>[],Rn=()=>!1;let Ln=0;function Fn(e){return(t,n,i,r)=>e(n,i,(0,vn.getCurrentInstance)()||void 0,r)}const Vn=()=>{const e=(0,vn.getCurrentInstance)();let t=null;return e&&(t=An(e)[Bn])?{[Bn]:t}:null};function $n(e={}){const{__root:t,__injectWithOption:n}=e,r=void 0===t,o=e.flatJson,s=i?vn.ref:vn.shallowRef;let l=!_(e.inheritLocale)||e.inheritLocale;const u=s(t&&l?t.locale.value:k(e.locale)?e.locale:bt),h=s(t&&l?t.fallbackLocale.value:k(e.fallbackLocale)||b(e.fallbackLocale)||T(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:u.value),p=s(On(u.value,e)),f=s(T(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),m=s(T(e.numberFormats)?e.numberFormats:{[u.value]:{}});let g=t?t.missingWarn:!_(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,v=t?t.fallbackWarn:!_(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,x=t?t.fallbackRoot:!_(e.fallbackRoot)||e.fallbackRoot,C=!!e.fallbackFormat,E=w(e.missing)?e.missing:null,D=w(e.missing)?Fn(e.missing):null,N=w(e.postTranslation)?e.postTranslation:null,O=t?t.warnHtmlMessage:!_(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter;const M=t?t.modifiers:T(e.modifiers)?e.modifiers:{};let B,I=e.pluralRules||t&&t.pluralRules;const R=()=>{r&&Mt(null);const t={version:yn,locale:u.value,fallbackLocale:h.value,messages:p.value,modifiers:M,pluralRules:I,missing:null===D?void 0:D,missingWarn:g,fallbackWarn:v,fallbackFormat:C,unresolving:!0,postTranslation:null===N?void 0:N,warnHtmlMessage:O,escapeParameter:A,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=f.value,t.numberFormats=m.value,t.__datetimeFormatters=T(B)?B.__datetimeFormatters:void 0,t.__numberFormatters=T(B)?B.__numberFormatters:void 0;const n=Rt(t);return r&&Mt(n),n};function L(){return[u.value,h.value,p.value,f.value,m.value]}B=R(),Vt(B,u.value,h.value);const F=(0,vn.computed)({get:()=>u.value,set:e=>{u.value=e,B.locale=u.value}}),V=(0,vn.computed)({get:()=>h.value,set:e=>{h.value=e,B.fallbackLocale=h.value,Vt(B,u.value,e)}}),$=(0,vn.computed)((()=>p.value)),z=(0,vn.computed)((()=>f.value)),U=(0,vn.computed)((()=>m.value));function j(){return w(N)?N:null}function H(e){N=e,B.postTranslation=e}function G(){return E}function W(e){null!==e&&(D=Fn(e)),E=e,B.missing=D}const q=(e,n,i,o,s,l)=>{let c;L();try{__INTLIFY_PROD_DEVTOOLS__&&Ot(Vn()),r||(B.fallbackContext=t?Bt():void 0),c=e(B)}finally{__INTLIFY_PROD_DEVTOOLS__&&Ot(null),r||(B.fallbackContext=void 0)}if("translate exists"!==i&&a(c)&&c===yt||"translate exists"===i&&!c){const[e,i]=n();return t&&x?o(t):s(e)}if(l(c))return c;throw _n(kn.UNEXPECTED_RETURN_TYPE)};function K(...e){return q((t=>Reflect.apply(cn,null,[t,...e])),(()=>fn(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>k(e)))}function Y(...e){const[t,n,i]=e;if(i&&!S(i))throw _n(kn.INVALID_ARGUMENT);return K(t,n,d({resolvedMessage:!0},i||{}))}function X(...e){return q((t=>Reflect.apply(jt,null,[t,...e])),(()=>Gt(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>wt),(e=>k(e)))}function J(...e){return q((t=>Reflect.apply(qt,null,[t,...e])),(()=>Yt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>wt),(e=>k(e)))}function Q(e){return e.map((e=>k(e)||a(e)||_(e)?Mn(String(e)):e))}const Z=e=>e,ee={normalize:Q,interpolate:Z,type:"vnode"};function te(...e){return q((t=>{let n;const i=t;try{i.processor=ee,n=Reflect.apply(cn,null,[i,...e])}finally{i.processor=null}return n}),(()=>fn(...e)),"translate",(t=>t[Sn](...e)),(e=>[Mn(e)]),(e=>b(e)))}function ne(...e){return q((t=>Reflect.apply(qt,null,[t,...e])),(()=>Yt(...e)),"number format",(t=>t[Cn](...e)),In,(e=>k(e)||b(e)))}function ie(...e){return q((t=>Reflect.apply(jt,null,[t,...e])),(()=>Gt(...e)),"datetime format",(t=>t[xn](...e)),In,(e=>k(e)||b(e)))}function re(e){I=e,B.pluralRules=I}function oe(e,t){return q((()=>{if(!e)return!1;const n=k(t)?t:u.value,i=le(n),r=B.messageResolver(i,e);return $e(r)||ln(r)||k(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Rn,(e=>_(e)))}function se(e){let t=null;const n=tt(B,h.value,u.value);for(let i=0;i<n.length;i++){const r=p.value[n[i]]||{},o=B.messageResolver(r,e);if(null!=o){t=o;break}}return t}function ae(e){const n=se(e);return null!=n?n:t&&t.tm(e)||{}}function le(e){return p.value[e]||{}}function ce(e,t){if(o){const n={[e]:t};for(const e in n)y(n,e)&&Nn(n[e]);t=n[e]}p.value[e]=t,B.messages=p.value}function ue(e,t){p.value[e]=p.value[e]||{};const n={[e]:t};if(o)for(const i in n)y(n,i)&&Nn(n[i]);t=n[e],P(t,p.value[e]),B.messages=p.value}function de(e){return f.value[e]||{}}function he(e,t){f.value[e]=t,B.datetimeFormats=f.value,Wt(B,e,t)}function pe(e,t){f.value[e]=d(f.value[e]||{},t),B.datetimeFormats=f.value,Wt(B,e,t)}function fe(e){return m.value[e]||{}}function me(e,t){m.value[e]=t,B.numberFormats=m.value,Xt(B,e,t)}function ge(e,t){m.value[e]=d(m.value[e]||{},t),B.numberFormats=m.value,Xt(B,e,t)}Ln++,t&&i&&((0,vn.watch)(t.locale,(e=>{l&&(u.value=e,B.locale=e,Vt(B,u.value,h.value))})),(0,vn.watch)(t.fallbackLocale,(e=>{l&&(h.value=e,B.fallbackLocale=e,Vt(B,u.value,h.value))})));const ve={id:Ln,locale:F,fallbackLocale:V,get inheritLocale(){return l},set inheritLocale(e){l=e,e&&t&&(u.value=t.locale.value,h.value=t.fallbackLocale.value,Vt(B,u.value,h.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:$,get modifiers(){return M},get pluralRules(){return I||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(e){g=e,B.missingWarn=g},get fallbackWarn(){return v},set fallbackWarn(e){v=e,B.fallbackWarn=v},get fallbackRoot(){return x},set fallbackRoot(e){x=e},get fallbackFormat(){return C},set fallbackFormat(e){C=e,B.fallbackFormat=C},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,B.warnHtmlMessage=e},get escapeParameter(){return A},set escapeParameter(e){A=e,B.escapeParameter=e},t:K,getLocaleMessage:le,setLocaleMessage:ce,mergeLocaleMessage:ue,getPostTranslationHandler:j,setPostTranslationHandler:H,getMissingHandler:G,setMissingHandler:W,[En]:re};return ve.datetimeFormats=z,ve.numberFormats=U,ve.rt=Y,ve.te=oe,ve.tm=ae,ve.d=X,ve.n=J,ve.getDateTimeFormat=de,ve.setDateTimeFormat=he,ve.mergeDateTimeFormat=pe,ve.getNumberFormat=fe,ve.setNumberFormat=me,ve.mergeNumberFormat=ge,ve[Tn]=n,ve[Sn]=te,ve[xn]=ie,ve[Cn]=ne,ve}function zn(e){const t=k(e.locale)?e.locale:bt,n=k(e.fallbackLocale)||b(e.fallbackLocale)||T(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,i=w(e.missing)?e.missing:void 0,r=!_(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!_(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!_(e.fallbackRoot)||e.fallbackRoot,a=!!e.formatFallbackMessages,l=T(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,h=w(e.postTranslation)?e.postTranslation:void 0,p=!k(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,m=!_(e.sync)||e.sync;let g=e.messages;if(T(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);g=n.reduce(((e,n)=>{const i=e[n]||(e[n]={});return d(i,t[n]),e}),g||{})}const{__i18n:v,__root:y,__injectWithOption:S}=e,x=e.datetimeFormats,C=e.numberFormats,E=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:E,datetimeFormats:x,numberFormats:C,missing:i,missingWarn:r,fallbackWarn:o,fallbackRoot:s,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:h,warnHtmlMessage:p,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:m,__i18n:v,__root:y,__injectWithOption:S}}function Un(e={}){const t=$n(zn(e)),{__extender:n}=e,i={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return _(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=_(e)?!e:e},get silentFallbackWarn(){return _(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=_(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},tc(...e){const[n,i,r]=e,o={plural:1};let s=null,l=null;if(!k(n))throw _n(kn.INVALID_ARGUMENT);const c=n;return k(i)?o.locale=i:a(i)?o.plural=i:b(i)?s=i:T(i)&&(l=i),k(r)?o.locale=r:b(r)?s=r:T(r)&&(l=r),Reflect.apply(t.t,t,[c,s||l||{},o])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return i.__extender=n,i}function jn(e,t,n){return{beforeCreate(){const i=(0,vn.getCurrentInstance)();if(!i)throw _n(kn.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=Hn(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=Un(i);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Hn(e,r);else{this.$i18n=Un({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Pn(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(i,this.$i18n)},mounted(){0},unmounted(){const e=(0,vn.getCurrentInstance)();if(!e)throw _n(kn.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function Hn(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[En](t.pluralizationRules||e.pluralizationRules);const n=On(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const Gn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Wn({slots:e},t){if(1===t.length&&"default"===t[0]){const t=e.default?e.default():[];return t.reduce(((e,t)=>[...e,...t.type===vn.Fragment?t.children:[t]]),[])}return t.reduce(((t,n)=>{const i=e[n];return i&&(t[n]=i()),t}),p())}function qn(){return vn.Fragment}const Kn=(0,vn.defineComponent)({name:"i18n-t",props:d({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>a(e)||!isNaN(e)}},Gn),setup(e,t){const{slots:n,attrs:i}=t,r=e.i18n||ci({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s=p();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=k(e.plural)?+e.plural:e.plural);const a=Wn(t,o),l=r[Sn](e.keypath,a,s),c=d(p(),i),u=k(e.tag)||S(e.tag)?e.tag:qn();return(0,vn.h)(u,c,l)}}}),Yn=Kn;function Xn(e){return b(e)&&!k(e[0])}function Jn(e,t,n,i){const{slots:r,attrs:o}=t;return()=>{const t={part:!0};let s=p();e.locale&&(t.locale=e.locale),k(e.format)?t.key=e.format:S(e.format)&&(k(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,i)=>n.includes(i)?d(p(),t,{[i]:e.format[i]}):t),p()));const a=i(e.value,t,s);let l=[t.key];b(a)?l=a.map(((e,t)=>{const n=r[e.type],i=n?n({[e.type]:e.value,index:t,parts:a}):[e.value];return Xn(i)&&(i[0].key=`${e.type}-${t}`),i})):k(a)&&(l=[a]);const c=d(p(),o),u=k(e.tag)||S(e.tag)?e.tag:qn();return(0,vn.h)(u,c,l)}}const Qn=(0,vn.defineComponent)({name:"i18n-n",props:d({value:{type:Number,required:!0},format:{type:[String,Object]}},Gn),setup(e,t){const n=e.i18n||ci({useScope:e.scope,__useComponent:!0});return Jn(e,t,Kt,((...e)=>n[Cn](...e)))}}),Zn=Qn,ei=(0,vn.defineComponent)({name:"i18n-d",props:d({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Gn),setup(e,t){const n=e.i18n||ci({useScope:e.scope,__useComponent:!0});return Jn(e,t,Ht,((...e)=>n[xn](...e)))}}),ti=ei;function ni(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return null!=i?i.__composer:e.global.__composer}}function ii(e){const t=t=>{const{instance:n,value:i}=t;if(!n||!n.$)throw _n(kn.UNEXPECTED_ERROR);const r=ni(e,n.$),o=ri(i);return[Reflect.apply(r.t,r,[...oi(o)]),r]},n=(n,r)=>{const[o,s]=t(r);i&&e.global===s&&(n.__i18nWatcher=(0,vn.watch)(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=s,n.textContent=o},r=e=>{i&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},o=(e,{value:t})=>{if(e.__composer){const n=e.__composer,i=ri(t);e.textContent=Reflect.apply(n.t,n,[...oi(i)])}},s=e=>{const[n]=t(e);return{textContent:n}};return{created:n,unmounted:r,beforeUpdate:o,getSSRProps:s}}function ri(e){if(k(e))return{path:e};if(T(e)){if(!("path"in e))throw _n(kn.REQUIRED_VALUE,"path");return e}throw _n(kn.INVALID_VALUE)}function oi(e){const{path:t,locale:n,args:i,choice:r,plural:o}=e,s={},l=i||{};return k(n)&&(s.locale=n),a(r)&&(s.plural=r),a(o)&&(s.plural=o),[t,l,s]}function si(e,t,...n){const i=T(n[0])?n[0]:{},r=!_(i.globalInstall)||i.globalInstall;r&&([Yn.name,"I18nT"].forEach((t=>e.component(t,Yn))),[Zn.name,"I18nN"].forEach((t=>e.component(t,Zn))),[ti.name,"I18nD"].forEach((t=>e.component(t,ti)))),e.directive("t",ii(t))}const ai=r("global-vue-i18n");function li(e={},t){const n=__VUE_I18N_LEGACY_API__&&_(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=!_(e.globalInjection)||e.globalInjection,o=new Map,[s,a]=ui(e,n),l=r("");function c(e){return o.get(e)||null}function u(e,t){o.set(e,t)}function d(e){o.delete(e)}const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(e,...t){if(e.__VUE_I18N_SYMBOL__=l,e.provide(e.__VUE_I18N_SYMBOL__,h),T(t[0])){const e=t[0];h.__composerExtend=e.__composerExtend,h.__vueI18nExtend=e.__vueI18nExtend}let r=null;!n&&i&&(r=bi(e,h.global)),__VUE_I18N_FULL_INSTALL__&&si(e,h,...t),__VUE_I18N_LEGACY_API__&&n&&e.mixin(jn(a,a.__composer,h));const o=e.unmount;e.unmount=()=>{r&&r(),h.dispose(),o()}},get global(){return a},dispose(){s.stop()},__instances:o,__getInstance:c,__setInstance:u,__deleteInstance:d};return h}function ci(e={}){const t=(0,vn.getCurrentInstance)();if(null==t)throw _n(kn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw _n(kn.NOT_INSTALLED);const n=di(t),i=pi(n),r=An(t),o=hi(e,r);if("global"===o)return Pn(i,e,r),i;if("parent"===o){let r=fi(n,t,e.__useComponent);return null==r&&(r=i),r}const s=n;let a=s.__getInstance(t);if(null==a){const n=d({},e);"__i18n"in r&&(n.__i18n=r.__i18n),i&&(n.__root=i),a=$n(n),s.__composerExtend&&(a[Dn]=s.__composerExtend(a)),gi(s,t,a),s.__setInstance(t,a)}return a}function ui(e,t,n){const i=(0,vn.effectScope)(),r=__VUE_I18N_LEGACY_API__&&t?i.run((()=>Un(e))):i.run((()=>$n(e)));if(null==r)throw _n(kn.UNEXPECTED_ERROR);return[i,r]}function di(e){const t=(0,vn.inject)(e.isCE?ai:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw _n(e.isCE?kn.NOT_INSTALLED_WITH_PROVIDE:kn.UNEXPECTED_ERROR);return t}function hi(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function pi(e){return"composition"===e.mode?e.global:e.global.__composer}function fi(e,t,n=!1){let i=null;const r=t.root;let o=mi(t,n);while(null!=o){const t=e;if("composition"===e.mode)i=t.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(o);null!=e&&(i=e.__composer,n&&i&&!i[Tn]&&(i=null))}if(null!=i)break;if(r===o)break;o=o.parent}return i}function mi(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function gi(e,t,n){(0,vn.onMounted)((()=>{0}),t),(0,vn.onUnmounted)((()=>{const i=n;e.__deleteInstance(t);const r=i[Dn];r&&(r(),delete i[Dn])}),t)}const vi=["locale","fallbackLocale","availableLocales"],yi=["t","rt","d","n","tm","te"];function bi(e,t){const n=Object.create(null);vi.forEach((e=>{const i=Object.getOwnPropertyDescriptor(t,e);if(!i)throw _n(kn.UNEXPECTED_ERROR);const r=(0,vn.isRef)(i.value)?{get(){return i.value.value},set(e){i.value.value=e}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,yi.forEach((n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw _n(kn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}));const i=()=>{delete e.config.globalProperties.$i18n,yi.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return i}if(bn(),Et(Ue),Tt(ft),Dt(tt),__INTLIFY_PROD_DEVTOOLS__){const e=m();e.__INTLIFY__=!0,He(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},4723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const i=n(8871),r=n(4060),o=n(4892),s=n(6536),a=n(5483),l=n(8871),c=n(8722),u="hasShadow",d="shadowRGBA",h="patternImage",p="linearGradient",f="radialGradient";let m;function g(){return m||(m=r.Util.createCanvasElement().getContext("2d"),m)}function v(e){const t=this.attrs.fillRule;t?e.fill(t):e.fill()}function y(e){e.stroke()}function b(e){const t=this.attrs.fillRule;t?e.fill(t):e.fill()}function w(e){e.stroke()}function k(){this._clearCache(u)}function _(){this._clearCache(d)}function S(){this._clearCache(h)}function x(){this._clearCache(p)}function C(){this._clearCache(f)}t.shapes={};class E extends s.Node{constructor(e){let n;super(e);while(1)if(n=r.Util.getRandomColor(),n&&!(n in t.shapes))break;this.colorKey=n,t.shapes[n]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this["_sceneFunc"]}getHitFunc(){return this.attrs.hitFunc||this["_hitFunc"]}hasShadow(){return this._getCache(u,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(h,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const e=g(),t=e.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(t&&t.setTransform){const e=new r.Transform;e.translate(this.fillPatternX(),this.fillPatternY()),e.rotate(i.Konva.getAngle(this.fillPatternRotation())),e.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),e.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const n=e.getMatrix(),o="undefined"===typeof DOMMatrix?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);t.setTransform(o)}return t}}_getLinearGradient(){return this._getCache(p,this.__getLinearGradient)}__getLinearGradient(){const e=this.fillLinearGradientColorStops();if(e){const t=g(),n=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),r=t.createLinearGradient(n.x,n.y,i.x,i.y);for(let o=0;o<e.length;o+=2)r.addColorStop(e[o],e[o+1]);return r}}_getRadialGradient(){return this._getCache(f,this.__getRadialGradient)}__getRadialGradient(){const e=this.fillRadialGradientColorStops();if(e){const t=g(),n=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),r=t.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius());for(let o=0;o<e.length;o+=2)r.addColorStop(e[o],e[o+1]);return r}}getShadowRGBA(){return this._getCache(d,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const e=r.Util.colorToRGBA(this.shadowColor());return e?"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")":void 0}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],(()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],(()=>this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())))}hasHitStroke(){const e=this.hitStrokeWidth();return"auto"===e?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){const t=this.getStage();if(!t)return!1;const n=t.bufferHitCanvas;n.getContext().clear(),this.drawHit(n,void 0,!0);const i=n.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data;return i[3]>0}destroy(){return s.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var t;const n=null===(t=this.attrs.perfectDrawEnabled)||void 0===t||t;if(!n)return!1;const i=e||this.hasFill(),r=this.hasStroke(),o=1!==this.getAbsoluteOpacity();if(i&&r&&o)return!0;const s=this.hasShadow(),a=this.shadowForStrokeEnabled();return!!(i&&r&&s&&a)}setStrokeHitEnabled(e){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){const e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){let t=!1,n=this.getParent();while(n){if(n.isCached()){t=!0;break}n=n.getParent()}const i=e.skipTransform,r=e.relativeTo||t&&this.getStage()||void 0,o=this.getSelfRect(),s=!e.skipStroke&&this.hasStroke(),a=s&&this.strokeWidth()||0,l=o.width+a,c=o.height+a,u=!e.skipShadow&&this.hasShadow(),d=u?this.shadowOffsetX():0,h=u?this.shadowOffsetY():0,p=l+Math.abs(d),f=c+Math.abs(h),m=u&&this.shadowBlur()||0,g=p+2*m,v=f+2*m,y={width:g,height:v,x:-(a/2+m)+Math.min(d,0)+o.x,y:-(a/2+m)+Math.min(h,0)+o.y};return i?y:this._transformedRect(y,r)}drawScene(e,t,n){const i=this.getLayer();let r,o,s=e||i.getCanvas(),a=s.getContext(),l=this._getCanvasCache(),c=this.getSceneFunc(),u=this.hasShadow();const d=s.isCache,h=t===this;if(!this.isVisible()&&!h)return this;if(l){a.save();const e=this.getAbsoluteTransform(t).getMatrix();return a.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedSceneCanvas(a),a.restore(),this}if(!c)return this;if(a.save(),this._useBufferCanvas()&&!d){r=this.getStage();const e=n||r.bufferCanvas;o=e.getContext(),o.clear(),o.save(),o._applyLineJoin(this);var p=this.getAbsoluteTransform(t).getMatrix();o.transform(p[0],p[1],p[2],p[3],p[4],p[5]),c.call(this,o,this),o.restore();const i=e.pixelRatio;u&&a._applyShadow(this),a._applyOpacity(this),a._applyGlobalCompositeOperation(this),a.drawImage(e._canvas,0,0,e.width/i,e.height/i)}else{if(a._applyLineJoin(this),!h){p=this.getAbsoluteTransform(t).getMatrix();a.transform(p[0],p[1],p[2],p[3],p[4],p[5]),a._applyOpacity(this),a._applyGlobalCompositeOperation(this)}u&&a._applyShadow(this),c.call(this,a,this)}return a.restore(),this}drawHit(e,t,n=!1){if(!this.shouldDrawHit(t,n))return this;const i=this.getLayer(),o=e||i.hitCanvas,s=o&&o.getContext(),a=this.hitFunc()||this.sceneFunc(),l=this._getCanvasCache(),c=l&&l.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),c){s.save();const e=this.getAbsoluteTransform(t).getMatrix();return s.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._drawCachedHitCanvas(s),s.restore(),this}if(!a)return this;s.save(),s._applyLineJoin(this);const u=this===t;if(!u){const e=this.getAbsoluteTransform(t).getMatrix();s.transform(e[0],e[1],e[2],e[3],e[4],e[5])}return a.call(this,s,this),s.restore(),this}drawHitFromCache(e=0){const t=this._getCanvasCache(),n=this._getCachedSceneCanvas(),i=t.hit,o=i.getContext(),s=i.getWidth(),a=i.getHeight();o.clear(),o.drawImage(n._canvas,0,0,s,a);try{const t=o.getImageData(0,0,s,a),n=t.data,i=n.length,l=r.Util._hexToRgb(this.colorKey);for(let r=0;r<i;r+=4){const t=n[r+3];t>e?(n[r]=l.r,n[r+1]=l.g,n[r+2]=l.b,n[r+3]=255):n[r+3]=0}o.putImageData(t,0,0)}catch(l){r.Util.error("Unable to draw hit graph from cached scene canvas. "+l.message)}return this}hasPointerCapture(e){return c.hasPointerCapture(e,this)}setPointerCapture(e){c.setPointerCapture(e,this)}releaseCapture(e){c.releaseCapture(e,this)}}t.Shape=E,E.prototype._fillFunc=v,E.prototype._strokeFunc=y,E.prototype._fillFuncHit=b,E.prototype._strokeFuncHit=w,E.prototype._centroid=!1,E.prototype.nodeType="Shape",(0,l._registerNode)(E),E.prototype.eventListeners={},E.prototype.on.call(E.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",k),E.prototype.on.call(E.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",_),E.prototype.on.call(E.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",S),E.prototype.on.call(E.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",x),E.prototype.on.call(E.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",C),o.Factory.addGetterSetter(E,"stroke",void 0,(0,a.getStringOrGradientValidator)()),o.Factory.addGetterSetter(E,"strokeWidth",2,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillAfterStrokeEnabled",!1),o.Factory.addGetterSetter(E,"hitStrokeWidth","auto",(0,a.getNumberOrAutoValidator)()),o.Factory.addGetterSetter(E,"strokeHitEnabled",!0,(0,a.getBooleanValidator)()),o.Factory.addGetterSetter(E,"perfectDrawEnabled",!0,(0,a.getBooleanValidator)()),o.Factory.addGetterSetter(E,"shadowForStrokeEnabled",!0,(0,a.getBooleanValidator)()),o.Factory.addGetterSetter(E,"lineJoin"),o.Factory.addGetterSetter(E,"lineCap"),o.Factory.addGetterSetter(E,"sceneFunc"),o.Factory.addGetterSetter(E,"hitFunc"),o.Factory.addGetterSetter(E,"dash"),o.Factory.addGetterSetter(E,"dashOffset",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"shadowColor",void 0,(0,a.getStringValidator)()),o.Factory.addGetterSetter(E,"shadowBlur",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"shadowOpacity",1,(0,a.getNumberValidator)()),o.Factory.addComponentsGetterSetter(E,"shadowOffset",["x","y"]),o.Factory.addGetterSetter(E,"shadowOffsetX",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"shadowOffsetY",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillPatternImage"),o.Factory.addGetterSetter(E,"fill",void 0,(0,a.getStringOrGradientValidator)()),o.Factory.addGetterSetter(E,"fillPatternX",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillPatternY",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillLinearGradientColorStops"),o.Factory.addGetterSetter(E,"strokeLinearGradientColorStops"),o.Factory.addGetterSetter(E,"fillRadialGradientStartRadius",0),o.Factory.addGetterSetter(E,"fillRadialGradientEndRadius",0),o.Factory.addGetterSetter(E,"fillRadialGradientColorStops"),o.Factory.addGetterSetter(E,"fillPatternRepeat","repeat"),o.Factory.addGetterSetter(E,"fillEnabled",!0),o.Factory.addGetterSetter(E,"strokeEnabled",!0),o.Factory.addGetterSetter(E,"shadowEnabled",!0),o.Factory.addGetterSetter(E,"dashEnabled",!0),o.Factory.addGetterSetter(E,"strokeScaleEnabled",!0),o.Factory.addGetterSetter(E,"fillPriority","color"),o.Factory.addComponentsGetterSetter(E,"fillPatternOffset",["x","y"]),o.Factory.addGetterSetter(E,"fillPatternOffsetX",0,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillPatternOffsetY",0,(0,a.getNumberValidator)()),o.Factory.addComponentsGetterSetter(E,"fillPatternScale",["x","y"]),o.Factory.addGetterSetter(E,"fillPatternScaleX",1,(0,a.getNumberValidator)()),o.Factory.addGetterSetter(E,"fillPatternScaleY",1,(0,a.getNumberValidator)()),o.Factory.addComponentsGetterSetter(E,"fillLinearGradientStartPoint",["x","y"]),o.Factory.addComponentsGetterSetter(E,"strokeLinearGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(E,"fillLinearGradientStartPointX",0),o.Factory.addGetterSetter(E,"strokeLinearGradientStartPointX",0),o.Factory.addGetterSetter(E,"fillLinearGradientStartPointY",0),o.Factory.addGetterSetter(E,"strokeLinearGradientStartPointY",0),o.Factory.addComponentsGetterSetter(E,"fillLinearGradientEndPoint",["x","y"]),o.Factory.addComponentsGetterSetter(E,"strokeLinearGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(E,"fillLinearGradientEndPointX",0),o.Factory.addGetterSetter(E,"strokeLinearGradientEndPointX",0),o.Factory.addGetterSetter(E,"fillLinearGradientEndPointY",0),o.Factory.addGetterSetter(E,"strokeLinearGradientEndPointY",0),o.Factory.addComponentsGetterSetter(E,"fillRadialGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(E,"fillRadialGradientStartPointX",0),o.Factory.addGetterSetter(E,"fillRadialGradientStartPointY",0),o.Factory.addComponentsGetterSetter(E,"fillRadialGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(E,"fillRadialGradientEndPointX",0),o.Factory.addGetterSetter(E,"fillRadialGradientEndPointY",0),o.Factory.addGetterSetter(E,"fillPatternRotation",0),o.Factory.addGetterSetter(E,"fillRule",void 0,(0,a.getStringValidator)()),o.Factory.backCompat(E,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})},4821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arc=void 0;const i=n(4892),r=n(4723),o=n(8871),s=n(5483),a=n(8871);class l extends r.Shape{_sceneFunc(e){const t=o.Konva.getAngle(this.angle()),n=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,t,n),e.arc(0,0,this.innerRadius(),t,0,!n),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),t=this.outerRadius(),n=this.clockwise(),i=o.Konva.getAngle(n?360-this.angle():this.angle()),r=Math.cos(Math.min(i,Math.PI)),s=1,a=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),l=Math.sin(Math.min(i,Math.PI/2)),c=r*(r>0?e:t),u=s*(s>0?t:e),d=a*(a>0?e:t),h=l*(l>0?t:e);return{x:c,y:n?-1*h:d,width:u-c,height:h-d}}}t.Arc=l,l.prototype._centroid=!0,l.prototype.className="Arc",l.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"],(0,a._registerNode)(l),i.Factory.addGetterSetter(l,"innerRadius",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"outerRadius",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"angle",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"clockwise",!1,(0,s.getBooleanValidator)())},4843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HSV=void 0;const i=n(4892),r=n(6536),o=n(5483),s=function(e){const t=e.data,n=t.length,i=Math.pow(2,this.value()),r=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=i*r*Math.cos(o*Math.PI/180),a=i*r*Math.sin(o*Math.PI/180),l=.299*i+.701*s+.167*a,c=.587*i-.587*s+.33*a,u=.114*i-.114*s-.497*a,d=.299*i-.299*s-.328*a,h=.587*i+.413*s+.035*a,p=.114*i-.114*s+.293*a,f=.299*i-.3*s+1.25*a,m=.587*i-.586*s-1.05*a,g=.114*i+.886*s-.2*a;let v,y,b,w;for(let k=0;k<n;k+=4)v=t[k+0],y=t[k+1],b=t[k+2],w=t[k+3],t[k+0]=l*v+c*y+u*b,t[k+1]=d*v+h*y+p*b,t[k+2]=f*v+m*y+g*b,t[k+3]=w};t.HSV=s,i.Factory.addGetterSetter(r.Node,"hue",0,(0,o.getNumberValidator)(),i.Factory.afterSetFilter),i.Factory.addGetterSetter(r.Node,"saturation",0,(0,o.getNumberValidator)(),i.Factory.afterSetFilter),i.Factory.addGetterSetter(r.Node,"value",0,(0,o.getNumberValidator)(),i.Factory.afterSetFilter)},4892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const i=n(4060),r=n(5483),o="get",s="set";t.Factory={addGetterSetter(e,n,i,r,o){t.Factory.addGetter(e,n,i),t.Factory.addSetter(e,n,r,o),t.Factory.addOverloadedGetterSetter(e,n)},addGetter(e,t,n){var r=o+i.Util._capitalize(t);e.prototype[r]=e.prototype[r]||function(){const e=this.attrs[t];return void 0===e?n:e}},addSetter(e,n,r,o){var a=s+i.Util._capitalize(n);e.prototype[a]||t.Factory.overWriteSetter(e,n,r,o)},overWriteSetter(e,t,n,r){var o=s+i.Util._capitalize(t);e.prototype[o]=function(e){return n&&void 0!==e&&null!==e&&(e=n.call(this,e,t)),this._setAttr(t,e),r&&r.call(this),this}},addComponentsGetterSetter(e,n,a,l,c){const u=a.length,d=i.Util._capitalize,h=o+d(n),p=s+d(n);e.prototype[h]=function(){const e={};for(let t=0;t<u;t++){const i=a[t];e[i]=this.getAttr(n+d(i))}return e};const f=(0,r.getComponentValidator)(a);e.prototype[p]=function(e){const t=this.attrs[n];l&&(e=l.call(this,e,n)),f&&f.call(this,e,n);for(const i in e)e.hasOwnProperty(i)&&this._setAttr(n+d(i),e[i]);return e||a.forEach((e=>{this._setAttr(n+d(e),void 0)})),this._fireChangeEvent(n,t,e),c&&c.call(this),this},t.Factory.addOverloadedGetterSetter(e,n)},addOverloadedGetterSetter(e,t){var n=i.Util._capitalize(t),r=s+n,a=o+n;e.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[a]()}},addDeprecatedGetterSetter(e,n,r,s){i.Util.error("Adding deprecated "+n);const a=o+i.Util._capitalize(n),l=n+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[a]=function(){i.Util.error(l);const e=this.attrs[n];return void 0===e?r:e},t.Factory.addSetter(e,n,s,(function(){i.Util.error(l)})),t.Factory.addOverloadedGetterSetter(e,n)},backCompat(e,t){i.Util.each(t,(function(t,n){const r=e.prototype[n],a=o+i.Util._capitalize(t),l=s+i.Util._capitalize(t);function c(){r.apply(this,arguments),i.Util.error('"'+t+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}e.prototype[t]=c,e.prototype[a]=c,e.prototype[l]=c}))},afterSetFilter(){this._filterUpToDate=!1}}},4943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pixelate=void 0;const i=n(4892),r=n(4060),o=n(6536),s=n(5483),a=function(e){let t,n,i,o,s,a,l,c,u,d,h,p,f,m,g=Math.ceil(this.pixelSize()),v=e.width,y=e.height,b=Math.ceil(v/g),w=Math.ceil(y/g),k=e.data;if(g<=0)r.Util.error("pixelSize value can not be <= 0");else for(p=0;p<b;p+=1)for(f=0;f<w;f+=1){for(o=0,s=0,a=0,l=0,c=p*g,u=c+g,d=f*g,h=d+g,m=0,t=c;t<u;t+=1)if(!(t>=v))for(n=d;n<h;n+=1)n>=y||(i=4*(v*n+t),o+=k[i+0],s+=k[i+1],a+=k[i+2],l+=k[i+3],m+=1);for(o/=m,s/=m,a/=m,l/=m,t=c;t<u;t+=1)if(!(t>=v))for(n=d;n<h;n+=1)n>=y||(i=4*(v*n+t),k[i+0]=o,k[i+1]=s,k[i+2]=a,k[i+3]=l)}};t.Pixelate=a,i.Factory.addGetterSetter(o.Node,"pixelSize",8,(0,s.getNumberValidator)(),i.Factory.afterSetFilter)},5058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transformer=void 0;const i=n(4060),r=n(4892),o=n(6536),s=n(4723),a=n(5155),l=n(7949),c=n(8871),u=n(5483),d=n(8871),h="tr-konva",p=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map((e=>e+`.${h}`)).join(" "),f="nodesRect",m=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],g={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},v="ontouchstart"in c.Konva._global;function y(e,t,n){if("rotater"===e)return n;t+=i.Util.degToRad(g[e]||0);const r=(i.Util.radToDeg(t)%360+360)%360;return i.Util._inRange(r,337.5,360)||i.Util._inRange(r,0,22.5)?"ns-resize":i.Util._inRange(r,22.5,67.5)?"nesw-resize":i.Util._inRange(r,67.5,112.5)?"ew-resize":i.Util._inRange(r,112.5,157.5)?"nwse-resize":i.Util._inRange(r,157.5,202.5)?"ns-resize":i.Util._inRange(r,202.5,247.5)?"nesw-resize":i.Util._inRange(r,247.5,292.5)?"ew-resize":i.Util._inRange(r,292.5,337.5)?"nwse-resize":(i.Util.error("Transformer has unknown angle for cursor detection: "+r),"pointer")}const b=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],w=1e8;function k(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function _(e,t,n){const i=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),r=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:i,y:r}}function S(e,t){const n=k(e);return _(e,t,n)}function x(e,t,n){let i=t;for(let r=0;r<e.length;r++){const o=c.Konva.getAngle(e[r]),s=Math.abs(o-t)%(2*Math.PI),a=Math.min(s,2*Math.PI-s);a<n&&(i=o)}return i}let C=0;class E extends l.Group{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(p,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return i.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return h+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const t=e.filter((e=>!e.isAncestorOf(this)||(i.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1)));this._nodes=e=t,1===e.length&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach((e=>{const t=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()};if(e._attrsAffectingSize.length){const n=e._attrsAffectingSize.map((e=>e+"Change."+this._getEventNamespace())).join(" ");e.on(n,t)}e.on(m.map((e=>e+`.${this._getEventNamespace()}`)).join(" "),t),e.on(`absoluteTransformChange.${this._getEventNamespace()}`,t),this._proxyDrag(e)})),this._resetTransformCache();const n=!!this.findOne(".top-left");return n&&this.update(),this}_proxyDrag(e){let t;e.on(`dragstart.${this._getEventNamespace()}`,(n=>{t=e.getAbsolutePosition(),this.isDragging()||e===this.findOne(".back")||this.startDrag(n,!1)})),e.on(`dragmove.${this._getEventNamespace()}`,(n=>{if(!t)return;const i=e.getAbsolutePosition(),r=i.x-t.x,o=i.y-t.y;this.nodes().forEach((t=>{if(t===e)return;if(t.isDragging())return;const i=t.getAbsolutePosition();t.setAbsolutePosition({x:i.x+r,y:i.y+o}),t.startDrag(n)})),t=null}))}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach((e=>{e.off("."+this._getEventNamespace())})),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(f),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(f,this.__getNodeRect)}__getNodeShape(e,t=this.rotation(),n){const i=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),r=e.getAbsoluteScale(n),o=e.getAbsolutePosition(n),s=i.x*r.x-e.offsetX()*r.x,a=i.y*r.y-e.offsetY()*r.y,l=(c.Konva.getAngle(e.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI),u={x:o.x+s*Math.cos(l)+a*Math.sin(-l),y:o.y+a*Math.cos(l)+s*Math.sin(l),width:i.width*r.x,height:i.height*r.y,rotation:l};return _(u,-c.Konva.getAngle(t),{x:0,y:0})}__getNodeRect(){const e=this.getNode();if(!e)return{x:-w,y:-w,width:0,height:0,rotation:0};const t=[];this.nodes().map((e=>{const n=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],r=e.getAbsoluteTransform();i.forEach((function(e){const n=r.point(e);t.push(n)}))}));const n=new i.Transform;n.rotate(-c.Konva.getAngle(this.rotation()));let r=1/0,o=1/0,s=-1/0,a=-1/0;t.forEach((function(e){const t=n.point(e);void 0===r&&(r=s=t.x,o=a=t.y),r=Math.min(r,t.x),o=Math.min(o,t.y),s=Math.max(s,t.x),a=Math.max(a,t.y)})),n.invert();const l=n.point({x:r,y:o});return{x:l.x,y:l.y,width:s-r,height:a-o,rotation:c.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),b.forEach((e=>{this._createAnchor(e)})),this._createAnchor("rotater")}_createAnchor(e){const t=new a.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:v?10:"auto"}),n=this;t.on("mousedown touchstart",(function(e){n._handleMouseDown(e)})),t.on("dragstart",(e=>{t.stopDrag(),e.cancelBubble=!0})),t.on("dragend",(e=>{e.cancelBubble=!0})),t.on("mouseenter",(()=>{const n=c.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),r=y(e,n,i);t.getStage().content&&(t.getStage().content.style.cursor=r),this._cursorChange=!0})),t.on("mouseout",(()=>{t.getStage().content&&(t.getStage().content.style.cursor=""),this._cursorChange=!1})),this.add(t)}_createBack(){const e=new s.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(e,t){const n=t.getParent(),r=n.padding();e.beginPath(),e.rect(-r,-r,t.width()+2*r,t.height()+2*r),e.moveTo(t.width()/2,-r),n.rotateEnabled()&&n.rotateLineVisible()&&e.lineTo(t.width()/2,-n.rotateAnchorOffset()*i.Util._sign(t.height())-r),e.fillStrokeShape(t)},hitFunc:(e,t)=>{if(!this.shouldOverdrawWholeArea())return;const n=this.padding();e.beginPath(),e.rect(-n,-n,t.width()+2*n,t.height()+2*n),e.fillStrokeShape(t)}});this.add(e),this._proxyDrag(e),e.on("dragstart",(e=>{e.cancelBubble=!0})),e.on("dragmove",(e=>{e.cancelBubble=!0})),e.on("dragend",(e=>{e.cancelBubble=!0})),this.on("dragmove",(e=>{this.update()}))}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];const t=this._getNodeRect(),n=t.width,i=t.height,r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));this.sin=Math.abs(i/r),this.cos=Math.abs(n/r),"undefined"!==typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const o=e.target.getAbsolutePosition(),s=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-o.x,y:s.y-o.y},C++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach((t=>{t._fire("transformstart",{evt:e.evt,target:t})}))}_handleMouseMove(e){let t,n,i;const r=this.findOne("."+this._movingAnchorName),o=r.getStage();o.setPointersPositions(e);const s=o.getPointerPosition();let a={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y};const l=r.getAbsolutePosition();this.anchorDragBoundFunc()&&(a=this.anchorDragBoundFunc()(l,a,e)),r.setAbsolutePosition(a);const u=r.getAbsolutePosition();if(l.x===u.x&&l.y===u.y)return;if("rotater"===this._movingAnchorName){const i=this._getNodeRect();t=r.x()-i.width/2,n=-r.y()+i.height/2;let o=Math.atan2(-n,t)+Math.PI/2;i.height<0&&(o-=Math.PI);const s=c.Konva.getAngle(this.rotation()),a=s+o,l=c.Konva.getAngle(this.rotationSnapTolerance()),u=x(this.rotationSnaps(),a,l),d=u-i.rotation,h=S(i,d);return void this._fitNodesInto(h,e)}const d=this.shiftBehavior();let h;h="inverted"===d?this.keepRatio()&&!e.shiftKey:"none"===d?this.keepRatio():this.keepRatio()||e.shiftKey;var p=this.centeredScaling()||e.altKey;if("top-left"===this._movingAnchorName){if(h){var f=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(f.x-r.x(),2)+Math.pow(f.y-r.y(),2));var m=this.findOne(".top-left").x()>f.x?-1:1,g=this.findOne(".top-left").y()>f.y?-1:1;t=i*this.cos*m,n=i*this.sin*g,this.findOne(".top-left").x(f.x-t),this.findOne(".top-left").y(f.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(r.y());else if("top-right"===this._movingAnchorName){if(h){f=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(r.x()-f.x,2)+Math.pow(f.y-r.y(),2));m=this.findOne(".top-right").x()<f.x?-1:1,g=this.findOne(".top-right").y()>f.y?-1:1;t=i*this.cos*m,n=i*this.sin*g,this.findOne(".top-right").x(f.x+t),this.findOne(".top-right").y(f.y-n)}var v=r.position();this.findOne(".top-left").y(v.y),this.findOne(".bottom-right").x(v.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(r.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(r.x());else if("bottom-left"===this._movingAnchorName){if(h){f=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(f.x-r.x(),2)+Math.pow(r.y()-f.y,2));m=f.x<r.x()?-1:1,g=r.y()<f.y?-1:1;t=i*this.cos*m,n=i*this.sin*g,r.x(f.x-t),r.y(f.y+n)}v=r.position(),this.findOne(".top-left").x(v.x),this.findOne(".bottom-right").y(v.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(r.y());else if("bottom-right"===this._movingAnchorName){if(h){f=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(r.x()-f.x,2)+Math.pow(r.y()-f.y,2));m=this.findOne(".bottom-right").x()<f.x?-1:1,g=this.findOne(".bottom-right").y()<f.y?-1:1;t=i*this.cos*m,n=i*this.sin*g,this.findOne(".bottom-right").x(f.x+t),this.findOne(".bottom-right").y(f.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));p=this.centeredScaling()||e.altKey;if(p){const e=this.findOne(".top-left"),t=this.findOne(".bottom-right"),n=e.x(),i=e.y(),r=this.getWidth()-t.x(),o=this.getHeight()-t.y();t.move({x:-n,y:-i}),e.move({x:r,y:o})}const y=this.findOne(".top-left").getAbsolutePosition();t=y.x,n=y.y;const b=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),w=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:t,y:n,width:b,height:w,rotation:c.Konva.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var t;if(this._transforming){this._transforming=!1,"undefined"!==typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const n=this.getNode();C--,this._fire("transformend",{evt:e,target:n}),null===(t=this.getLayer())||void 0===t||t.batchDraw(),n&&this._nodes.forEach((t=>{var n;t._fire("transformend",{evt:e,target:t}),null===(n=t.getLayer())||void 0===n||n.batchDraw()})),this._movingAnchorName=null}}_fitNodesInto(e,t){const n=this._getNodeRect(),r=1;if(i.Util._inRange(e.width,2*-this.padding()-r,r))return void this.update();if(i.Util._inRange(e.height,2*-this.padding()-r,r))return void this.update();const o=new i.Transform;if(o.rotate(c.Konva.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const t=o.point({x:2*-this.padding(),y:0});e.x+=t.x,e.y+=t.y,e.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const t=o.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.width+=2*this.padding()}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const t=o.point({x:0,y:2*-this.padding()});e.x+=t.x,e.y+=t.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const t=o.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}if(this.boundBoxFunc()){const t=this.boundBoxFunc()(n,e);t?e=t:i.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,a=new i.Transform;a.translate(n.x,n.y),a.rotate(n.rotation),a.scale(n.width/s,n.height/s);const l=new i.Transform,u=e.width/s,d=e.height/s;!1===this.flipEnabled()?(l.translate(e.x,e.y),l.rotate(e.rotation),l.translate(e.width<0?e.width:0,e.height<0?e.height:0),l.scale(Math.abs(u),Math.abs(d))):(l.translate(e.x,e.y),l.rotate(e.rotation),l.scale(u,d));const h=l.multiply(a.invert());this._nodes.forEach((e=>{var t;const n=e.getParent().getAbsoluteTransform(),r=e.getTransform().copy();r.translate(e.offsetX(),e.offsetY());const o=new i.Transform;o.multiply(n.copy().invert()).multiply(h).multiply(n).multiply(r);const s=o.decompose();e.setAttrs(s),null===(t=e.getLayer())||void 0===t||t.batchDraw()})),this.rotation(i.Util._getRotation(e.rotation)),this._nodes.forEach((e=>{this._fire("transform",{evt:t,target:e}),e._fire("transform",{evt:t,target:e})})),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,t){const n=this.findOne(e);n.setAttrs(t)}update(){var e;const t=this._getNodeRect();this.rotation(i.Util._getRotation(t.rotation));const n=t.width,r=t.height,o=this.enabledAnchors(),s=this.resizeEnabled(),a=this.padding(),l=this.anchorSize(),c=this.find("._anchor");c.forEach((e=>{e.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})})),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+a,offsetY:l/2+a,visible:s&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:l/2+a,visible:s&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:l/2-a,offsetY:l/2+a,visible:s&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:r/2,offsetX:l/2+a,visible:s&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:r/2,offsetX:l/2-a,visible:s&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:r,offsetX:l/2+a,offsetY:l/2-a,visible:s&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:r,offsetY:l/2-a,visible:s&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:r,offsetX:l/2-a,offsetY:l/2-a,visible:s&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*i.Util._sign(r)-a,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:r,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const u=this.anchorStyleFunc();u&&c.forEach((e=>{u(e)})),null===(e=this.getLayer())||void 0===e||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),l.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return o.Node.prototype.toObject.call(this)}clone(e){const t=o.Node.prototype.clone.call(this,e);return t}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}function T(e){return e instanceof Array||i.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach((function(e){-1===b.indexOf(e)&&i.Util.warn("Unknown anchor name: "+e+". Available names are: "+b.join(", "))})),e||[]}t.Transformer=E,E.isTransforming=()=>C>0,E.prototype.className="Transformer",(0,d._registerNode)(E),r.Factory.addGetterSetter(E,"enabledAnchors",b,T),r.Factory.addGetterSetter(E,"flipEnabled",!0,(0,u.getBooleanValidator)()),r.Factory.addGetterSetter(E,"resizeEnabled",!0),r.Factory.addGetterSetter(E,"anchorSize",10,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"rotateEnabled",!0),r.Factory.addGetterSetter(E,"rotateLineVisible",!0),r.Factory.addGetterSetter(E,"rotationSnaps",[]),r.Factory.addGetterSetter(E,"rotateAnchorOffset",50,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"rotateAnchorCursor","crosshair"),r.Factory.addGetterSetter(E,"rotationSnapTolerance",5,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"borderEnabled",!0),r.Factory.addGetterSetter(E,"anchorStroke","rgb(0, 161, 255)"),r.Factory.addGetterSetter(E,"anchorStrokeWidth",1,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"anchorFill","white"),r.Factory.addGetterSetter(E,"anchorCornerRadius",0,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"borderStroke","rgb(0, 161, 255)"),r.Factory.addGetterSetter(E,"borderStrokeWidth",1,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"borderDash"),r.Factory.addGetterSetter(E,"keepRatio",!0),r.Factory.addGetterSetter(E,"shiftBehavior","default"),r.Factory.addGetterSetter(E,"centeredScaling",!1),r.Factory.addGetterSetter(E,"ignoreStroke",!1),r.Factory.addGetterSetter(E,"padding",0,(0,u.getNumberValidator)()),r.Factory.addGetterSetter(E,"nodes"),r.Factory.addGetterSetter(E,"node"),r.Factory.addGetterSetter(E,"boundBoxFunc"),r.Factory.addGetterSetter(E,"anchorDragBoundFunc"),r.Factory.addGetterSetter(E,"anchorStyleFunc"),r.Factory.addGetterSetter(E,"shouldOverdrawWholeArea",!1),r.Factory.addGetterSetter(E,"useSingleNodeRotation",!0),r.Factory.backCompat(E,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"})},5155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rect=void 0;const i=n(4892),r=n(4723),o=n(8871),s=n(4060),a=n(5483);class l extends r.Shape{_sceneFunc(e){const t=this.cornerRadius(),n=this.width(),i=this.height();e.beginPath(),t?s.Util.drawRoundedRectPath(e,n,i,t):e.rect(0,0,n,i),e.closePath(),e.fillStrokeShape(this)}}t.Rect=l,l.prototype.className="Rect",(0,o._registerNode)(l),i.Factory.addGetterSetter(l,"cornerRadius",0,(0,a.getNumberOrArrayOfNumbersValidator)(4))},5215:(e,t,n)=>{"use strict";n.d(t,{C6:()=>r,Cl:()=>o,Ju:()=>a,Tt:()=>s,gz:()=>c,zs:()=>l});
|
|
35
35
|
/*! *****************************************************************************
|
|
36
36
|
Copyright (c) Microsoft Corporation.
|
|
37
37
|
|